← Back to Paper Radar

Your Transformer Can Hold Two Thoughts at Once: Evidence of Linear Superposition in LLMs

Pavel Tikhonov, Anton Korznikov, Matvey Mikhalchuk, Nikita Dragunov, Temurbek Rahmatullaev, Polina Druzhinina, Anton Razzhigaev, Ivan Oseledets, Elena Tutubalina
2026

Reading guide · Based on sections of the original paper

The authors argue that pretrained decoder-only LLMs partly preserve both streams' next-token predictions when fed token-wise averaged embeddings of two unrelated texts. They report that this property weakens during pretraining, can be restored by self-distillation, and can be partially decoded into two continuations.

Why read this

Practitioners exploring multiplexed or parallel inference, or Transformer linearity, should read it to judge how far naive embedding averaging gets and what it costs.

What the authors found

  • On Qwen2.5-3B (FineWeb-Edu, T=128), base-model survival under embedding averaging comes mostly from predictable positions, about 65% of tokens, where median rank is 6. On content positions the median rank falls to 284. The authors concede that the aggregate recovery figures are dominated by predictable tokens. Predictable positions are robust if attention shape is preserved; content positions are not.
  • Self-distillation toward the average of the frozen teacher's two outputs had these effects: on Pythia-2.8B, mixed-input KL fell from 1.86 to 0.27; on Qwen2.5-3B, content-token median rank improved from 284 to 5. It also hurt single-stream quality, with LAMBADA dropping from 0.544 to 0.357 on Pythia-2.8B and from 0.602 to 0.460 on Qwen2.5-3B. 4 Improving Linearity with Finetuning
  • Joint Contrastive decoding, guided by a small model, raised mean LAMBADA accuracy on the superposed pass from 0.182 to 0.43 on Llama-3.2-3B. That remains below the 0.54 of the 1B guide model running alone. The authors frame this result as a proof of concept. Joint Contrastive decoding.

Main limitation

The '2× throughput' claim holds only against sequential decoding. The guided decoder ran slower than plain batch-2 inference (52.4 vs 81.4 tokens/s on Llama-3B+1B) and, per the paper's Table 5, was less accurate than the small guide model alone. Experiments used contexts of at most 512 tokens. G.5 Throughput and Memory

Where to start

Setup. · Tables 2–4 split predictable from content tokens and compare donor and permutation attention patching. They show what embedding mixing actually preserves beyond the frequency prior.

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 \textit{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.

Generated automatically from paper sections on 2026-11-28.