TAIA: Large Language Models are Out-of-Distribution Data Learners
Not on the map. Why?
Abstract (arXiv)
Fine-tuning on task-specific question-answer pairs is a predominant method for enhancing the performance of instruction-tuned large language models (LLMs) on downstream tasks. However, in certain specialized domains, such as healthcare or harmless content generation, it is nearly impossible to obtain a large volume of high-quality data that matches the downstream distribution. To improve the performance of LLMs in data-scarce domains with domain-mismatched data, we re-evaluated the Transformer architecture and discovered that not all parameter updates during fine-tuning contribute positively to downstream performance. Our analysis reveals that within the self-attention and feed-forward networks, only the fine-tuned attention parameters are particularly beneficial when the training set's distribution does not fully align with the test set. Based on this insight, we propose an effective inference-time intervention method: Training All parameters but Inferring with only Attention (trainallInfAttn). We empirically validate trainallInfAttn using two general instruction-tuning datasets and evaluate it on seven downstream tasks involving math, reasoning, and knowledge understanding across LLMs of different parameter sizes and fine-tuning techniques. Our comprehensive experiments demonstrate that trainallInfAttn achieves superior improvements compared to both the fully fine-tuned model and the base model in most scenarios, with significant performance gains. The high tolerance of trainallInfAttn to data mismatches makes it resistant to jailbreaking tuning and enhances specialized tasks using general data. Code is available in urlhttps://github.com/pixas/TAIALLM.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 69 of its 90 references that are in the map. First posted on arXiv 30 May 2024.
Builds on
69 of 90 references.
References · 69
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
38 more
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Qwen Technical Reportcited by 3,344
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2020GLU Variants Improve Transformercited by 1,804
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,267
- 2023A Survey on Evaluation of Large Language Modelscited by 1,242
- 2023PaLM 2 Technical Reportcited by 1,162
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
- 2016ConceptNet 5.5: An Open Multilingual Graph of General Knowledgecited by 1,067
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 878
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
- 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 792
- 2024DoRA: Weight-Decomposed Low-Rank Adaptationcited by 758
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 729
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
- 2023C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Modelscited by 708
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 699
- 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 694
- 2023Instruction Tuning with GPT-4cited by 686
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 639
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 625
- 2023Instruction Tuning for Large Language Models: A Surveycited by 623
- 2022MedMCQA : A Large-scale Multi-Subject Multi-Choice Dataset for Medical domain Question Answeringcited by 543
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 487
- 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 427
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
50 most cited of 69 All 69 (JSON)
Built on by
Citing papers per year: 2024: 2; 2025: 5; 2026: 1.
8 papers.
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 51
- 2025DETAM: Defending LLMs Against Jailbreak Attacks via Targeted Attention Modificationcited by 10
- 2025SplitLoRA: Balancing Stability and Plasticity in Continual Learning Through Gradient Space Splittingcited by 10
- 2024MedCare: Advancing Medical LLMs through Decoupling Clinical Alignment and Knowledge Aggregationcited by 4
- 2025Mining Useful General Data for Low-Resource Domain Adaptationcited by 4
- 2025Revisiting LoRA through the Lens of Parameter Redundancy: Spectral Encoding Helpscited by 2
- 2025DICE: Structured Reasoning in LLMs through SLM-Guided Chain-of-Thought Correctioncited by 2
- 2026D-TAIA: Domain-Aware LLM Adaptation for Multi-Task Predictive Process Monitoringcited by 0
- 2026D-TAIA: Domain-Aware LLM Adaptation for Multi-Task Predictive Process Monitoring28 Aug 2026
- 2025Mining Useful General Data for Low-Resource Domain Adaptation10 Nov 2025
- 2025DICE: Structured Reasoning in LLMs through SLM-Guided Chain-of-Thought Correction10 Oct 2025
- 2025Revisiting LoRA through the Lens of Parameter Redundancy: Spectral Encoding Helps20 Jun 2025
- 2025SplitLoRA: Balancing Stability and Plasticity in Continual Learning Through Gradient Space Splitting28 May 2025
- 2025DETAM: Defending LLMs Against Jailbreak Attacks via Targeted Attention Modification18 Apr 2025
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspective22 Jul 2024
- 2024MedCare: Advancing Medical LLMs through Decoupling Clinical Alignment and Knowledge Aggregation25 Jun 2024
Similar, not cited
Close in wording, no citation either way
- 2024Scalable Fine-tuning from Multiple Data Sources: A First-Order Approximation Approach
- 2023Dynamics of Instruction Fine-Tuning for Chinese Large Language Models
- 2022Large Language Models Can Self-Improve
- 2025Optimising Language Models for Downstream Tasks: A Post-Training Perspective
- 2023Tuning LayerNorm in Attention: Towards Efficient Multi-Modal LLM Finetuning
- 2025Beyond QA Pairs: Assessing Parameter-Efficient Fine-Tuning for Fact Embedding in LLMs
- 2024Navigating the Landscape of Large Language Models: A Comprehensive Review and Analysis of Paradigms and Fine-Tuning Strategies
- 2025Efficient Response Generation Strategy Selection for Fine-Tuning Large Language Models Through Self-Aligned Perplexity