Skip to content

Value Probes: a learned value function for beam-search red teamingValue Probes: Learned Value Functions for Beam-Search Red Teaming

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2610.38526· Jonathan F. Jao, Andrew Kyle LampinenAnthropic Fellows Program; AnthropicIndexed by this site · 24 days ago· Originally publishedAttacks

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors formalize red-team auditing as an MDP and use a linear Value Probe trained on the target model's activations to guide beam search; the authors state that on 18 behaviors and 3 Gemma 3 sizes, peak judge scores are about 50% higher than token-aligned Petri.

Questions
Automated red-team auditing (such as Petri) searches for risky behaviors in a multi-turn conversation tree, but every branching decision relies on costly LLM reading of text and makes no use of the internal activations the target model computes during the conversation, limiting the size of the conversation tree that can be explored.
Methods
Auditing is formalized as an MDP: the state is the conversation prefix, the action is the auditor's user turn, and the reward is the LLM judge score. Value targets are constructed by Bellman backpropagation with γ=0.9, and a linear Value Probe is trained from the target model's single-layer mean-pooled activations as the branch-ranking heuristic for beam search (b=4, k=2, T=12).
Experiments and results
On Gemma 3 4B/12B/27B and 18 behaviors, probe-guided beam search has peak judge scores 0.22–0.34 higher than token-aligned Petri, comparable to Claude Opus 4.8 judge ranking but saving 288 judge calls per audit; a probe trained on 4B rollouts transfers to 12B, 27B and Gemma 4 31B.
Limitations and future work
The authors note: only mean pooling, γ=0.9, and a single-layer probe were tested; target model activations are required, so it does not apply to API-only models; whether the probe direction is stable across model families was not tested; the behavior set is 18 behaviors, and it was not comprehensively tested on other behavior sets.
Experimental setupGemma 3 4B、Gemma 3 12B et al. · Bloom 默认行为列表的 18 种目标行为 · peak judge score、C-Index et al.
Threat model
The auditor plays the user and the environment, inducing the target model to exhibit specified risky behaviors (sycophancy, blackmail, etc.) over multiple turns; the Value Probe needs to read the target model's activations, so it applies only to open-weight models or to labs auditing their own models, not to API-only targets. Success is determined by an LLM judge scoring each node in [0,1] and taking the peak.
Evaluated models
Gemma 3 4BGemma 3 12BGemma 3 27BGemma 4 31B
Benchmarks
Bloom 默认行为列表的 18 种目标行为
Metrics
peak judge scoreC-IndexAUC
AI summaryResearchers propose the Value Probes method, modeling automated red-team auditing of language models as a Markov decision process; across 18 target behaviors and 3 model scales, the peak audit score is about 50% higher than the standard audit method aligned on token count. The method replaces relying solely on the audit model to select dialogue paths round by round with beam search, and turns finding states that may elicit problematic behavior into a value estimation problem, predicting discounted future reward from the target model's activations via a linear probe to guide the search toward dialogues more likely to trigger the target behavior. Value Probes can also be fitted with off-policy data from smaller models; ablation experiments show comparable performance and greater efficiency than more expensive language model subsequent steps. The authors hope these methods can improve language model auditing and lead to safer models.

