mlsanityData to 7 Oct 2026

Data-Efficient Finetuning Using Cross-Task Nearest Neighbors

arXiv 2212.00196 ↗First posted 1 Dec 2022cs.CLcited by 26

Not on the map. Why?

Abstract (arXiv)

Obtaining labeled data to train a model for a task of interest is often expensive. Prior work shows training models on multitask data augmented with task descriptions (prompts) effectively transfers knowledge to new tasks. Towards efficiently building task-specific models, we assume access to a small number (32-1000) of unlabeled target-task examples and use those to retrieve the most similar labeled examples from a large pool of multitask data augmented with prompts. Compared to the current practice of finetuning models on uniformly sampled prompted multitask data (e.g.: FLAN, T0), our approach of finetuning on cross-task nearest neighbors is significantly more data-efficient. Using only 2% of the data from the P3 pool without any labeled target-task data, our models outperform strong baselines trained on all available data by 3-30% on 12 out of 14 datasets representing held-out tasks including legal and scientific document QA. Similarly, models trained on cross-task nearest neighbors from SuperNaturalInstructions, representing about 5% of the pool, obtain comparable performance to state-of-the-art models on 12 held-out tasks from that pool. Moreover, the models produced by our approach also provide a better initialization than single multitask finetuned models for few-shot finetuning on target-task data, as shown by a 2-23% relative improvement over few-shot finetuned T0-3B models on 8 datasets.

Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Builds on 39 of its 65 references that are in the map. First posted on arXiv 1 Dec 2022.

Builds on

39 of 65 references.

References · 39

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  5. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  6. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  8. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  9. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  10. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
  11. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  12. 2017Billion-scale similarity search with GPUscited by 2,477
27 more
  1. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  2. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  3. 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
  4. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
  5. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
  6. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
  7. 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
  8. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
  9. 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
  10. 2019Adversarial NLI: A New Benchmark for Natural Language Understandingcited by 798
  11. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  12. 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 565
  13. 2020UnifiedQA: Crossing Format Boundaries With a Single QA Systemcited by 475
  14. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
  15. 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 370
  16. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
  17. 2018Sentence Encoders on STILTs: Supplementary Training on Intermediate Labeled-data Taskscited by 214
  18. 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 199
  19. 2018Representer Point Selection for Explaining Deep Neural Networkscited by 187
  20. 2021ExT5: Towards Extreme Multi-Task Scaling for Transfer Learningcited by 161
  21. 2020Exploring and Predicting Transferability across NLP Taskscited by 126
  22. 2021What to Pre-Train on? Efficient Intermediate Task Selectioncited by 62
  23. 2022Unsupervised Cross-Task Generalization via Retrieval Augmentationcited by 42
  24. 2021Few-Shot Text Classification with Triplet Networks, Data Augmentation, and Curriculum Learningcited by 35
  25. 2021An Empirical Comparison of Instance Attribution Methods for NLPcited by 35
  26. 2022ORCA: Interpreting Prompted Language Models via Locating Supporting Data Evidence in the Ocean of Pretraining Datacited by 34
  27. 2022kNN-Prompt: Nearest Neighbor Zero-Shot Inferencecited by 27

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 8; 2024: 6; 2025: 10; 2026: 2.

26 papers.

Sort:

By area:

  1. 2025Reinforcement Learning for Reasoning in Large Language Models with One Training Examplecited by 288
  2. 2025Act Only When It Pays: Efficient Reinforcement Learning for LLM Reasoning via Selective Rolloutscited by 108
  3. 2023In-context Pretraining: Language Modeling Beyond Document Boundariescited by 76
  4. 2023Maybe Only 0.5% Data is Needed: A Preliminary Exploration of Low Training Data Instruction Tuningcited by 56
  5. 2023Active Instruction Tuning: Improving Cross-Task Generalization by Training on Prompt Sensitive Taskscited by 53
  6. 2025Large-Scale Data Selection for Instruction Tuningcited by 34
  7. 2023SeqGPT: An Out-of-the-box Large Language Model for Open Domain Sequence Understandingcited by 18
  8. 2023Data Management For Training Large Language Models: A Surveycited by 17
  9. 2024SMART: Submodular Data Mixture Strategy for Instruction Tuningcited by 16
  10. 2024Balancing Cost and Effectiveness of Synthetic Data Generation Strategies for LLMscited by 14
  11. 2023Improving Few-Shot Generalization by Exploring and Exploiting Auxiliary Datacited by 13
  12. 2024Scalable Fine-tuning from Multiple Data Sources: A First-Order Approximation Approachcited by 13
14 more
  1. 2023TaskWeb: Selecting Better Source Tasks for Multi-task NLPcited by 11
  2. 2024Compute-Constrained Data Selectioncited by 10
  3. 2025Winning the Pruning Gamble: A Unified Approach to Joint Sample and Token Pruning for Efficient Supervised Fine-Tuningcited by 8
  4. 2025Merge to Mix: Mixing Datasets via Model Mergingcited by 7
  5. 2023DEFT: Data Efficient Fine-Tuning for Pre-Trained Language Models via Unsupervised Core-Set Selectioncited by 6
  6. 2024Instruction Matters: A Simple yet Effective Task Selection for Optimized Instruction Tuning of Specific Taskscited by 6
  7. 2025Slow-Fast Policy Optimization: Reposition-Before-Update for LLM Reasoningcited by 4
  8. 2025RICo: Refined In-Context Contribution for Automatic Instruction-Tuning Data Selectioncited by 2
  9. 2025Data-Efficient Hate Speech Detection via Cross-Lingual Nearest Neighbor Retrieval with Limited Labeled Datacited by 2
  10. 2025Understanding Task Transfer in Vision-Language Modelscited by 2
  11. 2026Beyond Variance: Prompt-Efficient RLVR via Rare-Event Amplification and Bidirectional Pairingcited by 2
  12. 2026Unified Data Selection for LLM Reasoningcited by 2
  13. 2024Threshold Filtering Packing for Supervised Fine-Tuning: Training Related Samples within Packscited by 1
  14. 2025Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behaviorcited by 0