TL;DR
The pretraining-finetuning paradigm relies heavily on high-quality annotated data, but selecting the best samples to label on a strict budget is challenging. This paper introduces BiLAF, a bi-level active finetuning framework that selects both diverse "core" samples and uncertain "boundary" samples in a single shot. By focusing on decision boundaries rather than just global data distribution, BiLAF significantly outperforms existing data selection methods on major vision benchmarks.
What Problem Does This Paper Address?
In modern machine learning, models are typically pretrained on massive amounts of unlabeled data and then finetuned on a smaller, task-specific labeled dataset. Because human annotation is expensive, "active finetuning" aims to select the most informative subset of unlabeled data to hand off to annotators.
Traditional active learning methods select data in iterative batches (train a bit, select more data, train again), but this causes harmful biases and overfitting when applied to already-pretrained models. Recent "one-shot" active finetuning methods (like ActiveFT) solve the iteration problem by selecting all data at once based on global diversity—trying to make the selected subset's distribution match the entire dataset. However, these methods prioritize high-density areas and ignore uncertainty. They miss the samples located near the decision boundaries between classes, which are historically the most informative data points for teaching a classifier how to tell similar categories apart.
Methods: The BiLAF Framework
To address these shortcomings, the authors propose the Bi-Level Active Finetuning Framework (BiLAF). BiLAF balances global diversity with local uncertainty without needing any initial labels. It operates in two main stages:
- Core Samples Selection (Diversity): First, BiLAF selects a set of representative "center" samples to act as pseudo-classes. This ensures the selected data covers the entire global distribution. Existing methods like ActiveFT or K-Means can be utilized for this step.
- Boundary Samples Selection (Uncertainty): This is the paper's core novelty. Using the pretrained model's feature space, BiLAF identifies the tricky samples sitting between the core pseudo-classes.
- Clustering & Denoising: Remaining samples are assigned to their nearest core sample. Because boundary areas are also where noisy outliers live, BiLAF uses a novel Iterative Density-based Clustering (IDC) technique to filter out samples that are too sparse or isolated to be useful.
- Iterative Selection: The algorithm calculates a "Boundary Score" for each candidate, measuring its distance to its own pseudo-class center versus the nearest competing pseudo-class center. It iteratively selects samples closest to the boundary.
- Opponent Penalty: To prevent picking a redundant cluster of samples all from the exact same boundary, BiLAF applies a penalty that forces the algorithm to explore boundaries shared with different competing classes.
Key Insights
- Density isn't everything: Just sampling from dense regions of the data distribution leads to redundant information. As annotation budgets increase, models trained purely on diverse/dense samples see diminishing returns. Boundary samples are required to refine the model's actual decision-making edges.
- Unsupervised boundaries exist: You don't need ground-truth labels to find decision boundaries. The high-dimensional feature space of a good pretrained model (like DINO/DeiT) already clusters similar items well enough that you can mathematically estimate where the boundaries between semantic concepts lie.
- The noise trade-off: The "edges" of a data distribution are highly informative, but they are also where unhelpful, noisy outliers live. BiLAF proves that you cannot just blindly sample the edges; a robust density-based denoising step is absolutely critical to separate informative boundary points from useless noise.
Key Results
The authors evaluated BiLAF across a wide variety of vision tasks, including image classification (CIFAR10, CIFAR100, ImageNet-1k, CUB-200-2011), object detection (PASCAL VOC), and semantic segmentation (ADE20k).
- Superior Accuracy: BiLAF consistently outperforms the previous state-of-the-art (ActiveFT). As shown in the results, on CIFAR100, it achieves a remarkable ~3% absolute accuracy improvement across various annotation budgets. On the massive ImageNet dataset, it achieves a consistent ~1% improvement.
- High Efficiency: Because BiLAF selects all samples in one shot (rather than requiring iterative model retraining), it is vastly faster than traditional active learning methods. Selecting 10% of CIFAR100 takes about 20 seconds with BiLAF, compared to up to 36 hours for older iterative methods like VAAL.
- Versatility: The method generalizes well. It maintained a competitive advantage when swapped to different pretraining frameworks (iBOT, DINO) and different architectures (ResNet50, DeiT-Small), as well as on downstream tasks like object detection and segmentation.
Limitations and Future Work
The authors note a few limitations. First, because BiLAF relies on global image features, its advantages are less pronounced in tasks that require localized understanding, such as multi-instance object detection. Second, the aggressive denoising step—while great for standard datasets—might accidentally filter out crucial minority samples in highly imbalanced, long-tail distributions.
For future work, the authors suggest that because BiLAF is a highly flexible framework, its individual components (like the denoising metric or boundary scoring) could be custom-tailored to specific downstream tasks to overcome these limitations.
Summary updated