Abstract
Models can fail in unpredictable ways during deployment due to task ambiguity, when multiple behaviors are consistent with the provided training data. An example is an object classifier trained on red squares and blue circles: when encountering blue squares, the intended behavior is undefined. We investigate whether pretrained models are better active learners, capable of disambiguating between the possible tasks a user may be trying to specify. Intriguingly, we find that better active learning is an emergent property of the pretraining process: pretrained models require up to 5 times fewer labels when using uncertainty-based active learning, while non-pretrained models see no or even negative benefit. We find these gains come from an ability to select examples with attributes that disambiguate the intended behavior, such as rare product categories or atypical backgrounds. These attributes are far more linearly separable in pretrained model's representation spaces vs non-pretrained models, suggesting a possible mechanism for this behavior.
Introduction
Machine learning models often suffer from task ambiguity, a phenomenon where multiple hypotheses are consistent with the training data but lead to different behaviors on unseen examples. A classic example is a classifier trained on a dataset where all birds appear on water and all land animals appear on grass. When presented with a bird on land, the model’s behavior is undefined: should it prioritize the foreground object or the background context? In practice, models often latch onto these "spurious correlations," leading to failures in real-world deployment.
Active Learning (AL) offers a theoretical solution to this problem. By allowing a model to choose which data points a human should label, the model can strategically select examples that clarify the user's intent. However, historically, AL has been underwhelming in deep learning, often performing no better than random sampling. This research investigates whether the high-level semantic representations found in modern pretrained models finally make AL a practical tool for resolving task ambiguity.
Methodology
The researchers utilized a standard pool-based active learning framework. The process begins with a small "seed" set of labeled data, followed by an iterative cycle:
- Fine-tuning: The model is trained on the current labeled set.
- Acquisition: An acquisition function identifies the most "informative" unlabeled points from a larger pool.
- Labeling: These points are labeled and added to the training set.
The primary acquisition function used was Uncertainty Sampling (specifically "least confidence"), where the model requests labels for images it is most uncertain about.
To address the practical challenge of data scarcity, the authors introduced a novel heuristic for model training. In low-data regimes, traditional validation sets are a luxury. The authors found that stopping fine-tuning when the training loss reaches 0.1% of its initial value serves as an effective proxy for traditional early stopping, preserving more data for the actual training process.
Experimental Setup and Datasets
The study evaluated performance across several vision and text benchmarks designed to test robustness against spurious correlations and distribution shifts:
- Waterbirds: A dataset where birds are superimposed on land or water backgrounds to test reliance on context.
- Treeperson: A dataset where the presence of trees or buildings is spuriously correlated with the presence of people.
- iWildCam2020-WILDS: Real-world wildlife camera trap data featuring significant distribution shifts.
- Amazon-WILDS: Sentiment analysis of product reviews requiring generalization across different reviewers and categories.
Key Insights
Active Learning as a Disambiguator
Pretrained models demonstrate a unique ability to use AL to resolve ambiguity. Rather than just picking "hard" examples, they specifically identify "mismatched" examples—such as a landbird on a water background—that break spurious correlations. This forces the model to learn the causal feature (the bird) rather than the shortcut (the background).
An Emergent Property of Pretraining
The study reveals that the effectiveness of AL is an emergent property of pretraining. For non-pretrained models, AL often provides zero or even negative benefits compared to random sampling. Furthermore, the benefit scales with the intensity of pretraining; models trained on larger datasets (e.g., ImageNet-21k vs. ImageNet-1k) showed superior active learning performance.
Linearization of Features
A primary mechanism for this success is the linearization of features within the representation space. The authors found that semantic attributes like "background type" and "object type" are significantly more linearly separable in pretrained models. This structural organization allows the model’s uncertainty estimates to correlate more accurately with meaningful semantic gaps in the data.
Results
The impact of combining pretraining with AL is substantial:
- Data Efficiency: On the Waterbirds dataset, pretrained models required 5x fewer labels to achieve the same accuracy as random sampling.
- Accuracy Gains: For a fixed labeling budget, AL provided up to an 11% absolute increase in accuracy on out-of-distribution test sets.
- Robustness: In real-world scenarios like the iWildCam dataset, uncertainty sampling led to a 9% improvement over random sampling by effectively identifying rare species and atypical environments.
Limitations and Future Directions
While promising, the benefits of AL are not universal. The "magic" of AL tends to fade when the target domain differs significantly from the pretraining data, such as in medical histology or satellite imagery. This suggests that the effectiveness of AL is contingent on the semantic overlap between the pretraining and target tasks.
Additionally, AL assumes a human-in-the-loop who can provide accurate labels iteratively. In practice, the very examples that are most informative (and ambiguous) are often those most prone to human labeling error. Future research should explore how these findings apply to massive foundation models like GPT-4 or CLIP and investigate methods to "warm start" AL in scenarios with extremely limited initial data.
Summary updated