Papers
arxiv:2606.12629

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

Published on Oct 19
· Submitted by
Varun Reddy Nalagatla
on Jun 18
Authors:
,

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

Paper author Paper submitter

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

image

image

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

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

Sign up or log in to comment

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

Cite arxiv.org/abs/2606.12629 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2606.12629 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2606.12629 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.