Steer-to-Detect: Probing Hidden Representations for Detection of LLM-Generated Texts

Luxu Liang, Xiang LiNeurIPS 2026

TL;DR

Trying to tell human writing apart from AI-generated text by looking at surface-level word choices is increasingly a losing game. Instead of treating a language model's internal hidden states as fixed features to read out, Steer-to-Detect (S2D) actively nudges a frozen "observer" LLM mid-computation using a single learned vector. This tiny intervention causes human and AI texts to naturally drift apart in geometric space, enabling fast, statistically rigorous detection with tightly controlled false-alarm rates.

What Problem Does This Paper Address?

How do you catch AI-written text in the wild? Active methods like watermarking work great if you control the generator, but fail completely when someone uses an unwatermarked or open-weights model. That leaves passive detection—analyzing the raw text after the fact.

Traditional passive detectors either rely on expensive auxiliary text rewrites or look at final-layer token probabilities, where differences between humans and modern LLMs are vanishingly subtle. Recently, researchers started peeking inside a surrogate "observer" LLM's intermediate layers, where richer behavioral signals hide. However, even in these deeper hidden states, the raw representations of human and AI text still overlap substantially—especially on shorter passages or unfamiliar topics. The authors ask: Instead of passively reading noisy internal states, can we reshape how the observer forms them to amplify the signal?

Methods

S2D repurposes activation steering—a technique usually used to control LLM behavior (like making a model more truthful or less toxic)—for detection. The model weights stay completely frozen; you only learn a single $d$-dimensional steering vector.

Figure 1: Overview of Steer-to-Detect (S2D). Phase I (top row) applies a steering vector to reshape the observer LLM’s hidden representations, enhancing the separation between human-written and LLM-generated text. Phase II (bottom row) scores unseen texts and rejects the null hypothesis when the score exceeds a calibrated threshold.

The framework operates in two stages:

  1. Phase I: Representation Steering & Modeling. You feed text into a frozen observer LLM (e.g., Llama-3.1-8B). At an intermediate layer, you add a learnable vector $\mathbf{v}$ directly to the hidden states. As this perturbation cascades through the remaining frozen Transformer blocks, it reshapes the final geometry. The authors pool the last fraction of tokens across the top $N$ layers and normalize the result onto a unit hypersphere (since Transformer norms are roughly uniform, direction holds the real information). They model human and AI directions using von Mises–Fisher (vMF) distributions—essentially spherical Gaussians—and optimize $\mathbf{v}$ alongside the class mean directions so the two groups push apart.
  2. Phase II: Calibrated Hypothesis Testing. At test time, detection is framed as a classical Neyman–Pearson log-likelihood ratio test—which neatly simplifies to projecting the steered text vector onto the difference between the AI and human mean directions. Crucially, because falsely accusing a student or writer of using AI (a Type-I error) has severe real-world consequences, S2D uses a held-out sample of human text to calibrate the decision threshold, coming with finite-sample mathematical guarantees on false-positive and false-negative rates.

Datasets

No new benchmarks are introduced, though S2D is tested across established and very recent suites:

  • DetectRL: The primary benchmark, spanning four domains prone to LLM misuse: academic writing (arXiv abstracts), news (XSum), creative stories (WritingPrompts), and reviews (Yelp), featuring text from GPT-3.5-Turbo, Claude-Instant, Google-PaLM, and Llama-2-70B.
  • OpAI-Bench: A newer benchmark capturing progressive human-to-AI revision trajectories using recent models like GPT-5.4, GPT-5.4-nano, Gemini-2.5-Flash, and Qwen3-8B.

Key Insights and Ideas

  • Perturbing beats probing: Simply training a classifier on frozen hidden states leaves a distribution overlap of 0.1443 between human and AI scores; injecting a single steering vector mid-network slashes that overlap to 0.0433. Letting the frozen Transformer layers non-linearly process the nudge amplifies separability far better than linear readouts at the end.
  • Beating watermarks on their blind spot: When LLMs generate text at low temperatures ($T=0.3$), randomness drops. Watermarks starve for entropy and weaken, whereas S2D actually gets stronger—passively outperforming dedicated watermark detectors (which know the secret key!) on Green-red and SynthID schemes because deterministic generation leaves sharper distributional artifacts.
  • Observer choice isn't about size or hype: Bigger or newer doesn't mean a better observer. Lightweight OPT-2.7B and Falcon-7B yield near-perfect detection, while Gemma-2-9B and Mistral-7B-v0.3 struggle—because steering can only amplify latent structure that isn't hopelessly entangled to begin with.

Key Results

Across 13 train-free and train-based baselines, S2D consistently hits top or near-top marks using just a single forward pass at inference:

  • Extreme Precision (ID & OOD): Even when restricting the false positive rate to 0.01% (1 in 10,000 human texts flagged), S2D achieves 99.60%–100% True Positive Rate (TPR) on in-distribution generators, and generalizes remarkably well out-of-distribution (e.g., trained on Llama-2, it catches 99.90% of ChatGPT and 88.63% of Claude-Instant texts at 0.01% FPR).
  • Adversarial Grit: Paraphrasing notoriously breaks detectors. Under the DIPPER paraphrasing attack, S2D retains 98.66% AUROC and 84.91% TPR@1%FPR (compared to 73.67% for RepreGuard and just 3.20% for L2D).
Robustness evaluation showing S2D retaining strong detection power under paraphrasing and character/word perturbations.

Limitations and Future Work

  • Document-level only: S2D gives a binary verdict for an entire passage; it cannot yet pinpoint which sentences were AI-written in collaborative human-AI documents.
  • Observer sensitivity: Performance depends heavily on picking a suitable observer LLM using a validation check beforehand.
  • Simple geometry: Modeling each class as a single spherical cluster (vMF) may oversimplify multi-domain data. Future work could explore mixture models, domain adaptation, or multi-vector, non-additive steering interventions.

Summary updated

Abstract

The rapid advancement of large language models (LLMs) has made machine-generated text increasingly difficult to distinguish from human-written text. While recent studies explore leveraging internal representations of language models to uncover deeper detection signals, these raw features often exhibit substantial overlap between classes, limiting their discriminative power. To address this challenge, we propose Steer-to-Detect (\texttt{S2D}), a two-stage framework for detecting LLM-generated text. In the first stage, \texttt{S2D} learns a steering vector that is injected into the hidden states of a frozen observer LLM, producing representations with improved class separability. In the second stage, detection is performed via a hypothesis testing procedure based on the steered representations. We establish finite-sample, high-probability guarantees for Type I and Type II errors, providing a theoretical characterization of the procedure. Empirically, \texttt{S2D} achieves strong and consistent performance across a range of settings, including out-of-distribution scenarios and adversarial perturbations.
BibTeX
@inproceedings{liang2026steer,
  author = {Luxu LIANG and Xiang Li},
  title = {{Steer-to-Detect: Probing Hidden Representations for Detection of LLM-Generated Texts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Hhb63IUx9g},
}
Figure