The Signs Were Always There: Training-Free Detection and Control in Raw Transformer Dimensions

Varun Reddy Nalagatla, Madhavi Evana, Yiwen Zhang
6/10/2026
cs.LGcs.AI
transformer-attention

No confident code implementation found for this paper.

Abstract

Because of polysemanticity and superposition, it has been challenging to attribute token understanding and generation to specific neurons or dimensions. Yet the information in the hidden states is so rich that the signs of the residual stream can surface semantic content in early layers and control what the model generates.

Show full abstract

We call this sign-pattern-driven interpretation approach Bag of Dims (BoD). Using BoD, we read each dimension of the residual stream individually. Since dimensions carry almost no shared information, a concept is simply the set of dimensions that agree in sign. This lets us discover tens to hundreds of thousands of concepts per model without training or labels. A concept is detectable as early as the first few layers, at AUC above 0.9 across the model families we tested, well before the answer it resolves to becomes legible. BoD can therefore screen harmful prompts at prefill, without a trained guard model. The prediction capability of the signs is strong: setting all magnitudes to unity preserves 56-94% top-5 next-token accuracy through the language model head. Flipping a concept's sign pattern during the forward pass suppresses its logits, and a separate training-free intervention steers a chosen concept into generated text. The BoD method depends on the transformers' per-dimension sign pattern, present across the residual stream, attention, and MLP subspaces, rather than on any particular architecture, making it applicable to a wide range of models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{nalagatla2026signs,
  title  = {The Signs Were Always There: Training-Free Detection and Control in Raw Transformer Dimensions},
  author = {Varun Reddy Nalagatla and Madhavi Evana and Yiwen Zhang},
  year   = {2026},
  eprint = {2606.12629},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.12629v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.12629.svg)](https://codeofpaper.com/paper/2606.12629)

Discussion