跳到正文
arXiv cs.AI· Shailesh Rana·· 2026-10-21AI 评分55

The Shape of Wisdom:语言模型如何在内部状态中收敛到同一答案

The Shape of Wisdom: How Language Models Converge on an Answer

AI 导读

arXiv 论文让 Llama-3.1-8B、Qwen2.5-7B、Gemma-2-9B 和 Llama-3.2-1B 回答 2,256 个有重复答案的事实性问题,发现同答案的问题在各层收敛到状态空间的共享区域即答案质心。答案可读性在网络深度 47%-71% 的某一层跳变;跳变后将错误答案状态移向正确质心可使模型在 83%-97% 的情形给出正确答案,随机移动仅 2%-4%。

正文 · 原文

View PDF HTML (experimental)

Abstract:When a language model answers a factual question, where does its internal state go? We asked four open models (Llama-3.1-8B, Qwen2.5-7B, Gemma-2-9B and Llama-3.2-1B) 2,256 factual questions whose answers recur, such as the country a person is a citizen of. At every layer, we recorded the state from which the answer is produced. Questions that receive the same answer converge on a shared region of state space, which we summarise by its centre, the answer centroid. The answer becomes readable within a single layer. In every model, the share of questions whose state lies nearest its own answer's centroid jumps at one layer, between 47% and 71% of the way through the network. The centroids follow the answer the model gives rather than the question: the centroid of a country learned from questions about people's citizenship also identifies that country in questions about towns and films. The model also uses the centroids. After the jump, moving the state of a wrongly answered question to the right answer's centroid makes the model give the right answer in 83%-97% of cases late in the network, against 2%-4% for a random move of the same size. Before the jump, moves of the same size almost never work. Near misses, in which the model answers wrongly but picks the right option in multiple choice, can be seen from the onset layer, where the right answer's centroid is already among the nearest to the state. This signal is about as informative as the right answer's rank in the model's final output, and more informative than the model's confidence in its reply.
Comments: 10 pages, 5 figures. This version replaces the earlier decision-trajectory analysis with a new study. Code and data: this https URL
Subjects: Artificial Intelligence (cs.AI); Computation and Language (cs.CL); Machine Learning (cs.LG)
Cite as: arXiv:2606.01202 [cs.AI]
  (or arXiv:2606.01202v2 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2606.01202

arXiv-issued DOI via DataCite

Submission history

From: Shailesh Rana [view email]
[v1] Sun, 31 May 2026 12:33:36 UTC (157 KB)
[v2] Tue, 20 Oct 2026 10:43:08 UTC (345 KB)

来源:arXiv cs.AI · arxiv.org