cd /news/artificial-intelligence/steer-on-a-sphere-geometric-control-… Β· home β€Ί topics β€Ί artificial-intelligence β€Ί article
[ARTICLE Β· art-98158] src=github.com β†— pub= topic=artificial-intelligence verified=true sentiment=Β· neutral

Steer on a Sphere: Geometric Control of Transformer Outputs

A new preprint by N. Trillard, 'Steer on a Sphere: Geometric Control of Transformer Outputs,' shows that a single tangent step on the sphere of hidden states reaches 91–98% of tokens at rank 1 across four model families, with a guaranteed 100% rank improvement. The method, which requires weight access but no training or data, can bias generation toward any token direction and identifies self-reinforcing 'pit' tokens that induce repetition loops, enabling defensive encoding against automated scraping.

read2 min views1 publishedAug 15, 2026
Steer on a Sphere: Geometric Control of Transformer Outputs
Image: Michielbdejong (auto-discovered)

Every transformer layer uses RMSNorm, which constrains hidden states near a sphere of radius

The LM head gives every token a direction on that sphere. A single tangent step reaches 91–98% of them at rank 1, and never lowers any token's rank.

  Hidden state h
       β”‚
       β–Ό
  g_t = W_t βˆ’ (W_tΒ·Δ₯)Δ₯    ← tangent toward token t
       β”‚
       β–Ό
  h' ← normalize on sphere
       β”‚
       β–Ό
  logits β†’ 91–98% chance t ranks #1

Why this matters: with weight access, generation can be biased toward any token direction β€” no training, no data, no retraining.

Some tokens are self-reinforcing: feeding them to the model induces indefinite repetition.

Token Triggers a loop of... Real-world example
0 (digit)
000000...
Phone number 000-000-0000
NULL byte \x00\x00\x00...
Invisible page footer
cut
cut cut cut...
Repeated delimiter
ere
ereereere...
Common substring

Defensive encoding: put a pit trigger at the end of a page and a scraper that terminates on it falls into a repetition loop. Invisible to humans (NULL bytes), it degrades automated scraping without affecting human readers.

Measurement Result
Tokens reachable at rank 1 91–98% across 4 model families
Rank improvement guaranteed 100% (never lowers)
Cow tipping permanence 15/15 steps locked
Defensive encodings verified 3 (NULL, cut, phone)
Edge of chaos clustering 13 architectures mapped
.
β”œβ”€β”€ paper/
β”‚   β”œβ”€β”€ paper_steer.pdf      # compiled 5-page preprint
β”‚   β”œβ”€β”€ paper_steer.tex      # LaTeX source (compiles with pdflatex)
β”‚   └── steeronasphere.png   # the cow
β”œβ”€β”€ pit_engine.py            # β˜… reverse-engineer pits + defensive encoding
β”œβ”€β”€ steer_sphere_proof.py    # sphere steering reproduction
β”œβ”€β”€ sphere_test_suite.py     # batch geometry verification
β”œβ”€β”€ safety_toolkit.py        # Ξ» diagnostics + steer-away
β”œβ”€β”€ requirements.txt         # pip dependencies
β”œβ”€β”€ CITATION.cff             # machine-readable citation
└── LICENSE                  # CC BY 4.0

Reverse-engineers self-consistent tokens ("pits") from model weights and encodes them into data.

python pit_engine.py --model Qwen/Qwen2.5-7B-Instruct --scan
python pit_engine.py --model Qwen/Qwen2.5-7B-Instruct --encode data.txt

PitReverseEngineer

β€” scans the vocabulary, computess(T) = softmax(WΒ·h_T)[T]

, tests 15-step permanence, finds minimal triggers.PitEncoder

β€” frames data chunks with pit triggers so any truncation boundary falls into a fixed-point loop.

Reproduces the tangent traversal: computes g_t = W_t βˆ’ (W_tΒ·Δ₯)Δ₯

, steps, renormalizes, and hooks the hidden state to steer the first generated token. Produces the GSM8K results.

Batch-checks the sphere geometry across cached models: per-layer norms (Proof 1), attention contraction (Proof 2), Lyapunov Ξ» (Proof 3), and steering (Proof 5).

Geometric safety tools: Lyapunov health check, fine-tuning monitor, sphere steer-away, and per-zone stability report.

πŸ“„ paper/paper_steer.pdf β€” full preprint πŸ“

β€” LaTeX source

paper/paper_steer.tex

Cite as:

Trillard, N. (2026).

Steer on a Sphere: Geometric Control of Transformer Outputs. Zenodo.[10.5281/zenodo.21954871]

Preprint. The geometric picture is approximate, not a theorem. Steering is a white-box traversal primitive. CC BY 4.0.

── more in #artificial-intelligence 4 stories Β· sorted by recency
── more on @n. trillard 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/steer-on-a-sphere-ge…] indexed:0 read:2min 2026-08-15 Β· β€”