D OES D ATASET L OTTERY T ICKET H YPOTHESIS E XIST ?
Anonymous authors
Paper under double-blind review
A BSTRACT
Tuning hyperparameters and exploring the suitable training schemes for the selfsupervised models are usually expensive and resource-consuming, especially on large-scale datasets like ImageNet-1K. Critically, this means only a few establishments (e.g., Google, Meta, etc.) have the ability to afford the heavy experiments on this task, which seriously hinders more engagement and better development in this area.
An ideal situation is that there exists a subset from the full large-scale dataset, the subset can correctly reflect the performance distinction 1 when performing different training frameworks, hyper-parameters, etc.
This new training manner can substantially decrease resource requirements and improve the computational performance of ablations without compromising accuracy using subset discovered configuration to the full dataset.
We formulate this interesting problem as the dataset lottery ticket hypothesis and the target subsets as the winning tickets .
In this work, we analyze this problem through finding out partial empirical data on the class dimension that has a consistent Empirical Risk Trend as the full observed dataset.
We also examine multiple solutions, including (i) a uniform selection scheme that has been widely used in literature; (ii) subsets by involving prior knowledge, for instance, using the sorted per-class performance of the strong supervised model to identify the desired subset, WordNet Tree on hierarchical semantic classes, etc., for generating the target winning tickets.
We verify this hypothesis on the self-supervised learning task across a variety of recent mainstream methods, such as MAE, DINO, MoCo-V1/V2, etc., with different backbones like ResNet and Vision Transformers.
The supervised classification task is also examined as an extension.
We conduct extensive experiments for training more than 2K self-supervised models on the large-scale ImageNet-1K and its subsets by 1.5M GPU hours, to scrupulously deliver our discoveries and demonstrate our conclusions.
According to our experimental results, the winning tickets (subsets) that we find behave consistently to the original dataset, which generally can benefit many experimental studies and ablations, saving 10 × of training time and resources for the hyperparameter tuning and other ablation studies.
I NTRODUCTION
In the recent years, large deep neural networks, such as Convolutional Neural Networks (CNNs) (Lecun & Bengio, 1995; He et al., 2016) and Transformers (Vaswani et al., 2017) have achieved breakthroughs in the fields of supervised learning (Tan & Le, 2019; Dosovitskiy et al., 2020) and selfsupervised learning (Kenton & Toutanova, 2019; Brown et al., 2020; Caron et al., 2021; 2020; He et al., 2022) empowered by the large-scale datasets.
Naturally, the computational resources required for training these models on the large data are increasing accordingly.
A dilemma is that many researchers do not have such resources to conduct experiments on the large datasets directly, especially on the expensive self-supervised learning by tuning the hyperparameters and exploring the proper training settings and frameworks.
A commonly-used practice in the vision domain is to conduct ablations on relatively smaller datasets like CIFAR (Krizhevsky, 2009) and MNIST (Lecun et al., 1998), and then transfer the tuned optimal configurations to the large datasets like ImageNet1K (Deng et al., 2009).
While in many cases, it is observed that the models’ behaviors and properties
[Figure]
on the small datasets are quite different from the ones learned on the large dataset, making it improper to directly transfer hyperparameters found on small data to the large one.
Considering that self-supervised learning does not use human-annotated labels for training models, another popular solution emerged by randomly choosing a subset from the full dataset, for example, randomly selecting 100 classes among 1,000 in ImageNet-1K for self-supervised ablations and exploring experiments (Tian et al., 2020; Kalantidis et al., 2020; Ermolov et al., 2021).
Such a scheme has shown great advantages in lower resource demand of costly learning frameworks for fast hyperparameter tuning and model exploration with large backbone architectures.
However, according to the learning rule of Empirical Risk Minimization (ERM) (Vapnik, 1991; 1999) principle, the training convergence of ERM is guaranteed when the number of parameters of the neural networks scales linearly with the number of training examples.
Under this principle, it is challenging to only leverage a subset of data to model the properties of the full larger number of training data, since in both of the settings, models are trained to minimize their average error over the current training samples.
Moreover, ERM is unable to provide generalization on unseen distributions from the subset to the whole, making this strategy full of uncertainty.
Consequently, a natural concern has been raised in this work: What kind of subset is qualified for evaluating selfsupervised/supervised methods on full data?
Goal of Dataset Lottery Ticket Hypothesis (DLTH): The goal of DLTH is to find out a subset as the winning ticket from a large-scale dataset, this subset has the same or similar empirical behaviors and performance trends as the original full dataset when performing different training approaches and hyper-parameters on it, meaning that it can truly reflect the performance changes according to different training settings.
Different from (i) data pruning (Zhang et al., 2021;
Sorscher et al., 2022) that removes low-contribution and forgetting data to replace the full dataset, (ii) dataset distillation (Wang et al., 2018; Cazenavette et al., 2022) and
condensation (Zhao et al., 2020) that will generate a new compressed data, the proposed DLTH will not predict the accuracy of full data but select a proper subset from the original data and the models trained on the subset under various configurations have a consistent performance trend to the models trained on the full data.
Thus, we can further use this subset for fast hyper-parameter tuning, frameworks exploration or time-consuming tasks.
More detailed discussions with the related tasks are provided in Appendix G.
Overfitting Issue on the Subset: The key observed issue of using subset data is that the selfsupervised pre-training on the smaller training data (subset) will frailly suffer from overfitting.
To reveal this, we visualize the pre-training losses in Fig.
Following DINO protocol (Caron et al., 2021), we train with 400 epochs for ViT-Base and 800 epochs for ViT-Small.
On the full data, the evolution of training loss first drops rapidly, then slowly rises a little bit, and finally continues to descend on both small and base models.
While on the randomly selected subsets ( RS-ID ), the losses of base and small models are dropping constantly with a plateau.
It is interesting to see on our identified winning ticket, the rebounding phenomenon on loss has emerged again at aroundepoch of blue curve and the magnitude of loss value is generally larger than those on the random subsets, which is also more aligned to the trend of the full data.
Identifying Winning Tickets (Subsets).
The most common practice is to randomly select sub classes among the full data’s categories as the subset (Tian et al., 2020), however, it is natural that a randomly selected subset is not guaranteed for reflecting the true accuracy change on the full data when imposing different training settings.
To this end, we propose to fix the learned hypothesis or models on the full observed dataset, and identify the winning ticket which has the approximating distribution as the full observed data empirical distribution.
We argue that the subset categories should have the consistency on performance similar to that of the full dataset.
For instance, the overall linear probing performance of DINO (Caron et al., 2021) is better than MAE
(He et al., 2022) with the same ViT-B/16 backbone, while on the specific class such as toy poodle , MAE has the better accuracy than DINO, meaning that this class has an inconsistency on the two self-supervised models and will not be selected.
The consistency indicates that the individual per-class accuracy should match the global accuracy across different frameworks 2 .
We also empirically examine other policies on determining the proper winning ticket subsets, including: (i) randomly generated lists as the baselines; (ii) incorporating prior knowledge (e.g., performance-driven scheme according to the pre-trained supervised models, semantic hierarchy on WordNet Tree, etc.).
The practice of randomly selecting a subset to evaluate different methods is more popular in selfsupervised learning task.
Thus, it is more crucial to clarify and understand this manner in selfsupervised domain.
While, supervised learning is also eligible to explore the dataset lottery ticket hypothesis and we provide the results on supervised learning in Appendix due to the limited space.
All of our models are trained on large-scale ImageNet-1K and its subsets instead of MNIST, CIFAR, etc., with 3 runs for each, to avoid potential mis-observations and deliver more reliable conclusions.
Contributions
• Our experimental results indicate that a randomly selected subset without any prior knowledge is unstable and generally not qualified for reflecting the properties of self-supervised models on the full data, and might further deliver misleading observations and conclusions.
This is fairly risky if the studies rely heavily on such a kind of subset, instead of the original full dataset.
• We propose the Dataset Lottery Ticket Hypothesis ( DLTH ), a novel problem that studies the possibility of identifying the subset which can reflect the performance consistency with the full data.
Moreover, we propose the policies of Empirical Risk Trend and incorporating prior knowledge to generate the winning tickets.
To our best knowledge, this is the first work to study the feasibility of dataset lottery ticket hypothesis, and it can be a starting point for exploration on this problem.
• We provide comprehensive experiments on ImageNet-1K and its subsets with a variety of advanced self-supervised frameworks, such as DINO (Caron et al., 2021), MAE (He et al., 2022), MoCo series (He et al., 2020; Chen et al., 2020b).
to verify the effectiveness and superiority of our proposed dataset winning ticket policies.
We will make our found winning ticket subset publicly available to benefit other research in this field.
F ROM E MPIRICAL R ISK M INIMIZATION TO D ATASET L OTTERY T ICKET H YPOTHESIS
In the learning problem, a model is used to learn a conditional probability distribution or decision function.
The hypothetical or mapping space of the model contains all the conditional probability distributions or decision functions.
The goal of learning is to find an ideal hypothesis or mapping function h ∈ H with its parameter θ by observing the properties of the hypothesis space.
Assume the input X and target Y of the model are random variables, which follow the joint probability distribution P ( X , Y ) , we define a loss function L that measures the differences between predictions h ( x ) and corresponding targets y , i.e., ( x , y ) ∼ P .
Usually, the smaller the value of the loss function L on validation set, the better the model learned by the optimization.
The expectation of the loss function is formulated as:
[Equation]
The learning perspective usually treats the optimization problem as simply minimizing the expected loss or called risk function.
The distribution P is unknown in most practical situations.
Instead, we
[Figure]
Can we find a winning ticket on dataset?
[Figure]
Observed model performance on full dataset
Model
Observed model performance on winning ticket Suggested hyperparameters, optimizers, etc.
X
X
X X X X
Optimizationmethod
Optimizationmethod
Transfer tuned hyperparameters from winning ticket to the full dataset
[Figure]
have access to a set of training data D = { ( x i , y i ) }
( i = 1 , 2 , . . .
, m ) , we can leverage the empirical distribution ˆ P ( X , Y ) on the available training data D to approximate the true distribution P .
Thus, we further can approximate the expected risk according to the empirical risk:
[Equation]
Through a proper optimizer, a set of parameters is found on the training set so that the function can approximate the real mapping relationship.
The next step is to learn such a function h ∗ (i.e., finding the learnable parameters θ ∗ ) that the empirical risk (ER) is minimal:
[Equation]
According to the learning process of empirical risk, in this paper, we study the problem of whether there exist smaller available subsets as the winning tickets for training self-supervised models with similar performance trends to the full data.
Training on the subsets is faster since the data size is significantly smaller than of the original data.
Fig.
2 shows the motivation that we aim to identify a winning ticket on the dataset dimension.
Here, we formally state the dataset lottery ticket hypothesis .
Definition 1 (Dataset Lottery Ticket Hypothesis) .
A large-scale, naturally-collected dataset contains a subset that has the same or similar empirical behaviors and performance trends as the original full dataset when performing different training approaches and hyper-parameters on it.
Formally, in our Dataset Lottery Ticket Hypothesis setting, we have the learned risk function h ∗ (such as MAE (He et al., 2022), DINO (Caron et al., 2021), SwAV (Caron et al., 2020), etc.) together with their parameters θ ∗ (trained models) from the full training data, our goal is to identify a subset of training data D s = { ( x i , y i ) } i ∈T as a winning ticket that the ER is minimal and consistent to different risk functions.
We can leverage the subset data’s empirical distribution ˆ P s ( X , Y ) as the available empirical risk:
[Equation]
Where T is the sample index of dataset winning ticket.
Different from the usual learning goal that is to find an optimal function h ∗ , identifying the winning ticket on the dataset is an ill-formed problem
[Figure]
a r
P r o b i n g A cc
[Figure]
with uncertainty and randomness, our idea is to make it inevitable by considering that the individual selected class (ticket) should have the consistent performance behaviors as it on the full data.
Note that the pre-trained parameters θ ∗ are always fixed during this procedure.
Thus, we identify the targeting class according to the consistency on the individual class empirical risk, we can find out the winning classes by maximizing the consistency metric which is defined as follows:
[Equation]
where C cons is the consistency policies for discovering dataset winning tickets.
P is the set of hypothesis functions, i.e., the learning methods.
Eq.
5 indicates that when given the learned models (hypothesis functions and their parameters) on the observed full dataset D , the dataset lottery ticket hypothesis is to find a subset D s as the winning ticket that meets the consistency relationship among different hypothesis functions.
So that we can use this subset for different usages, such as fast tuning hyperparameters.
We also examined the generalizability of the wining ticket for assessing new learning functions.
Input: { h j ( j ∈ P ) } is the pre-trained model pool with linear probing classifiers to identify the desired classes based on the consistency of per-class empirical accuracy, C is the number of classes in the dataset,
S c is the validation samples in class c .
T is the threshold if the identified size of winning ticket is too large.
M target is the desired size of winning ticket after a random selection operation.
Output : Selected winning ticket µ ∗ 1: for c
= 1 : C do 2: if C c cons ([ (cid:80) i ∈S c R emp ( h j ( x i , θ ))] j ∈P ) is True then 3: µ. append ( c ) 4: end if 5: end for 6: if len( µ ) > T then 7: µ ∗ =
Random Selection ( µ, M target ) 8: end if 9: return µ ∗
After acquiring the desired dataset winning ticket (subset), we can tune the hyperparameters and re-train the model following:
[Equation]
We also provide a brief explanation from the theory perspective in Appendix F.1.
W INNING T ICKETS P OLICIES 3. P ER - CLASS E MPIRICAL R ISK C ONSISTENCY
In this section, we introduce the policy of identifying the winning ticket by leveraging the per-class empirical risk consistency.
The procedure is as follows:
(i) Train standard self-supervised backbone models P on the original full data.
(ii) Train supervised linear probing classifiers or finetune above trained backbones on the full dataset.
(iii) Calculate per-class prediction using the above classifiers and test the models on the validation set to match the result on the full data across frameworks.
This is to identify that the particular class has the same accuracy trend as that on the full data, i.e., consistency condition between per-class accuracy and global accuracy on different models.
Specifically, there exists a well learned model/hypothesis pool P , the criterion of consistency follows their empirical risk on the full dataset.
For instance, if we consider three self-supervised methods:
DINO, MAE and MoCo V3 with ViT-B/16 as the backbone network under linear probing evaluation, the consistency metric C cons will be True only if it meets the following condition (the higher of the model accuracy, the lower R emp ):
[Equation]
For class c , if C c cons is True , we will select it as one class of the winning ticket.
We formulate it as:
[Equation]
The results on linear probing eval of the per-class empirical risk consistency is shown in Fig.
In practice, we use per-class validation accuracy as the consistency indicator.
We examine three pre-trained model pools: (1)
[Equation]
16 as in Fig.
3 (upper sub- figure).
The black lines above the bubbles are the targeted winning classes, it is observed thatclasses meet the requirement in ImageNet-1K; (2) R DINO ViT-B/8 – R DINO ViT-B/16 – R MoCo V3 ViT-B/16 – R
MAE ViT-B/16 as in Fig.
3 (middle subfigure); (3) R DINO ViT-B/8 – R DINO ViT-B/16 – R MoCo V3 ViT-B/16 – R
SwAV ResNet50 – R MAE ViT-B/16 as in Fig.
3 (bottom subfigure).
The full lists of classes are provided in the Appendix.
[Figure]
Uniform sampling, a.k.a.
random sampling, is an ordinary baseline to generate the subsets.
Previous literature has been following this scheme to generate the subset with a uniform probability density function, e.g., randomly sample N classes from the 1000 classes on ImageNet-1K.
In
Fig.
4, we exhibit the results of RS-ID from different self-supervised methods, and derive the following discoveries: (i) It can be observed that the discriminability of weak and strong backbones is absent on DINO, as illustrated in Fig.
4 of black curves.
(ii)
Some trends are inconsistent, for instance, from subset RS-3 to RS-4 , the accuracy increases on DINO ViT-Base/ while decreases on MAE and MoCo.
These unreliabilities are as expected and inevitable since these subsets are randomly selected without any guidance or restriction.
3. P RIOR K NOWLEDGE
There are multiple prior knowledge that can be utilized as the policies to find out the winning tickets:
Performance-Driven: The performance of each class has a significant influence on reflecting the difficulties of classification, also showing the similarity measure on the latent feature space, so that it is crucial for leveraging the performance criterion of selecting the potential tickets.
As shown in
Fig.
5 (1), we use the pre-trained EfficientNet-L2 (Tan & Le, 2019) to sort the accuracy of per-class and select with four patterns: PD-Top (easiest) , PD-Mid , PD-Bottom (hardest) , and
PD-Uniform .
Some selected categories of images are shown in the ellipses of Fig.
WordNet Hierarchy: In WordNet, the concepts are linked together in a hierarchy.
This makes it easy to navigate between concepts.
For instance, given a concept like motorcar, we can find out the concepts that are more specific, i.e., the immediate hyponyms.
As shown in Fig.
5 (2), since the
[Figure]
We also visualize images in the selected classes to reflect the difficulty level of the classes of ImageNet-1K are the leaf nodes in the WordNet tree, we can merge leaf nodes that have a common parent and repeat this operation until obtaining enough coarse classes as the winning ticket.
Word-embedding Clustering:
In this strategy, we aim to obtain the word-level embeddings of
ImageNet-1K human-readable labels 3 and perform an unsupervised clustering method on them.
Firstly, a pre-trained CLIP model (Radford et al., 2021) with ViT-L/14 (Dosovitskiy et al., 2020) backbone 4 with the property of context-dependency is employed to represent semantic labels through word embedding vectors.
Next, both k-medoids an kmeans clustering algorithms are tested to group semantically similar labels in order to reduce the overlapping.
Finally, different quality label features are utilized as the candidates in different clusters, and then the high-ranked semantic labels are picked out from all clusters to form the winning ticket.
Semantic-embedding Clustering: Instead of using the word-level embeddings of ImageNet-1K human-readable labels, we use the embedding by taking the average feature from a pre-trained
DINO (Caron et al., 2021) model of ViT-B/8 for all images of that class in the validation set.
Other procedures are the same as the above word-embedding clustering.
This strategy is also applicable if the label is not available in the dataset.
Policies
Subset Pool Abbreviation
Random Sampling
[Equation]
Empirical Risk Consistency
[Equation]
[Table]
E XAMINING W INNING T ICKETS ON V ARIOUS A RCHITECTURES
We employ both Pearson Correlation Coefficient (PCC) (Pearson, 1895) ( ρ p ) and Spearman’s Rank
Correlation (Spearman, 1961)
( ρ s ) to examine the correlation of the performance between the full set and the selected winning ticket.
The former metric focuses on the linear correlation of two input sets of variables, the latter one reflects the monotonic correlation of them.
Here, we study the dataset lottery ticket hypothesis on different architectures and strategies used in practice.
Specifically, we
[Table]
consider the architectures
(Dosovitskiy al
ResNet.
We examine the dataset lottery ticket hypothesis as applied to the typical ConvNet of
ResNet-50 (He et al., 2016).
We use MoCo V1, V2 as the training methods with 200 andepochs.
All of our training settings follow their default design, as well as the following vision transformer models.
Vision Transformer.
We assess the dataset lottery ticket hypothesis on ViT models.
We use the ViTBase and ViT-Small architectures with MAE and DINO frameworks.
The MAE model is trained with 800 epochs and DINO ViT-Base, ViT-Small are trained with 400, 800 epochs, respectively.
Results.
As shown in Table 2, PD-Top indicates that we choose the best-performed classes according to a pre-trained model, i.e., the easiest categories.
Our results show that this subset has the worst consistency on linear correlation.
We can also see the first two subsets have the same ρ s , which means that they enjoy the same property of ranked performance.
Moreover, choosing the hardest classes ( PD-Bottom ) has good correlations to the full data and is one of our winning tickets.
The correlation among the 7 framework configurations in Table 2 is the most crucial indicator for evaluation to reflect the quality of the selected subset, as our goal of this paper is to identify the proper subset that has the same correlation or performance trend as on the full data.
Thus, for some heavy and costly tasks like ablation study, architecture search, etc., it is more practical and efficient for us to employ the selected subset instead of the full data to explore the best configuration that we desired.
The results of WEC , SEC and WNH are similar to PD-Uniform so they are omitted in Tableand given in Appendix.
4. C ONSISTENCY
Consistency on Data Augmentation.
To assess the consistency of performance on different data augmentations, we use MoCo V1 and V2 which only contain the difference on data augmentation.
The results are shown in Fig.
6 (1), it is surprising to see that nearly all the subsets are not sensitive to the data augmentation factor, obtaining similar accuracy on MoCo V1 and V2, but are generally still consistent on performance.
Consistency on Training Budgets.
On the self-supervised task, it is known that more training budget can substantially achieve better performance.
In this subsection, we examine whether this property still exists on the dataset winning ticket.
The results are shown in Fig.
Consistency on Evaluation Strategies.
To assess the consistency of performance on different evaluation strategies, we employ MAE with finetuning and linear probing evaluations.
The results are shown in Fig.
6 (3), it can be observed that the performance on all subsets is consistent.
[Figure]
G ENERALIZABILITY
[Figure]
It is interesting to see the generalizability of the identified winning tickets on those training methods outside the selection policies.
Our conducted experiments above actually involved this verification:
The per-class empirical risk consistency does not employ MoCo V1 and V2 but from our results in
Table
it seems the winning tickets can still handle them well.
Since MoCo V2 performs heavier data augmentation and maintains the other training settings the same as V1, this result demonstrates that the winning ticket is still a good indicator and can reflect the performance trend on input dimension when the transformations are changed.
Besides the input transformations, i.e., MoCo V1 to V2, we also include two more factors: (i) batch size effect, and (ii) stochastic regularization enabled by
DropPath (Huang et al., 2016).
We study how these subtle changes could affect the generalizability on winning ticket of the self-supervised models, the results and discussions are in our Appendix.
To assess the generalizability beyond visual datasets, we further provide the preliminary results on the AG’s News Topic Classification Dataset (Zhang et al., 2015) with the comparison between the random subset and lottery ticker subset in Appendix I.
D ISCUSSIONS AND F UTURE W ORK
We have introduced dataset lottery ticket hypothesis ( DLTH ), an initial study to investigate whether there exists winning tickets (subsets) that can reflect the consistency on performance when performing different self-supervised approaches and hyperparameters.
Through extensive empirical evaluations, we conclude that the randomly generated subset is not qualified for indicating the training settings and configurations of full data.
We proposed several policies by incorporating prior knowledge to find out the desired winning tickets.
In our experiments, the following trends are consistent:
(i) Random subsets are not guaranteed to obtain consistent results, in most cases they are unreliable.
(ii)
Prior knowledge (e.g., the difficulties of classes) can substantially improve the quality of the selected winning tickets which makes the selected ticket more aligned to the full data.
(iii) Two drawbacks of subsets are noticed, even on the winning tickets: (1) subsets are not sensitive to different backbones if
the
training
frameworks are strong, such
as DINO
; (2) subsets are not much sensitive
to
data augmentations, such as the
case from
MoCo
V1 to V
Limitations and Future Work.
Currently, we only verified our hypothesis on the vision domain of ImageNet-1K modality, we do not investigate it on more modalities such as video, text, etc.
Considering that different disciplines may have different characteristics or properties, for the future work, we hope our hypothesis can be proven in other domains such as NLP and speech datasets.
P OTENTIAL E THICAL I MPACT
As machine learning algorithm has been well studied in data-intensive applications, such as the large-scale ImageNet-1K classification, but is often hampered when the training data is small, this work leveraging subset of data may have the following potential positive and negative impacts in the society.
For the positive impacts, the proposed dataset lottery ticket scheme can significantly help save training time, computational resources and energy for tuning hyperparameters of heavy models, which is highly eco-friendly.
However, for the negative impacts, as this work tackles this problem through involving prior knowledge for identifying dataset winning tickets, the model may be biased on the training subset if the full data is unbalanced.
Thus, we should be cautious on the result of failure from the system which could cause unreliable conclusions, such as the unbalanced dataset like medical images and further was misleading in some particular domains.
A PPENDIX
In the appendix, we provide details omitted in the main text, including:
• Section A: Exploration experiments of more classes or more samples in per-class.
(Section“Examining Winning Tickets on Various Architectures” of the main paper.)
• Section B: Results of dataset lottery ticket hypothesis on supervised learning.
(Section 4 “Examining Winning Tickets on Various Architectures” of the main paper.)
• Section C:
An introduction of experimental settings.
(Section 4 “Examining Winning Tickets on Various Architectures” of the main paper.)
• Section D: Full lists of winning tickets on ImageNet-1K. (Section 3 “Winning Tickets Policies” of the main paper.)
• Section E: More results of different subsets.
(Table 2 “Overview of accuracy trends and correlation values.”
of the main paper.)
• Section F: More results and discussions on the study of generalizability.
(Section 4.2 “Generalizability” of the main paper.)
• Section G: Background of our work.
(Section 3 “Winning Tickets Policies” of the main paper.)
• Section H: Implementation Details and Experimental Settings.
(Section 4 “Examining Winning Tickets on Various Architectures” of the main paper.)
• Section I: Results on AG’s News Topic Classification Dataset.
A M ORE C LASSES OR M ORE S AMPLES IN P ER -C LASS ?
[Figure]
Instead of selecting a subset along with the class, we can also keep all categories and reduce the number of images in each class ( NiR ).
This strategy will make the subset more diverse but the same category has fewer training samples.
In this section, we examine the influence of number of images in each class for the self-supervised learning.
To study this, we keep the set of original classes and randomly select 1/10 of the images in each class.
We illustrate the loss evolution of self-supervised pre-training and linear probing in Fig. 8.
It can be observed that the strategy of
NiP has low accuracy of 38% on MoCo V2 and 46% on DINO (we use Full Set and the low absolute performance subset PD-Bottom as comparisons.).
Though it is not necessary the performance is low since we focus more on the trend across the frameworks, the model is concerned to be “dull” and may be biased to some particular classes that contain few samples since samples in each class are insufficient.
B D ATASET L OTTERY T ICKET H YPOTHESIS ON S UPERVISED L EARNING
We examine the dataset lottery ticket hypothesis on supervised learning with the following networks: ResNet-50, ResNeXt50 (32 × 4d), RegNet Y 3 2GF, DenseNet121, MobileNet V3 Large,
ConvNext Small on the subsets of NiR , PD-Top , PD-Mid , PD-Bottom , PD-Uniform , ERC and RS .
We did not use ViT here as it is hungry for data in supervised learning.
The results are shown in Table 3, which are aligned with those on self-supervised learning task.
The slight difference we observe is that on supervised learning, PD-Uniform performs much better than it on self-supervised learning.
The common conclusion is that the subset from the dimension of sample’s number NiR and random sampling subset RS are mediocre with a weak alignment to the full data.
[Table]
C M ORE D ETAILS OF E XPERIMENTS
Considering that if the size of the subset is too large, the subset will lose its role and advantage of fast hyperparameter searching.
To this end, in the policy of per-class empirical consistency, T is set to 200 and M target is set to 100.
It means that if the size of selected subset is large than 200, we will randomly choose 100 classes among them as the new subset, so that we can guarantee the final scales of subsets will not be larger than T .
Otherwise, the subset will keep the originally identified classes.
D F ULL N AMES OF S UBSET L ISTS ON I MAGE N ET -1K D.
[Table]
n01667778 n01693334 n01729977 n01740131 n01744401 n n01756291 n01773549 n01773797 n01775062 n02088466 n n02096294 n02106030 n02107908 n02109961 n02110185 n n02119022 n02123045 n02123159 n02124075 n02167151 n n02395406 n02403003 n02412080 n02415577 n02441942 n n02443484 n02493793 n02497673 n02669723 n02749479 n n02776631 n02808440 n02895154 n02974003 n02979186 n n02999410 n03016953 n03045698 n03125729 n03146219 n n03249569 n03461385 n03485407 n03642806 n03657121 n n03710637 n03710721 n03770679 n03773504 n03782006 n n03793489 n03832673 n03866082 n03871628 n03895866 n n03976657 n04008634 n04081281 n04152593 n04239074 n n04285008 n04286575 n04355933 n04356056 n04357314 n n04392985 n04428191 n04443257 n04493381 n04525038 n n04560804 n04589890 n04591157 n04592741 n04599235 n n07584110 n07734744 n07860988 n07892512 n07930864 n n09399592 n09428293 n12144580 n
D.
ERC (W INNING T ICKET 2)
n01484850 n01498041 n01580077 n01601694 n01608432 n n01669191 n01685808 n01688243 n01694178 n01698640 n n01755581 n01770393 n01824575 n01829413 n01855032 n n01914609 n01978287 n01981276 n
n01985128 n n02002556 n02007558 n02012849 n02056570 n02074367 n n02088238 n
n02091032 n02091467 n02093859 n n02097209 n02098105 n
n02100583 n02101006 n n02110806 n02111277 n02111500 n02111889 n02114548 n n02177972 n02190166 n02346627 n02356798 n02363005 n n02445715 n02481823 n02484975 n02486261 n02641379 n n02786058 n02797295 n
n02804414 n02807133 n n02843684 n02865351 n02892201 n02948072 n02977058 n n03000684 n03018349 n03062245 n03110669 n03131574 n n03388183 n03394916 n03445924 n03447721 n03450230 n n03482405 n
n03584829 n03595614 n03598930 n
[Table]
E M ORE R ESULTS
More results of accuracy trends and correlation values are shown in Fig.
[Table]
[Figure]
[Table]
F M ORE A NALYSES ON G ENERALIZABILITY
Settings: (i) Batch size effect.
On this factor, we employ MAE Base/
Linear as the baseline and examine the consistency between the winning ticket and full data.
The default batch size in
MAE framework is 4,096, we test 2,048 and 1,024 respectively for studying the generalizability of our selected winning ticket.
(ii) Stochastic regularization with DropPath.
On this factor, we employ DINO Small/16 linear as the baseline, the default DropPath ratio in DINO framework is 0.1, we test additional 0.3, 0.5, respectively.
Our results indicate that the selected subsets have good generalizability on slightly different training settings.
F. A BRIEF THEORY ANALYSIS OF DATASET LOTTERY TICKET HYPOTHESIS
Inspired by (Sorscher et al., 2022), we also use a teacher-student perceptron scheme to explain our
DLTH theoretically.
We consider select the subset training dataset (the subset has P examples with { x µ , y µ } µ =1 ,...,P , where x µ ∼ N (0 , I N ) ) by keeping only the examples with the smallest margin | z µ | = | S probe · x µ | along a probe student S probe , which matches one of our proposed selection policies.
The selected subset will follow the distribution p ( z ) along the direction of S probe .
Similarly, we can obtain the generalized theory for an arbitrary data distribution p ( z ) for the small-margin selection strategy.
S probe contains overlap with the teacher that is determined by the angle θ = cos − 1 (cid:16)
[Table]
After the subset has been selected, we train a new student S from scratch on the selected subset.
The typical learning algorithm is to train a classifier for the training data with the maximal margin κ = min µ S · ( y µ x µ ) to find the optimized S .
Different from data pruning of computing the generalization error ε g of this student, which is governed by the overlap between the student and teacher, ε g = cos − 1 ( R )
/π ,
where R = S · T / ∥ S
∥ 2 ∥ T ∥ 2 .
we focus on the consistency of test error ε s across different configurations for the final perceptron as a function.
G B ACKGROUND
Self-supervised Learning.
Self-supervised pre-training has been recognized as a promising technique in various fields, such as Computer Vision (Caron et al., 2021; 2020;
He et al., 2022),
NLP (Kenton & Toutanova, 2019; Yang et al., 2019; Liu et al., 2019; Brown et al., 2020),
Speech (Hsu et al., 2021; Liu et al., 2021; Chen et al., 2022) and Multimodality (Radford et al., 2021; Ramesh et al., 2021; 2022).
The major drawback of this technique is the costly training overhead, which dramatically impedes more investigation and exploration.
For instance, GPTmodel (Brown et al., 2020) contains 175 billion parameters and is trained roughly requiring 1,
A100 GPUs for more than one month, the estimated training cost of it is at least $ 4.6 million.
In the vision domain, DINO ViT-B/8 (Caron et al., 2021) is also trained on 176 GPUs which is inaccessible for most research institutions.
Efficient Hyperparameter Tuning.
The most common hyperparameter tuning method is the grid search .
While it is always in low-efficiency when the number of hyperparameters is large, as well as the big training data and model size.
Random search with human experience and Bayesian optimization (Bergstra et al., 2011; Snoek et al., 2012; Hutter et al., 2019) are two popular fast hyperparameter tuning methods and have been successfully applied to many applications in practice.
In this study, we focus on finding a proper subset (winning ticket) from the full data, which is orthogonal to these black-box strategies and can be utilized with them simultaneously.
Moreover, a suitable subset is more efficient if the model’s training cost is high.
Model-level Lottery Ticket Hypothesis.
The original lottery ticket hypothesis (Frankle & Carbin, 2019) and its follow-ups (Zhou et al., 2019; Evci et al., 2020; Wang et al., 2020; Chen et al., 2020a;
Morcos et al., 2019; You et al., 2019;
Savarese et al., 2020) are proposed on the neural network dimension as the model pruning technique.
The core of this hypothesis is that a randomly-initialized neural network contains a subnetwork that can match the test accuracy of the original model after training for the same number of iterations.
PrAC (Zhang et al., 2021) observed that a sparse model can be explored with training and pruning the dense network on the compact PrAC set, which has a different goal from the proposed DLTH.
In this work, we study the lottery ticket hypothesis on the datatset dimension to reflect the consistency of performance trend, and propose several practice ways to identify the dataset winning tickets.
Active Learning and Dataset Pruning.
Active learning (Settles, 2009) is similar to the semisupervised learning strategy by involving the human participation, and the process of selecting suitable candidate sets for manual labeling through machine learning algorithms.
The idea of active learning is to obtain the sample that is more difficult to classify through ML approach, then, let human reconfirm and review them.
After that, we can re-use the manually labeled data with a supervised learning or semi-supervised learning model.
There are many recent literature following this interesting paradigm (Ash et al., 2019; Mirzasoleiman et al., 2020; Citovsky et al., 2021).
In contrast, DLTH focuses on selecting a subset with consistent performance trends as the full data.
For the dataset pruning, Sorscher et al.
(Sorscher et al., 2022) focused on the scaling of testing error with dataset size and proposed a self-supervised pruning metric to demonstrate comparable results to the supervised metrics.
Different from the dataset pruning setting, in our scenario, we do not care about the absolute accuracy of the individual model trained on the subset but the consistency to the models trained on full data.
The two tasks essentially have different goals, and our pruning ratio on the original dataset is also much higher than dataset pruning.
H I MPLEMENTATION D ETAILS AND E XPERIMENTAL S ETTINGS H. DINO
C
ARON ET AL .,
2021) P RETRAINING AND L INEAR P ROBING
We conduct experiments two configurations of DINO framework (Caron et al., 2021): (I)
DINO Base/16 linear and (II) DINO Small/16 linear .
The pre-training settings are provided in Table 5.
The linear probing settings are in Table
[Table] [Table]
We conduct experiments with three configrations on MoCo V1&V2 (He et al.,
[Table]
Chen et al
[Table]
, 2020b) frameworks: (I) MoCoV1-ResNet50-200ep , (II) MoCoV2-ResNet50-200ep and (III)
MoCoV2-ResNet50-800ep .
The details of pre-training and linear probing settings are provided in Table 7 and Table 8, respectively.
[Table] [Table]
H. MAE
[Table] F INETUNING AND L INEAR P ROBING
We conduct experiments on MAE (He et al., 2022) with one pretraining configuration and two evaluation protocols:
(I) MAE Base/16 Linear and (II) MAE Base/
Finetuning .
Pre-training: The setting used for our experiments is in Table 9.
Following the default protocal, we do not use color jittering, drop path, or gradient clip.
We also use the linear lr scaling rule: lr = base lr × batchsize / 256.
End-to-end fine-tuning:
The setting used in our experiments is provided in Table 10.
Linear probing: Our linear classifier training setting is provided in Table 11.
[Table]
I R ESULTS ON AG’ S N EWS T OPIC C LASSIFICATION D ATASET
Training and Evaluation Settings.
To further examine the generalizability of the proposed DLTH, we extend our method to the NLP domain to see whether this hypothesis still holds using AG’s news topic classification dataset (Zhang et al., 2015). This dataset is widely used as a text classification benchmark.
It consists of 4 coarse classes from the original corpus.
Each class contains 30K training samples and 1.9K testing samples.
The total number of training samples is 120K and testing 7.6K.
[Table] [Table]
Configurations and Results.
We explore four configurations as shown in Table 12.
The results are provided in Table 13.
For the lottery ticket subset, we simply select consistent samples across four configurations until reaching 10% of the full data.
We do this twice to construct different lottery ticket subsets to mitigate variance in different runs.
We can observe that the models trained on lottery ticket subsets are much more robust with higher correlation values to the full data.
[Table] [Table]
C
C
C
[Table]
[Table] [Table] [Table] [Table]
[Table] [Table] [Table] [Table]
[Table]
[Table]
[Table]
[Table]
[Table]
[Table]
[Table]
[Table]
[Table]
[Table]
Ticket
[Table]
[Table]
[Table]
Ticket
[Table]
[Table]
[Table]