Abstract
The pretraining-finetuning paradigm has gained widespread adoption in vision tasks and other fields, yet it faces the significant challenge of high sample annotation costs. To mitigate this, the concept of active finetuning has emerged, aiming to select the most appropriate samples for model finetuning within a limited budget. Traditional active learning methods often struggle in this setting due to their inherent bias in batch selection. Furthermore, the recent active finetuning approach has primarily concentrated on aligning the distribution of selected subsets with the overall data pool, focusing solely on diversity. In this paper, we propose a Bi-Level Active Finetuning (BiLAF) framework to select samples for annotation in one shot, which includes two stages: core sample selection for diversity, and boundary sample selection for uncertainty. The process begins with the identification of pseudo-class centers, followed by an innovative denoising method and an iterative strategy for boundary sample selection in the high-dimensional feature space, all without relying on ground-truth labels. Our comprehensive experiments provide both qualitative and quantitative evidence of our method's efficacy, outperforming all existing baselines.
Introduction: The Challenge of Active Finetuning
In modern computer vision, the standard workflow involves starting with a large-scale pretrained model and then finetuning it on a specific downstream task. While pretraining is typically unsupervised and leverages vast amounts of unlabeled data, finetuning requires high-quality human annotations, which are both expensive and time-consuming to obtain.
Active Learning (AL) aims to minimize these costs by selecting the most informative samples for labeling. However, traditional AL methods, designed for training from scratch, often fail in the pretraining-finetuning context. Recent "active finetuning" approaches have focused almost exclusively on diversity—ensuring the labeled subset represents the overall data distribution. While diversity is essential, it eventually hits a point of diminishing returns. To truly refine a model's performance, it must be exposed to "hard cases"—samples that lie on the decision boundaries between classes.
The BiLAF Framework
To address the limitations of diversity-only selection, we introduce BiLAF (Bi-Level Active Finetuning). BiLAF is a two-stage framework designed to capture both the representative "core" of the data and the critical "boundary" regions.
Stage 1: Core Sample Selection
The first stage focuses on diversity. By identifying "pseudo-class centers" in the high-dimensional feature space of the pretrained model, BiLAF ensures that the selected data covers the entire breadth of the dataset. This stage provides a foundational "map" of the data distribution, often utilizing state-of-the-art methods like ActiveFT.
Stage 2: Boundary Sample Selection
The second stage introduces uncertainty by selecting samples that reside between classes. This process involves several key innovations:
- Iterative Density-based Clustering (IDC) for Denoising: Before selecting boundary points, BiLAF filters out outliers and noise that could mislead the model, ensuring only meaningful "hard cases" are chosen.
- Boundary Score (BS) Calculation: Samples are scored based on their proximity to their own pseudo-class center relative to the centers of "opponent" classes. High scores indicate samples that are "on the fence."
- Iterative Selection with Opponent Penalty: To maintain diversity among the boundary samples, the algorithm iteratively selects points. Once a boundary between two classes is sampled, a penalty is applied to similar boundaries, forcing the selection of samples that clarify relationships between different pairs of classes.
Experimental Evaluation
We evaluated BiLAF across three major computer vision benchmarks: CIFAR-10, CIFAR-100, and ImageNet-1k.
Key Results
- Performance Gains: BiLAF consistently outperformed state-of-the-art baselines. On CIFAR-100, it achieved a 3% accuracy improvement over ActiveFT. On the massive ImageNet-1k dataset, it maintained a steady 1% lead, demonstrating scalability.
- Qualitative Evidence: t-SNE visualizations confirm that BiLAF successfully targets the thin regions where classes meet, effectively ignoring redundant central points and noisy outliers.
Insights and Future Directions
A primary insight from this work is that while diversity is crucial at very low budgets to establish a baseline, the importance of boundary samples grows as the budget increases. Pretrained features are remarkably "boundary-aware," allowing us to exploit the geometry of the feature space even before labels are available.
While BiLAF shows slight underperformance at extremely low budgets (where core samples are paramount), its strength lies in its ability to resolve ambiguity as more data is labeled. Future research will explore adaptive mechanisms to automatically balance core and boundary selection based on the available annotation budget and extending this framework to other modalities like natural language processing.
Summary updated