The Signs Were Always There: Training-Free Detection and Control in Raw Transformer Dimensions
Abstract
A sign-pattern-based interpretation method called Bag of Dims extracts thousands of concepts from individual residual-stream dimensions to detect harmful prompts early and steer generation without training.
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. 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.
Community
TL;DR: you can read interpretable features out of transformer hidden states with
no trained SAE and no probe, straight from the standard basis.
The idea is to treat each dimension as an independent register, its sign carries
content, its magnitude carries confidence. A "feature" is then just a subset of
dims with a consistent sign pattern, read by counting sign agreements. One forward
pass, zero training.
Look at the figures in the paper, they directly triggered the idea to look the raw dims.
Some results that surprised me:
- Sign alone (all magnitudes set to 1) preserves 60–93% of top-5 next-token accuracy
- 175 semantic categories deteted from a single-token cache with zero labels;
a trained probe adds only +0.018 AUC and converges to axis-aligned weights - Same structure appears in vision (DINOv2, ViT) and audio (AST), looks like a
property of transformer training, not language - Flipping a feature's signs mid-forward-pass causally suppresses the concept
It's deliberately simple, and simple enough that you can hand the paper to a coding agent, and reproduce in ~15-20Mins on a model of your choice on your laptop, I kept the code aways it would be better testament of the methodology both if it work or fails
Would love scrutiny — especially from folks deep in SAEs
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Architecture Determines Observability in Transformers (2026)
- fmxcoders: Factorized Masked Crosscoders for Cross-Layer Feature Discovery (2026)
- Perplexity Can Miss SAE Feature Damage Under Quantization (2026)
- Gated Subspace Inference for Transformer Acceleration (2026)
- Polymorphism Is Rotation: Operational Mechanistic Interpretability from a Two-Layer Transformer to Pythia-70m (2026)
- Where does Absolute Position come from in decoder-only Transformers? (2026)
- Sign-Aware Gated Sparse Autoencoders: Modeling Anticorrelated Features with Bi-Jump-ReLU Activations (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2606.12629 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper

