Provably Neural Active Learning Succeeds via Prioritizing Perplexing Samples
Abstract
Neural Network-based active learning (NAL) is a cost-effective data selection technique that utilizes neural networks to select and train on a small subset of samples. While existing work successfully develops various effective or theory-justified NAL algorithms, the understanding of the two commonly used query criteria of NAL: uncertainty-based and diversity-based, remains in its infancy. In this work, we try to move one step forward by offering a unified explanation for the success of both query criteria-based NAL from a feature learning view. Specifically, we consider a feature-noise data model comprising easy-to-learn or hard-to-learn features disrupted by noise, and conduct analysis over 2-layer NN-based NALs in the pool-based scenario. We provably show that both uncertainty-based and diversity-based NAL are inherently amenable to one and the same principle, i.e., striving to prioritize samples that contain yet-to-be-learned features. We further prove that this shared principle is the key to their success-achieve small test error within a small labeled set. Contrastingly, the strategy-free passive learning exhibits a large test error due to the inadequate learning of yet-to-be-learned features, necessitating resort to a significantly larger label complexity for a sufficient test error reduction. Experimental results validate our findings.
1 Introduction
In the deep learning era, we witness the power of neural networks in representation learning. It is also well-known that their success relies on a substantial amount of data and extensive labeling efforts. On the other hand, active learning offers various approaches to select a small subset of unlabeled samples from a large pool of data for labeling and training, while achieving comparable generalization performance to learning on the entire dataset (Settles, 2009; Aggarwal et al., 2014). To enjoy the best of both worlds, people combine neural networks with active learning, giving rise to Neural Network-based Active Learning (NAL) or Deep Active Learning (DAL), such that over-parameterized neural models can work with limited size of labeled data. As summarized in Takezoe et al. (2023), NAL/DAL incorporates two primary criteria for querying (selecting) unlabeled samples: uncertainty-based (Roth and Small, 2006; Joshi et al., 2009) and diversity-based (Sener and Savarese, 2018; Gissin and Shalev-Shwartz, 2019). Also, some studies leverage both criteria to design NAL algorithms (Yin et al., 2017; Shui et al., 2020).
Notably, while various NAL algorithms, based on two query criteria, have achieved significant empirical success, they often come without provable performance guarantees. To overcome this limitation, recent studies (Gu et al., 2014; Gu, 2014; Wang et al., 2022a) came up with theory-driven NAL algorithms. These studies reformulate the problem into a subset selection problem or multi-armed bandit problem, and then utilize theoretical analysis techniques to guarantee the test performance. However, the internal mechanism remains not well understood on why the two widely used query criteria in the NAL family work so well, which naturally leads us to the following questions.
frametitle= Essential Questions ,
innertopmargin=-3pt,
innerbottommargin=7pt,
innerrightmargin=7pt,
innerleftmargin=7pt,
frametitleaboveskip=-frametitlealignment=,
linewidth=1pt
{mdframed}
1. What is the theoretical rationale behind the success of the two query criteria-based NAL algorithms, namely uncertainty-based and diversity-based?
2. Whether and how do the two query criteria of NAL connect to each other intrinsically?
1.1 Our Contribution
To answer the above questions, in this work, we delve into the feature learning dynamics of NAL algorithms. To start with, we draw inspiration from the data models in Zou et al. (2023a); Allen-Zhu and Li (2023); Lu et al. (2023) that consist of multiple task-related feature patches and noise patches with varying strengths and frequencies, similar to what is observed in real-world imbalanced datasets, and conjecture that successful NAL algorithms are able to ensure adequate learning of all types of task-related features.
In this spirit, we adopt a multi-view feature-noise data model that comprises two main components: i) easy-to-learn (i.e., strong common) features or hard-to-learn (i.e., weak rare) features, and ii) noise. In Figure 1, the easy-to-learn features are exemplified by the frontal male lions with brown fur in the first row, given their common and easily identifiable lion traits, while lions in all the other rows can be characterized as the hard-to-learn features since they exhibit distinctive poses, colors, ages, races, fur patterns, and even heterogeneity. Hard-to-learn features are less common in the dataset and correspond to weakly recognizable lion traits, compared to the easy-to-learn features.
![Refer to caption](extracted/5648188/photos/Lions.jpg)
Under our data model, we reformulate two representative NAL algorithms, i.e., Uncertainty Sampling and Diversity Sampling, in a pool-based setting, corresponding to two query criteria, respectively. Both are built upon a two-layer ReLU convolutional neural network, and trained by gradient descent. In accordance with the principle of each approach family (Takezoe et al., 2023), the proposed Uncertainty Sampling queries based on the lowest confidence (Lewis and Catlett, 1994), and Diversity Sampling queries based on the largest distance between feature representations of unlabeled samples in the pool and those of labeled data (Sener and Savarese, 2018).
Over our data and algorithm models, our theory sheds light on the benefits of the two primary query criteria in the NAL family. Surprisingly, our analysis unveils that the success of both criteria-based NAL stems from their inherent shared principle, leading to a unified view. Specifically, we make the following contributions in this work.
-
•
We offer valuable insights that from a feature learning view, the two query criteria-based NAL can be unified as one family. We provably show that the two query criteria-based NAL share the same working principle, i.e., prioritizing perplexing samples-samples with yet-to-be-learned features. Our analysis reveals that in our scenario, those yet-to-be-learned features are actually those weak rare features.
-
•
We elucidate a marked disparity in the generalization capabilities between passive learning and NAL algorithms. Our analysis suggest that, both NAL algorithms can learn weak rare features adequately via prioritizing perplexing samples, and thus achieve a small test error. Contrastingly, the strategy-free passive learning exhibits a large test error. The disparity can be intensified in some out-of-distribution cases. Our experimental study corroborates this finding.
-
•
We further uncover why and to what extent the two query criteria can alleviate labelling effort. The key lies in NAL’s ability to effectively query perplexing samples in the training distribution. But in contrast, we find that the strategy-free passive learning requires a significantly larger label complexity to adequately learn all types of features.
\mdfsetupframetitle= Perplexing Samples , innertopmargin=-3pt, innerbottommargin=7pt, innerrightmargin=7pt, innerleftmargin=7pt, frametitleaboveskip=-frametitlealignment=, linewidth=1pt {mdframed} Samples in the sampling pool that possess yet-to-be-learned features. We prove that both Uncertainty Sampling and Diversity Sampling inherently strive to query them.
1.2 Related Work
Neural Active Learning. Neural Network-based Active Learning (NAL) is one of the core data selection automation techniques in the field of Data-centric approaches for AutoML and Computer Version. As summarized in recent surveys (Zhan et al., 2021, 2022; Takezoe et al., 2023), there are two main query criteria: uncertainty-based, which chooses samples that the neural models feel most uncertain about (Seung et al., 1992; Lewis and Catlett, 1994; Roth and Small, 2006; Joshi et al., 2009; Houlsby et al., 2011; Cai et al., 2013; Yang and Loog, 2016; Kampffmeyer et al., 2016; Gal et al., 2017; Wang et al., 2022b; Kye et al., 2023; Duan et al., 2024; Cho et al., 2024) and diversity(representative)-based that selects samples that diverse from labeled set in the feature space (Stark et al., 2015; Du et al., 2015; Wang et al., 2016; Sener and Savarese, 2018; Gissin and Shalev-Shwartz, 2019; Sinha et al., 2019; Shui et al., 2020). Also, many works combine the two query criteria into the sampling (querying) strategy through weighted-sum optimization (Yin et al., 2017) or two-stage optimization (Ash et al., 2020; Zhdanov, 2019; Shui et al., 2020). In addition, to develop reliable algorithms, several design methods with theoretical guarantees, including theories such as VC bound (Balcan et al., 2006; Zhu and Nowak, 2022), Logistic Bound (Gu et al., 2014), Rademacher Complexity (Gu, 2014; Shui et al., 2020), and Neural Tangent Kernel (Wang et al., 2021; Mohamadi et al., 2022; Kong et al., 2022; Wang et al., 2022a; Wen et al., 2023). However, despite the development of numerous effective and theory-justified algorithms, the existing studies have not yet offered a comprehensive explanation for the underlying mechanisms of the two query criteria widely applied in NAL. Largely different from prior work, our work pioneeringly explore the theoretical aspect of the two criteria, via studying the feature learning dynamic in NAL algorithms.
Feature Learning in Learning Theory. Recent years witness an extensive body of research in learning theory on structured data from the perspective of feature learning (Li and Liang, 2018; Karp et al., 2021; Allen-Zhu and Li, 2023; Chen et al., 2022, 2023a, 2023b, 2023c, 2023d; Zou et al., 2023b; Li et al., 2023; Kou et al., 2023a, c; Huang et al., 2023a, c; Chidambaram et al., 2023; Deng et al., 2023). The essence of this line-of-research is to explicitly study the learning progress of features and memorization degree of noise under different data and algorithm scenarios, which serves as an intermediate proxy to examine the convergence of training and 0-1 loss. Specifically, Cao et al. (2022a) demonstrate the occurrence of benign overfitting in Convolutional Neural Network over linearly separable data under distinct conditions. Subsequently, Kou et al. (2023b) conduct similar results with ReLU activation, Meng et al. (2023) further derive results over XOR data, Zou et al. (2023a) reveal the benefits of Mixup training over linearly separable data with common and rare features, and Lu et al. (2023) explore the phenomenon of benign oscillation over linearly separable data with common weak and rare strong features. Our work extends the line of research by investigating the rationale behind the two primary criteria in NAL family, over both linearly and non-linearly separable data scenarios that include common strong and rare weak features. Our study focuses on characterizing the feature learning dynamics in NAL algorithms and providing a mathematical explanation for the benefits and inner relationship of the two primary query criteria of NAL.
2 Problem Settings
Notations. For norm we utilize to denote its computation. Considering two series and , we denote if there exists positive constant and such that for all , . Similarly, we denote if holds, if and both hold, if holds and if holds. To omit logarithmic terms, we apply the notations , and . Our is to denote the indicator variable of an event. We say if for some , and if poly .
2.1 Data Distribution
In this study, our focus is on the pool-based selective sampling scenario, where the algorithms initially train the model using an initial labeled set and subsequently query a single batch of unlabeled samples from a large sampling pool. Then the algorithms would retrain the model again with fresh initialization. We denote the size of the initial labeled set as , the querying (sampling) size for all querying algorithms as (), and the size of the labeled set after querying as . We also define as the maximum size of the labeled set after querying, such that . Moreover, we have the initial labeled set represented as , and the sampling pool denoted as . Both of them are synthesized from the same data distribution , which is specified as follows.
Definition 2.1.
Let be two fixed feature vectors. Each data point , where contains two patches as = and are generated from the distribution :
-
•
The ground truth label y is synthesized from a Rademacher distribution.
-
•
Noise Patch. One patch of is selected as a noise patch , synthesized from Gaussian distribution .
-
•
Feature Patch. For a feeble satisfying , the remaining patch of is selected as label-related feature patch, and with high probability (1-) the feature patch is a strong feature , while only with probability the feature patch is a weak feature .
We assume the following about the feature norms: 111The choices of aim to prevent learning of features completely disrupted by noise, while amplifying the distinguishability of the strong feature patch compared to the weak one. Our theory allows for a broader range of parameter settings (see Appendix D.3 for general cases), but for the sake of simplicity in presentation, we here chose a feasible one.: , and .
This feature-noise data model captures the structure of an image, as depicted in Figure 1, by incorporating task-oriented distinctive patterns (features) and background patterns (noise) with different frequencies and strengths. Same as the patches setting in Zou et al. (2023a); Allen-Zhu and Li (2023); Lu et al. (2023), the weak feature patches are orthogonal to the strong feature patches in our setting, which is reasonable since the rare features appear largely different to the common ones. Worth noting that this type of data setting is common in the widely-recognized feature learning line-of-research (Allen-Zhu and Li, 2023; Cao et al., 2022a; Kou et al., 2023b; Zou et al., 2023a; Meng et al., 2023). Allen-Zhu and Li (2023) justify this type of data settings as plausible theoretical setups by highlighting the common occurrence of multiple one-task-oriented features in the latent space of Resnet, as shown in their Figure 2-4, 9. Furthermore, recent empirical and theoretical studies indicate the orthogonal nature of different features within the latent space of ViT and LLM (Yamagiwa et al., 2023; Jiang et al., 2024). To extend our contributions to more practical scenarios, we also conduct rigorous study and draw similar theoretical findings over a non-linearly separable, non-orthogonal data distribution - the XOR data defined in Definition C.2 - and obtained similar results.
2.2 Querying Algorithms
Neural Setting. This work considers a two-layer ReLU CNN adopted in Kou et al. (2023b); Meng et al. (2023); Kou et al. (2023c); Chen et al. (2023d) as the base neural network for querying algorithms. The CNN function is defined as , with as
where the second layer is fixed as , is the number of neurons, is ReLU function, denotes the weights of the -th neuron of , collects the weights in and collects all weights.
Training Setting. We utilize gradient descent to train the neural model. Denote as the size of current labeled training set, denoted as generated from over . We apply the empirical logist loss:
(1) |
where . The gradient update of the filters in the first layer can be written as follows:
(2) | ||||
where denote as the set of indices of where the data’s feature patch is , denotes . The initial values of all elements in are generated from independent and identically distributed (i.i.d.) Gaussian distributions with mean 0 and variance . The querying algorithms would have the neural models retrained after a single querying with the same model initialization.
Querying Setting. During the querying stage, all the querying algorithms select new unlabeled samples from , where the pool size satisfies 222The choice on is to ensure the sufficient presence of weak features in .. The three querying algorithms differentiate from each other by their own sampling rules as below:
-
•
Random Sampling (strategy-free passive learning) randomly selects new samples from .
-
•
Uncertainty Sampling (uncertainty-based NAL) selects top new samples from based on the lowest Confidence Score at time step . The Confidence Score measures the model’s confidence in predicting the label of sample , defined as below:
which represents the probability of the predicted label of logistic loss. In our scenario, the proposed Uncertainty Sampling is actually equivalent to many well-known uncertainty-based approaches such as Least Confidence (Lewis and Catlett, 1994), Margin Roth and Small (2006), and Entropy methods (Joshi et al., 2009), as discussed in Lemma F.5 in Appendix F.2.
-
•
Diversity Sampling (diversity-based NAL) selects the top new samples from based on the highest Feature Distance at time step . The Feature Distance measures the distance between sample and in feature space, specified as:
where the is defined as the sum of feature maps in the feature space of CNN:
Specifically, Lemma 4.2 reveals that in our scenario, the proposed Diversity Sampling is equivalent for all values of within the range of . This implies that our metric can be various distance measure, including Euclidean, Manhattan, or Minkowski distance.
The newly acquired samples are provided to an oracle to obtain their ground truth labels, which are then added to the training set. The whole procedure of the three querying algorithms are shown in Algorithm 1.
Testing Setting. The model performances at initial stage (before querying) and stage after querying are all measured by test error on a test distribution :
(3) |
It is important to note that shares the same definition as stated in Definition 1. However, it can have any occurrence probability of the weak feature, denoted as , without the limitation of compared to the training distribution. Also, the test loss is defined as :
3 Theoretical Results
For both the initialization stage and the second stage, we consider the learning period , where poly is the maximum admissible iterations for the initial stage. The following provides our main theories over linearly separable data. For non-linear XOR data, please refer to our similar theoretical results in Appendix C.
We first adopt signal-noise decomposition techniques in Cao et al. (2022a) over . By the update rule in (2), we can derive that there exist unique coefficients and such that
(4) |
The normalization factors and leads to . Importantly, characterizes the learning progress of feature , and characterizes the degree of noise memorization. Geometrically, the indicates how well the model filters integrate the low-dimensional patterns of the task-oriented features in its latent projection space, and quantifies the extent to which model filters memorize the high-dimensional complex noise. Then, by conducting a scale analysis of the two coefficients, we can then assess the cases where models mainly focus on capturing underlying patterns while avoiding excessive fitting of noise, which we refer to as benign overfitting. Additionally, this analysis helps us identify situations of harmful overfitting, where the models become overly complex, primarily memorizing noise and leading to poor generalization on new, unseen data.
Our findings then reveal that in our case, both the two heuristic NAL methods inherently amenable to query those data with yet-to-be-learned features (i.e., features that model exhibits low ). Consequently, the NNs are enabled to sufficiently learn all types of features, and then exhibit benign overfitting even in the case where the label complexity is quite limited.
To present our findings, we make the following assumptions.
Condition 3.1.
Suppose that:
-
1.
The initial training size , the maximum admissible size after querying , and the width of neural network satisfy , , .
-
2.
Dimension is sufficiently large: , .
-
3.
The standard deviation of Gaussian initialization is appropriately chosen such that , . The learning rate of all algorithms satisfies that .
The condition on is to guarantee there exists enough strong features in the initial training set with probability at least , while the condition on prevents the final training size from being too large, even for passive learning to perform well with considerable chance. The requirement on ensures the problem is in a sufficiently overparameterized setting, as in prior works (Chatterji and Long, 2021; Cao et al., 2022a; Frei et al., 2022; Kou et al., 2023b; Lu et al., 2023; Chidambaram et al., 2023). The conditions on and guarantee that gradient descent can effectively minimize the empirical loss. A detailed discussions over parameter settings are provided in Appendix B.
The following results illustrate the presence of benign overfitting (i.e., small training loss and small test error) as well as harmful overfitting (i.e., small training loss but large test error) in the three querying algorithms.
Proposition 3.2.
(Before Querying) At the initial stage before querying, , under Condition 3.1, with probability at least , there exists , the followings hold for all of the three querying algorithms:
-
1.
The training loss converges to , i.e., .
-
2.
The test error remains at constant level, i.e., .
Proposition 3.2 outlines the scenarios of harmful overfitting for all algorithms at the initial stage, which is not a surprise since the initial size is limited and always insufficient for adequate learning. Subsequently, the following lemma uncovers a crucial finding regarding the querying stage.
Proposition 3.3.
(Querying Stage) During Querying, under the same conditions as Proposition 3.2, if333We can relax the requirement for the discrepancy of feature norms, as discussed in Appendix D.3. The specific choice made in our presentation was for the sake of simplicity and clarity. , with probability at least , both Uncertainty Sampling and Diversity Sampling pick samples that exhibit lowest .
Proposition 3 provides a unifying insight that both NAL algorithms prioritize perplexing samples-samples that exhibit a lack of learning progress (measured by ). Lemma 4.1 indicates that these perplexing samples here are essentially samples that contain weak rare features. We discuss the nature of these perplexing samples in general cases in Appendix D.3. Our inference process for the following theorem reveals that the ability to prioritize these samples is the main contributor to the success of both NAL algorithms.
Theorem 3.4.
(After Querying) If the sampling size of the three querying algorithms satisfies , where is some positive constant. Then for , under the same conditions as Proposition 3, with probability more than 1 - , such that:
-
•
For all of the three querying algorithms, the training loss converges to , i.e., .
-
•
Uncertainty Sampling and Diversity Sampling algorithms have small test error: .
-
•
Random Sampling algorithm would remain constant order test error: .
Theorem 3.4 implies that NAL algorithms achieve benign overfitting, whereas the passive learning remains harmful overfitting. It worth noting that as increases, the test error of Random Sampling tends to explode, especially in out-of-distribution scenarios where . In contrast, Uncertainty Sampling and Diversity Sampling consistently achieve low test errors regardless of the value of , which highlights the superiority of Uncertainty Sampling and Diversity Sampling over Random Sampling.
Given that strategy-free passive learning can also adequately learn all types of features with ample data, the following corollary aim to show the extent to which NAL algorithms alleviate the burden of labeling.
Corollary 3.5.
(Label Complexity) Under the same conditions as stated in Theorem 3.4, with a probability of at least , we observe distinct label complexities for strategy-free passive learning and NAL algorithms in achieving Bayes-optimal generalization ability:
-
•
For a fully trained neural model, the label complexity requires .
-
•
For two NAL algorithms, the maximum label complexity only requires .
This corollary suggests that NAL algorithms can significantly reduce labeling effort, approximately on the order of . This holds true even without the requirement of disparity between feature norms, as demonstrated in Appendix D.3. Hence, we can conclude that NAL algorithms are effective in minimizing labeling effort, particularly in imbalanced data scenarios where the degree of discrimination or rarity varies within the data. In collaboration with Proposition 3 and Theorem 3.4, the essence lies in NAL’s capability to effectively grasp yet-to-be-learned features.
4 Proof Sketch
In this section, we provide an overview of the proof outlines for our theory over linearly separable data. Here we denote as the number of training data in current labeled set, which is at initial stage and after sampling (querying). For , the notations of represent the number of feature at the initial stage and stage after querying . And for notation simplicity we denote and as the proportion of data with strong and weak feature in current dataset.
Here are the main challenges we faced and the techniques we used to address them:
-
•
The synthesis of , , and the final labeled set obtained through Random Sampling require sequential martingale-type subset generations from distribution , which poses a big challenge to our analysis. Our solution was to treat the results as independent binomial random variables, which allow us to conduct a reliable analysis with high-probability results by leveraging the properties of binomial tails.
-
•
During querying, NAL algorithms need to query the samples with the lowest Confidence Score or the highest Feature Distance from the entire sampling pool . This involves comparison operations. To better scrutinize the sampling dynamics, we defined two full orders and conducted an order-dependent querying analysis to examine the high probability events via combinatorial analysis.
-
•
Depicting the generalization capability of three different querying algorithms along the whole process was a big challenge. We addressed this by proposing a label complexity-based test error analysis regime, which allowed us to incorporate different scenarios into a single inferential process.
4.1 Feature Learning and Noise Memorization Analysis
Leverage the inductive techniques adopted in many works (Cao et al., 2022a; Kou et al., 2023b; Meng et al., 2023; Kou et al., 2023c; Chen et al., 2023d), we can in our case study the coefficient scales.
Lemma 4.1.
Under Condition 3.1, there exists , for we have the following hold for and :
-
•
,
-
•
.
It is evident that there is a noticeable disparity in the learning efficiency of features, as is directly proportional to both the data proportion and the feature norms . Furthermore, according to Lemma 17, we can model the data synthesis from as a binomial variable. This allows effective control over the probability tails, resulting in and . Thus, we can conclude that the perplexing samples are actually those -equipped samples. Subsequently, we can now examine the querying stage closely.
4.2 Order-dependent Sampling (Querying) Analysis
To rigorously analyze the statistics of the querying stage, we define two orders, namely Uncertainty Order and Diversity Order . For , we have if , and . Specifically, if the Confidence Score of all elements in a set at time step are all less than those in the set , we utilize the same notation to describe the Uncertainty Order between sets: . Similarly, we also have set-level notation for . The detailed definitions are delayed to Appendix F.
The following lemma presents our important findings when examining the two orders of samples.
Lemma 4.2.
Under the same conditions in Proposition 3, for , denote as the feature patches in and separately, where , it holds that
-
•
has a sufficient event that
(5) -
•
has a sufficient event that
(6) where .
Remark 4.3.
This lemma demonstrate that Uncertainty Sampling holds the comparisons of the model’s learning progress of features in , as shown in (5). On the other hand, Diversity Sampling cares the comparisons of the disparity between model’s learning progress of samples and the labeled training set, as shown in (6).
![Refer to caption](extracted/5648188/photos/Full_train_mainbody.jpg)
![Refer to caption](extracted/5648188/photos/RS_mainbody.jpg)
![Refer to caption](extracted/5648188/photos/US_mainbody.jpg)
![Refer to caption](extracted/5648188/photos/DS_mainbody.jpg)
We note that (6) is irrelevant to the distance measure metric (i.e., ). This is because we can eliminate the scaling term at two sides of the inequality when examining the probability lower bound (see more details in Appendix G.4). Based on Lemma 4.1, the event (5) and event (6) could be all simplified to the following shared sufficient event
This implies that both the event and the event have a common occurrence where the model’s learning of is considerably worse compared to its learning of . Based on this observation and Lemma 4.1, we can deduce the following lemma with some effort.
Lemma 4.4.
Under the same conditions as Proposition 3, denoting as the collection of all the data points with strong feature in , and as the collection of data points with weak feature , we have the conclusion that with probability more than 1-, and () both hold.
This lemma directly implies the result in Proposition 3.
4.3 Label Complexity-based Test Error Analysis
To assess the generalization ability of all the three querying algorithms before and after querying, we establish a comprehensive analysis regime that examines the impact of label complexity for each type of feature on the test error, via a single inferential process. Specifically, We introduce the following lemma, employing a standard proving technique utilized in prior research (Chatterji and Long, 2021; Frei et al., 2022; Kou et al., 2023b; Meng et al., 2023).
Lemma 4.5.
Under Condition 3.1, , , we have the following two situations before and after querying (i.e., ) for three quering algorithms:
-
•
The training loss converges to , i.e., .
-
•
If holds, the test error achieves Bayes-optimal:
-
•
If holds, the test error stays constant-level:
Here denotes the occurrence probability of feature , , , and are some positive constants.
By Condition 3.1, along with the findings from Lemma 4.4 and Lemma 4.5, we can deduce that only the two NAL algorithms are able to obtain ample for adequate learning after querying, which support the results in Proposition 3.2 and Theorem 3.4. Also, by Lemma 17 and Lemma 4.5, Random Sampling necessitates a label complexity that is approximately times larger to sufficiently learn . This finding aligns with the conclusions in Corollary 3.5.
5 Experiments
In this section, we demonstrate the validity of our theoretical analysis through simulations. The experiments regarding the theories of XOR data as well as other data settings are also conducted, please refer to Appendix E for further details.
Here we generate synthetic data exactly following Definition 1. Specifically, we let the dimensionality as , and strengths of the strong and weak feature as and , respectively. For the occurrence probability, we let . For size setting of data, we let the =200, =10, and , and set . For model initialization, we let and . The parameters are initialized using the default method in PyTorch, and the models are trained using gradient descent with a learning rate of 0.1 for 200 iterations at the initial stage and the stage after sampling. All the data points are generated beforehand and shared by all the algorithms, thus the results are fairly comparable.
Figure 2 illustrates the effectiveness of both Uncertainty Sampling and Diversity Sampling in comparison to Random Sampling and full-trained ReLU CNN model with ample quantity of training samples. It’s evident that the learning of weak rare feature (quantified by ) in hard-to-learn samples are significantly poorer than strong common feature (quantified by ) in easy-to-learn samples at the initial stage. After querying, we see explicitly that both the NAL algorithms learn the weak rare feature well and achieve comparable test performance compared to full trained model after querying. In contrast, Random Sampling continues to exhibit limited learning progress of weak features and results in poor test accuracy. The results verify Proposition 3.2 and Theorem 3.4. Illustrations of the querying stage details are deferred to Appendix E.1.
6 Potential Extension and Implication for Practical NALs
In this section, we first explore the potential extensions of our findings to broader theoretical realm, then elaborate on the practical implications derived from our theories.
Potential Extension to Multi-round NALs. The intrinsic principle we uncovered underlying both NAL methods is not tied to the single-round setting, and a fine-grained analysis can be conducted on complex iterative processes, as discussed in Appendix D.5.
Potential Extension to Broader NALs: BADGE (Ash et al., 2020) as an Exemplar. The key idea behind BADGE is to prioritize samples exhibiting large and diverse gradients. Our analysis reveals that such samples in our context tend to have smaller-scale latent representations ( is smaller) or more diverse gradient directions (many diverging ) due to the non-increasing nature of the logistic loss function. These characteristics align with the cases described in Lemma 4.2, which in our context refers to samples with lower that correspond to yet-to-be-learned features. Therefore, BADGE is well-grounded in the principles uncovered by our theoretical analysis. A more detailed discussion is provided in Appendix D.2.
Potential Extension to Examine Criteria Preference. Our results of test error is based on the conditions that there is a clear learning progress disparity between different task-oriented features, under which we see that both NALs inherently favour samples with yet-to-be-learnt features. However, when this disparity does not hold prominently as dicussed in Appendix D.3.2, the behaviors of uncertainty-based and diversity-based sampling may diverge. For example, uncertainty sampling can more precisely prioritize samples with underexplored features when label budgets are not highly constrained. Conversely, diversity sampling may be preferred when label complexity is very limited, as it can enhance the model’s ability to capture diverse low-dimensional patterns. This argument is consistent with the claim in recent survey (Zhan et al., 2021). Our theory also suggests that when the “easiness” of learning various task-oriented features is balanced, uniform random sampling may suffice, without clear advantages for NALs. Additionally, in scenarios of active fine-tuning where the task objective changes, the task-oriented representation could shift, reducing the effectiveness of NAL methods that leverage prior neural representations for sampling. In such cases, random sampling may already be a satisfactory choice. A refined discussion is in Appendix D.4.
Practical Lessons from Our Theoretical Results. Our theoretical analysis yields several important practical insights, as detailed in Appendix D.6. First, we find that NALs have the potential to surpass the performance of fully-trained neural networks. As corroborated by the results in Lu et al. (2023), NALs can more effectively balance the learning progress across features with different lengths. Additionally, our work suggests that techniques capable of capturing the meaningful orthogonal components of a NN’s features or gradients, such as ICA (Yamagiwa et al., 2023), could help identify samples underrepresented in NN’s latent space. State-of-the-art methods like BADGE (Ash et al., 2020) leverages this idea upon the gradient components.
7 Conclusion
In this work, we theoretically demystify and unify the primary query criteria-based NAL methods. We prove they inherently prioritize perplexing samples - those with yet-to-be-learned features. This ensures adequate learning of all feature types, underpinning their strong generalization with limited labeled data. Future work can extend our theory to other complex NAL scenarios, such as multi-model committee and stream-based sampling. Additionally, the potential extensions and implications discussed in Section 6 represent valuable directions for further fine-grained exploration.
Acknowledgements
We thank the anonymous reviewers for their instrumental comments. DB and HW are supported in part by the Research Grants Council of the Hong Kong Special Administration Region (Project No. CityU 11206622). WH was partially supported by JSPS KAKENHI (24K20848). TS was partially supported by JSPS KAKENHI (24K02905) and JST CREST (JPMJCR2115, JPMJCR2015).
Impact Statement
This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here.
References
- Aggarwal et al. [2014] Charu C Aggarwal, Xiangnan Kong, Quanquan Gu, Jiawei Han, and S Yu Philip. Active learning: A survey. In Data classification, pages 599–634. Chapman and Hall/CRC, 2014.
- Allen-Zhu and Li [2023] Zeyuan Allen-Zhu and Yuanzhi Li. Towards understanding ensemble, knowledge distillation and self-distillation in deep learning. In The Eleventh International Conference on Learning Representations, 2023.
- Allen-Zhu et al. [2019] Zeyuan Allen-Zhu, Yuanzhi Li, and Zhao Song. A convergence theory for deep learning via over-parameterization. In Proceedings of the 36th International Conference on Machine Learning, volume 97, pages 242–252. PMLR, 2019.
- Ash et al. [2020] Jordan T. Ash, Chicheng Zhang, Akshay Krishnamurthy, John Langford, and Alekh Agarwal. Deep batch active learning by diverse, uncertain gradient lower bounds. In International Conference on Learning Representations, 2020.
- Ba et al. [2022] Jimmy Ba, Murat A Erdogdu, Taiji Suzuki, Zhichao Wang, Denny Wu, and Greg Yang. High-dimensional asymptotics of feature learning: How one gradient step improves the representation. In Advances in Neural Information Processing Systems, volume 35, pages 37932–37946. Curran Associates, Inc., 2022.
- Balcan et al. [2006] Maria-Florina Balcan, Alina Beygelzimer, and John Langford. Agnostic active learning. In Proceedings of the 23rd international conference on Machine Learning, volume 148, pages 65–72, 2006.
- Cai et al. [2013] Wenbin Cai, Ya Zhang, and Jun Zhou. Maximizing expected model change for active learning in regression. In 2013 IEEE 13th International Conference on Data Mining, pages 51–60, 2013.
- Cao and Gu [2019a] Yuan Cao and Quanquan Gu. Generalization bounds of stochastic gradient descent for wide and deep neural networks. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019a.
- Cao and Gu [2019b] Yuan Cao and Quanquan Gu. Generalization error bounds of gradient descent for learning over-parameterized deep ReLU networks. arXiv preprint arkiv: 1902.01384, 2019b.
- Cao et al. [2020] Yuan Cao, Zhiying Fang, Yue Wu, Ding-Xuan Zhou, and Quanquan Gu. Towards understanding the spectral bias of deep learning. arXiv preprint arkiv: 1912.01198, 2020.
- Cao et al. [2022a] Yuan Cao, Zixiang Chen, Misha Belkin, and Quanquan Gu. Benign overfitting in two-layer convolutional neural networks. In Advances in Neural Information Processing Systems, volume 35, pages 25237–25250, 2022a.
- Cao et al. [2022b] Yuan Cao, Quanquan Gu, and Mikhail Belkin. Risk bounds for over-parameterized maximum margin classification on sub-gaussian mixtures. arXiv preprint arkiv: 2104.13628, 2022b.
- Chatterji and Long [2021] Niladri S. Chatterji and Philip M. Long. Finite-sample analysis of interpolating linear classifiers in the overparameterized regime. Journal of Machine Learning Research, 22(129):1–30, 2021.
- Chen et al. [2023a] **ghui Chen, Yuan Cao, and Quanquan Gu. Benign overfitting in adversarially robust linear classification. In Robin J. Evans and Ilya Shpitser, editors, Proceedings of the Thirty-Ninth Conference on Uncertainty in Artificial Intelligence, volume 216, pages 313–323, 2023a.
- Chen et al. [2021a] Yilan Chen, Wei Huang, Lam Nguyen, and Tsui-Wei Weng. On the equivalence between neural network and support vector machine. In Advances in Neural Information Processing Systems, volume 34, pages 23478–23490. Curran Associates, Inc., 2021a.
- Chen et al. [2023b] Yongqiang Chen, Wei Huang, Kaiwen Zhou, Yatao Bian, Bo Han, and James Cheng. Understanding and improving feature learning for out-of-distribution generalization. In Thirty-seventh Conference on Neural Information Processing Systems, 2023b.
- Chen et al. [2020] Zixiang Chen, Yuan Cao, Quanquan Gu, and Tong Zhang. A generalized neural tangent kernel analysis for two-layer neural networks. In Advances in Neural Information Processing Systems, volume 33, pages 13363–13373. Curran Associates, Inc., 2020.
- Chen et al. [2021b] Zixiang Chen, Yuan Cao, Difan Zou, and Quanquan Gu. How much over-parameterization is sufficient to learn deep ReLU networks? arXiv preprint arkiv: 1911.12360, 2021b.
- Chen et al. [2022] Zixiang Chen, Yihe Deng, Yue Wu, Quanquan Gu, and Yuanzhi Li. Towards understanding mixture of experts in deep learning. In Advances in Neural Information Processing Systems, volume 35, pages 23049–23062, 2022.
- Chen et al. [2023c] Zixiang Chen, Yihe Deng, Yuanzhi Li, and Quanquan Gu. Understanding transferable representation learning and zero-shot transfer in CLIP. arXiv preprint arkiv: 2310.00927, 2023c.
- Chen et al. [2023d] Zixiang Chen, Junkai Zhang, Yiwen Kou, Xiangning Chen, Cho-Jui Hsieh, and Quanquan Gu. Why does sharpness-aware minimization generalize better than SGD? In Thirty-seventh Conference on Neural Information Processing Systems, 2023d.
- Chidambaram et al. [2023] Muthu Chidambaram, Xiang Wang, Chenwei Wu, and Rong Ge. Provably learning diverse features in multi-view data with midpoint mixup. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pages 5563–5599, 2023.
- Cho et al. [2024] Seong ** Cho, Gwangsu Kim, Junghyun Lee, **woo Shin, and Chang D. Yoo. Querying easily flip-flopped samples for deep active learning. arXiv preprint arkiv:2401.09787, 2024.
- Deng et al. [2023] Yihe Deng, Yu Yang, Baharan Mirzasoleiman, and Quanquan Gu. Robust learning with progressive data expansion against spurious correlation. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
- Devroye et al. [2023] Luc Devroye, Abbas Mehrabian, and Tommy Reddad. The total variation distance between high-dimensional gaussians with the same mean. arXiv preprint arkiv: 1810.08693, 2023.
- Du et al. [2015] Bo Du, Zengmao Wang, Lefei Zhang, Liangpei Zhang, Wei Liu, Jialie Shen, and Dacheng Tao. Exploring representativeness and informativeness for active learning. IEEE transactions on cybernetics, 47(1):14–26, 2015.
- Duan et al. [2024] Ruxiao Duan, Brian Caffo, Harrison X. Bai, Haris I. Sair, and Craig Jones. Evidential uncertainty quantification: A variance-based perspective. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 2132–2141, January 2024.
- Frei et al. [2022] Spencer Frei, Niladri S Chatterji, and Peter Bartlett. Benign overfitting without linearity: Neural network classifiers trained by gradient descent for noisy linear data. In Proceedings of Thirty Fifth Conference on Learning Theory, volume 178, pages 2668–2703, 2022.
- Frei et al. [2023] Spencer Frei, Niladri S. Chatterji, and Peter L. Bartlett. Random feature amplification: Feature learning and generalization in neural networks. Journal of Machine Learning Research, 24(303):1–49, 2023.
- Gal et al. [2017] Yarin Gal, Riashat Islam, and Zoubin Ghahramani. Deep Bayesian active learning with image data. In Proceedings of the 34th International Conference on Machine Learning, volume 70, pages 1183–1192, 2017.
- Gissin and Shalev-Shwartz [2019] Daniel Gissin and Shai Shalev-Shwartz. Discriminative active learning. arXiv preprint arkiv: 1907.06347, 2019.
- Gu [2014] Quanquan Gu. online and Active Learning of Big networks: Theory and Algorithms. Dissertation, University of Illinois at Urbana-Champaign, Urbana, IL, 09 2014.
- Gu et al. [2014] Quanquan Gu, Tong Zhang, and Jiawei Han. Batch-mode active learning via error bound minimization. In Uncertainty in Artificial Intelligence - Proceedings of the 30th Conference, UAI 2014, pages 300–309, 2014.
- Houlsby et al. [2011] Neil Houlsby, Ferenc Huszár, Zoubin Ghahramani, and Máté Lengyel. Bayesian active learning for classification and preference learning. arXiv preprint arkiv: 1112.5745, 2011.
- Huang et al. [2020] Wei Huang, Weitao Du, Richard Yi Da Xu, and Chunrui Liu. Implicit bias of deep linear networks in the large learning rate phase. arXiv preprint arkiv: 2011.12547, 2020.
- Huang et al. [2021] Wei Huang, Weitao Du, and Richard Yi Da Xu. On the neural tangent kernel of deep networks with orthogonal initialization. arXiv preprint arkiv: 2004.05867, 2021.
- Huang et al. [2022] Wei Huang, Yayong Li, Weitao Du, Jie Yin, Richard Yi Da Xu, Ling Chen, and Miao Zhang. Towards deepening Graph neural networks: A gntk-based optimization perspective. arXiv preprint arkiv: 2103.03113, 2022.
- Huang et al. [2023a] Wei Huang, Yuan Cao, Haonan Wang, Xin Cao, and Taiji Suzuki. Graph neural networks provably benefit from structural information: A feature learning perspective. arXiv preprint arkiv: 2306.13926, 2023a.
- Huang et al. [2023b] Wei Huang, Chunrui Liu, Yilan Chen, Richard Yi Da Xu, Miao Zhang, and Tsui-Wei Weng. Analyzing deep PAC-Bayesian learning with neural tangent kernel: Convergence, analytic generalization bound, and efficient hyperparameter selection. Transactions on Machine Learning Research, 2023b. ISSN 2835-8856.
- Huang et al. [2023c] Wei Huang, Ye Shi, Zhongyi Cai, and Taiji Suzuki. Understanding convergence and generalization in federated learning through feature learning theory. In The Twelfth International Conference on Learning Representations, 2023c.
- Jacot et al. [2020] Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. arXiv preprint arkiv: 1806.07572, 2020.
- Jiang et al. [2024] Yibo Jiang, Goutham Rajendran, Pradeep Ravikumar, Bryon Aragam, and Victor Veitch. On the origins of linear representations in large language lodels. arXiv preprint arkiv: 2403.03867, 2024.
- Joshi et al. [2009] Ajay J. Joshi, Fatih Porikli, and Nikolaos Papanikolopoulos. Multi-class active learning for image classification. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 2372–2379, 2009.
- Kampffmeyer et al. [2016] Michael Kampffmeyer, Arnt-Borre Salberg, and Robert Jenssen. Semantic segmentation of small objects and modeling of uncertainty in urban remote sensing images using deep convolutional [n]eural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, June 2016.
- Karp et al. [2021] Stefani Karp, Ezra Winston, Yuanzhi Li, and Aarti Singh. local signal adaptivity: Provable feature learning in neural networks beyond kernels. In Advances in Neural Information Processing Systems, volume 34, pages 24883–24897, 2021.
- Kim and Suzuki [2024] Juno Kim and Taiji Suzuki. Transformers learn nonlinear features in context: Nonconvex mean-field dynamics on the attention landscape. arXiv preprint arkiv: 2402.01258, 2024.
- Kim et al. [2024] Juno Kim, Kakei Yamamoto, Kazusato Oko, Zhuoran Yang, and Taiji Suzuki. Symmetric mean-field langevin dynamics for distributional minimax problems. In The Twelfth International Conference on Learning Representations, 2024.
- Kong et al. [2022] Seo Taek Kong, Soomin Jeon, Dongbin Na, Jaewon Lee, Hong-Seok Lee, and Kyu-Hwan Jung. A neural pre-conditioning active learning algorithm to reduce label complexity. In Advances in Neural Information Processing Systems, volume 35, pages 32842–32853, 2022.
- Kou et al. [2023a] Yiwen Kou, Zixiang Chen, Yuan Cao, and Quanquan Gu. How does semi-supervised learning with pseudo-labelers work? a case study. In The Eleventh International Conference on Learning Representations, 2023a.
- Kou et al. [2023b] Yiwen Kou, Zixiang Chen, Yuanzhou Chen, and Quanquan Gu. Benign overfitting in two-layer ReLU convolutional neural networks. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pages 17615–17659, 2023b.
- Kou et al. [2023c] Yiwen Kou, Zixiang Chen, and Quanquan Gu. Implicit bias of gradient descent for two-layer ReLU and leaky ReLU networks on nearly-orthogonal data. In Thirty-seventh Conference on Neural Information Processing Systems, 2023c.
- Kye et al. [2023] Seong Min Kye, Kwanghee Choi, Hyeongmin Byun, and Buru Chang. TiDAL: Learning training dynamics for active learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 22335–22345, October 2023.
- Lewis and Catlett [1994] David D. Lewis and Jason Catlett. Heterogeneous uncertainty sampling for supervised learning. In Machine Learning Proceedings 1994, pages 148–156. Morgan Kaufmann, 1994.
- Li et al. [2023] Hongkang Li, Meng Wang, Sijia Liu, and Pin-Yu Chen. A theoretical understanding of shallow vision transformers: Learning, generalization, and sample complexity. In The Eleventh International Conference on Learning Representations, 2023.
- Li and Liang [2018] Yuanzhi Li and Yingyu Liang. Learning overparameterized neural networks via stochastic gradient descent on structured data. In Advances in Neural Information Processing Systems, volume 31, 2018.
- Lu et al. [2023] Miao Lu, Beining Wu, Xiaodong Yang, and Difan Zou. Benign oscillation of stochastic gradient descent with large learning rate. In NeurIPS 2023 Workshop on Mathematics of Modern Machine Learning, 2023.
- Mei et al. [2018] Song Mei, Andrea Montanari, and Phan-Minh Nguyen. A mean field view of the landscape of two-layer neural networks. Proceedings of the National Academy of Sciences, 115(33):E7665–E7671, 2018.
- Mei et al. [2019] Song Mei, Theodor Misiakiewicz, and Andrea Montanari. Mean-field theory of two-layers neural networks: Dimension-free bounds and kernel limit. In Proceedings of the Thirty-Second Conference on Learning Theory, volume 99, pages 2388–2464. PMLR, 25–28 Jun 2019.
- Meng et al. [2023] Xuran Meng, Difan Zou, and Yuan Cao. Benign overfitting in two-layer ReLU convolutional neural networks for XOR data. arXiv preprint arkiv: 2310.01975, 2023.
- Mohamadi et al. [2022] Mohamad Amin Mohamadi, Wonho Bae, and Danica J. Sutherland. Making look-ahead active learning strategies feasible with neural tangent kernels. In Advances in Neural Information Processing Systems, volume 35, pages 12542–12553, 2022.
- Nitanda [2024] Atsushi Nitanda. Improved particle approximation error for mean field neural networks. arXiv preprint arXiv:2405.15767, 2024.
- Nitanda and Suzuki [2017] Atsushi Nitanda and Taiji Suzuki. Stochastic particle gradient descent for infinite ensembles. arXiv preprint arXiv:1712.05438, 2017.
- Nitanda et al. [2021] Atsushi Nitanda, Denny Wu, and Taiji Suzuki. Particle dual averaging: optimization of mean field neural networks with global convergence rate analysis. In Advances in Neural Information Processing Systems, volume 34, pages 19608–19621, 2021.
- Nitanda et al. [2022] Atsushi Nitanda, Denny Wu, and Taiji Suzuki. Convex analysis of the mean field langevin dynamics. In Proceedings of The 25th International Conference on Artificial Intelligence and Statistics, volume 151, pages 9741–9757. PMLR, 2022.
- Nitanda et al. [2023a] Atsushi Nitanda, Kazusato Oko, Denny Wu, Nobuhito Takenouchi, and Taiji Suzuki. Primal and dual analysis of entropic fictitious play for finite-sum problems. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pages 26266–26282. PMLR, 2023a.
- Nitanda et al. [2023b] Atsushi Nitanda, Kazusato Oko, Denny Wu, Nobuhito Takenouchi, and Taiji Suzuki. Primal and dual analysis of entropic fictitious play for finite-sum problems. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pages 26266–26282. PMLR, 2023b.
- Nitanda et al. [2024] Atsushi Nitanda, Kazusato Oko, Taiji Suzuki, and Denny Wu. Improved statistical and computational complexity of the mean-field langevin dynamics under structured data. In The Twelfth International Conference on Learning Representations, 2024.
- Oko et al. [2022] Kazusato Oko, Taiji Suzuki, Atsushi Nitanda, and Denny Wu. Particle stochastic dual coordinate ascent: Exponential convergent algorithm for mean field neural network optimization. In International Conference on Learning Representations, 2022.
- Otto and Villani [2000] Felix Otto and Cédric Villani. Generalization of an inequality by talagrand and links with the logarithmic sobolev inequality. Journal of Functional Analysis, 173(2):361–400, 2000.
- Roth and Small [2006] Dan Roth and Kevin Small. Margin-based active learning for structured output spaces. In Machine Learning: ECML 2006, pages 413–424, 2006.
- Rotskoff and Vanden-Eijnden [2018] Grant M. Rotskoff and Eric Vanden-Eijnden. Trainability and Accuracy of neural networks: An interacting particle system approach. arXiv preprint arXiv:1805.00915, 2018.
- Sener and Savarese [2018] Ozan Sener and Silvio Savarese. Active learning for convolutional neural networks: A core-set approach. In International Conference on Learning Representations, 2018.
- Settles [2009] Burr Settles. Active learning literature survey. Technical Report TR1648, University of Wisconsin-Madison Department of Computer Sciences, 2009.
- Seung et al. [1992] H Sebastian Seung, Manfred Opper, and Haim Sompolinsky. Query by committee. In Proceedings of the fifth annual workshop on Computational Learning theory, pages 287–294, 1992.
- Shui et al. [2020] Changjian Shui, Fan Zhou, Christian Gagné, and Boyu Wang. Deep active learning: unified and principled method for query and training. In International Conference on Artificial Intelligence and Statistics, pages 1308–1318, 2020.
- Sinha et al. [2019] Samarth Sinha, Sayna Ebrahimi, and Trevor Darrell. Variational adversarial active learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), October 2019.
- Sirignano and Spiliopoulos [2020] Justin Sirignano and Konstantinos Spiliopoulos. Mean field analysis of neural networks: A central limit theorem. Stochastic Processes and their Applications, 130(3):1820–1852, 2020.
- Stark et al. [2015] Fabian Stark, Caner Hazırbas, Rudolph Triebel, and Daniel Cremers. CAPTCHA recognition with active deep learning. In Workshop new challenges in Neural computation, volume 2015, page 94, 2015.
- Suzuki et al. [2023a] Taiji Suzuki, Atsushi Nitanda, and Denny Wu. Uniform-in-time propagation of chaos for the mean-field gradient langevin dynamics. In The Eleventh International Conference on Learning Representations, 2023a.
- Suzuki et al. [2023b] Taiji Suzuki, Denny Wu, and Atsushi Nitanda. Convergence of mean-field langevin dynamics: Time-space discretization, stochastic gradient, and variance reduction. In Advances in Neural Information Processing Systems, volume 36, pages 15545–15577. Curran Associates, Inc., 2023b.
- Suzuki et al. [2023c] Taiji Suzuki, Denny Wu, Kazusato Oko, and Atsushi Nitanda. Feature learning via mean-field langevin dynamics: Classifying sparse parities and beyond. In Advances in Neural Information Processing Systems, volume 36, pages 34536–34556. Curran Associates, Inc., 2023c.
- Takezoe et al. [2023] Rinyoichi Takezoe, Xu Liu, Shunan Mao, Marco Tianyu Chen, Zhanpeng Feng, Shiliang Zhang, and Xiaoyu Wang. Deep active learning for computer vision: Past and future. APSIPA Transactions on Signal and Information Processing, 12(1):–, 2023.
- Tian et al. [2023] Yuandong Tian, Yi** Wang, Beidi Chen, and Simon Du. Scan and snap: Understanding training dynamics and token composition in 1-layer transformer. arXiv preprint arkiv: 2305.16380, 2023.
- Tian et al. [2024] Yuandong Tian, Yi** Wang, Zhenyu Zhang, Beidi Chen, and Simon Du. JoMA: Demystifying multilayer transformers via joint dynamics of MLP and attention. arXiv preprint arkiv: 2310.00535, 2024.
- Vershynin [2018] Roman Vershynin. High-dimensional Probability: An Introduction with Applications in Data science, volume 47. Cambridge university press, 2018.
- Wainwright [2019] Martin J Wainwright. High-dimensional statistics: A non-asymptotic Viewpoint, volume 48. Cambridge university press, 2019.
- Wang et al. [2022a] Haonan Wang, Wei Huang, Ziwei Wu, Hanghang Tong, Andrew J Margenot, and **grui He. Deep active learning by leveraging training dynamics. In Advances in Neural Information Processing Systems, volume 35, pages 25171–25184, 2022a.
- Wang et al. [2016] Keze Wang, Dongyu Zhang, Ya Li, Ruimao Zhang, and Liang Lin. Cost-effective active learning for deep image classification. IEEE Transactions on Circuits and Systems for Video Technology, 27(12):2591–2600, 2016.
- Wang et al. [2022b] Tianyang Wang, Xingjian Li, Pengkun Yang, Guosheng Hu, Xiangrui Zeng, Siyu Huang, Cheng-Zhong Xu, and Min Xu. Boosting active learning via improving test performance. In Thirty-Sixth AAAI Conference on Artificial Intelligence, AAAI 2022, pages 8566–8574, 2022b.
- Wang et al. [2021] Zhilei Wang, Pranjal Awasthi, Christoph Dann, Ayush Sekhari, and Claudio Gentile. Neural active learning with performance guarantees. In Advances in Neural Information Processing Systems, volume 34, pages 7510–7521, 2021.
- Wen et al. [2023] Ziting Wen, Oscar Pizarro, and Stefan Williams. NTKCPL: Active learning on top of self-supervised model by estimating true coverage. arXiv preprint arkiv: 2306.04099, 2023.
- Yamagiwa et al. [2023] Hiroaki Yamagiwa, Momose Oyama, and Hidetoshi Shimodaira. Discovering universal geometry in embeddings with ica. arXiv preprint arkiv: 2305.13175, 2023.
- Yang and Hu [2022] Greg Yang and Edward J. Hu. Feature learning in infinite-width neural networks. arXiv preprint arkiv: 2011.14522, 2022.
- Yang and Loog [2016] Yazhou Yang and Marco Loog. Active learning using uncertainty information. In 2016 23rd International Conference on Pattern Recognition (ICPR), pages 2646–2651, 2016.
- Yehudai and Shamir [2019] Gilad Yehudai and Ohad Shamir. On the power and limitations of random features for understanding neural networks. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
- Yin et al. [2017] Changchang Yin, Buyue Qian, Shilei Cao, Xiaoyu Li, Jishang Wei, Qinghua Zheng, and Ian Davidson. Deep similarity-based batch mode active learning with exploration-exploitation. In 2017 IEEE International Conference on Data Mining (ICDM), pages 575–584, 2017.
- Yu et al. [2023] Yaodong Yu, Sam Buchanan, Druv Pai, Tianzhe Chu, Ziyang Wu, Shengbang Tong, Benjamin D. Haeffele, and Yi Ma. White-box transformers via sparse rate reduction. arXiv preprint arkiv: 2306.01129, 2023.
- Zhan et al. [2021] Xueying Zhan, Huan Liu, Qing Li, and Antoni B. Chan. A comparative survey: Benchmarking for pool-based active learning. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21, pages 4679–4686, 2021.
- Zhan et al. [2022] Xueying Zhan, Qingzhong Wang, Kuan hao Huang, Haoyi Xiong, De**g Dou, and Antoni B. Chan. A comparative survey of deep active learning. arXiv preprint arkiv: 2203.13450, 2022.
- Zhdanov [2019] Fedor Zhdanov. Diverse mini-batch active learning. arXiv preprint arkiv: 1901.05954, 2019.
- Zhu and Nowak [2022] Yinglun Zhu and Robert Nowak. Active learning with neural networks: Insights from nonparametric statistics. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems, volume 35, pages 142–155. Curran Associates, Inc., 2022.
- Zou et al. [2020] Difan Zou, Yuan Cao, Dongruo Zhou, and Quanquan Gu. Gradient descent optimizes over-parameterized deep ReLU networks. Machine Learning, 109:467–492, 2020.
- Zou et al. [2023a] Difan Zou, Yuan Cao, Yuanzhi Li, and Quanquan Gu. The benefits of mixup for feature learning. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pages 43423–43479, 2023a.
- Zou et al. [2023b] Difan Zou, Yuan Cao, Yuanzhi Li, and Quanquan Gu. Understanding the generalization of adam in learning neural networks with proper regularization. In The Eleventh International Conference on Learning Representations, 2023b.
Appendix A Additional Related Work: Theory of Feature Learning in Overparameterized Neural Network
The rapid progress of deep neural networks has prompted growing interest in understanding their underlying theoretical principles, particularly regarding the optimization and generalization properties of overparameterized models. A key development in this area is the study of the Neural Tangent Kernel (NTK) [Jacot et al., 2020, Chen et al., 2020, Cao and Gu, 2019a, b, Cao et al., 2020, Allen-Zhu et al., 2019, Chen et al., 2021b, Zou et al., 2020, Huang et al., 2020, Chen et al., 2021a, Huang et al., 2021, 2022, 2023b, Yang and Hu, 2022]. This has provided powerful insights into the training dynamics of wide neural networks, revealing that their behavior in the -loss setting closely mirrors the function approximation in reproducing kernel Hilbert spaces (RKHS), where the kernel is associated with the network architecture. However, instead of feature learning, this line of research suggest that the parameter update dynamics can be approximated by the first-order Taylor expansion at initialization, where the NN with wide enough width can effectively perform linear regression over a prescribed feature map, which cannot characterize the NN’s ability to perform feature learning [Yang and Hu, 2022].
In parallel, an active research direction is the analysis of NN under mean-field regime [Mei et al., 2018, 2019], which allows the network parameters to evolve away from the initialization, thereby enabling feature learning for various target functions [Ba et al., 2022, Suzuki et al., 2023c]. Recently, Mean-Field Langevin Dynamics (MFLD) has attracted increased attention, where Gaussian noise is added to the gradient to encourage “exploration” [Mei et al., 2018, Suzuki et al., 2023b]. This framework lifts the learning of finite-width neural networks to an infinite-dimensional optimization problem in the space of probability measures, and by exploiting the convexity of the loss function in this measure space, MFLD can achieve near-optimal global convergence under gradient-based optimization [Nitanda and Suzuki, 2017, Mei et al., 2018, Nitanda et al., 2021, 2022, 2023a, 2023b, 2024, Oko et al., 2022, Otto and Villani, 2000, Rotskoff and Vanden-Eijnden, 2018, Sirignano and Spiliopoulos, 2020, Suzuki et al., 2023a, c, b, Nitanda, 2024, Kim et al., 2024, Kim and Suzuki, 2024]. Despite the remarkable ability of NNs under the MFLD regime to learn complex “features”, their superior performance still requires a large width at the order of [Suzuki et al., 2023c]. Moreover, the optimization behavior of MFLD differs from the widely-applied SGD-based neural network algorithms, leaving the real-world feature learning phenomenon of commonly-utilized deep learning algorithms largely unexplained.
To overcome the technical challenges and shed light on the practical feature learning observed in GD/SGD-based learning algorithms, the seminal work by Allen-Zhu and Li [2023] takes a step forward. It first attempted to explain the observed success of ensemble methods in deep learning by adopting the NTK framework, but recognized the limitations of this approach. To tackle this challenge and fill the understanding gap, Allen-Zhu and Li [2023] considers a multi-view data model, which is a more complex version of the data model examined in the main body of our work. Allen-Zhu and Li [2023] justify this multi-view data model as plausible theoretical setups by empirically demonstrating the common occurrence of multiple one-task-oriented features in the latent space of ResNet, as shown in their Figures 2-4 and 9. Given the plausibility and suitability of this data setting for theoretical investigations of feature learning dynamics, a considerable body of research has delved into examining the capabilities of different learning algorithms under different structured conditions [Li and Liang, 2018, Karp et al., 2021, Yehudai and Shamir, 2019, Cao et al., 2022b, Chen et al., 2022, 2023b, 2023c, 2023a, 2023d, Zou et al., 2023b, Li et al., 2023, Kou et al., 2023b, a, c, Meng et al., 2023, Huang et al., 2023a, c, Chidambaram et al., 2023, Deng et al., 2023, Frei et al., 2023, Tian et al., 2023, 2024]. Notably, the width requirement for this line of research is considerably weaker compared to the NTK and MFLD regimes, which allows for a more fine-grained analysis of feature learning dynamics based on inner product-based feature direction reconstruction.
We believe our work extend this line of research by showing that the two primary criteria-based NALs are inherently prioritizing those underrepresented samples with yet-to-be-learned features. We hope this insight can help the community gain a deeper understanding of the heuristic NAL methods, and develop new principled approaches that can alleviate the data hungriness of deep learning.
Appendix B Discussions on the Parameter Settings
In this section, we motivate the settings of our systems and dicuss the consequences of violating the requirements.
B.1 Choice of Systems
We would like to motivate our choice of systems in detail as below.
-
•
The system of learning dynamic: . The choice of aligns with the feature learning line of research [Li and Liang, 2018, Karp et al., 2021, Frei et al., 2022, Chen et al., 2022, Allen-Zhu and Li, 2023, Chen et al., 2023b, c, a, d, Zou et al., 2023b, Li et al., 2023, Kou et al., 2023a, Huang et al., 2023a, Kou et al., 2023c, Chidambaram et al., 2023, Deng et al., 2023, Huang et al., 2023c], with the aim of ensuring the learning problem is in a small but sufficiently overparameterized regime where the benign overfitting - overparamiterized NN can generalize well when trained to convergence - could occur. This phenomenon is non-trivial against prior belief that overfit is always harmful-the greater the capacity of a model to fit data distribution, the worse the model’s test results will be. The system chosen allows for analysis of learning progress of features, as the weak requirement on network width allows us to conduct a fine-grained analysis based on inner product arguments (i.e., scale analysis of ), which fundamentally differs from the NTK line of research [Jacot et al., 2020] that requires an infinitely wide network to perform linear regression over a prescribed feature map, rather than learning the features themselves. Moreover, this system ensures a small Signal-to-Noise Ratio (SNR), under which the memorization of noise would become the primary contributor to the volume of the NN’s weight matrices, allowing a more balanced and controllable coefficient updates [Kou et al., 2023b, Meng et al., 2023].
-
•
The system of sampling dynamic: . The choice of this system is to (i) avoid the cases where all sampling methods would succeed or fail simultaneously, and (ii) ensure there is a marked learning progress disparity between well-learned and yet-to-be-learned features within the initial stage. The reason to maintain these conditions is to help reveal the underlying rationale behind NAL. It’s worth noting that we also provide discussions in Appendix D.3 on the general settings beyond the specific system chosen in the main body of the work. In these broader scenarios, there might be various patterns in the learning progress of features.
In all, albeit the two systems interact and operate together, they have distinct tasks. The first system is tailored to the non-trivial learning problem at hand. Meanwhile, the choice of the second system aims to help reveal the non-trivial connections between the two NAL methods, by closely tracking the learning progress of task-oriented features after sampling.
B.2 Consequences of Violating System Requirements
The following outlines the consequences that may arise where the requirements over the systems are violated:
-
1.
The choice of . The large technically ensures the per-sample loss contributions are in a controllable order during training, preventing any individual’s noise from exerting outsized influence on the dynamics. When decreases with respect to , the control of the order over no longer hold with high probability as listed in Appendix G.1, and our technical results on training convergence can not be assured to hold with high chance. Also, a small leads to a large Signal-to-Noise Ratio (SNR), where the memorization of noise is no longer the dominant factor in the NN’s weight matrix volume. This makes the automatic balance of coefficient updates techniques in Kou et al. [2023b], Meng et al. [2023] cannot hold, which serves as a convenient lever to observe the bounds on the coefficients and matrix volume update.
-
2.
The choices of occurrence probability , initial size , query size , pool size , feature norm jointly determine the sampling results.
-
•
Combinations of reflect the diverse “easiness” to learn particular features, leading to varied sampling scenarios as discussed in Appendix D.3.2.
-
•
As and increase, the chance of getting all features well-learned goes up, reducing NAL’s advantage over random sampling as discussed in Appendix D.3.2.
-
•
Lower values (e.g. ) allow NAL to better alleviate labeling efforts by prioritizing the samples with yet-to-be-learned features, but if or decreases, there might be few yet-to-be-learned features in the pool, limiting NAL’s ability to select enough of them to ensure sufficient learning, as discussed in Appendix D.3.2.
-
•
Smaller may limit the learning of all features at initial stage, and all sampling methods might behave similarly since all types of features require further learning as discussed in Appendix D.3.2. Decreases in , , and would make it challenging to reliably control the proportions of samples as in Lemma 17.
-
•
-
3.
The choices of and aim to ensure effective optimization via GD. As grows, the model has a stronger “belief” that is harder to change. While analysis under larger is also doable [Lu et al., 2023], a small is preferred to better present our main findings.
Amidst parameter variations, we believe our findings are non-trivial.
Appendix C Theoretical Results: XOR data version
In a similar vein to the theoretical results on linearly separable data, we now present a theory specifically tailored for XOR data. The purpose or effect of each result is similar to those obtained for linearly separable data, so we will omit the detailed description of each result. The experiments and proofs can be found in Appendix E.3 and Appendix H.
Definition C.1.
[Meng et al., 2023] Let with be two fixed vectors. For and , we say that and are jointly generated from distribution if the pair is randomly and uniformly drawn from the set .
Definition C.2.
For , let , with be two pair of fixed vectors satisfying , where represents feature strength. Then each data point with and is generated from as follows:
-
•
Feature Patch. For a feeble satisfying , one patch of is randomly selected as feature patch, and with high probability (1-) the feature patch is easy-to-learn feature , while only with probability the feature patch is hard-to-learn feature . and are jointly generated from .
-
•
Noise Patch. The other patch of is assigned as a randomly generated Gaussian vector .
-
•
The ground truth label y is synthesized from a Rademacher distribution.
Here we assume the two types of feature differ: and . Also, we assume the noise cannot completely disturb the learning of features: .
For in Definition C.2, it’s safe to say that:
In other words, all linear predictors will provably fail to learn the XOR-type data .
Condition C.3.
For certain , suppose that
-
1.
The initial training size , the maximum admissible size after querying , and the width of neural network satisfy , , .
-
2.
The dimension satisfies: , for .
-
3.
Random initialization scale satisfies: , for , the learning rate satisfies: .
-
4.
The angle between and satisfies , for .
Proposition C.4.
(Before Querying) For any , if Condition C.3 holds, when the probability of the appearance of weak feature in each data point generated from the testing distribution is , then with probability at least , the following results hold at a certain :
-
•
The training loss converges below , i.e., .
-
•
The test error achieve sub-optimal constant-level .
Proposition C.5.
(Querying Stage) During Querying, under the same conditions as Proposition C.4, if and the size of the sampling pool is adequately substantial, satisfying: , then with probability at least , both Uncertainty Sampling and Diversity Sampling pick samples with hard-to-learn features in .
Theorem C.6.
(After Querying) If the sampling size of the two types of Sampling algorithm satisfies , where is some positive constant, under the same conditions as Proposition C.5, the and follows the same definitions in Proposition C.4, then with probability at least 1 - , we have the following results hold at a certain :
-
•
For both the Random Sampling method and Uncertainty Sampling method, the training loss converges to , i.e., .
-
•
Uncertainty Sampling and Diversity Sampling algorithms both have negligible test error: .
-
•
Random Sampling algorithm would remain the sub-optimal constant-level test error: .
Appendix D Discussions over General Scenarios
Our findings align with the concept of “Active Learning,” where models resemble students (models) actively selecting valuable practice questions (samples) to prepare for exams (tasks). Students prioritize perplexing questions based on high uncertainty of their answers, or rare knowledge points (features), in order to enhance their understanding of yet-to-be-mastered (lack of learning progress) knowledge points (features) in test questions. Similar to students, for most black-box deep neural models, the “learning progress” of particular “feature” is not readily available for algorithm developer due to their inherent opacity. From a feature learning view, that’s why NAL algorithms need to indirectly prioritize those yet-to-be-learned features, since this is the key for their good generalization ability and achieve benign overfitting. Our study shows that uncertainty-based and diversity-based NAL inherently strive to prioritize yet-to-be-learned feature-assisted samples (i.e., perplexing samples) via different comparisons in a heuristic manner. We believe future work can figure out if developed interpretable models [Yu et al., 2023] reduced labelling efforts by prioritizing perplexing samples.
Below, we present several discussions regarding general scenarios and the potential wider applicability of our theorems, beyond the specific conditions considered in the main body of our work. It is important to note that our point-mass querying approach and one-round querying settings were adopted to better unveil the inherent principle of query criteria-based NAL algorithms in a rigorous manner, albeit other complex NAL algorithms may be better suited for real-world complex data distribution and corresponding tasks. Note that our multiple task-oriented feature-noise data modellings follow the modellings in Allen-Zhu and Li [2023], Chen et al. [2022, 2023b, 2023c, 2023a, 2023d], Zou et al. [2023b], Li et al. [2023], Kou et al. [2023a, c], which empirically mirror the latent representation of models like Resnet [Allen-Zhu and Li, 2023] or transformer [Yamagiwa et al., 2023, Jiang et al., 2024].
D.1 Discussion of the Role of Benign Oscillation
In the work by Lu et al. [2023], they analyze the role of a large learning rate in the context of feature learning. Their data modeling includes weak features present in each data point, strong features present in a small fraction of data points, and noise. Although our work differs in terms of the data modeling and analysis framework, we might also observe the impact of a large learning rate. In Figures 2, 5, and 7, we can see that Uncertainty Sampling and Diversity Sampling algorithms empirically outperform the fully-trained model. Drawing insights from the results in Lu et al. [2023], we attribute this phenomenon to the large learning rate, which drives the model to be trained to focus more on weak and rare features. It is worth noting that although our training loss does not exhibit the benign oscillation phenomenon mentioned in Lu et al. [2023], this probably could be due to the difference in optimization algorithms (GD with logistic loss in our work versus SGD with square loss in Lu et al. [2023]).
D.2 Potential Extension over State-of-arts and Criteria-combined NALs: BADGE as an Exampler
We believe our analysis can indeed be extended to reveal the success of methods like BADGE [Ash et al., 2020] that combine uncertainty and diversity criteria. We show they share a common principle of prioritizing samples with yet-to-be-learned features. Like the inner product arguments in prior theoretical results [Li and Liang, 2018, Karp et al., 2021, Allen-Zhu and Li, 2023, Chen et al., 2022, 2023b, 2023c, 2023a, 2023d, Zou et al., 2023b, Li et al., 2023, Kou et al., 2023a, Huang et al., 2023a, Kou et al., 2023c, Chidambaram et al., 2023, Deng et al., 2023, Huang et al., 2023c], our theory characterizes learning progress via the coefficients , which high-levelly represent how well the NN has integrated low-dimensional task-oriented patterns into its latent space. We believe the underlying principle of BADGE [Ash et al., 2020] aligns well with this view:
-
•
Core idea of BADGE. The key idea behind BADGE is to query samples that exhibit large and diverse gradients within a single batch, achieved through -MEANS ++ or -DPP in the pseudo gradient space.
-
•
Connection between gradient and latent space of NN. Since our analysis utilizes the well-applied non-increasing logistic loss, the smaller the magnitude of the latent representation, the larger the magnitude of the gradient embedding will be. Additionally, the diversity of the latent vectors’ directions will be preserved in the gradient space. Based on Lemma G.15, we see that the rows of the latent representations are roughly of the order as .
-
•
BADGE also prioritizes samples with yet-to-be-learned feature. We now know the BADGE tends to prioritize samples with smaller scale latent representations (smaller ) or more diverse directions (many diverging ). These samples correspond to the cases described in Lemma 4.2, which in our context refers to samples with lower that have yet-to-be-learned features.
Therefore, we claim that BADGE, in the context of our analysis regime, can be explained as a well-motivated NAL method. The key reason is that the two core ideas of BADGE align with the shared underlying rationale of NAL that we has uncovered. One of our future work would serve to give a fine-grained analysis of the success factors behind BADGE, and we also believe our theoretical framework has the potential to extend to the understanding of some other state-of-the-art methods.
D.3 Extension over Data Distribution under Other Conditions
The theory presented in our main study focuses on a data model that includes weak and rare features, strong and common features, and noise. This setting is motivated by real-world imbalanced datasets, as illustrated in Figure 1. However, thanks to our general analysis framework, we can also discuss more general scenarios with broader conditions. In the following sections, we first discuss a theory version that relaxes the conditions on feature norms. This case suggests that rare features may also possess sufficiently discriminative label-related features, such as Simba in the last row of Figure 1, even though they are rare occurrences in the overall data distribution. Secondly, we introduce a more general theoretical results. While our discussions below focused on results for linearly separable data, we assert that the same results hold for non-linearly separable XOR data, as the requirements for the parameters are indeed similar. The proofs of all results in this section can be readily obtained based on our results in Appendix G.4, H.3 , G.5 or H.4.
To start, we present the condition-relaxed versions of Proposition G.16, which describe the order situation of samples in under relaxed conditions. Here we denote as the proportion of -equipped data in .
Proposition D.1.
This theorem serve as the key to analysis of the querying statistics, as samples with the lower are perplexing samples. Based on the coefficient scale presented in Lemma G.14, we can obtain the probability lower bound for , which is
(7) |
Thus we can conclude that perplexing samples are samples with lower . We then can relax the conditions on feature norms by imposing specific conditions on . Additionally, we can relax both conditions on feature norms and conditions on to consider a more general case. The upcoming sections will discuss these scenarios in detail.
D.3.1 Case 1: Relaxed Conditions on Feature Norms
In the main body of our work, we have the conditions on feature norms: , and for the ease of presentations. In this section we provide a theory version that relaxes these requirements (i.e., no discrepancy in terms of feature norms). The essence is that we can impose stricter assumptions on to ensure there exists a learning progress disparity between the two features. Despite this, the inherent principle of the two-criteria-based NAL approach would still drive the algorithms to preferentially query the samples containing the yet-to-be-learned features. The rigorous rationale behind these will be thoroughly explored in Appendix G.3 and Appendix G.5. Here, we can leverage the deduction results in Appendix G.3, Appendix G.4 and Appendix G.5 to readily form the following results.
Definition D.2.
(Definition with relaxed conditions on feature norms) Let be two fixed feature vectors. Each data point , where contains two patches as = and are generated from the distribution :
-
•
The ground truth label y is synthesized from a Rademacher distribution.
-
•
Noise Patch. One patch of is selected as a noise patch , synthesized from Gaussian distribution .
-
•
Feature Patch. For a feeble satisfying , the remaining patch of is selected as label-related feature patch, and with high probability (1-) the feature patch is a common feature , while only with probability the feature patch is a rare feature .
Here we only require that the learning of features would not completely disturbed by noise: .
The specific condition on the occurrence probability serves two purposes. Firstly, it ensures that strategy-free passive learning cannot sample enough rare data to adequately learn the rare label-related feature , as observed in the real-world scenario depicted in Figure 1. Secondly, it helps distinguish the learning progress between and .
We can prove that three querying algorithms still exhibit harmful overfitting at the initial stage.
Proposition D.3.
(Before Querying) At the initial stage before querying, , under Condition 3.1, with probability at least , there exists , the followings hold for all of the three querying algorithms:
-
1.
The training loss converges to , i.e., .
-
2.
The test error remains at constant level, i.e., .
Then, we can still have a look on the querying stage based on the techniques in Appendix G.4.
Proposition D.4.
(Querying Stage) During Querying, under the same conditions as Proposition D.3, then with probability at least , Uncertainty Sampling and Diversity Sampling would all pick samples that models exhibit lowest (i.e., perplexing samples). Moreover, those perplexing samples are samples with rare feature .
Similar to the theories presented in the main body of our study, we can establish the following theorem.
Theorem D.5.
(After Querying) If the sampling size of the three querying algorithms satisfies , where is some positive constant. Then for , under the same conditions as Proposition 3, with probability more than 1 - , there exists such that:
-
•
For all of the three querying algorithms, the training loss converges to , i.e., .
-
•
Uncertainty Sampling and Diversity Sampling algorithms have negligible near Bayes-optimal test error: .
-
•
Random Sampling algorithm would remain constant order test error: .
D.3.2 Case 2: Flexible Cases
Indeed, we can relax both the conditions on feature norms and the conditions on to explore more general cases. By (7), if , the learning progress of the two types of features would be alike (i.e., ), and we cannot clearly observe which type of feature-equipped samples are likely to be queried. Thanks to our sample-complexity analysis regimes in Appendix G.5, we can clearly examine two scenarios at the initial stage based on (17) and Lemma G.21:
-
•
Benign Overfitting: if , the learning of -equipped data would be adequate, and the test error of algorithms achieve Bayes-optimal.
-
•
Harmful Overfitting: if , the learning of -equipped data would be inadequate, and the test error of algorithms remains constant level.
Then, we can list some cases with certain ( by Lemma 17) in our analysis regime:
-
1.
When the learning of and are all adequate, we can conclude that is already sufficient for training in this case.
-
2.
When the learning of and are all inadequate at the initial stage, all querying algorithms (i.e., Random Sampling, Uncertainty Sampling and Diversity Sampling) can help leverage learning of features. While our theory indicates that the two NAL algorithms would tend to prioritize samples with comparatively poorer learned feature (i.e., ), the difference in generalization ability between Random Sampling and the two NAL algorithms would depend on certain parameters (i.e., ).
-
3.
When the learning of is adequate while the learning of is inadequate (), we have the following cases based on our theory:
-
•
If , the prioritization by two NAL algorithms is not obvious, and they would perform similarly to Random Sampling.
-
•
If , two NAL algorithms would tend to prioritize perplexing samples (i.e., samples with ), and their prioritization has lower probability bound in (7). Meanwhile, the difference in generalization ability between Random Sampling and the two NAL algorithms would depend on certain parameters (i.e., ). Specifically, under Condition 3.1, Definition 1 and Definition D.2 provide two parameter settings satisfying , where the two NAL algorithms succeed while Random Sampling fails (i.e., Theorem 3.4 and Theorem D.5). Other general scenarios can also be rigorously analyzed with the prioritization probability lower bound in (7) and permutation probability.
-
•
-
4.
Other cases would be similar to the second or third case (i.e., where ).
In real-world scenarios, the pool-based setting often resembles a wide range of flexible cases. From the perspective of feature learning, our theoretical observations suggest that the occurrence probability and strength of different task-specific features can profoundly impact the efficiency of NAL algorithms.
D.4 Cases of Criteria Preference
Our work has uncovered a non-trivial connection between the two query criteria-based NAL methods. Specifically, they share a sufficient condition - which we also called it as the shared principle - that is vital to the success of NAL methods, which holds when the learning progress of the well-learned features greatly surpasses the learning of the yet-to-be-learned features to a certain degree
However, as discussed in Appendix D.3.2 above, when this shared sufficient condition (or principle) does not hold, the behaviors of the two heuristic criteria-based sampling methods may differ.
Cases favoring uncertainty-based Sampling. Specifically, when the label budget is not highly limited and there is sufficient opportunity to capture all feature types, uncertainty-based sampling may be preferred. Our analysis shows that compared to uncertainty sampling, diversity sampling has a stricter requirement, with a less than 1 scalar in the left side of inequalities (37) and (70), versus (31) and (64) for uncertainty sampling. This allows uncertainty sampling to more precisely prioritize samples with yet-to-be-learned features, more easily ensuring adequate learning across all feature types.
Cases favoring diversity-based Sampling. However, when label complexity is quite limited (as per Appendix D.3.2) where all task-oriented features require further labelling budget, we may favor diversity-based sampling. Despite all sampling algorithms increasing test accuracy by addressing insufficient learning of certain features, diversity sampling’s efficiency in obtaining diverse features could enhance the model’s ability to grasp diverse low-dimensional patterns. This in turn could enrich generalization, even when the test distribution differs from training.
Our statements here align with discussions in the recent survey [Zhan et al., 2021]. We believe this nuanced perspective deserves further exploration.
Cases favoring Strategy-free Random Sampling. As discussed in Appendix D.3.2, our theory suggests that when where denotes the proportion of in training set, it indicates a balanced “easiness” to learn multiple task-oriented features. In such cases, the learning progress of these features tends to be similar, and the prioritization by NAL methods may not be clearly evident. In other words, if there is no distinct gap between well-learned and yet-to-be-learned features, uniform sampling might be sufficient, and the advantage of NAL methods only emerges when there is a clear distinction of “learning easiness” among various task-oriented feature categories.
Additionally, when it comes to the scenarios of active fine-tuning, where the task objective is heavily or slightly changing. In such situations, the task-oriented low-dimensional patterns may shift, and the model’s optimal representation could differ from before. As a result, NAL methods that leverage prior neural representations for sampling may not be as effective, and uniform sampling could be a satisfactory choice.
D.5 Discussions of Multi-round NALs
Our theory suggests that the core principle underlying both NAL methods is their tendency to prioritize the selection of samples containing yet-to-be-learned features. This fundamental characteristic is not inherently tied to the single-round setting, but rather reflects an intrinsic property of the two primary criteria-based NAL family.
In the multi-round iterative process, the learning progress of different features may diverge across rounds and potentially align with the various cases discussed in Appendix D.3.2. However, we expect the NAL methods to continue performing well due to their innate focus on prioritizing the selection of samples containing yet-to-be-learned features.
D.6 Discussions of Practical Lessons of our Results
Here are some key takeaways of our theory:
-
•
Potential of NAL to surpass fully-trained NN. As discussed in Appendix D.1, and corroborated by the results in Lu et al. [2023], fully-trained neural networks tend to learn hard-to-learn features in an inefficient manner, as they place disproportionate emphasis on the easy-to-learn ones. In contrast, our analysis suggests that the NAL approach prioritizes samples with low , making it more likely to achieve a balanced rise in and during the new round of training. This implies that NAL has a better chance of ensuring sufficient learning of all features within a certain number of iterations, compared to fully-trained neural networks. This conclusion is partially validated by the empirical results presented in our Figures 2, 5, and 7, where the NALs outperform the neural networks. In real-world settings, we conjecture that NAL might have this potential when the neural network is sufficiently overparameterized and has the capacity to capture all relevant patterns of the problem instances within limited iterations.
-
•
Care orthogonal components of features or gradients. Our theory suggests that if techniques can be adopted to capture the meaningful orthogonal components of a neural network’s features or gradients (e.g., using ICA [Yamagiwa et al., 2023]), then the samples with low-magnitude latent feature components or high-magnitude gradient components might align with the perplexing samples in our work. This is because our theory indicates that yet-to-be-learned features are often underrepresented in the neural network’s latent space, and if the loss is non-increasing, the length in the latent space might be inversely proportional to the length in the corresponding gradient space. Notably, existing state-of-the-art methods such as BADGE [Ash et al., 2020] also leverage a similar idea with respect to the gradient component of the last layer.
-
•
Incorporate Signal-to-Noise Ratio (SNR) Measurement. Our discussions in Appendix D.3 denote that the perplexing samples are often characterized by their rarity and low SNR (the scale ratio between feature and noise). Techniques, whether learnable or unlearnable, that can accurately or approximately measure the SNR of multiple task-oriented features in a NN’s latent space may help develop a principled NAL approach, and for specific tasks and datasets, it may be feasible to develop such task-oriented SNR measurement methods.
Appendix E Additional Experiments
E.1 Sampling Information of Main Results
![Refer to caption](extracted/5648188/photos/Lp_norms.jpg)
![Refer to caption](extracted/5648188/photos/SI_RS_1.jpg)
![Refer to caption](extracted/5648188/photos/SI_US_1.jpg)
![Refer to caption](extracted/5648188/photos/SI_DS_1.jpg)
Here we give more visualized details of the querying stage. The parameter settings are the same in Section 5. Figure 3 visualized the rescaled , uncertainty(-Confidence Score) and Feature Distance of each samples in the unlabeled sampling pool , where the dash line corresponds to the top samples based on Diversity Order. It’s obvious that regardless of the value , the Uncertainty Order and Diversity Order of samples remain the same, and corresponds to the order of . This validates our unification claims in Proposition 3, and Lemma 4.4. Figure 4 makes it clear that the two NAL algorithms successfully obtain those hard-to-learn samples, while Random Sampling hardly obtain hard-to-learn samples as it selects samples in a random manner.
E.2 Experiments: Data Model under Other Conditions
![Refer to caption](extracted/5648188/photos/Full_train_App_1.jpg)
![Refer to caption](extracted/5648188/photos/RS_App_1.jpg)
![Refer to caption](extracted/5648188/photos/US_App_1.jpg)
![Refer to caption](extracted/5648188/photos/DS_App_1.jpg)
![Refer to caption](extracted/5648188/photos/SI_RS_App_1.jpg)
![Refer to caption](extracted/5648188/photos/SI_US_App_1.jpg)
![Refer to caption](extracted/5648188/photos/SI_DS_App_1.jpg)
We investigate the scenario where the strengths (i.e., feature norms) of different features do not vary significantly, as discussed in the main body of our work. Specifically, we set them as the same: . Other parameters are listed as the following: , , , , , , , and . In this case, where , the perplexing samples are those samples equipped with . It is worth noting that our chosen value of is not small enough to satisfy the condition in Definition D.2. Instead, our parameter setting falls under the second bullet point of the third case discussed in Appendix D.3.2. Figure 5 demonstrates the success of both NAL algorithms, while Figure 6 illustrates the sample information. It is clear that both NAL algorithms prioritize the perplexing samples more effectively than Random Sampling, resulting in a lower test error rate.
E.3 Experiments: XOR Data Versions
![Refer to caption](extracted/5648188/photos/Full_train_App_XOR.jpg)
![Refer to caption](extracted/5648188/photos/RS_App_XOR.jpg)
![Refer to caption](extracted/5648188/photos/US_App_XOR.jpg)
![Refer to caption](extracted/5648188/photos/DS_App_XOR.jpg)
![Refer to caption](extracted/5648188/photos/SI_RS_App_XOR.jpg)
![Refer to caption](extracted/5648188/photos/SI_US_App_XOR.jpg)
![Refer to caption](extracted/5648188/photos/SI_DS_App_XOR.jpg)
Appendix F Details of Querying Algorithms
F.1 2-layer ReLU CNN
We adopted the 2-layer ReLU CNN, which is representative for non-linear neural models. Also, this neural setting makes both the model’s uncertainty towards samples and the latent feature representation available, paving the way to design NAL algorithms based on this neural settings. The first layer of the model is composed of neurons/filters, with positive and negative, each of which is applied separately to the two patches and , with a ReLU function . Specifically, the parameters of the second pooling layer are set to and respectively. The network can thus be expressed as , where the partial network functions for positive and negative neurons/filters. For , is defined as follows:
(8) | ||||
We denotes as the weight vector for the -th neuron/filter in , where is the aggregate of model weights associated with filters. We use to denote the aggregate of all model weights. Without loss of generality, we let the derivative of the ReLU function at 0 is equal to 1, denoted as .
F.2 Score and Order of Samples
We claim that the following definitions and lemmas hold for both linearly s
Definition F.1.
(Confidence Score) The Confidence Score is defined as below:
(9) |
The Confidence Score represents the probability of the predicted label of logistic loss.
Definition F.2.
(Uncertainty Order) We denote the sampling pool as that . For , and , we define the Uncertainty Order and , which denote the order of the model’s uncertainty upon its prediction upon and at the time step :
(10) | ||||
We say the model uncertainty at time step upon is less than if . Specifically, if the model’s uncertainty towards its predictions upon all elements in a set at time step are all less than those in the set , we utilize the same notation to describe the Uncertainty Order at time step between sets: .
Lemma F.3.
The Uncertainty Order is a full order. In addition, for and , at we have:
(11) |
Proof.
As one can always get by a given at time step , the Uncertainty Order is a full order.
In Lemma F.5, we will show that sampling based on the Uncertainty Order is equivalent to various typical sampling methods based on the score functions defined in many typical Model Uncertainty-based Approaches, such as Least Confidence [Lewis and Catlett, 1994], Margin Roth and Small [2006] and Entropy [Joshi et al., 2009] methods under our data model scenario, thus it’s representative to the main idea of the approaches family while elegant.
Definition F.4.
The following are the definitions of the score functions of LeastConf [Lewis and Catlett, 1994], Margin Roth and Small [2006] and Entropy [Joshi et al., 2009].
-
•
Least Confidence selects data points whose predicted label have the lowest posterior probability, so the score function of LeastConf is:
(12) -
•
The score function of Margin is:
(13) -
•
The score function of Entropy is:
(14)
Lemma F.5.
Proof.
By definitions, , showing the equivalence of LeastConf methods and ours. Then by Lemma 11 and the property: , it’s easy to verify that , and . Therefore, the priority order of the samples based on those score functions are the same as the Uncertainty Order, thus the proof is completed. ∎
Definition F.6.
(Feature Distance) The latent feature representation of a sample = in the latent feature space of our ReLU CNN at timestep is:
Apparently . The Feature Distance is measured by the () distance between sample’s feature representation and the average feature representation of the current labeled set :
(15) |
Definition F.7.
(Diversity Order) Similar to Definition 10, we defined Diversity Order , based on Feature Distance . Borrowing the same notations in Definition 10, we have:
(16) | ||||
Along with Definition 10, we also have set-level notations such that . Based on the triangle inequality for the norm and (15), we can easily draw the conclusion that the Diversity Order is also a full order. Furthermore, in the case that both and hold, we denote the order relationship using , such that .
Appendix G Proofs of Main Results
In this section, we denote as the number of training data in current labeled training set, which is at initial stage and after sampling (querying). Besides, we denote the proportion of easy-to-learn data in current labeled set as , and utilize to represent the proportion of hard-to-learn data in current labeled set for notation simplicity. Notably, we can use the same techniques in Cao et al. [2022a], Kou et al. [2023b], Meng et al. [2023], Lu et al. [2023] to achieve some statistical outcomes that are not directly related to our main contribution, we exclude the proof details for those outcomes. Instead, our focus is on providing comprehensive proofs of our primary contribution.
G.1 Preliminary Lemmas
The following lemmas give finite-sample concentration results to characterize the statistical properties of the random elements involved in our problem, and hold both under the linearly separable data and XOR data (i.e., ).
Lemma G.1.
Suppose that and . Then with probability at least ,
for all .
Proof of Lemma G.1. The proof can be found in Lemma B.2 in Cao et al. [2022a], Lemma B.4 in Kou et al. [2023b], Lemma B.3 in Meng et al. [2023] or Lemma A.3 in Lu et al. [2023].
Lemma G.2.
Suppose that and . Then with probability at least ,
for all and . Moreover,
for all and .
Proof of Lemma G.2. The proof can be found in Lemma B.3 in Cao et al. [2022a], Lemma B.5 in Kou et al. [2023b], Lemma B.4 in Meng et al. [2023] or Lemma A.4 and Lemma C.1 in Lu et al. [2023].
Next, we utilize the property of binomial tails to examine the proportion of hard-to-learn data within the subsets generated from the data distribution (i.e., the initial labeled set , the sampling pool , and the final labeled set obtained through Random Sampling).
Lemma G.3.
Suppose that , , then for . Denote as the number of hard-to-learn data among , then with probability at least . We have
(17) |
proof of Lemma 17. We can see as a binomial random variable with probability and number of experiments . By Exercise 2.9.(a) in Wainwright [2019], we have
where the quantity for is defined as
Since . By Exercise in Wainwright [2019], we can obtain directly by Hoeffding Inequality.
Remark G.4.
It is important to note that the generation of and through sampling from is independent. However, the generation of is based on and . In our analysis, instead of considering martingale with the perspective of conditional probability, we consider the overall process of the labeled set obtained by Random Sampling, where is directly sampled from .
G.2 Coefficient Ratio and Scale Analysis
In this section, we provide lemmas that characterize the behavior of coefficients under gradient descent. Subsequently, we establish the scale of the coefficients in the training dynamics. It’s worth noting that in this section we assume the results in Appendix G.1 all hold with high probability.
Definition G.5.
We denote , for . The following lemma presents the update rule of coefficients.
Lemma G.6.
Remark G.7.
This lemma serves as a cornerstone in our analysis of dynamics. Originally, the study of neural network dynamics under gradient descent required us to track the variations in weights. However, this Lemma enables us to view these dynamics from a new perspective, focusing on two distinct elements: feature learning (represented by ) and noise memorization (represented by ). We can easily observe that the is strictly increasing since is strictly negative.
Based on the definition of and , we consider and
Note that , and are linearly independent with probability 1, thus we have the following unique representation
Recall , we have
(19) |
Now with the notation and the fact , we get
(20) |
(21) |
The proof is completed.
Remark G.8.
The proof strategy employed in this study follows the study of feature learning analysis techniques in Cao et al. [2022a], Kou et al. [2023b], Meng et al. [2023]. However, our decomposition considers two task-specific features with different proportion. This disparity would finally lead to distinct learning efficiency among samples, as well as different generalization ability.
Next, we’re dedicated to explore range scale evolution of the coefficients in the signal-noise decomposition. Let poly be the maximum admissible iteration. Denote
(22) | ||||
By Lemma G.2, can be bounded by . Under Condition 3.1, it is straightforward to verify the following inequality with a large constant :
(23) |
We then assert the following proposition hold for the entire training period. This proposition serves to show the evolution scale of the coefficients.
Proposition G.9.
Remark G.10.
Our results resemble those in the study of feature learning of CNN [Cao et al., 2022a, Kou et al., 2023b, Meng et al., 2023, Lu et al., 2023]. However, the scale of our learning progress coefficient depends on its corresponding feature proportion and strength in the labeled data distribution, which will significantly impact the learning process of specific type of data.
Proof of Proposition G.9. See Proposition C.2. and Proposition C.8. in Kou et al. [2023b] or Proposition C.2 and Proposition C.8 in Meng et al. [2023] for a proof. Regardless of the variations in data settings, obtaining the result through inductive techniques is readily feasible.
Based on Proposition G.9, we can analyze the convergence of the training dynamics via identifying the degree of feature learning and noise memorization in the following section.
G.3 Feature Learning and Noise Memorization Analysis
In this section, we adopt a two-stage analysis to evaluate the evolution of the coefficients. In the first stage, the loss function’s derivative remains nearly constant due to the small weight initialization. However, in the subsequent stage, the derivative of the loss function becomes non-constant, requiring a careful analysis to address this change. We will see that the scale differences in the first stage remain the same. Worth noting that the results in this section are based on the previous results in Appendix G.2 holding with high probability.
G.3.1 First Stage: Feature Learning versus Noise Memorization
Lemma G.11.
There exist
where is a large constant and is a small constant, such that
-
•
, for all .
-
•
, for all .
-
•
, for any and with .
-
•
, for all .
-
•
, for all .
G.3.2 Second Stage: Convergence of Training Error
At the end of the first stage, we have the following feature-to-noise decomposition:
for and . Applying the results we obtain in the first stage, we have the following property holds at the beginning of this stage:
-
•
for any .
-
•
for any and with .
-
•
.
Following the technique in Cao et al. [2022a], now we choose as follows
Lemma G.12.
Under Condition 3.1, we have
for all . Besides,
for all . Therefore, we can find an iterate with training loss smaller than within iterations.
Proof of Lemma G.12. See Lemma D.5 in Cao et al. [2022a] or Lemma D.6. in Kou et al. [2023b] for a proof.
Worth noting that since the could be or and the could be any real number denoting the proportion of specific types of data in the labeled set, we have successfully concluded the proof of training loss convergence for all three querying algorithms. The following lemma characterized the feature-to-noise ratio during the whole duration.
Lemma G.13.
Proof of Lemma G.13. See Lemma D.7. in Kou et al. [2023b] or Proposition C.8 in Meng et al. [2023] for a proof.
Now we can summarize current results into the following lemma.
Lemma G.14.
Lemma G.15.
Proof of Lemma G.15. Recall the signal-noise decomposition of :
For , we can bound the inner product with :
(26) | ||||
where the inequality is justified by Lemma G.1 and Lemma G.2. The second equality is obtained by substituting the coefficient scales in G.14. The third equality follows from the condition in Condition 3.1 and the feature-to-noise ratio . For the fourth equality, it should be noted that , and also and , which holds due to and in Condition 3.1. Therefore, for a sufficiently large constant , the equality holds. Moreover, we can deduce in a similar manner that
(27) | ||||
Next, we seek to upper bound . The techniques are similar to Proposition D.5 in Meng et al. [2023]. We first tackle the noise term in the decomposition, namely:
(28) | ||||
where the first inequality is by Lemma G.1; the second inequality is by the Cauchy Schwartz Inequality on . We can then upper bound the as:
(29) | ||||
where the first inequality is due to the triangle inequality, the second inequality is by (28), and the third equality is due to the following comparisons:
which is by the coefficient scales in Lemma G.14, the coefficient order , and the condition in Condition 3.1; and also we have:
which is by the coefficient scales in Lemma G.14, and the condition for in Condition 3.1. Apply the coefficient order to (29), we directly have .
G.4 Order-dependent Sampling (Querying) Analysis
Based on the scale of and the inner product between it and features, we can now characterize the querying situation of two query criteria-based NAL methods. First, to address the issue of comparisons in , we employ a full-order-based technique. We introduce the concepts of Uncertainty Order and Diversity Order in Appendix F.2. Subsequently, we delve into the order of the samples in in the following proposition.
Proposition G.16.
Under the same conditions of Proposition 3, there exist that for where contains weak feature patch while contains strong feature patch, with probability at least 1-, we have .
Proof of Proposition G.16. Firstly, suggest , where :
By (11) in Lemma 11 and (16) in Definition16, we have the following
Denote , as , respectively, Notice that for :
(30) | ||||
Then:
(31) | ||||
The second inequality is by triangle inequality and (25) in Lemma G.15; the third inequality is by Lemma G.14.
For , denoting as the set of indices of where the data’s feature patch is , We then take a look at the row of the Feature Distance , which we denote as :
(32) | ||||
(33) | ||||
(34) |
Now we can estimate :
(35) | ||||
Similarly, the could be written as:
(36) |
To compare and , we first see that both expressions in the -th filter owns
By Condition 3.1, we see that . We see that as is the substantially large maximum admissible iterations, collaborating with (25), (33) and (30), it holds that the order of in is indeed can dominate , and . As is shared by both and in the -th filter, a sufficient event for is that for , we have
Utilizing those results, we now could estimate the chance of event :
(37) | ||||
where the first inequality is by Lemma G.14, triangle inequality, (25), (35) and (36); The forth equality is by (30). Easy to see that if , the third equality would be zero, thus our condition avoid this case. Now we take a look at the event :
(38) | ||||
where the second equality is by the first inference statement of Lemma G.14; the third inequality is by the equivalence property of the union by events; the last equality is by the Union Rule. Then, by Gaussian tail bound, we have:
Finally, with conditions on in Proposition 3, Lemma 17, (25) in Lemma G.15 and union bound, we have the conclusion for event :
(39) | ||||
for .
Remark G.17.
We can observe that the Uncertainty Order and Diversity Order of samples rely heavily on the model’s learning progresss upon them. By Lemma G.14, the learning progresss of samples depend heavily on the feature strength and data proportion . That is to say, in our case, the perplexing samples are the samples containing weak feature . In the next section, we would show that the number of those perplexing samples in the labeled set after querying would determine the algorithm’s generalization ability.
From the above proving process, we can deduce some important findings, which can be summarized in the following lemmas.
The following lemma shows that Uncertainty Sampling and Diversity Sampling correspond to different comparisons on the model’s learning progress over samples in .
Lemma G.18.
(Restatement of Lemma 4.2) Under the same conditions in Proposition 3, with the same notations in Proposition G.16, there exists certain constants , such that
-
•
has a sufficient event that
(40) among which the left side of the inequality corresponds to the comparison of learning progress of samples with different type of feature patch.
-
•
has a sufficient event that
(41) among which the left side of the inequality corresponds to the comparison of the disparity between learning toward samples and labeled training set.
Proof of Lemma G.18. The first bullet point can be easily derived from (31), while the second bullet point is readily apparent from (35), (36), and (37).
During the proving process of Proposition G.16, it is observed that for any , there exists a shared sufficient event for (40) and (41). This implies that it is also a shared sufficient event for the events and , denoted as :
By the first inference statement of Lemma G.14, we have
(42) |
Therefore, we can conclude that the significant difference in the model’s learning of the feature and is what causes the sufficient event for both event and . By (39), we have:
(43) |
Based on Lemma G.14, we see that the is significant larger than under our conditions, which causes the sufficient event .
Based on the above results, we can have a look on the overall order situation of the sampling pool .
Lemma G.19.
(Restatement of Lemma 4.4) Under Condition 3.1, when the results of Proposition 3.2 and Proposition G.16 hold at the initial stage and querying stage at a certain , denoting as the collection of all the data points with strong feature in , and as the collection of data points with weak feature , we have the conclusion that with probability more than 1-, holds.
proof of Lemma G.19. By Proposition G.16, , and , with at least probability . It’s natural to see comparing every pairs in and as independent random events. Then given a certain , the chance that satisfies is , therefore, for , the chance is as .
G.5 Label Complexity-based Test Error Analysis
In this section, we suggest the results in the previous sections all hold with high probability. With the results of the final scale of the coefficients as well as the order situation of the data in sampling pool , we can now take a look on the test error upper and lower bound under distinct conditions before and after querying.
Lemma G.21.
(Partial restatement of Lemma 4.5) Under Condition 3.1, for a test set with occurrence probability of the -equipped data, then , we have the following two situations before and after querying (i.e., ):
-
•
If holds, we have the test error:
(44) -
•
If holds, where is from Condition 3.1, we have the test error
(45)
Here denotes the occurrence probability of feature , , , and are some positive constants.
Proof of Lemma G.21. Recall the test error definition and consider the proportion of different type of data in the testing set , we have:
(46) | ||||
where and denotes the collection of data points in containing feature and , respectively.
First, we seek to prove the first bullet point. We utilize the techniques similar to the proofs of Theorem 1 in Chatterji and Long [2021], Lemma 3 in Frei et al. [2022], Theorem E.1 in Kou et al. [2023b] and Theorem 3.2 in Meng et al. [2023]. Denote the feature patch in as (), we first take a look at the product
(47) | ||||
Denote as . Since , we can get
(48) |
Then we can obtain the following test error upper bound on by adding and at two sides of the inequality:
(49) | ||||
By the results in Lemma G.14 and Lemma G.15, we take a look at the comparison of the two terms at the right side of the inequality:
(50) |
where denotes the proportion of feature in current training data set (before or after querying). Worth noting that we have assumption in the first bullet that , which means . Since is a sufficiently large constant, it directly follows that
By Theorem 5.2.2 in Vershynin [2018], we know that for any , the following holds
(51) |
where is a constant. To calculate the Lipschitz norm, we have
where the first inequality is by triangle inequality; the second inequality is by the property of ReLU; the last inequality is by Cauchy Schwartz Inequality. Therefore, we have
(52) |
Utilize (51) and (52) in (49), we have
(53) | ||||
where the third inequality is by . And then by (50) and (53), we can have
(54) | ||||
where ; the last inequality holds if we choose , for any . If we choose as and as , by (46) and (54) we have
Next, we serve to prove the second bullet point. We utilize the pigeonhole principle technique in Kou et al. [2023b], Meng et al. [2023], which is based on the following two lemmas.
Lemma G.22.
For , denote . There exists a fixed vector with and constant such that
for all .
Proof of Lemma G.22. See Lemma 5.8 in Kou et al. [2023b] or Theorem 3.2 in Meng et al. [2023] for a proof, where we utilize a large enough in the condition given in the second bullet point () to control the norm of .
Lemma G.23.
(Proposition 2.1 in Devroye et al. [2023]). The TV distance between and is smaller than .
Now we take a look at , by (46) we have:
(55) | ||||
where . The last inequality holds since we can always have a corresponding to make a wrong prediction if given , the is large enough.
Next, we seek a lower bound of . By Lemma G.22, we have that . Then by pigeon’s hole principle, there must exist one of the , belongs . So we have proved that . Therefore at least one of is greater than 0.25. By the definition of TV distance, we have:
Also, notice that , we have . Thus . The proofs complete.
Based on Lemma G.21, our focus is to verify whether the NAL algorithms satisfy the condition stated in the first bullet point. On the other hand, it is highly likely that Random Sampling fulfills the condition stated in the second bullet point. The following proposition validates this intuition.
Proposition G.24.
When Lemma G.19 holds, and the sampling size of algorithm satisfies , we have the following:
-
•
The number of data with strong feature patch satisfies .
-
•
The number of data with weak feature patch before querying and after Random Sampling satisfies .
-
•
The total number of data with weak feature patch after Uncertainty Sampling and Diversity Sampling satisfies .
For the sake of coherence, here and are some constants shared with Theorem 3.4 and Lemma 4.5.
Proof of Proposition G.24. By conditions in Definition 1, we have for a large constant . Then by plugging the results of for in Lemma 17, as well as the definition of , we have
For the second bullet, by Lemma 17, Lemma G.19 and conditions , we have:
Besides, by Lemma 17 and the condition , the third bullet holds straightforwardly.
By the result of Lemma G.21 and Proposition G.24, the results of Proposition 3.2 and Theorem 3.4 holds directly.
Lemma G.25.
(Restatement of Corollary 3.5) Under the same conditions as stated in Theorem 3.4, with a probability of at least , we observe distinct label complexities for traditional 2-layer ReLU CNN and NAL algorithms in achieving Bayes-optimal generalization ability:
-
•
For a fully trained neural model, the label complexity requires .
-
•
For two NAL algorithms, the maximum label complexity only requires .
Proof of Lemma G.25. According to Lemma G.21, to adequately learn the signal for any , one needs at least . Since the occurrence probability of is low (), Random Sampling without any strategy requires a label complexity of at least to capture sufficient instances of from the training distribution. On the other hand, by leveraging the insights from Lemma G.19 and Lemma G.20, both Uncertainty Sampling and Diversity Sampling can effectively query yet-to-be-learned perplexing samples, which are typically samples associated with by Lemma G.14. Hence, both querying algorithms only require a label complexity of .
Appendix H Proofs of Main Results: XOR data version
In this section, we first introduce some notations. We denote as the number of training data in the current labeled training set, which is initially and becomes after sampling (querying). We define and . The proportion of easy-to-learn data in the current labeled set is denoted as , while represents the proportion of hard-to-learn data . In a manner similar to the proofs provided in Appendix G, in this section we utilize the techniques employed in Kou et al. [2023b], Meng et al. [2023] to obtain results that are not directly related to our main contribution. For the sake of brevity, we omit most of the proof details of those outcomes, as our setting aligns with the one considered in [Meng et al., 2023], despite the fact that we examine multiple task-oriented features. Instead, our focus is on providing comprehensive proofs of our primary contributions.
First, we claim that all preliminary Lemmas in Appendix G.1 hold with high probability. It is evident from Definition 8 that always contributes to the prediction of class , while always contributes to the prediction of class . Therefore, the jobs of and are learning and respectively. Then, similar to (18), we take a look at the coefficient updates with signal-noise decomposition techniques, specified as the following.
(56) |
where we denote as , as . Here are mainly contributed by , and . Similarly are mainly contributed by , and . Worth noting that here denote the signal of and , but not the signal of .
Specifically, the update rule can be written as:
(57) | ||||
where . Here , and we let represents the feature in and represents the noise in .
The following lemma shows that a specific discrete process can be bounded by its continuous counterpart, which would be useful in bounding the coefficient and the derivative of loss function.
Lemma H.1.
(Lemma C.1 in Meng et al. [2023]) Suppose that a sequence follows the iterative formula
for some and . Then it holds that
for all . Here, is the unique solution of
H.1 Coefficient Ratio and Scale Analysis: XOR data version
Similar to the processes in Appendix G, we assume the results in the previous section hold with high probability. Meanwhile, let poly be the maximum admissible iteration. We adopt similar notations as those in (22):
(58) | ||||
Then, similar to our results in Proposition G.9, we here also have the coefficient scale as below.
Proposition H.2.
If Condition C.3 holds, then for any and , it holds that
Moreover, define and , and let be the unique solution of
it holds that
(59) |
for all and .
Proof of Proposition H.2. Please refer to Proposition C.2, Proposition C.8 and Lemma C.9 in Meng et al. [2023] for a proof. Regardless of the variations in data settings, it is feasible to obtain the result through inductive techniques [Cao et al., 2022a, Frei et al., 2022, Kou et al., 2023b, Lu et al., 2023].
Building upon Proposition H.2, we can further analyze the convergence of the training dynamics by examining the extent of feature learning and noise memorization in the subsequent section.
H.2 Feature Learning and Noise Memorization Analysis: XOR data version
Similar to Lemma G.13 and Lemma G.15 for linearly separable data, we can also determine the scale of coefficients and inner products as follows.
Proposition H.3.
H.3 Order-dependent Sampling (Querying) Analysis: XOR data version
Based on the scale of and the inner product between it and features, we can now characterize the querying situation of the two NAL methods based on the query criteria. Similar to the order-dependent analysis techniques utilized in Appendix G.4, we employ a full-order-based technique to tackle the problem of comparisons in . The concepts of Uncertainty Order and Diversity Order are introduced in Appendix F.2. We then proceed to examine the order of the samples in in the following proposition.
Proposition H.4.
Under the same conditions of Proposition C.5, there exist that for where contains hard-to-learn feature patch while contains easy-to-learn feature patch, with probability at least 1-, we have .
Proof of Proposition H.4. Firstly, suggest , where :
By (11) in Lemma 11 and (16) in Definition 16, we have the following
Denote , as , respectively, Notice that for :
(63) | ||||
Then:
(64) | ||||
The second inequality is by triangle inequality and (60) in Proposition H.3; the third inequality is by (63).
For , denoting as the set of indices of where the data’s feature patch is , We then take a look at the row of the Feature Distance , which we denote as :
(65) | ||||
(66) | ||||
(67) |
Now we can estimate :
(68) | ||||
Similarly, the could be written as:
(69) |
To compare and , we first see that both expressions in the -th filter owns
By Condition C.3, it holds that . We see that as is the substantially large maximum admissible iterations, collaborating with (60), (66) and (63), it holds that the order of in is indeed can dominate , and . As is shared by both and in the -th filter, a sufficient event for is that for , it holds that
Utilizing those results, we now could estimate the chance of event :
(70) | ||||
where the first inequality is by triangle inequality, (68) and (69); The forth equality is by (63). Easy to see that if , the third equality would be zero, thus our condition avoid this case. Now we take a look at the event :
(71) | ||||
where the second equality is by the first inference statement of Lemma G.14; the third inequality is by the equivalence property of the union by events; the last equality is by the Union Rule. Then, by Gaussian tail bound, we have:
Finally, with conditions in Proposition C.5, Lemma 17, Proposition H.3 and union bound, we have the conclusion for event :
(72) | ||||
for .
Remark H.5.
The proof process is nearly identical to that of the linearly separable case (i.e., the proof of Proposition G.16). The only differences lie in the scale of and , but the conditions required are the same.
Lemma H.6.
Under the same conditions in Proposition 3, with the same notations in Proposition H.4, there exists certain constants , such that
-
•
has a sufficient event that
(73) among which the left side of the inequality corresponds to the comparison of learning progress of samples with different type of feature patch.
-
•
has a sufficient event that
(74) among which the left side of the inequality corresponds to the comparison of the disparity between learning toward samples and labeled training set.
Proof of Lemma H.6. The first bullet point can be easily derived from (64), while the second bullet point is readily apparent from (68), (69), and (70).
Similar to the discussions in Appendix G.4, it is observed that for any , there exists a shared sufficient event for (73) and (74). This implies that it is also a shared sufficient event for the events and , denoted as :
By the first inference statement of Proposition H.3, we have
(75) |
Therefore, we can conclude that the significant difference in the model’s learning of the feature and is what causes the sufficient event for both event and . By (72), we have:
(76) |
Based on Proposition H.3, we see that the is significant larger than under our conditions, which causes the sufficient event .
Similar to Lemma 4.4 for linearly separable XOR data, we also have conclusions regarding the order of pool for XOR data.
Lemma H.7.
Under Condition C.3, when the results of Proposition 3.2 and Proposition H.4 hold at the initial stage and querying stage at a certain , denoting as the collection of all the data points with strong feature in , and as the collection of data points with weak feature , we have the conclusion that with probability more than 1-, holds.
Similar to Lemma G.20, we directly have the following lemma demonstrate that both NAL algorithms would all prioritize those perplexing samples.
H.4 Label Complexity-based Test Error Analysis: XOR data version
The underlying philosophy in this section is the same as that in Appendix G.5 for the theory regarding linearly separable data. We propose that the results obtained in the previous section hold with high probability. By considering the scale of the coefficients, inner products, and the order of the data in the sampling pool , we can now examine the upper and lower bounds of the test error under different conditions before and after querying.
Lemma H.9.
Under Condition C.3, for a test set with occurrence probability of the -equipped data, then , we have the following two situations before and after querying (i.e., ):
-
•
For , the training loss converges .
-
•
If holds, we have the test error:
(77) -
•
If holds, where is from Condition 3.1, we have the test error
(78)
Here denotes the occurrence probability of feature , , , and are some positive constants.
Proof of Lemma H.9. The proof flow follows Theorem 3.2 in Meng et al. [2023] despite that we consider two features. For the training convergence, by Proposition H.2 we have
Recall is defined in (58). Here, the first inequality is by the conclusion in Proposition H.2 and the second inequality is by (59) Proposition H.2, and last inequality are by (59). Then we have
The last inequality is by , and .
For evaluating test error, same as techniques in Lemma G.21, we have
(79) | ||||
where and denotes the collection of data points in containing feature and , respectively. Notably, is equal to
then without loss of generality, we can only investigate
and the proofs for other cases (i.e., ) are the same. Denote the feature patch in as (), when , the true label . Considering this case, we have
Then we can adopt the exact same techniques in Lemma G.21. Recall is denoted as , also (48):
(80) |
Then we can obtain the following test error upper bound on by adding and at two sides of the inequality:
(81) | ||||
By the results in Proposition H.3, we take a look at the comparison of the two terms at the right side of the inequality:
(82) |
where denotes the proportion of feature in current training data set (before or after querying). Worth noting that we have assumption in the first bullet that , which means . Since is a sufficiently large constant, it directly follows that
Same as (83), we adopt the techniques of Theorem 5.2.2 in Vershynin [2018]:
(83) |
where is a constant. To calculate the Lipschitz norm, we have
where the first inequality is by triangle inequality; the second inequality is by the property of ReLU; the last inequality is by Cauchy Schwartz Inequality. Therefore, we have
(84) |
Utilize (83) and (84) in (81), we have
(85) | ||||
where the third inequality is by . And then by (82) and (85), we can have
(86) | ||||
where ; the last inequality holds if we choose , for any . If we choose as and as , by (79) and (86) we have
Next, we serve to prove the test error upper bound. Same as the proof in Lemma G.21, we utilize the pigeonhole principle technique in Kou et al. [2023b], Meng et al. [2023], which is based on the following two lemmas.
Lemma H.10.
For , denote . There exists a fixed vector with and constant such that
for all .
Proof of Lemma H.10. See Lemma 5.8 in Kou et al. [2023b] or Theorem 3.2 in Meng et al. [2023] for a proof, where we utilize a large enough in the condition given in the second bullet point () to control the norm of .
Lemma H.11.
(Proposition 2.1 in Devroye et al. [2023]). The TV distance between and is smaller than .
Now we take a look at , by (79) we have:
(87) | ||||
where . The last inequality holds since we can always have a corresponding to make a wrong prediction if given , the is large enough.
Next, we seek a lower bound of . By Lemma H.10, we have that . Then by pigeon’s hole principle, there must exist one of the , belongs . So we have proved that . Therefore at least one of is greater than 0.25. By the definition of TV distance, we have:
Also, notice that , we have . Thus . The proofs of Lemma H.9 complete.
Similar to the proof process in Appendix G.5, our main focus is to verify whether the NAL algorithms satisfy the condition stated in the first bullet point of Lemma H.9. Conversely, it is highly probable that Random Sampling satisfies the condition stated in the second bullet point. The following proposition validates this intuition.
Proposition H.12.
When Lemma H.7 holds, and the sampling size of algorithm satisfies , we have the following:
-
•
The number of data with strong feature patch satisfies .
-
•
The number of data with weak feature patch before querying and after Random Sampling satisfies .
-
•
The total number of data with weak feature patch after Uncertainty Sampling and Diversity Sampling satisfies .
For the sake of coherence, here and are some constants shared with Theorem C.6.
Proof of Proposition H.12. According to the conditions stated in Definition C.1, we have for a large constant . By substituting the results of for from Lemma 17, as well as the definition of , we obtain the following:
For the second bullet, by Lemma 17, Lemma H.7 and conditions , we have:
Furthermore, by using Lemma 17 and the condition , the third bullet point is satisfied straightforwardly.
Appendix I Attribution of Lion Images
In Figure 1, a collection of various lion images found on Google is presented. Due to the challenge of accurately determining the copyright attribution of these images, specific acknowledgments to individual websites or sources cannot be provided here. However, we express our gratitude to all creators, and sincerely hope that they do not find any offense in the use of their work for illustrative purposes in our paper.