# Recursive Semantic Divergence for LLM Agent Consistency

*Harshavardhan Abichandani, Penny Chong, Atin Ghosh, Daniel Dahlmeier*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152399) · [OpenReview](https://openreview.net/forum?id=TNqJkEOsuA) · [Open on the map](../papers.html#p152399)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Agentic Reinforcement Learning with World Models](../pgroup/74.md) · Type: new method · Keywords: LLM agent consistency, trajectory-level metric, semantic disagreement, reinforcement learning reward, variance reduction

Areas: [AI Agents](../areas/agents.md) › Agent Optimization and Evaluation › Agentic System Reinforcement Learning; [Evaluation & Benchmarks](../areas/evaluation.md) › Agent Capabilities and Memory › Agentic Tool Use; [RL for LLMs & Agents](../areas/llm-rl.md) › Language Model Agents › Agentic Reinforcement Learning

## Summary
Recursive Semantic Divergence (RSD) is an unsupervised trajectory-level consistency metric that quantifies cumulative semantic disagreement between independent rollouts of an LLM agent and can be used as a reward to improve consistency and reduce performance variance.

## Explained to a 5-year-old
Some computer programs called LLM agents sometimes do different things even when they start from the same place. This makes them unpredictable, like a robot that sometimes forgets its instructions. The paper creates a new way to check how steady these agents are over time. It looks at two copies of the agent running together and sees when they say or do opposite things. Using this check as a training hint helps the agents stay more consistent and work better.

## Explained to a 5-year-old, longer
Imagine a chatbot that can use tools, like looking up information or calling a function. Sometimes when you ask it the same question twice, it gives different answers or does different actions. This makes it hard to trust because you never know what it will do next. The paper wants to make these chatbots more reliable by measuring how consistent they are. It compares two copies of the same chatbot running at the same time. By using a special way to see if the two copies say things that disagree, it can tell how far apart they become. This measurement works not just for one step but also looks ahead to future steps. A small neural network learns to predict how far apart the copies will be without waiting for the whole conversation. When this measurement is used as a hint during training, the chatbot learns to stay more stable. As a result, the chatbot makes fewer mistakes and its actions become more predictable. This helps people use the chatbot in real situations where reliability matters. Overall, the idea gives a simple way to make AI assistants more trustworthy.

## For a technical reader
The paper addresses the problem that LLM agents can behave inconsistently across runs, leading to unreliable deployments. It proposes a trajectory-level consistency metric that quantifies semantic disagreement between parallel rollouts using natural language inference. This metric is approximated by a neural network that predicts future divergence from the current state, providing per-turn scores without waiting for full trajectories. When used as an additional reward during fine-tuning, the metric reduces variance in task progress and matches supervised fine-tuning performance while requiring no ground-truth labels. The result is a practical way to improve agent stability across different benchmarks and model scales.

## Problem
LLM agents with tool use exhibit inconsistent behavior across independent runs from identical states, leading to unreliable deployments. Existing evaluation metrics focus on task correctness and do not capture how inconsistency propagates over time.

## Method
The approach defines a trajectory-level consistency metric that computes expected semantic disagreement between two independent rollouts using natural language inference, and approximates it with a neural network trained on those rollouts. This learned metric provides per-turn consistency scores and can be used as a reward signal during fine-tuning to reduce variance in agent behavior.

## Results
Using the metric as a reward reduces task-progress variation from 132% to 91% on τ2-bench and from 90% to 44% on toolsandbox, while matching supervised fine-tuning performance with lower variance across model scales.

## Contributions
A trajectory-level consistency metric that captures how inconsistency propagates over future turns, a neural approximation for per-turn scores, and a method to incorporate this metric as a reward to improve agent consistency and reduce variance without ground-truth labels.

## Practical relevance
The method enables more reliable deployment of LLM agents by providing a consistency metric and a simple reward signal that reduces variance and improves stability across scales.

## Research questions this paper is counted under

- [How can LLM agents reliably predict and reason about the consequences of their actions to avoid costly mistakes in long-horizon tasks?](../q/156.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152399)
