NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Optimized Generic Feature Learning for Few-shot Classification across Domains

Tonmoy Saikia, Thomas Brox, Cordelia SchmidarXiv 2020

Introduction

Deep learning models often struggle with generalization, frequently "memorizing" training data rather than learning generic features. This challenge is particularly acute in few-shot learning, where a model must recognize novel classes from only a handful of examples. While the research community has largely focused on developing complex "meta-learning" frameworks like MAML or Prototypical Networks, this paper argues that the key to generalization may lie in a more fundamental area: rigorous Hyper-parameter Optimization (HPO).

The authors demonstrate that a well-tuned standard ResNet-18 can outperform state-of-the-art specialized models by automating the search for optimal regularization and optimization parameters. By treating generalization itself as the optimization objective, they show that standard architectures can achieve remarkable cross-domain performance.

Methodology: HPO as Meta-Learning

The core innovation of this work is the use of a Validation Objective based on few-shot tasks. Instead of validating on a standard classification task, the authors employ BOHB (Bayesian Optimization and Hyperband) to search for hyperparameters that maximize the average accuracy across multiple few-shot tasks sampled from a held-out validation set.

The proposed training and validation pipeline using BOHB and a few-shot task sampler to optimize for generic feature learning.

This approach forces the HPO process to select configurations—such as optimizer choice, learning rate schedules, and data augmentation—that specifically produce features useful for rapid adaptation. The search space was divided into two categories: S1 (Optimization), focusing on mechanics like batch size and $L_2$ regularization, and S2 (Augmentation), which added parameters for operations like rotation and solarization.

The HPO process revealed several critical trends that are often overlooked in manual tuning:

  • The Power of Small Batches: BOHB consistently favored smaller batch sizes (e.g., 8). The resulting gradient noise acts as a form of implicit regularization, preventing the model from over-specializing on the training set.
  • Cross-Domain Validation: Validating on few-shot tasks from a different domain (e.g., using QuickDraw sketches to validate an ImageNet-trained model) significantly improves transfer performance without degrading within-domain accuracy.
  • Optimization vs. Augmentation: While data augmentation (S2) provided benefits, the most significant performance gains were derived from tuning the optimization parameters (S1), highlighting the importance of how the model traverses the loss landscape.

Experimental Results

The study evaluated the approach on mini-ImageNet and the diverse Meta-Dataset (comprising 10 different datasets). The results indicate that the "BOHB-tuned" models significantly outperform those using default or randomly sampled hyperparameters.

Comparison of test accuracy across different classifiers and hyperparameter configurations on within-domain (D1) and cross-domain (D2+D3) tasks.

As shown in the table above, the Nearest Centroid (N-Centroid) classifier combined with BOHB-tuned parameters achieved the highest performance, reaching 51.92% on within-domain tasks and 59.96% on cross-domain tasks. This performance matches or exceeds that of much more complex meta-learning algorithms. Furthermore, by ensembling the top 20 models discovered during the HPO process, the authors reached 66.4% 1-shot accuracy on mini-ImageNet, a highly competitive result.

Conclusion and Future Work

This research suggests that many perceived algorithmic gains in few-shot learning literature may actually stem from superior implicit regularization. By automating the search for these parameters through a task-based validation objective, standard backbones can be transformed into powerful, generic feature extractors.

While the computational cost of HPO remains a hurdle—requiring significant GPU resources to train hundreds of candidate models—the results provide a strong argument for prioritizing rigorous optimization over architectural complexity. Future work may involve expanding this framework to include Neural Architecture Search (NAS) to further push the boundaries of cross-domain generalization.

Summary updated

BibTeX
@misc{saikia2020optimized,
  author = {Tonmoy Saikia and Thomas Brox and Cordelia Schmid},
  title = {{Optimized Generic Feature Learning for Few-shot Classification across Domains}},
  year = {2020},
  eprint = {2001.07926},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.07926},
}
Figure