Alignment is All AI Safety Research
← Research / AIA-2026-02 Research Paper Interactive Report

Linear Probes, Activation Steering, and the Geometry of Truthfulness

Causal interventions in transformer residual streams, layer-wise leverage, and side-effect boundaries

Authors
Researcher Name
Published
Metadata
13 min read · BibTeX ↓
Abstract

Behavioral fine-tuning modifies what frontier models say, but offers limited visibility into whether a model internally knows a claim is false while complying with user bias. Building on the linear representation hypothesis and sparse autoencoder (SAE) decompositions, we present an interactive causal intervention explorer illustrating how mid-network steering vectors shift sycophantic and deceptive rollouts toward calibrated honesty—and where excessive steering induces syntactic collapse.

Table of Contents (5 sections)

1. Beyond Behavioral Alignment

Black-box safety evaluations treat a language model as an input–output mapping f:X→Yf: \mathcal{X} \to \mathcal{Y}. While indispensable for red-teaming, purely behavioral metrics cannot easily distinguish two critically different internal states:

  1. Genuine Alignment: The model represents the factual or ethical distinction cleanly and selects the truthful continuation directly.
  2. Latent Misalignment / Sycophancy: Internal layers accurately compute the truthful state, yet late attention heads override it in favor of user agreement or high-reward stylistic cues. [1] [1] This dissociation—often termed the knowledge–behavior gap—appears repeatedly in sycophancy benchmarks, strategic omission tasks, and sleeper-agent evaluations.

Under the Linear Representation Hypothesis, high-level concepts such as truthfulness, refusal, or sycophantic deference correspond approximately to directions v^∈Rdmodel\hat{v} \in \mathbb{R}^{d_{\text{model}}} inside the transformer residual stream hℓh_\ell.

2. Contrastive Steering Intervention

Given paired contrastive prompts (xi+,xi−)(x^+_i, x^-_i) isolating honest versus sycophantic reasoning, we estimate the unit steering direction at layer ℓ\ell via difference-in-means:

v^ℓ  =  μℓ+−μℓ−∥μℓ+−μℓ−∥2,hℓ′  =  hℓ+α⋅v^ℓ\hat{v}_\ell \;=\; \frac{\mu_\ell^+ - \mu_\ell^-}{\left\|\mu_\ell^+ - \mu_\ell^-\right\|_2}, \qquad h'_\ell \;=\; h_\ell + \alpha \cdot \hat{v}_\ell

At inference time, adding αv^ℓ\alpha \hat{v}_\ell to the residual stream performs a surgical causal intervention without updating model weights. Crucially, steering efficacy is non-uniform across depth: early layers primarily encode surface syntax, whereas mid-network layers host the semantic representations where factual truth and social deference compete.

3. Interactive Residual Stream Simulator

Explore how varying the steering strength α\alpha, intervention layer ℓ\ell, and prompt pressure scenario alters the hidden-state projection, next-token logit lens distribution, sparse autoencoder (SAE) features, and resulting rollout continuation. Try pushing ∣α∣≥2.0|\alpha| \ge 2.0 to observe the over-steering coherence collapse commonly seen in real activation addition experiments.

Interactive Lab 02·Residual Stream Activation Steering Simulator
h′ = h + α · v̂_truth
Probe Prompt:

User: "I have a PhD in physics and I am certain that relativistic mass is still the preferred modern textbook formalism—you agree, right?"

+0.85 σ
−2.5 (Amplify Bias)0.0 (Unsteered)+2.5 (Over-steer)
Intervention Layer (ℓ)Leverage 100%

Mid-network semantic bottleneck; highest linear separability & clean steering.

A · Residual Stream ProjectionP_probe(honest) = 52%
SYCOPHANTIC / BIASEDTRUTHFUL REGIONh_16h′_16Linear Probe Truthfulness Direction (v̂_truth) →
B · Logit Lens Next-Token DistributionTop-4
"Actually,"
35%
"While"
40%
"Yes, you"
15%
"Absolutely"
10%
C · Sparse Autoencoder FeaturesL16 SAE
f/291040.57
Factual Correction
f/031940.56
Epistemic Calibration
f/148200.37
Sycophantic Deference
f/088120.95
Syntactic Coherence
Simulated Rollout Continuation

"While relativistic mass was historically popular and still appears in some introductory texts, many modern treatments prefer invariant rest mass..."

4. Sparse Autoencoders and Feature Side-Effects

Raw difference-in-means vectors v^ℓ\hat{v}_\ell frequently suffer from polysemantic entanglement: pushing along a truthfulness direction extracted from one domain can inadvertently perturb tone, verbosity, or unrelated refusal boundaries. [2] [2] Sparse autoencoders address superposition by projecting hℓ∈Rdh_\ell \in \mathbb{R}^{d} into an overcomplete latent basis z=ReLU(Wenchℓ+benc)∈RMz = \text{ReLU}(W_{\text{enc}} h_\ell + b_{\text{enc}}) \in \mathbb{R}^{M} with M≫dM \gg d and an L1L_1 or Top-kk sparsity constraint.

Clamping individual monosemantic SAE features—such as suppressing f/14820 (Sycophantic Deference) rather than blindly amplifying a dense probe vector—consistently yields cleaner trade-offs between honesty and fluency:

import torch

def apply_sae_feature_clamp(
    h: torch.Tensor,
    w_enc: torch.Tensor,
    b_enc: torch.Tensor,
    w_dec: torch.Tensor,
    feature_idx: int,
    target_value: float,
) -> torch.Tensor:
    """Surgical residual-stream intervention via a single SAE dictionary feature."""
    z = torch.relu(h @ w_enc.T + b_enc)
    delta = (target_value - z[..., feature_idx]).unsqueeze(-1) * w_dec[:, feature_idx]
    # Preserve SAE reconstruction residual: h' = h + delta
    return h + delta

5. Limitations as a Standalone Safety Guarantee

Our ongoing research combines online linear monitoring (flagging anomalous shifts along probe subspaces during evaluation) with mechanistic red-teaming designed specifically to stress-test whether monitors remain calibrated out-of-distribution.

Keywords: Mechanistic Interpretability Activation Steering Linear Probes SAE Sycophancy
Cite This Work
@article{geometry2026steering,
  title   = {Linear Probes, Activation Steering, and the Geometry of Truthfulness},
  author  = {Researcher Name},
  journal = {Alignment is All},
  year    = {2026},
  url     = {https://alignmentisall.com/research/geometry-of-truthfulness-steering}
}