TL;DR
This paper introduces Neural Fine-Tuning Search (NFTS), a method that uses Neural Architecture Search (NAS) to automatically discover the best way to adapt a pre-trained model to new, few-shot tasks. By optimizing which layers to freeze, which to fine-tune, and where to insert "adapter" modules, NFTS achieves state-of-the-art performance on challenging benchmarks like Meta-Dataset and Meta-Album.
What Problem Does This Paper Address?
In few-shot learning (FSL), a model must learn to recognize new categories from just a handful of examples. A common strategy is to take a large pre-trained model and "fine-tune" it on the new data. However, this creates a difficult trade-off:
- Overfitting: If you update too many parameters on a tiny dataset, the model forgets its general knowledge and "memorizes" the noise in the few examples.
- Underfitting: If you update too few parameters (or just the final classifier), the model might not have enough capacity to handle significant "domain shifts" (e.g., moving from photos of dogs to satellite imagery).
Previously, researchers used heuristics to manage this—such as only fine-tuning the last few layers or manually placing "adapters" (small, trainable bottleneck layers). This paper asks: Can we mathematically find the optimal adaptation strategy instead of guessing?
Methods
The authors frame the adaptation strategy as a search problem. For every layer in a backbone (like a ResNet or Vision Transformer), they define two binary decisions:
- To Adapt or Not: Should we insert a task-specific adapter module?
- To Fine-tune or Not: Should we update the existing pre-trained weights or keep them frozen?
With $K$ layers, this creates a search space of $4^K$ possible configurations. To navigate this efficiently, they use:
- Supernet Training: They train a single "supernet" using a Stochastic Single-Path One-Shot (SPOS) strategy. During training, they randomly sample different adaptation paths, allowing the weights to be shared across many different architectures.
- Two-Phase Search:
- Meta-training time: They use an evolutionary search to find a "shortlist" of $N$ (typically 3) diverse, high-performing architectures.
- Meta-testing time: When a brand-new task arrives, they perform a "mini-search" among those $N$ candidates to see which one performs best on that specific task's support set. This "deferred" selection allows the model to be flexible to different domains (e.g., choosing a different strategy for medical images vs. handwritten characters).
Datasets
The authors evaluate NFTS on two of the most rigorous few-shot benchmarks:
- Meta-Dataset: A massive collection of 13 diverse datasets (ImageNet, Omniglot, MSCOCO, etc.). They test both "single-domain" (training only on ImageNet) and "multi-domain" (training on the first eight datasets) protocols.
- Meta-Album: A more recent and diverse benchmark containing 30 datasets across 10 domains, including microscopy, remote sensing, and plant diseases.
Key Insights and Ideas
- No Simple Pattern: The search results show that the "optimal" strategy is complex. It isn't as simple as "fine-tune the top layers." The best architectures often have a "patchwork" of frozen and fine-tuned layers that varies significantly between ResNets and ViTs.
- Diversity is Key: By shortlisting $N$ diverse models rather than just one "best" model, the system can handle "out-of-distribution" tasks. If a new task is very different from the training data, the meta-testing search can pick the candidate that overfits the least.
- Unified Framework: NFTS effectively "subsumes" previous methods. Popular techniques like TSA (Task-Specific Adapters) or PMF (Parameter-efficient Model Fine-tuning) are just specific, hand-picked points within the NFTS search space.
Key Results
NFTS sets new state-of-the-art (SOTA) records across the board:
- Meta-Dataset (ResNet-18): Achieved 75.2% average accuracy in the single-domain setting, a +1.9% improvement over the previous best (TSA). In the multi-domain setting, it reached 80.7%.
- Meta-Dataset (ViT-Small): Achieved 79.2% (single-domain), outperforming ETT by +1.6%.
- Meta-Album: NFTS consistently outperformed all well-tuned baselines across the entire range of "shots" (1-shot to 20-shot), often by margins greater than 5%.
- Ablation: The authors showed that the combination of both adapters and selective fine-tuning is superior to using either technique in isolation.
Limitations and Future Work
- Search Space Granularity: The current search space is relatively "coarse" (binary decisions per layer). The authors suggest that future work could explore finer granularity, such as searching for specific adapter bottleneck sizes or different types of adapter architectures.
- Computational Overhead: While the $N=3$ search at test time is efficient, it still triples the adaptation cost compared to a fixed architecture. The authors note this is still cheaper than other SOTA methods that use ensembles or multiple learning rate trials.
- Adapter Variety: The study focused on specific adapter types (TSA for ResNet, ETT for ViT). The framework could be expanded to include a wider library of adaptation modules.
Summary updated