Large-scale multi-task language models like T0 and FLAN have revolutionized NLP by demonstrating an impressive ability to follow instructions and perform "zero-shot" tasks. However, even these massive models hit a wall when faced with tasks significantly different from their training data.
In their NeurIPS 2022 paper, "Unsupervised Cross-Task Generalization via Retrieval Augmentation," Bill Yuchen Lin and colleagues propose a clever way to bridge this gap. Instead of leaving the model "frozen," they use a few unlabeled examples from a new task to go back into the model's own training history, find the most relevant "skills," and give the model a quick refresher before it tackles the new challenge.
TL;DR
ReCross improves the zero-shot performance of multi-task models by using a few unlabeled target examples to retrieve and "re-learn" relevant examples from the model's original training data. This retrieval-augmented approach significantly boosts generalization to unseen tasks without requiring any new human-labeled data.
What Problem Does This Paper Address?
The current paradigm for general-purpose NLP is to train a model on a massive mixture of diverse tasks (upstream learning). While effective, these models are often "target-agnostic"—they don't adapt to the specific nuances of a new task a user might provide.
The authors identify a specific, realistic scenario: a user has a new task and can provide a few examples of the input (e.g., a few questions they want answered), but they don't have the labels (the answers). This is called unsupervised cross-task generalization. The challenge is: how can we use these unlabeled "hints" to adjust a massive, pre-trained multi-task model so it performs better on this specific, unseen task?
Methods
The authors introduce ReCross, a two-stage retrieval-augmentation framework.
- Dense Retrieval: The system first builds a "dense index" of all the model's original training data (upstream data). Crucially, instead of using off-the-shelf sentence embeddings (like SBERT), they use the internal representations from the multi-task model's own encoder. The logic is that the model's own "thinking process" is the best judge of what data is relevant to its internal knowledge.
- Reranking with Distant Supervision: Dense retrieval is fast but can be imprecise. ReCross adds a second stage: a cross-encoder (based on RoBERTa) that looks at pairs of query examples and candidate training examples to score their utility.
- The Innovation: To train this reranker without human labels, they use a "distant supervision" algorithm. They simulate the generalization process on their existing training tasks—finding which retrieved examples actually help the model perform better on a held-out set of training data—and use those results to teach the reranker what "useful" data looks like.
Finally, the top-ranked retrieved examples are used to briefly fine-tune the multi-task model (a process they call "re-learning") before it makes predictions on the new task.
Datasets
- Upstream Training: The authors used a mixture of 36 tasks (the same set used to train the T0 model), totaling 1.7 million examples.
- Evaluation: They tested on 10 diverse "unseen" tasks (including natural language inference, coreference resolution, and question answering) and 5 challenging tasks from the BIG-bench project.
- BART0: To make experiments more accessible, they trained "BART0," a 400M parameter version of T0 that achieves similar performance to the 3B parameter T0-3B model.
Key Insights and Ideas
- Model-Aware Embeddings Matter: One of the most striking findings is that using the model's own internal hidden states for retrieval works significantly better than using generic semantic embeddings like SBERT. It turns out that "semantic similarity" isn't the same as "utility for the model."
- Learning to Retrieve: By using the "distant supervision" algorithm, the authors proved you can train a high-quality reranker by essentially letting the model "practice" on its own training data to see what helps it learn best.
- Reasoning over Format: The authors found that retrieval helps the model recap specific reasoning skills rather than just matching the format of the task. For example, removing all multiple-choice tasks from the retrieval pool didn't necessarily hurt performance on a new multiple-choice task, suggesting the model was looking for deeper logic.
Key Results
ReCross demonstrated a consistent and significant improvement over "frozen" models:
- Overall Boost: ReCross improved the average performance across 10 target tasks by 4.15 points over the base BART0 model.
- Outperforming Baselines: It significantly outperformed random retrieval and SBERT-based retrieval, showing the value of the model-aware dense index and the trained reranker.
- BIG-bench Success: On the
movie_dialogtask in BIG-bench—a task where standard models often fail to even follow the instructions—ReCross boosted performance from a dismal 4.40% to 37.22%.
Limitations and Future Work
- Computational Overhead: While retrieval and fine-tuning are one-time costs per task, the reranking stage is computationally expensive compared to simple zero-shot inference.
- Fine-tuning Simplicity: The current "re-learning" stage uses a very simple fine-tuning approach. The authors suggest that more sophisticated methods (like using the query examples as specific guidance) could yield even better results.
- Task Correlation: Analyses of task mappings reveal that the relationship between "unseen" and "upstream" tasks is complex. Future work is needed to better predict which training data will be most beneficial for a given new task.
Summary updated