The representation landscape of few-shot learning and fine-tuning in large language models
Not on the map. Why?
Abstract (arXiv)
In-context learning (ICL) and supervised fine-tuning (SFT) are two common strategies for improving the performance of modern large language models (LLMs) on specific tasks. Despite their different natures, these strategies often lead to comparable performance gains. However, little is known about whether they induce similar representations inside LLMs. We approach this problem by analyzing the probability landscape of their hidden representations in the two cases. More specifically, we compare how LLMs solve the same question-answering task, finding that ICL and SFT create very different internal structures, in both cases undergoing a sharp transition in the middle of the network. In the first half of the network, ICL shapes interpretable representations hierarchically organized according to their semantic content. In contrast, the probability landscape obtained with SFT is fuzzier and semantically mixed. In the second half of the model, the fine-tuned representations develop probability modes that better encode the identity of answers, while the landscape of ICL representations is characterized by less defined peaks. Our approach reveals the diverse computational strategies developed inside LLMs to solve the same task across different conditions, allowing us to make a step towards designing optimal methods to extract information from language models.
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 50 of its 65 references that are in the map. First posted on arXiv 5 Sep 2024.
Builds on
50 of 65 references.
References · 50
- 2023GPT-4 Technical Reportcited by 18,396
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2023Mistral 7Bcited by 3,164
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2016Understanding intermediate layers using linear classifier probescited by 1,353
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
38 more
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 716
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 712
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
- 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 561
- 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 457
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 383
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 326
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 319
- 2023Language Models Represent Space and Timecited by 316
- 2019Intrinsic dimension of data representations in deep neural networkscited by 282
- 2022Prompting GPT-3 To Be Reliablecited by 260
- 2022DyLoRA: Parameter Efficient Tuning of Pre-trained Models using Dynamic Search-Free Low-Rank Adaptationcited by 233
- 2019Visualizing and Measuring the Geometry of BERTcited by 216
- 2021How Many Data Points is a Prompt Worth?cited by 198
- 2023TheoremQA: A Theorem-driven Question Answering datasetcited by 192
- 2017What do Neural Machine Translation Models Learn about Morphology?cited by 166
- 2024The Geometry of Categorical and Hierarchical Concepts in Large Language Modelscited by 159
- 2021All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational Qualitycited by 156
- 2023Does Circuit Analysis Interpretability Scale? Evidence from Multiple Choice Capabilities in Chinchillacited by 149
- 2023Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluationcited by 136
- 2023The geometry of hidden representations of large transformer modelscited by 112
- 2023Sparse Low-rank Adaptation of Pre-trained Language Modelscited by 96
- 2022The Geometry of Multilingual Language Model Representationscited by 95
- 2018Evaluating Layers of Representation in Neural Machine Translation on Part-of-Speech and Semantic Tagging Taskscited by 56
- 2024Emergence of a High-Dimensional Abstraction Phase in Language Transformerscited by 56
- 2018Deep RNNs Encode Soft Hierarchical Syntaxcited by 34
- 2020Asking without Telling: Exploring Latent Ontologies in Contextual Representationscited by 34
- 2020Hierarchical nucleation in deep neural networkscited by 31
- 2021A Cluster-based Approach for Improving Isotropy in Contextual Embedding Spacecited by 27
- 2023Bridging Information-Theoretic and Geometric Compression in Language Modelscited by 26
- 2022Exploring The Landscape of Distributional Robustness for Question Answering Modelscited by 23
- 2022DADApy: Distance-based Analysis of DAta-manifolds in Pythoncited by 22
- 2024Comparing Specialised Small and General Large Language Models on Text Classification: 100 Labelled Samples to Achieve Break-Even Performancecited by 18
- 2018Automatic topography of high-dimensional data sets by non-parametric Density Peak clusteringcited by 15
Built on by
Citing papers per year: 2024: 2; 2025: 7; 2026: 6.
15 papers.
Sort:
By area:
- 2025Shared Global and Local Geometry of Language Model Embeddingscited by 36
- 2025The Geometry of Reasoning: Flowing Logics in Representation Spacecited by 21
- 2024Geometric Signatures of Compositionality Across a Language Model's Lifetimecited by 16
- 2025Geometry of Decision Making in Language Modelscited by 9
- 2025Layerwise Recall and the Geometry of Interwoven Knowledge in LLMscited by 6
- 2025From Compression to Expression: A Layerwise Analysis of In-Context Learningcited by 6
- 2025Specialization after Generalization: Towards Understanding Test-Time Training in Foundation Modelscited by 5
- 2024The Narrow Gate: Localized Image-Text Communication in Native Multimodal Modelscited by 4
- 2025Ontology Learning with LLMs: A Benchmark Study on Axiom Identificationcited by 4
- 2026Tracing the complexity profiles of different linguistic phenomena through the intrinsic dimension of LLM representationscited by 3
- 2026Abstraction Induces the Brain Alignment of Language and Speech Modelscited by 2
- 2026Characterizing Human Semantic Navigation in Concept Production as Trajectories in Embedding Spacecited by 2
- 2026Manifold Bandits: Bayesian Curriculum Learning over the Latent Geometry of Large Language Models18 Jun 2026
- 2026On the Persistent Effects of Lexicality in Large Language Models1 Jun 2026
- 2026Rethinking Intrinsic Dimension Estimation in Neural Representations22 Apr 2026
- 2026Characterizing Human Semantic Navigation in Concept Production as Trajectories in Embedding Space5 Feb 2026
- 2026Abstraction Induces the Brain Alignment of Language and Speech Models3 Feb 2026
- 2026Tracing the complexity profiles of different linguistic phenomena through the intrinsic dimension of LLM representations7 Jan 2026
- 2025Ontology Learning with LLMs: A Benchmark Study on Axiom Identification5 Dec 2025
- 2025Geometry of Decision Making in Language Models25 Nov 2025
- 2025The Geometry of Reasoning: Flowing Logics in Representation Space10 Oct 2025
- 2025Specialization after Generalization: Towards Understanding Test-Time Training in Foundation Models29 Sep 2025
- 2025From Compression to Expression: A Layerwise Analysis of In-Context Learning22 May 2025
- 2025Shared Global and Local Geometry of Language Model Embeddings27 Mar 2025
- 2025Shared Global and Local Geometry of Language Model Embeddingscited by 36
- 2024Geometric Signatures of Compositionality Across a Language Model's Lifetimecited by 16
- 2025Geometry of Decision Making in Language Modelscited by 9
- 2025Layerwise Recall and the Geometry of Interwoven Knowledge in LLMscited by 6
- 2025Specialization after Generalization: Towards Understanding Test-Time Training in Foundation Modelscited by 5
- 2024The Narrow Gate: Localized Image-Text Communication in Native Multimodal Modelscited by 4
- 2025Ontology Learning with LLMs: A Benchmark Study on Axiom Identificationcited by 4
- 2026Tracing the complexity profiles of different linguistic phenomena through the intrinsic dimension of LLM representationscited by 3
- 2026Abstraction Induces the Brain Alignment of Language and Speech Modelscited by 2
- 2026Characterizing Human Semantic Navigation in Concept Production as Trajectories in Embedding Spacecited by 2
- 2026On the Persistent Effects of Lexicality in Large Language Modelscited by 1
- 2026Rethinking Intrinsic Dimension Estimation in Neural Representationscited by 0
- 2026On the Persistent Effects of Lexicality in Large Language Models1 Jun 2026
- 2026Rethinking Intrinsic Dimension Estimation in Neural Representations22 Apr 2026
- 2026Characterizing Human Semantic Navigation in Concept Production as Trajectories in Embedding Space5 Feb 2026
- 2026Abstraction Induces the Brain Alignment of Language and Speech Models3 Feb 2026
- 2026Tracing the complexity profiles of different linguistic phenomena through the intrinsic dimension of LLM representations7 Jan 2026
- 2025Ontology Learning with LLMs: A Benchmark Study on Axiom Identification5 Dec 2025
- 2025Geometry of Decision Making in Language Models25 Nov 2025
- 2025Specialization after Generalization: Towards Understanding Test-Time Training in Foundation Models29 Sep 2025
- 2025Shared Global and Local Geometry of Language Model Embeddings27 Mar 2025
- 2025Layerwise Recall and the Geometry of Interwoven Knowledge in LLMs15 Feb 2025
- 2024The Narrow Gate: Localized Image-Text Communication in Native Multimodal Models9 Dec 2024
- 2024Geometric Signatures of Compositionality Across a Language Model's Lifetime2 Oct 2024