atlas

Research map / Large language models / Instruction and fine-tuning

TAIA: Large Language Models are Out-of-Distribution Data Learners

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TAIA, which fine-tunes all parameters but at inference keeps only the fine-tuned self-attention weights and reverts FFN to pretrained, improving LLM generalization when fine-tuning data is out-of-distribution.

Problem

Fine-tuning LLMs on domain-mismatched or out-of-distribution (OOD) data degrades downstream performance and causes catastrophic forgetting, which is a problem in data-scarce specialized domains.

Approach

Train all parameters (attention and FFN) during fine-tuning, but at inference discard the FFN updates and keep only the fine-tuned attention weights, reusing pretrained FFN. Attention updates carry instruction-following gains while FFN updates disrupt pretrained knowledge when data is OOD; training FFN still provides the non-linearity needed for learning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train all parameters, then infer with updated attention only instead of vanilla fine-tuning inferenceQwen1.5-1.8B LoRA · Alpaca-GPT4; seven-task averageaverage score: 32.98 -> 35.21Helped
Train all parameters, then infer with updated attention only instead of vanilla fine-tuning inferenceQwen1.5-7B LoRA · CoT-Collection; seven-task averageaverage score: 33.91 -> 48.57Helped
Train all parameters, then infer with updated attention only instead of vanilla fine-tuning inferenceLLaMA3-8B LoRA · Alpaca-GPT4; seven-task averageaverage score: 51.99 -> 54.54Helped
Train all parameters, then infer with updated attention only instead of vanilla fine-tuning inferenceLLaMA3-8B MoLoRA · Alpaca-GPT4; seven-task averageaverage score: 52.71 -> 54.32Helped
Train all parameters, then infer with updated attention only instead of vanilla fine-tuning inferenceLLaMA3-8B LoRA · CoT-Collection; seven-task averageaverage score: 47.00 -> 51.74Helped
Train all parameters, then infer with updated attention only instead of vanilla fine-tuning inferenceLLaMA3-8B MoLoRA · CoT-Collection; seven-task averageaverage score: 48.25 -> 53.24Helped
Retain only attention updates at inference rather than vanilla inferenceQwen1.5-1.8B LoRA · Medical Collection; six-task averageaverage score: 33.44 -> 44.37Helped
Train only attention parameters instead of training all parameters and keeping only attention updates at inference (ablation)TAIA · Medical Collection; six-task averageaverage score: 44.37 -> 35.12Hurt
Train only FFN parameters instead of training all parameters and keeping only attention updates at inference (ablation)TAIA · Medical Collection; six-task averageaverage score: 44.37 -> 33.86Hurt
Replace attention-focused training/inference with FFN-focused training/inference (ablation)TAIA · Medical Collection; six-task averageaverage score: 44.37 -> 39.10Hurt
Train only attention parameters (ablation)Qwen1.5-1.8B LoRA · OpenMath; six-task averageaverage score: 40.55 -> 38.88Hurt
Train only FFN parameters (ablation)Qwen1.5-1.8B LoRA · OpenMath; six-task averageaverage score: 40.55 -> 38.88Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Alpaca-GPT4 Alpaca-GPT4-zh CoT-Collection OpenMath MMedBench CMExam MedMCQA XSum SQuAD v2.0 ShareGPT-52K Anthropic red team Advbench

Benchmarks: MATH BBH CommonsenseQA LogiQA SVAMP MMedBench MMLU CMMLU C-Eval SQuAD v2.0 XSum AlpacaEval

Metrics: accuracy exact match average score attack success rate ROUGE win rate

Baselines: Vanilla fine-tuning L2 regularization EWC Self-Distill LoRACL TOA TOF TAIF Base model

Builds on: LoRA Mixture-of-LoRA RoPE Elastic Weight Consolidation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy