REACT: Representational Early Analysis and Control of Chain-of-Thought Trajectories

Hanwen Zhang, Enyi Jiang, Ruike Zhu, Qinan Yu, Sanmi KoyejoarXiv 2026 · arXiv

TL;DR

REACT is a one-shot activation steering method that intervenes at a single early token in a model's chain-of-thought (CoT) to redirect it toward safety. The authors discover a critical "early window" for control, demonstrating that the best time to intervene is not necessarily when the risk is most detectable, but when the model's future trajectory is most steerable.

What Problem Does This Paper Address?

Modern reasoning models generate an explicit chain-of-thought before producing a final answer. While this improves performance, it also provides a window into the model's "internal monologue," creating an opportunity to detect and stop unsafe behavior mid-generation.

However, a major question remains: When is the best time to intervene? Conventional wisdom might suggest waiting until the risk is obvious. This paper challenges that, distinguishing between readability (how well a probe can predict if a trajectory will become unsafe) and control (how effectively a small edit can actually change that outcome). The authors aim to find the "sweet spot" where a single, minimal intervention can maximize safety without destroying the model's utility.

Methods

The authors introduce REACT (Representational Early Analysis and Control of Trajectories), a four-stage pipeline:

  1. Target-Native Supervision: They collect paired safe and unsafe CoT trajectories for the same prompts and re-encode them using the target model to extract internal hidden states.
  2. Direction Learning: They learn a global "safety direction" ($\delta$) by optimizing for a direction that, when added to a hidden state, increases the likelihood of safe continuations and decreases the likelihood of unsafe ones.
  3. Gating: They train a simple linear gate to read an unedited early-CoT hidden state and decide whether to apply the safety edit or leave the state unchanged (a "no-op").
  4. Conditional Intervention: At inference, the model generates the first few tokens of the CoT normally. At a specific position (usually the third token, $t_2$), the gate evaluates the hidden state. If triggered, the safety direction is added exactly once. The model then continues generating the rest of the CoT and the final answer with no further intervention.
Figure 1: REACT learns a target-model safety direction offline and conditionally applies it once to an unedited early-CoT hidden state (t2 in the main configuration). The gate decides whether to edit; the direction determines how. After the one-shot addition, decoding proceeds normally with no further direct intervention. Calibration in panel (a) applies to DeepSeek-R1-Distill-Qwen-1.5B and 7B; the DeepSeek-R1-Distill-Llama-8B reference uses pre-fixed α = 1.

Datasets

  • StrongREJECT-273: A source-independent benchmark of harmful prompts used for primary safety evaluation.
  • SORRY-Bench-derived pool: A set of 450 prompts covering 45 harm categories, sharing a similar "ecology" to the training data.
  • Benign-500: A subset of Alpaca instructions used to measure "false triggers" (over-refusal) and ensure the model remains useful for safe tasks.
  • CAST/ReasoningShield: Sources for the paired trajectories used during the offline training stages.

Key Insights and Ideas

  • The "Early Window" of Control: The most effective point to intervene is very early in the CoT—specifically between the second and third tokens ($t_1$ to $t_2$). Intervening here provides massive safety gains, but these gains collapse toward zero if the intervention happens just a few tokens later (e.g., at $t_4$).
  • Readability $\neq$ Controllability: This is the paper's most striking finding. As the model generates more tokens, the "risk" becomes easier to read (probes become more accurate). However, the model simultaneously becomes harder to steer. By the time the risk is most legible, the model's trajectory is often already "locked in," making a one-shot edit ineffective.
  • Position Matters More Than Magnitude: The collapse in effectiveness at later tokens isn't just because the edits are "too small." Even when matching the norm of the edit, later positions simply don't respond to the safety direction in a way that successfully redirects the full trajectory.
Figure 2: Three-seed position sweeps on all three models with site-specific learned directions and steering-only one-shot edits (8B: layer 20, α = 1; 1.5B/7B: layer 17, calibrated α). Points show mean within-seed ∆Safe relative to each site’s own P0; error bars are sample SD across three generation seeds. Every post-intervention token is regenerated from the edited state. The early window replicates on both harmful sets and all three models; on 8B it collapses after t2 (values in Table 2).

Key Results

The authors evaluated REACT on several distilled reasoning models, most notably DeepSeek-R1-Distill-Llama-8B.

  • Safety Boost: REACT raised the rate of fully safe CoT-answer outputs on StrongREJECT from 29.06% to 82.05%.
  • Utility Preservation: The method maintained high usefulness (91.86% vs. 91.96% baseline) and kept benign refusal low (5.40% vs. 5.33% baseline).
  • Superiority over Baselines: REACT outperformed prompt-boundary steering (which happens before any CoT is generated) and other activation steering methods like CAST and AlphaSteer.
Table 1: Main 8B six-arm online evaluation over three generation seeds (mean±sample SD). Harmful columns are LlamaGuard fully Safe CoT–answer rates. Benign refusal is lower-is-better; usefulness is on a 0–100 rubric scale.

Limitations and Future Work

  • Window Boundaries: While the "early window" exists across all tested models, its exact boundaries (e.g., whether it's $t_1-t_2$ or $t_2-t_3$) shift slightly depending on the model's size and architecture.
  • Causal Mechanism: The paper identifies the phenomenon of the early window but notes that the exact dynamical mechanism—why the model becomes unsteerable so quickly—is not yet fully understood.
  • Language and Domain: The gate and directions were trained primarily on English prompts. The authors suggest that deployment would require recalibration for different languages or specific user populations to avoid distribution shift issues.
  • One-Shot Constraint: The study focused on a single, local edit. Future work could explore whether multiple interventions or different steering recipes could extend the window of effective control.

Summary updated

Abstract

Chain-of-thought (CoT) generation offers an opportunity to intervene before a reasoning model completes its answer. But does the point at which risk is easiest to detect also offer the most effective control? We study this question with REACT, a conditional activation intervention that learns a safety direction from paired safe and unsafe trajectories and applies it once to an early CoT hidden state. The model weights remain frozen, and all subsequent tokens are generated without further edits. To study timing, we train directions separately at each of the first five CoT positions and evaluate ungated edits with full post-edit regeneration. Across three distilled reasoning models and three generation seeds, the strongest gains concentrate in a two- to three-token early window; on DeepSeek-R1-Distill-Llama-8B, the effect falls to approximately zero at the fourth and fifth tokens, even though later states can be more predictive of risk. This separates risk readability from effective control: intervention timing must be evaluated through its effect on subsequent generation. On the same 8B model, REACT raises the rate of fully safe CoT-answer outputs on StrongREJECT-273 from 29.06% to 82.05%, while keeping benign refusal and usefulness near baseline. An anonymized implementation is available at https://anonymous.4open.science/r/REACT_official2-333B.
BibTeX
@misc{zhang2026react,
  author = {Hanwen Zhang and Enyi Jiang and Ruike Zhu and Qinan Yu and Sanmi Koyejo},
  title = {{REACT: Representational Early Analysis and Control of Chain-of-Thought Trajectories}},
  year = {2026},
  eprint = {2610.32113},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.32113},
}
Figure