← All entries
Paper2026#1073

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

Summary

arXiv 2609.29845 (cs.CL/cs.AI; submitted 2026-09-24; CC BY-NC-ND 4.0). Averaging embeddings of two unrelated streams makes standard decoder-only LLMs (Pythia, Qwen2.5, Llama, OLMo, Gemma) put both streams' next tokens in the mixed distribution (often top-10 ~30–40% without FT). Superposition is strongest at init and degrades over Pythia pretraining; lightweight FineWeb KL self-distillation (<0.025% of pretrain size) restores it (e.g. Pythia-2.8B KL 1.86→0.27; top-5 recovery ≈30%→>60%; content-token median rank 284→5) at a single-stream quality cost. Geometric-mean obstruction makes naive sampling mix streams; Joint Contrastive guided decoding (large mixed + small-model contrastive logits) raises mixed LAMBADA mean accuracy (e.g. Llama-3.2-3B 0.182→0.430) and Separate mode claims ~2× throughput vs sequential with ~½ KV per stream. No public code on abs/HF at catalog time. Distinct from Token Superposition (id 543) and Superposed Decoding (2405.18400).

Venue
arXiv
Publisher
arXiv
Source
arxiv
Access
free
License
CC BY-NC-ND 4.0
License family
Non-commercial
Language
en
Purpose
Show token-wise embedding averages of two texts yield a superposition of next-token distributions (Superposition Linearity Hypothesis), that this intrinsic property fades in pretraining but restores with light fine-tuning, and that guided decoding can recover both streams from one forward pass.
Scale
Pythia/Qwen2.5/Llama/OLMo/Gemma families; TinyStories + FineWeb/FineWeb-Edu; L=32–512; FT ~200k FineWeb steps; Joint Contrastive with 0.5B/1B/160M guides; LAMBADA + TinyStories LLM-as-judge
Domain
interpretability; linear superposition; embedding averaging; dual-stream decoding; transformer inference
Used for
dual-stream parallel inference; KV-cache footprint reduction; intrinsic linearity / residual-stream analysis
Time period
arXiv 2026-09-24 (v1); HF Daily Papers / HuggingPapers X 2026-09-25; cataloged 2026-09-26
Author type
academia / research (affiliations not listed on abs; submitter Anton Razzhigaev on HF)
Added
Sep 26, 2026
Verified
Sep 26, 2026
Research status
done

From the source

Published
Sep 24, 2026
arXiv categories
cs.CL, cs.AI
Citations
0
References
19

Fetched Oct 3, 2026 from arXiv, Semantic Scholar. These numbers change; the curated fields above do not come from here.

Abstract (from arXiv)

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.

Tags

superposition-linearityembedding-averagedual-streamguided-decodingjoint-contrastivepythiaqwenllamafinewebarxiv-2609.29845huggingpapersinterpretability

Topics

interpretability; linear superposition; embedding averaging; dual-stream decoding; transformer inference

Research notes

  • Hudson user-fed 2026-09-26. X https://x.com/HuggingPapers/status/2103518124905570503 (@HuggingPapers DailyPapers; created 2026-09-25T16:12:57Z; note_tweet two thoughts / embedding average). Self-reply 2103518135089254621 Paper t.co → https://paperswithcode.co/paper/2609.29845; canonical https://arxiv.org/abs/2609.29845; HF https://huggingface.co/papers/2609.29845 (~63 upvotes; submitted by Anton Razzhigaev). Photo media_key 3_2103518122552504320; API no alt_text. Dedup clean vs id 543 Token Superposition and status id. No GitHub on abs/HF. Dump /workspace/curator/research/llm-superposition-huggingpapers-2103518124905570503-20260926/. Local CSV only; no Sheets/Discord.

Similar entries