Hugging Face Daily Papers论文
你的 Transformer 能同时持有两个想法:LLM 中线性叠加的证据
该研究提出“叠加线性假设”,证明尽管大语言模型依赖高度非线性组件,但当不同文本流的输入进行线性组合时,模型输出的是各个独立下一个词分布的叠加。作者通过实验表明,这种叠加性是 Transformer 架构的内生属性,而非训练产生的涌现现象。
这篇是正式发表的长论文,站内提供中文解读,全文请到原文阅读 PDF。
- +2
Abstract
While Large Language Models (LLMs) rely on highly non-linear components, in this work we demonstrate that they exhibit fundamental linearity: when inputs from distinct text streams are linearly combined, the model outputs a superposition of the individual next-token distributions. We term this the Superposition Linearity Hypothesis. We provide evidence that superposition is an intrinsic property of the Transformer architecture rather than an emergent consequence of training; in fact, we observe that it tends to diminish as pretraining progresses. However, we demonstrate that linearity can be substantially restored through lightweight fine-tuning, significantly reducing the divergence between the predicted next-token distribution and the average of the individual next-token distributions. Finally, we introduce a guided decoding procedure that disentangles superposed outputs, enabling the simultaneous generation of two coherent continuations from a single forward pass.
Your LLM can hold two thoughts at once: when you average the embeddings of two unrelated texts, the model predicts the next token for both streams at the same time. This superposition comes from the architecture itself, since pretraining erodes it and a light fine-tune restores it. We show how to separate it again and decode two continuations from a single forward pass.