← Home

Search agents lack a running state and an independent scorer

Shreshth Rajan, June 2026.

A search agent is a language model that runs web queries, reads the results and calls tools until it can answer a question. It is built by taking a model trained to predict text and training it further to take actions.

Two failures show up repeatedly. Agents get worse after about five turns (arXiv:2602.18998), even when every fact they need is still in their context. And sampling more answers stops helping, because even when the right answer appears among the samples, the agent often doesn't pick it.

I think both failures come from the same place. To act on partial information, an agent needs to keep track of what is currently true and needs a way to judge answers other than its own confidence. A text model has neither. It rereads the whole transcript every turn, and it ranks answers by how likely it was to write them.

Keeping track of state. One way to keep track of what is true is a short note that the agent rewrites after each new observation. I built a task that tests only this. Four people each have a location, updates arrive in order, and later updates overwrite earlier ones. The question asks where one person is now. That person's last update comes early and is followed by many updates about the others, so an agent that answers from the most recent facts gets it wrong.

# Same model, same facts, same information. Only the representation differs.
def answer_transcript(model, facts, query):         # work the state out every turn
    ctx = "\n".join(facts)                          # context grows with every update
    return model(f"Facts:\n{ctx}\nQ: {query}")

def answer_note(model, facts, query):               # carry a short note instead
    note = init_note()                              # ~20 tokens, fixed size
    for fact in facts:
        note = model(f"Note:\n{note}\nUpdate: {fact}\nRewrite the full note.")
    return model(f"Note:\n{note}\nQ: {query}")       # never sees the transcript

I gave the same small model both versions of the task. Rereading the full transcript, it answered only 12.5% of questions correctly after 128 updates, close to the 10% you'd get by picking one of the ten rooms at random. Rewriting a note of about twenty tokens after each update, it answered 95 to 100% correctly at every length.

Transcript accuracy falls with the number of updates; the carried note stays flat.
Accuracy on the current location, against the number of updates.
Transcript context grows; note context stays flat.
Context at answer time, on the same runs.

Both versions see every fact, so the transcript version's failures come from rereading a long history. My note is just a prompt, and a note the model is trained to write should work better. MEM1 trains such a memory with reinforcement learning and reports higher accuracy than agents that keep the full transcript, while using a fraction of the memory.

Judging answers. Best-of-N means sampling N answers and keeping the one a scorer rates highest. Cobbe et al. at OpenAI showed that best-of-N with a separately trained scorer beats fine-tuning alone on GSM8K, a set of grade-school math word problems.

A text model has no scorer of its own except its likelihood, how probable it finds each answer, and likelihood favors the answers the model would have given anyway. Extra samples only help when the model's favorite answer is wrong, and likelihood picks the favorite answer.

Process reward models, which score each step of a solution, choose better than likelihood does, and so do generative verifiers, which are language models trained to write out a judgment. Both are usually fine-tuned from the same base model on its own answers, though, so their mistakes tend to match the model's.

To see how much that correlation matters, I trained a small probe on the model's own hidden states to predict whether an answer is correct. Even though the probe reads the same representation as the model, it ranks answers differently from likelihood. I mixed the probe's score with the model's likelihood, raising the likelihood's weight step by step and changing nothing else. With the probe alone, accuracy rose from 48% with one sample to 70% with 128. With likelihood alone it fell to 34%, below a single sample. Extra samples stopped helping once the mixed score's correlation with likelihood reached about 0.6, and past that point more samples lowered accuracy. Since I set the mix by hand, this shows the mechanism in one model and doesn't say how correlated real verifiers are.

Best-of-N accuracy by how closely the scorer tracks the generator.
Best-of-N accuracy on GSM8K for one trained scorer blended with the model's own likelihood. Each curve is one blend weight.
The gain from more samples falls as correlation rises.
Accuracy gain from 1 sample to 128, against the correlation between the blended score and the model's likelihood.

Reinforcement learning has a similar problem when a policy and its value estimate share parameters. Phasic Policy Gradient trains the two in separate phases because, in a shared network, each objective interferes with the other.

A text model is trained only to predict text, and post-training then asks it to track state and judge answers with what it already has. Tracking state breaks down over many turns, and judging breaks down over many samples. A prompted note already fixes the state problem in my toy task. I expect a note and a scorer trained along with the model to do better than ones added afterwards.

The experiment I would run next trains both alongside generation: a recurrent note that has to reproduce the current state from a fixed-size memory, and a scorer trained on wrong answers that come from outside the model's own samples, so its mistakes differ from the model's.

Setup. State study: Qwen2.5-1.5B-Instruct with greedy decoding, on a synthetic task with four people and 8 to 128 location updates, 80 questions per length. Answering from the full transcript is compared with answering from a note the model rewrites after each update, and accuracy and context length are measured at answer time. The transcript version answers 42.5% correctly after 8 updates; the note version uses 21 tokens of context at answer time instead of 1073. Only one 1.5-billion-parameter model was tested, and I expect a bigger one to hold up for more updates before it declines in the same way. Score study: best-of-N on 64 GSM8K test questions with 128 samples each from Qwen2.5-1.5B-Instruct. The scorer is a logistic-regression classifier on the generator's final hidden states, trained on answers to 96 GSM8K training questions to predict whether an answer is correct. Its standardized score \(\tilde v\) is blended with the generator's standardized mean token log-likelihood \(\tilde s\) as \(V_\rho = (1-\rho)\tilde v + \rho\tilde s\), for \(\rho\) from 0 to 1. The correlation in the figures is the Pearson correlation between \(V_\rho\) and \(\tilde s\) over all candidates. A perfect scorer reaches 97%. The two studies test the state and the score separately; that they are one problem is my argument. Code and data: github.com/ShreshthRajan.


References

  1. Benchmark Test-Time Scaling of General LLM Agents. arXiv:2602.18998 (2026). Puts the turn ceiling at three to seven steps.
  2. The Long-Horizon Task Mirage: Diagnosing Where and Why Agentic Systems Break. arXiv:2604.11978 (2026).
  3. Cobbe et al. Training Verifiers to Solve Math Word Problems. arXiv:2110.14168 (2021).
  4. Snell et al. Scaling LLM Test-Time Compute Optimally. arXiv:2408.03314 (2024).
  5. Zhou et al. MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents. arXiv:2506.15841 (2025).
  6. Lightman et al. Let's Verify Step by Step. arXiv:2305.20050 (2023).
  7. Zhang et al. Generative Verifiers: Reward Modeling as Next-Token Prediction. arXiv:2408.15240 (2024).
  8. Cobbe et al. Phasic Policy Gradient. arXiv:2009.04416 (2020).
  9. Garcin et al. Studying the Interplay Between the Actor and Critic Representations in RL. arXiv:2503.06343, ICLR (2025).
  10. Saad-Falcon et al. Shrinking the Generation-Verification Gap with Weak Verifiers. arXiv:2506.18203 (2025).
  11. Clark et al. ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators. arXiv:2003.10555 (2020).