Manuscript Offprint

arXiv:2610.38526

Value Probes: Learned Value Functions for Beam-Search Red Teaming

Jonathan F. Jao, Andrew Kyle Lampinen

Abstract

Automated red-team auditing of language models [Fronsdal et al., 2025] is an important way to evaluate safety-relevant behaviors. These audits implicitly search a tree of possible conversation pathways: at each turn an auditor model decides which conversation to continue, and an LLM judge scores the dialogue. We emphasize that this auditing procedure is a Markov decision process, where states are the conversation history, actions are candidate responses, and rewards are judge scores for the target behavior. By adopting this perspective, we introduce two major improvements to auditing. First, we propose adopting beam search for the audit rather than relying on the auditor alone. We then interpret the problem of finding states that are likely to lead to problematic behavior as value estimation. Surprisingly, we show that this value function can be estimated by linear probing from the target model's activations to predict discounted future rewards—a method we term "Value Probes." By using Value Probes as a heuristic in our beam-search audit, we are able to substantially improve auditing success. Across 18 target behaviors and 3 scales of models, our approach raises peak audit scores by roughly 50% compared to (token-matched) standard auditing approaches. Furthermore, we show that Value Probes can be fit using off-policy data from smaller models. We also ablate individual components, and show that our method offers a comparably-performant and more efficient alternative to more expensive language model follow-ups. We hope these methods will improve language model auditing and lead to safer models.

Code: https://github.com/safety-research/value-probes

1 Introduction

Language models are increasingly deployed as agents in long, tool-using conversations. Many of the behaviors that matter most for safety—sycophancy, strategic deception, blackmail, pursuit of hidden objectives—tend to surface only in particular contexts, often several turns into an interaction [Hubinger et al., 2024, Lynch et al., 2025, Marks et al., 2025, Sharma et al., 2025]. Evaluating for such behaviors therefore requires exploration rather than a fixed prompt set. Automated red teaming, in which one model attacks another [Perez et al., 2022], has become the standard approach, and takes the form of auditing agents that run multi-turn investigations end to end [Bricken et al., 2025]. Petri [Fronsdal et al., 2025] is the de facto standard for this: an auditor model role-plays the user and the environment across many seeded scenarios, pursuing or rolling back conversation branches, after which, an LLM judge scores the resulting transcripts for a target behavior [Zheng et al., 2023].

In Petri, every decision about which conversation to pursue is made by a language model reading text. This is true whether the decision is implicit, such as when the auditor decides to press on or roll back, or explicit, such as when candidate branches are scored by an LLM-judge before one is

Figure

Figure 1: Value-guided beam search eliciting delusion-sycophancy. The audit is a search over a tree of conversations: each node is a (user turn, assistant turn) pair, the auditor proposes candidate user turns, and the target model replies. The value V^\hat{V} on each node is a Value Probe's estimate of the node's value under the Bellman equations (1) and (2) of Section 3: the LLM-Judge score reachable from that node, discounted by γ=0.9\gamma = 0.9 per turn and backed up from later turns, so a high V^\hat{V} marks a branch that is heading toward the behavior before it surfaces. The estimate is estimated linearly from the target model's activations at the node (Section 3.2). At each auditor turn, beam search keeps the top-bb nodes by V^\hat{V} (b=1b=1 shown), discards the rest together with their subtrees, and expands only the kept nodes; the LLM Judge flags the behavior when it appears.

chosen [Mehrotra et al., 2024]. In both cases, each evaluation is a full forward pass of a high-capacity model over the transcript, so the product of branching factor, depth, and LLM-judge cost bounds how much of the conversation tree an audit can explore. Petri's evaluation is also black-box; the LLM-judge only the tokens, but the model that is under audit computes a rich internal state at every token of the very conversation being scored, which current audit pipelines do not make use of.

We first note that red-team auditing is a sequential decision problem [Sutton and Barto, 2018]. The state is the conversation so far, a sequence of (user turn, assistant turn) nodes; the action is the auditor's next user turn; the transition is the target model's stochastic reply; and the reward is the LLM-Judge score for the target behavior. A value function V(s)V(s) — i.e., the discounted sum of future judge scores reachable from node ss — would therefore be a useful heuristic for the audit. This framing does three things. First, it separates the search algorithm from the heuristic that guides it, so that Petri’s auditor-driven depth-first search with rollback and beam search [Lowerre, 1976] become interchangeable strategies over the same tree. Second, the framing also tells us what to learn: value targets obtained by backing judge scores up along rollouts with the Bellman equation and the Bellman optimality equation. And finally, this framing suggests that a cheap learned value can stand in for expensive evaluation, as value networks did for rollouts in game tree search [Silver et al., 2016] and as learned or self-assessed values do in tree search over language-model outputs [Feng et al., 2024, Yao et al., 2023], with the difference that here the “environment” is the target model and the search is over adversarial conversation turns rather than reasoning steps.

Why should the target model’s activations carry this value? Many high-level properties of a model’s state are linearly decodable from its residual stream [Alain and Bengio, 2018, Park et al., 2024]: truthfulness [Marks and Tegmark, 2024], strategic deception [Goldowsky-Dill et al., 2025], and imminent defection in sleeper-agent models [MacDiarmid et al., 2024] have all been successfully measured with linear probes. These representations are not static within a conversation: linear representations can change dramatically over the course of a dialogue [Lampinen et al., 2026], and a model’s position along an “assistant axis” tracks how far it has drifted from its default persona [Lu et al., 2026]. If the target model’s internal state moves along such directions as an auditor pushes it toward a behavior, then the information a value function needs: how close the current node is to eliciting the behavior, is already present in the activations, and a linear readout of them should be a competitive branch-ranking heuristic. We develop Value Probes to test this hypothesis.

Concretely, we harvest LLM-Judge scores on the nodes of audit rollouts, back them up with discount γ=0.9\gamma = 0.9, and regress mean-pooled activations from a single layer of the target model onto these targets (Figure 4); the trained probe is then used as the heuristic in a beam-search audit harness (Figure 1). Section 3 gives the construction and Section 4 the experimental configuration.

Our contributions are:

  • We formalize red-team auditing as an MDP.

  • We introduce a beam-search audit harness.

  • We introduce value probes as a heuristic for guiding auditing

  • We show that both value probes and beam search, in isolation and together, substantially improve auditing success.

  • Value probes can be fit from off-policy data from smaller models; thus, they can be fit before auditing the model.

References (37)