Overview
Few-shot learning is notoriously prone to overfitting, but leveraging auxiliary data can help models generalize better. This paper frames Few-shot Learning with Auxiliary Data (FLAD) as a Multi-Armed Bandit (MAB) problem, creating a highly efficient algorithm that dynamically selects the most helpful auxiliary datasets during training. This approach scales to hundreds of datasets and allows a 3-billion parameter model to outperform the 175-billion parameter GPT-3 on few-shot tasks.
The Challenge of Auxiliary Data
In few-shot learning, a model is asked to master a task using only a handful of examples (e.g., 20-70). Because data is so scarce, models easily overfit. One solution is Few-shot Learning with Auxiliary Data (FLAD), where the model trains on a target task while simultaneously learning from other, larger auxiliary datasets to improve general language understanding and generalization.
However, FLAD introduces a massive challenge: which auxiliary datasets should be used, and when? Prior methods either required humans to hand-pick related datasets, assumed all auxiliary data was equally useful, or used algorithms whose computational costs scaled linearly (or worse) with the number of auxiliary datasets. With hundreds of auxiliary datasets, older methods become computationally prohibitive. A scalable method is needed to automatically and efficiently sift through massive piles of auxiliary data to find what helps the target task, without blowing up the compute budget.
A Multi-Armed Bandit Approach
The authors brilliantly reframe FLAD as a Multi-Armed Bandit (MAB) problem, specifically focusing on the classic "explore vs. exploit" dilemma.
- The Arms: Each auxiliary dataset acts as an "arm" of the bandit.
- The Algorithms: The researchers adapt two classic MAB algorithms: EXP3 (which assumes rewards are adversarial or highly stochastic) and UCB1 (which is optimistic and greedy).
- The Reward Signal: To determine if an auxiliary dataset is actually helping, the algorithm uses gradient matching. At each step, it compares the gradient of the sampled auxiliary batch with the gradient of the target dataset. They measure Gradient Alignment (cosine similarity) and Gradient Magnitude Similarity (relative update size).
The Efficiency Trick: To keep memory and compute overhead incredibly low, the authors only calculate these gradient rewards using the parameters of the language modeling head (just 2.3% of the model's total parameters). Consequently, the computational complexity of a single training step is entirely independent of how many auxiliary datasets are available.
Experimental Setup
The approach was evaluated across a robust set of datasets:
- Target Datasets: 11 held-out datasets covering four distinct NLP tasks: sentence completion, natural language inference, coreference resolution, and word sense disambiguation.
- Auxiliary Datasets: Models were trained using T0Mix (35 diverse NLP datasets) and P3 (a massive collection of 260 datasets, carefully filtered to ensure no data leakage with the target tasks).
Key Insights and Results
The MAB approach yielded significant improvements over existing baselines, proving that dynamically balancing exploration and exploitation is crucial.
- Explore + Exploit is Mandatory: The authors compared their MAB approach against baselines that only explored (randomly sampling all auxiliary data equally) and only exploited (measuring dataset similarity before training and fixing the sampling rate). The MAB methods won handily, demonstrating that the usefulness of a dataset changes dynamically as the model learns.
- State-of-the-Art FLAD: The proposed methods (EXP3-FLAD and UCB1-FLAD) outperformed all pre-existing FLAD baselines by roughly 4% to 6% in absolute accuracy.
- David vs. Goliath: By effectively routing auxiliary data, the authors trained a 3-billion parameter model that outperformed the 175-billion parameter GPT-3 on few-shot in-context learning across these tasks. This achieves state-of-the-art performance using a model 62.5x smaller.
- Massive Scalability: Because the per-step compute is independent of the number of datasets, the authors successfully scaled their method to 100x more auxiliary datasets than prior FLAD research.
Limitations and Future Work
While highly effective, the method implicitly assumes that within the massive pool of auxiliary data, there is at least some data that is actually useful for the target task. If the auxiliary pool is entirely irrelevant, the algorithm cannot invent helpful gradients. Additionally, the current algorithm optimizes for a single few-shot target task. Future work could extend these MAB-based methods to optimize for multiple target tasks simultaneously (true multitask learning) by aggregating multiple reward signals.
Summary updated