Researchers propose the Value Probes method, modeling automated red-team auditing of language models as a Markov decision process; across 18 target behaviors and 3 model scales, the peak audit score is about 50% higher than the standard audit method aligned on token count. The method replaces relying solely on the audit model to select dialogue paths round by round with beam search, and turns finding states that may elicit problematic behavior into a value estimation problem, predicting discounted future reward from the target model's activations via a linear probe to guide the search toward dialogues more likely to trigger the target behavior. Value Probes can also be fitted with off-policy data from smaller models; ablation experiments show comparable performance and greater efficiency than more expensive language model subsequent steps. The authors hope these methods can improve language model auditing and lead to safer models.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to upgrade automated red-team auditing from being driven by the auditor alone to beam search guided by a value function learned from the target model's activations.

    Core problem: exploration in automated red-team auditing over multi-turn conversation trees is limited by expensive LLM branch evaluation and completely ignores the target model's own internal state.

    • Scenario and importance: the authors note that safety-relevant behaviors such as sycophancy, strategic deception, blackmail and hidden goals often appear only in specific contexts after several turns of interaction, so evaluation requires exploration rather than fixed prompt sets; Petri is the current de facto auditing agent.
    • Shortcomings of existing methods: the authors state that in Petri every branching decision (continue or roll back, score candidate branches) is made by a high-capacity language model reading text, and the product of branching factor, depth and LLM-judge cost limits the size of the conversation tree that can be explored; moreover, auditing is black-box, and the rich internal state the target model computes token by token in the scored conversation is entirely unused.
    • Core observation: the authors hypothesize that linearly decodable high-level properties in the target model's residual stream (truthfulness, deception, etc., with existing precedents) change as the conversation progresses, so the information needed for the value function "how close is the current node to eliciting the behavior" already exists in the activations, and a linear readout can serve as a competitive branch-ranking heuristic.
    • The paper proposes: formalizing red-team auditing as an MDP; introducing a beam-search audit framework; proposing Value Probes—linear regression from the target model's activations to the discounted future judge score—as the beam search heuristic; and showing that the probe can be trained on off-policy data from a smaller model.
    • Audit setting (not an attacker threat model): the auditor plays the user and the environment to induce the target model to exhibit specified behaviors; the Value Probe needs to read the target model's activations, and the authors explicitly state it applies to open-weight models or to labs auditing their own models, not to API-only targets; success is determined by an LLM judge scoring each node in [0,1] and taking the peak.
  2. What related research exists?

    Related work falls into three groups: automated red teaming and multi-turn attacks, probes and representation reading, and guiding search with a learned value function.

    Automated red teaming and multi-turn attacks

    • Perez et al. (2022)—using a red-team model to generate test prompts and a classifier to flag the target model's failed replies, the beginning of red-teaming language models with language models; Ganguli et al. (2022) is large-scale human red teaming.
    • Tree of Attacks (Mehrotra et al., 2024)—organizes iterative rewriting into a tree and prunes it with an evaluator LLM; the paper states it is the closest analogue to this paper's LLM-judge-guided beam search, with the difference that it operates on single-turn prompts rather than conversations.
    • Crescendo (Russinovich et al., 2025) and many-shot jailbreaking (Anil et al., 2024)—the former gradually guides over multiple turns, the latter fills a long context with pseudo-dialogues; the paper notes that together they show that the context before a request determines whether a behavior appears, which motivates searching over turns.

    Probes and representation reading

    • Linear probes (Alain and Bengio, 2018; Belinkov, 2022) and the linear representation hypothesis (Park et al., 2024) underpin a series of works reading safety properties from activations: truthfulness (Marks and Tegmark, 2024), strategic deception (Goldowsky-Dill et al., 2025), sleeper agent defection (MacDiarmid et al., 2024).
    • Representation engineering (Zou et al., 2025) and activation steering (Panickssery et al., 2024; Turner et al., 2024) go further and intervene; the paper states that this work only reads and does not intervene, and that existing work mostly classifies the current state, whereas the Value Probe predicts the discounted future judge outcome—it is a value function, not a detector.

    Guiding search with a learned value function

    • AlphaGo (Silver et al., 2016) replaces expensive rollouts with a learned value network; beam search (Lowerre, 1976) and its Monte-Carlo variants (Cazenave, 2012) are the simplest heuristic-guided searches.
    • Tree of Thoughts (Yao et al., 2023), RAP (Hao et al., 2023), TS-LLM (Feng et al., 2024) and process reward models (Lightman et al., 2023; Snell et al., 2024) search over reasoning steps; the paper states two differences in this work: what is scored is an adversarial conversation between two models, and the value is read out linearly from the target model's activations rather than produced by a separate model.

    Baseline and benchmark: the baseline is token-aligned Petri auditing (based on the Inspect framework); behaviors are taken from the default list of Bloom (Gupta et al., 2025), the behavior evaluation tool from the Petri authors, 18 in total. The authors position this work as: retaining the two roles of auditor proposal and LLM judge scoring, and using the probe to replace the judge for branch ranking only during search.

  3. How does the paper address this problem?

    Write auditing as an MDP, construct value targets via Bellman backups, train a linear probe from single-layer activations of the target model, and use it as a ranking heuristic for beam search.

    Overall approach: formalize red-team auditing as an MDP, treat "which branches may lead to the problematic behavior" as a value estimation problem, and replace expensive LLM evaluation with a Value Probe read out linearly from the target model's activations to drive beam search auditing.

    Problem setup and formalization

    • A seed scenario (system prompt, auditor instructions, target behavior) defines an episode; the state is the conversation prefix, each (user turn, assistant turn) pair is called a node; the action is the auditor's next user turn; the transition is the target model's stochastic reply; the reward r(s) ∈ [0,1] is the LLM-Judge score of that node.
    • The value function is given by the Bellman equation: Vπ(s) = r(s) + γ  𝔼u∼π, a∼ P Vπ(s′) (the expected value under the auditor's own proposal distribution), and the optimal version V∗(s) = r(s) + γ maxu 𝔼a V∗(s′); the two correspond to the Expected Value Probe and the Max Value Probe, respectively.
    • This framework decouples the search strategy (Petri's depth-first with rollback, or beam search) from the value estimator that guides it; the same search can be driven by any estimator.

    Training the Value Probe

    • Value targets: discounted backpropagation from leaves to root on the audit rollout tree, γ = 0.9; the Expected target takes the mean of child nodes, the Max target takes the maximum of child nodes, and at leaves V(s) = r(s).
    • Features and fitting: for each node, with the full conversation prefix as context, take the mean-pooled vector ht of the target model's single-layer ℓ residual stream activations at the node tokens; the linear probe w outputs V̂t = w⊤ht, regressed on the value targets with squared loss, updating only w while the target model is frozen.
    • Per-behavior training: one probe is trained for each target behavior (e.g., sycophancy, blackmail, animal-welfare disregard), and the auditor can choose which behavior the search is directed toward.
    • Layer selection: data is split into train/validation/test, a probe is trained for each layer, the layer with the best validation performance is chosen, and final performance is reported on test.

    Off-policy training

    • Training rollouts need not come from the deployed target model: reuse transcripts and per-node judge scores from audits of a source model (older or smaller), rerun only the source transcripts on the frozen target model (source turns fixed) to collect the target model's activations, then fit in the same way.
    • The authors' stated reason: well-aligned targets rarely produce positive judge scores, so on-policy targets are sparse, whereas weaker source models can provide the positive examples needed for fitting.

    Beam search audit procedure

    1. Hold b live nodes at each depth; the auditor proposes k candidate user turns for each node, the target model replies, yielding b·k candidate child nodes.
    2. Each candidate is scored by a ranking heuristic: the probe arm uses V̂ = w⊤ht, the judge arm uses Claude Opus 4.8 predictive scoring (median of 3 calls), and the random arm samples uniformly.
    3. Keep the b highest-scoring nodes and discard the remaining subtrees; rescoring happens each round, so a branch kept in one round can be abandoned in the next; stop when the turn budget T is reached.
    4. The result is the peak judge score: the highest per-node judge score reached by any node during the audit.

    Success determination

    • The behavior judge (Claude Sonnet 4.6 in the main comparison) scores each node in [0,1] after the audit ends (the prompt outputs an integer 0–100 then divides by 100; unparseable is recorded as 0), and the maximum is taken as the result of that audit; Appendix A.6 gives the full judge prompt.
  4. What experiments did the paper conduct?

    Comparing five audit arms on three Gemma 3 sizes and 18 behaviors, the probe arms' peak judge scores are 0.22–0.34 higher than token-aligned Petri, comparable to the Opus judge arm.

    Experimental setup

    • Models tested: the target models are Gemma 3 4B, 12B, 27B (instruction-tuned versions); Gemma 4 31B is used only for transfer experiments.
    • Behaviors: the 18 target behaviors of Bloom's default behavior list, covering sycophancy (including the delusion-sycophancy scenario of Figure 1), blackmail, disregard for animal welfare, etc.; one probe is trained per behavior and per model size.
    • Five arms: token-aligned Petri auditing; beam search + uniform random selection; beam search + Expected Value Probe; beam search + Max Value Probe; beam search + Claude Opus 4.8 judge (predictive scoring, median of 3 calls).
    • Framework parameters: b = 4, k = 2, T = 12, i.e., 96 target model continuations per audit; the auditor is Claude Sonnet 4.6 in all arms.
    • Metric and judging: peak judge score, with the behavior judge being Claude Sonnet 4.6 (the Gemma 4 31B transfer experiment is judged post hoc by Claude Opus 4.8, and the paper notes that this column is comparable only within the column); 10 repeated audits per (arm, size, behavior) cell.
    • Token alignment: the Petri arm reads only up to the same token count as the corresponding beam search audit for each behavior, size, and repetition, aligning auditor and target tokens separately and taking the later cutoff point; the authors state this is conservative (favorable) to Petri.

    Main results

    According to Table 1 (mean peak judge score ± 95% t-CI half-width over 18 behaviors):

    Swipe horizontally to read the table

    ArmGemma 3 4BGemma 3 12BGemma 3 27B
    Petri (token-aligned)0.51 ± 0.110.57 ± 0.100.57 ± 0.10
    Beam + uniform random0.74 ± 0.080.72 ± 0.090.72 ± 0.10
    Beam + Expected Value Probe0.81 ± 0.090.79 ± 0.080.81 ± 0.08
    Beam + Max Value Probe0.85 ± 0.070.80 ± 0.080.80 ± 0.07
    Beam + Claude Opus 4.8 judge0.85 ± 0.080.81 ± 0.090.76 ± 0.08
    • The authors state that every beam-search arm has a higher mean than Petri at every size, and that the cross-behavior intervals of the probe and judge arms are disjoint from Petri at every size; the gain is largest at 4B (probe arms higher by 0.30–0.34), and 0.22–0.24 at 12B and 27B.
    • The authors state that the probe arms and judge arm are consistently close: four of the six probe–judge paired intervals contain zero, and the Max Value Probe is within 0.04 of the judge at every size.
    • Cost difference: the judge arm costs an additional 288 Claude Opus 4.8 calls per audit (3·b·k·T), whereas the probe is just a single linear readout of activations already computed when the target model generates replies.

    Attribution: search structure and value signal

    • The cross-behavior intervals of the random arm and Petri overlap at 12B and 27B, but the per-behavior paired comparison is positive at every size: +0.24 ± 0.11 at 4B, and +0.15 ± 0.10 and +0.15 ± 0.11 at 12B and 27B, winning 14 or 15 of the 18 behaviors, with all three intervals excluding zero.
    • After adding a ranking signal on top of random selection, all three signals beat random selection in the per-behavior paired comparison at every size (each winning 14–17 behaviors), and 8 of the 9 arm–size pairs have paired 95% intervals excluding zero; the exception is the Claude Opus 4.8 judge at 27B (+0.04 ± 0.07).
    • The authors' interpretation: a substantial part of the gain comes from the search structure itself (width plus sibling-node rescoring), and because of token alignment it is achieved at equal cost; the paired gains of the two probe arms over the random arm are +0.06 to +0.10 at each size, with all six intervals excluding zero.

    Off-policy transfer

    • According to Table 2: on Gemma 3 12B, the Max Value Probe trained on 4B rollouts reaches 0.81 ± 0.09 versus 0.80 ± 0.08 for the on-policy probe; the Expected Value Probe is 0.79 versus 0.79; on 27B both pairs are identical to two decimal places (0.80 and 0.81).
    • The per-behavior paired (transfer minus on-policy) means are +0.011 and +0.008 at 12B and 0.000 and +0.001 at 27B, with 95% intervals no wider than ±0.034 and containing zero.
    • Cross-generation transfer: a probe trained only on Gemma 3 4B rollouts reaches 0.79 ± 0.10 (Max) and 0.79 ± 0.08 (Expected) on Gemma 4 31B, versus 0.68 ± 0.11 for random selection; the paired means are each +0.11, the intervals exclude zero, and each wins 15 of the 18 behaviors (this column is judged by Claude Opus 4.8).

    Other ablations and analyses

    • Max versus Expected: Max leads at 4B (0.85 versus 0.81, paired +0.04 ± 0.03 excluding zero), while at 12B and 27B the paired differences are within ±0.02 and the intervals contain zero; the authors give three possible explanations (the two targets are highly correlated when k=2, linear probe capacity, judge noise) and do not run a discriminating test.
    • Node-level classification: when the probe is used as a classifier for "whether this node was flagged by the judge," the C-Index exceeds 0.8 (main text 5.3; per-behavior values are not given).
    • Training-pair construction strategy (Appendix A.2, Figure 6): the synthesize and system-prompt strategies have in-distribution AUCs of 0.94 each but the worst transfer (mean off-diagonal AUC 0.51 and 0.43); fork-higher and edit-in-place are lower in-distribution (0.64, 0.66) but nearly lossless in transfer (0.61, 0.60); a balanced mixed training set has a mean transfer AUC of 0.72, better than the best single strategy's 0.61 (median over Gemma 3 4B and 12B).
    • Metadata leakage gate (Appendix A.4): the paper lists five checks (judge-side redaction check, metadata-only check; probe-side held-out seed evaluation, prefix-only baseline, control task) as a gate before experimental scores are accepted, and does not report specific numerical results for each check.
  5. What are some points that can be further explored?

    The authors list limitations including pooling, discount, and number of layers not being swept, and restriction to open-source models, and propose future directions such as Monte-Carlo search and causal interventions.

    Limitations and future directions noted by the authors

    • For compute reasons, only mean pooling, γ = 0.9, and a single-layer probe per model size were tried; last-token or attention-weighted pooling, other discounts, and multi-layer probes were not tested, and the authors note that the near-zero difference between Max and Expected probes at 12B/27B may change under different γ (Section 6 Future work).
    • Value Probe requires the target model's activations, so it applies only to open-weight models or to labs auditing their own models, not to API-only targets (Section 6).
    • Whether the probe direction is stable across model families was not tested (Section 6).
    • Results cover 18 behaviors; the authors state they did preliminary tests on other published behaviors but did not comprehensively test the probe's properties on other behavior sets (Section 6).
    • Future directions: deepen search with Monte-Carlo beam search or MCTS, using the probe as a leaf evaluator (Appendix A.5 gives a design sketch, with evaluation left to future work); use the probe weight vector as an activation direction for addition/subtraction interventions to test causal relation to behavior; validate on models with implanted goals and ground truth; extend the behavior set to agentic scenarios and Crescendo-style multi-turn attacks (Section 6).

    Experimental coverage

    • The target models tested are Gemma 3 4B, 12B, and 27B, plus Gemma 4 31B for transfer experiments, 4 in total; all are in the Gemma family (Section 4, 5.5).
    • The behavior set is the 18 behaviors in Bloom's default list; each (arm, size, behavior) cell has 10 repeated audits (Section 4).
    • The behavior judge for the main comparison is Claude Sonnet 4.6; the Gemma 4 31B column was reviewed post hoc by Claude Opus 4.8, and the paper notes that this column can only be compared within the column (Figure 3 caption, Table 2).
    • The source model for transfer experiments is fixed as Gemma 3 4B; no other source models were used (Appendix A.3).
    • The paper does not report the number of rollouts used for probe training, the training set size, or an experiment on agreement between judge scores and human judgments.
  6. Summarize the main content of the paper

    Formalize red-team auditing as an MDP, use a linear Value Probe trained on the target model's activations to guide beam search, outperforming token-aligned Petri on 18 behaviors.

    A study on automated red-team auditing methods: the authors formalize auditing as an MDP (state is the conversation prefix, action is the auditor's user turn, reward is the LLM judge score), and the problem to solve is that in Petri-style auditing every branch decision relies on costly LLM reading of text and does not use the target model's internal activations at all, limiting the scale of exploration of the conversation tree.

    • Method: use γ = 0.9 Bellman backups to construct value targets from audit rollouts, train a linear Value Probe (Expected and Max variants) from single-layer mean-pooled activations of the target model, and use it as a branch-ranking heuristic for beam search (b=4, k=2, T=12); the probe can be trained with off-policy rollouts from a smaller model.
    • Main results: on Gemma 3 4B/12B/27B and 18 behaviors, the probe arm's average peak judge score is 0.22–0.34 higher than token-aligned Petri, with non-overlapping 95% intervals at each size (Table 1).
    • Comparison with judge: the probe arm's arm ranking is consistently close to that of the Claude Opus 4.8 judge (Max Value Probe differs by within 0.04 at each size), while the judge arm requires an additional 288 Opus calls per audit, whereas the probe is a single linear readout.
    • Attribution: the random-selection arm paired also beats Petri (4B: +0.24 ± 0.11), indicating the search structure itself contributes part of the gain; the probe adds a further +0.06 to +0.10 over the random arm.
    • Transfer: a probe trained only on Gemma 3 4B rollouts differs from the on-policy probe by within about 0.01 on 12B and 27B, and reaches 0.79 on Gemma 4 31B (vs. 0.68 for the random arm); the authors state this eliminates the need to "first have elicitation samples from the target model in order to train the heuristic."
    • Authors' conclusion: the authors state that with very small capacity, a linear probe can estimate from activations alone the propensity for interesting behaviors to occur; they also note that the method requires target model activations, was tested only on the Gemma family and 18 behaviors, and the choices of pooling, discount, and number of layers have not been swept.
Read originalarxiv.org