# Episode-specific Fine-tuning for Metric-based Few-shot Learners with Optimization-based Training

arXiv: https://arxiv.org/abs/2506.17499 · HTML: https://mlsanity.com/paper/2506.17499/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 27 of its 38 references that are in the map.
- First posted on arXiv 20 Jun 2025.

## Builds on (most cited first, 27 of 27)

- [PyTorch: An Imperative Style, High-Performance Deep Learning Library](https://mlsanity.com/paper/1912.01703/) (2019)
- [Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks](https://mlsanity.com/paper/1703.03400/) (2017)
- [Prototypical Networks for Few-shot Learning](https://mlsanity.com/paper/1703.05175/) (2017)
- [Matching Networks for One Shot Learning](https://mlsanity.com/paper/1606.04080/) (2016)
- [Learning to Compare: Relation Network for Few-Shot Learning](https://mlsanity.com/paper/1711.06025/) (2017)
- [Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition](https://mlsanity.com/paper/1804.03209/) (2018)
- [A Closer Look at Few-shot Classification](https://mlsanity.com/paper/1904.04232/) (2019)
- [Network In Network](https://mlsanity.com/paper/1312.4400/) (2013)
- [Meta-SGD: Learning to Learn Quickly for Few-Shot Learning](https://mlsanity.com/paper/1707.09835/) (2017)
- [Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few Examples](https://mlsanity.com/paper/1903.03096/) (2019)
- [Cross Attention Network for Few-shot Classification](https://mlsanity.com/paper/1910.07677/) (2019)
- [Meta-Curvature](https://mlsanity.com/paper/1902.03356/) (2019)
- [learn2learn: A Library for Meta-Learning Research](https://mlsanity.com/paper/2008.12284/) (2020)
- [MetaAudio: A Few-Shot Audio Classification Benchmark](https://mlsanity.com/paper/2204.02121/) (2022)
- [Adapted Deep Embeddings: A Synthesis of Methods for k-Shot Inductive Transfer Learning](https://mlsanity.com/paper/1805.08402/) (2018)
- [Deep convolutional networks on the pitch spiral for musical instrument recognition](https://mlsanity.com/paper/1605.06644/) (2016)
- [Leveraging Hierarchical Structures for Few-Shot Musical Instrument Recognition](https://mlsanity.com/paper/2107.07029/) (2021)
- [Learning to match transient sound events using attentional similarity for few-shot sound recognition](https://mlsanity.com/paper/1812.01269/) (2018)
- [Few-shot acoustic event detection via meta-learning](https://mlsanity.com/paper/2002.09143/) (2020)
- [Few-shot bioacoustic event detection at the DCASE 2022 challenge](https://mlsanity.com/paper/2207.07911/) (2022)
- [Few-Shot Musical Source Separation](https://mlsanity.com/paper/2205.01273/) (2022)
- [Learning from Taxonomy: Multi-label Few-Shot Classification for Everyday Sound Recognition](https://mlsanity.com/paper/2212.08952/) (2022)
- [Few-Shot Drum Transcription in Polyphonic Music](https://mlsanity.com/paper/2008.02791/) (2020)
- [LC-Protonets: Multi-Label Few-Shot Learning for World Music Audio Tagging](https://mlsanity.com/paper/2409.11264/) (2024)
- [Adaptive Prototypical Networks](https://mlsanity.com/paper/2211.12479/) (2022)
- [A Hybrid Approach with Optimization and Metric-based Meta-Learner for Few-Shot Learning](https://mlsanity.com/paper/1904.03014/) (2019)
- [Episodic fine-tuning prototypical networks for optimization-based few-shot learning: Application to audio classification](https://mlsanity.com/paper/2410.05302/) (2024)

## Abstract (arXiv)

In few-shot classification tasks (so-called episodes), a small set of labeled support samples is provided during inference to aid the classification of unlabeled query samples. Metric-based models typically operate by computing similarities between query and support embeddings within a learned metric space, followed by nearest-neighbor classification. However, these labeled support samples are often underutilized--they are only used for similarity comparison, despite their potential to fine-tune and adapt the metric space itself to the classes in the current episode. To address this, we propose a series of simple yet effective episode-specific, during-inference fine-tuning methods for metric-based models, including Rotational Division Fine-Tuning (RDFT) and its two variants, Iterative Division Fine-Tuning (IDFT) and Augmented Division Fine-Tuning (ADFT). These methods construct pseudo support-query pairs from the given support set to enable fine-tuning even for non-parametric models. Nevertheless, the severely limited amount of data in each task poses a substantial risk of overfitting when applying such fine-tuning strategies. To mitigate this, we further propose to train the metric-based model within an optimization-based meta-learning framework. With the combined efforts of episode-specific fine-tuning and optimization-based meta-training, metric-based models are equipped with the ability to rapidly adapt to the limited support samples during inference while avoiding overfitting. We validate our approach on three audio datasets from diverse domains, namely ESC-50 (environmental sounds), Speech Commands V2 (spoken keywords), and Medley-solos-DB (musical instrument). Experimental results demonstrate that our approach consistently improves performance for all evaluated metric-based models (especially for attention-based models) and generalizes well across different audio domains.
