mlsanityData to 14 Oct 2026

The representation landscape of few-shot learning and fine-tuning in large language models

arXiv 2409.03662 ↗First posted 5 Sep 2024cs.CL cs.LGcited by 15

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

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  4. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  5. 2023Mistral 7Bcited by 3,164
  6. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  7. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  8. 2016Understanding intermediate layers using linear classifier probescited by 1,353
  9. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  10. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
  11. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
  12. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
38 more
  1. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
  2. 2020A Primer in BERTology: What we know about how BERT workscited by 815
  3. 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
  4. 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 716
  5. 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 712
  6. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
  7. 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 561
  8. 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 457
  9. 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
  10. 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 383
  11. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 326
  12. 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 319
  13. 2023Language Models Represent Space and Timecited by 316
  14. 2019Intrinsic dimension of data representations in deep neural networkscited by 282
  15. 2022Prompting GPT-3 To Be Reliablecited by 260
  16. 2022DyLoRA: Parameter Efficient Tuning of Pre-trained Models using Dynamic Search-Free Low-Rank Adaptationcited by 233
  17. 2019Visualizing and Measuring the Geometry of BERTcited by 216
  18. 2021How Many Data Points is a Prompt Worth?cited by 198
  19. 2023TheoremQA: A Theorem-driven Question Answering datasetcited by 192
  20. 2017What do Neural Machine Translation Models Learn about Morphology?cited by 166
  21. 2024The Geometry of Categorical and Hierarchical Concepts in Large Language Modelscited by 159
  22. 2021All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational Qualitycited by 156
  23. 2023Does Circuit Analysis Interpretability Scale? Evidence from Multiple Choice Capabilities in Chinchillacited by 149
  24. 2023Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluationcited by 136
  25. 2023The geometry of hidden representations of large transformer modelscited by 112
  26. 2023Sparse Low-rank Adaptation of Pre-trained Language Modelscited by 96
  27. 2022The Geometry of Multilingual Language Model Representationscited by 95
  28. 2018Evaluating Layers of Representation in Neural Machine Translation on Part-of-Speech and Semantic Tagging Taskscited by 56
  29. 2024Emergence of a High-Dimensional Abstraction Phase in Language Transformerscited by 56
  30. 2018Deep RNNs Encode Soft Hierarchical Syntaxcited by 34
  31. 2020Asking without Telling: Exploring Latent Ontologies in Contextual Representationscited by 34
  32. 2020Hierarchical nucleation in deep neural networkscited by 31
  33. 2021A Cluster-based Approach for Improving Isotropy in Contextual Embedding Spacecited by 27
  34. 2023Bridging Information-Theoretic and Geometric Compression in Language Modelscited by 26
  35. 2022Exploring The Landscape of Distributional Robustness for Question Answering Modelscited by 23
  36. 2022DADApy: Distance-based Analysis of DAta-manifolds in Pythoncited by 22
  37. 2024Comparing Specialised Small and General Large Language Models on Text Classification: 100 Labelled Samples to Achieve Break-Even Performancecited by 18
  38. 2018Automatic topography of high-dimensional data sets by non-parametric Density Peak clusteringcited by 15

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 7; 2026: 6.

15 papers.

Sort:

By area: