atlas

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

The Missing Alignment Link of In-context Learning on Sequences

ICML 2025 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems

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.

Shows LLMs fail to in-context learn input-output alignments in synthetic Seq2Seq tasks and proposes ICA-Tune, LoRA fine-tuning of attention parameters using in-context example sequences, which yields alignment emergence in middle layers and better sample efficiency and OOD generalization.

Problem

In-context learning of unseen sequence-to-sequence tasks fails for longer inputs because LLMs cannot infer input-output alignments in context, leading to incomplete induction heads.

Approach

Builds a synthetic PCFG+PFA Seq2Seq generator with a latent alignment function, shows interleaving gold alignments restores ICL, and proposes ICA-Tune: fine-tuning only attention parameters (via LoRA) with next-token loss on in-context example sequences so alignment emerges in middle layers and feeds induction heads.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Interleave each output token with its gold-aligned input token in the promptLLMs performing ICL on synthetic Seq2Seq tasks · Synthetic Seq2Seq, m=8, c=1accuracy (%): 20.00 -> 91.25; 31.25 -> 98.75; 36.25 -> 100.0; 51.25 -> 82.50Helped
Interleave aligned x and y tokens in the promptLlama-3.2-1B · Synthetic Seq2Seqaccuracy (%): 27.50 -> 100.00Helped
Interleave aligned x and y tokens in the promptLlama-3.2-3B · Synthetic Seq2Seqaccuracy (%): 30.63 -> 95.94Helped
Interleave aligned x and y tokens in the promptLlama-3.2-8B · Synthetic Seq2Seqaccuracy (%): 36.25 -> 98.44Helped
Reduce pre-aligned prompt examples from 16 to 14 while retaining alignment (ablation)Llama-3.2 models · Synthetic Seq2Seqaccuracy (%): 27.50 -> 99.38; 30.63 -> 95.00; 36.25 -> 99.38Helped
Fine-tune attention parameters using in-context examples (ICA-Tune) rather than standard per-example fine-tuningLLaMA 3 8B · Synthetic Seq2Seq, in-distribution validationaccuracy: ICA-Tune achieves almost 100% accuracy with just 50 labeled instances; standard fine-tuning does not reach that accuracyHelped
Fine-tune using in-context examples instead of independently sampled examplesLLaMA 3 8B · Synthetic Seq2Seq, OOD validationaccuracyHelped
Use a smaller alignment parameter λ (less monotonic alignments) (ablation)ICA-Tune · Synthetic Seq2Seq, m=8, c=1convergence speed: 200 steps were required as against just 25 for the monotonic caseHurt
Fine-tune only middle attention layer 13 instead of all layers (ablation)ICA-Tune on LLaMA 3 8B · Synthetic Seq2Seq, monotonic alignmentaccuracyHelped
Use standard per-example fine-tuning instead of ICA-Tune (ablation)LLaMA 3 8B · Synthetic Seq2Seqalignment accuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Seq2Seq tasks generated from PCFG and PFA with alignment function

Benchmarks: synthetic Seq2Seq tasks (in-distribution and permuted-vocabulary OOD validation)

Metrics: prediction accuracy alignment accuracy IC-lookup accuracy

Baselines: standard prompting ICL standard fine-tuning pre-aligned prompting oracle

Builds on: induction heads LoRA IBM alignment models (lexical translation)

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