Large language models reorganize representational geometry during in-context learning
Large language models reorganize their internal representational geometry during in-context learning, a process that increases the separability of task-relevant information, according to a paper submitted to arXiv on 16 May 2026 [1]. The study examines how large language models (LLMs) adapt to novel tasks from in-context examples without parameter updates, a capability known as in-context learning (ICL) [1]. Prior work demonstrated that ICL can implement specific algorithms and identified key circuits supporting the behavior, but the role of the high-dimensional representation space remained unclear [2]. The authors hypothesized that ICL depends on the successful online untangling of task-relevant representations, a perspective borrowed from neuroscience where classification is viewed as the untangling of neural representations [2]. To test this, they studied how LLMs classify in-context examples whose labels are defined by the model's own internal representations with known structure [1]. The results showed that ICL performance correlates systematically with the representational structure of the underlying classification task [2]. Successful ICL was accompanied by geometric reorganization that increased online separability, meaning the model reshapes its internal representation space to better distinguish between categories as it processes examples [1]. The paper further finds that LLM behavior is well described by a prototype-like algorithm that integrates evidence while reshaping representations to support classification [2]. These findings offer a geometric account of ICL in pretrained LLMs and establish representational geometry as a mechanistic constraint on the process [1]. The work quantifies the gap between what pretrained representations afford and what in-context learning can exploit, suggesting that the initial geometry of the model's representation space sets limits on how effectively it can adapt to new tasks on the fly [2]. The paper was submitted on 16 May 2026 to arXiv, a preprint server for research in computer science and related fields [1].
research-paper
Background sources we checked (4)
- arxiv.org ↗ Large language models (LLMs) exhibit remarkable flexibility: they can adapt to novel tasks from in-context examples without any parameter updates, a capability known as in-context learning (ICL). Prior work on synthetic tasks has shown that ICL can implement specific algorithms, …
- en.wikipedia.org ↗ Gottfried Wilhelm Leibniz (or Leibnitz; 1 July 1646 [O.S. 21 June] – 14 November 1716) was a German polymath active as a mathematician, philosopher, scientist, and diplomat who is credited, alongside Isaac Newton, with the creation of calculus in addition to many other branches o…
- en.wikipedia.org ↗ Academic art, academicism, or academism, is a style of painting and sculpture produced under the influence of European academies of art. This method extended its influence throughout the Western world over several centuries, from its origins in Italy in the mid-16th century, unti…
- en.wikipedia.org ↗ This article records new taxa of fossil mammals of every kind described during the year 2024, as well as other significant discoveries and events related to paleontology of mammals that occurred in 2024.…