Research map / Architectures and efficiency / Attention and transformers
Learning Task Representations from In-Context Learning
Baturay Saglam, Xinyang Hu, Zhuoran Yang, Dionysis Kalogerias, Amin Karbasi
Yale University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use LTV instead of no task vector on AG News zero-shot | GPT-J · AG News zero-shot | accuracy (%): 0.0 -> 46.9 | Improved |
| use LTV instead of FV on Sentiment Analysis few-shot | GPT-J · Sentiment Analysis few-shot | accuracy (%): 69.5 -> 94.5 | Improved |
| use LTV instead of FV on NER-location zero-shot | GPT-J · NER-location zero-shot | accuracy (%): 37.9 -> 27.3 | Hurt |
| add LTV to the prompt, across 15 language tasks with zero- and few-shot | GPT-J · 15 NLP tasks, 30 evaluations | accuracy: highest and statistically best in 29 of 30; statistically superior to all others in 19 of 30 | Improved |
| fine-tune with LoRA (rank 8, about 196K parameters) instead of LTV (96 parameters) | GPT-2 · functional regression (longer than training length) | squared error | No clear effect |
| train LTV with prompt length 1.37x training length (linear) or 1.25x (ReLU net) (ablation) | GPT-2 · functional regression | squared error | Improved |
| extend LTV training prompt length beyond that threshold (ablation) | GPT-2 · functional regression | squared error | No clear effect |
| apply ICV to regression | GPT-2 · functional regression | squared error | Hurt |
| apply FV to linear regression | GPT-2 · linear regression | squared error | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- Transformer — TranSFormer: Slow-Fast Transformer for Machine Translation (ACL 2023) · better on 5 of 5 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in training dynamics of in-context learning
Do the training-dynamics results on in-context learning hold for deep softmax transformers on real data?
- Experiments are on small synthetic tasks, not real LLMs. · 20 papers state it
- Proofs cover only one-layer, linear or otherwise simplified attention. · 16 papers state it
- Theory assumes idealized data such as orthonormal features. · 9 papers state it
Closest papers by meaning
- Capturing In-Context Learning Dynamics with Task Operators (NeurIPS 2026 · similarity 0.93)
- Where does In-context Learning Happen in Large Language Models? (NeurIPS 2024 · similarity 0.92)
- In-Context Learning with Representations: Contextual Generalization of Trained Transformers (NeurIPS 2024 · similarity 0.92)
- Emergence and Effectiveness of Task Vectors in In-Context Learning: An Encoder Decoder Perspective (ICML 2025 · similarity 0.92)
- Do different prompting methods yield a common task representation in language models? (NeurIPS 2025 · similarity 0.91)
- Transformers are Minimax Optimal Nonparametric In-Context Learners (NeurIPS 2024 · similarity 0.90)
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.