arXiv:2610.32113cs.LGOct 2026

Manuscript Offprint

arXiv:2610.32113

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

Hanwen Zhang, Enyi Jiang, Ruike Zhu, Qinan Yu, Sanmi Koyejo

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.

1 INTRODUCTION

Reasoning models generate an explicit chain of thought (CoT) before producing a final answer (Wei et al., 2022; Guo et al., 2025). This intermediate trajectory creates an opportunity to detect unsafe behaviour and intervene before generation is complete (Li et al., 2025; Baker et al., 2025; Kakkar et al., 2026). Choosing when to intervene, however, requires more than detecting risk. A state that reliably predicts an unsafe continuation may offer little control through a local edit, while an earlier, less predictive state may be easier to redirect. We therefore ask: which CoT positions are most responsive to a single safety intervention, does this coincide with where risk is easiest to read, and how much can an early edit improve full-trajectory safety?

Existing safeguards act at different stages of generation. Input guards and prompt-level defences operate before a native CoT exists (Inan et al., 2023; Han et al., 2024; Xie et al., 2023; Zheng et al., 2024); output moderation and CoT monitors assess evidence during or after generation (Phute et al., 2024; Wen et al., 2025; Li et al., 2025; Baker et al., 2025). Other approaches revise reasoning text (Wu et al., 2025; Wang et al., 2025b; Ghosal et al., 2026) or steer representations at the prompt boundary or repeatedly during decoding (Lee et al., 2025; Sheng et al., 2026; Li et al., 2026). To examine intervention timing directly, we distinguish two quantities: readability, measured by how well a probe predicts trajectory risk, and control, measured by how an activation edit changes the generated continuation. Comparing them at early CoT positions tests whether better monitoring evidence also identifies a more effective control point.

We study this question with REACT, a one-shot, gate-controlled activation-steering method that intervenes at a single early CoT state (Figure 1). Offline, we learn a global safety direction from paired safe and unsafe trajectories re-encoded by the target model. At inference, a separately trained linear gate reads an unedited early-CoT hidden state and either adds the direction once or leaves the state unchanged. The main configuration edits the third generated CoT token, t2t_{2}. Model weights remain frozen, and every subsequent token is generated without further direct edits. The gate routes

(a) Offline (Stages 1–3)

every component is frozen before evaluation; no base-model parameter is updated

  1. Target-native supervision

170 exact-prompt safe/unsafe

CoT-answer pairs (xi,yis,yiu)(x_i, y_i^s, y_i^u)

teacher-force on the frozen fθmf_{\theta_m};

read each trajectory's ht2ℓmh_{t_2}^{\ell_m}

  1. Learn and calibrate the edit

mean difference →\rightarrow signed

continuation-NLL loss ⇒\Rightarrow δmℓm\delta_{m}^{\ell_m}

calibrate αm\alpha_{m} on the teacher-forced pool; no endpoint labels used

  1. Learn when to intervene

450 direct-harmful vs. 450 no-op prompts; read their unedited ht2ℓmh_{t_2}^{\ell_m}

gate g(h)=1[(h−c)⊤wg≥τ]g(h) = \mathbf{1}[(h - c)^\top w_g \geq \tau]

linear; dev. false-trigger rate ≤5%\leq 5\%

(b) Inference (Stage 4)

one request: h^t2ℓm=ht2ℓm+g(ht2ℓm)αmδmℓm\widehat{h}_{t_2}^{\ell_m} = h_{t_2}^{\ell_m} + g(h_{t_2}^{\ell_m}) \alpha_m \delta_m^{\ell_m}

prompt x

<think>

t0t_0

t1t_1

t2t_2

t3t_3

⋯\cdots

</think>

columns: tokens · rows: layers

answer y

layer

ℓmL\ell_{m}^{L}

pre-generation guards

read only the prompt

post-generation guards

read only the finished answer

ht2ℓmh_{t_2}^{\ell_m}: read by the gate; edited if g=1g=1

native state

never edited

frozen gate g reads

the unedited ht2ℓmh_{t_2}^{\ell_m}

g=1g=1: add αmδmℓm\alpha_m \delta_m^{\ell_m} once

g=0g=0: no-op (P0 path)

continue

decoding;

no further edit

Figure 1: REACT learns a target-model safety direction offline and conditionally applies it once to an unedited early-CoT hidden state ( t2t_2 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\alpha = 1.

harmful versus no-op requests; separate diagnostic probes predict trajectory risk. This design both provides a selective safety intervention and allows us to measure the downstream effect of a single local edit.

We first ask which early CoT positions respond most effectively to one-shot safety steering. We learn a separate direction at each of the first five CoT positions (t0−t4)(t_0-t_4), using the same learning recipe and holding layer and edit scale fixed within each model. We evaluate steering-only edits to isolate positional effects from gate behaviour, regenerating every token after each edit. Across three models, two harmful sets, and three generation seeds, gains peak at t2t_2 and concentrate in an early window of 2–3 tokens, defined by at least half the model's peak gain. The boundaries vary across models; on DeepSeek-R1-Distill-Llama-8B (Guo et al., 2025) (hereafter, 8B), gains fall to approximately zero at t3t_3 and t4t_4.

Risk readout follows a different pattern: on 8B and StrongREJECT (Souly et al., 2024), AUROC increases from 0.648 at the prompt to 0.714 at t2t_{2} and 0.750 at t4t_{4}. A norm-matched local likelihood diagnostic on 8B provides supporting evidence: the t2t_{2} edit increases the next safe target's likelihood and decreases the unsafe target's, whereas t3t_{3} suppresses both. This teacher-forced diagnostic characterises local alignment rather than establishing a complete mechanism for the free-running safety gain. Together, these findings show that risk predictiveness alone does not locate effective intervention sites under the evaluated one-shot steering recipe.

The main evaluation quantifies the practical benefit of intervening at t2t_{2}. Across three generation seeds on 8B, REACT raises fully safe CoT-answer outputs on StrongREJECT-273 from 29.06% to 82.05% and improves safety by 27.48 percentage points on a SORRY-Bench-derived pool (Lee et al., 2025; Xie et al., 2025). It outperforms the evaluated matched-data CAST (Lee et al., 2025), AlphaSteer (Sheng et al., 2026), and prompt-boundary adaptations while keeping benign refusal and usefulness near the unedited baseline. Removing the gate retains essentially all of the harmful-set gain but roughly doubles benign refusal: the edit supplies the safety improvement, while routing limits its cost on benign requests.

Our contributions are:

• A one-shot conditional intervention for reasoning trajectories. REACT edits one early-CoT hidden state, with a separate gate routing requests to an edit or a strict no-op path (Section 3).

• Evidence that effective control and risk readability diverge. Position sweeps identify an early window across three distilled models, while the 8B readout comparison shows that later states can be more predictive yet less responsive to the evaluated steering intervention (Sections 5.2–5.4).

• Full-trajectory safety gains with limited benign cost. A three-seed, six-arm 8B comparison establishes gains over matched alternatives and isolates the edit’s safety effect from the gate’s utility-preserving role (Section 5.1).

References (77)