Skip to content
AI Learning Ground Start learning

Research ·

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

A new paper proposes the Superposition Linearity Hypothesis: LLMs combine distinct text-stream inputs linearly, producing a superposition of next-token distributions that can be disentangled to generate two coherent continuations in a single forward pass.

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

Researchers report that despite their non-linear components, large language models behave linearly in a specific sense: when inputs from distinct text streams are linearly combined, the model outputs a superposition of the individual next-token distributions. They call this the Superposition Linearity Hypothesis. In practice, averaging the embeddings of two unrelated texts leads the model to predict the next token for both streams simultaneously.

The paper presents evidence that superposition is intrinsic to the Transformer architecture rather than an emergent product of training, and that it tends to diminish as pretraining progresses. However, the authors show that linearity can be substantially restored through lightweight fine-tuning, which reduces the divergence between the predicted next-token distribution and the average of the individual distributions.

They also introduce a guided decoding procedure that disentangles superposed outputs, enabling simultaneous generation of two coherent continuations from a single forward pass.

For builders, this suggests a cheap, architecture-level route to parallel generation from one forward pass: since pretraining erodes the effect, a light fine-tune plus guided decoding could enable multi-stream outputs or efficiency tricks without heavier machinery, though the paper does not report specific performance figures or benchmarks.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#research