Recursive Semantic Divergence for LLM Agent Consistency
Harshavardhan Abichandani, Penny Chong, Atin Ghosh, Daniel Dahlmeier
Key points
From the paper's conclusion- We introduce Recursive Semantic Divergence (RSD), an unsupervised trajectory-level consistency metric adapted from bisimulation metrics in reinforcement learning.
Abstract
Large Language Model (LLM) agents with tool use exhibit inconsistent behavior across independent runs from identical states, calling different tools, producing contradictory outputs, or pursuing divergent strategies. This variability compounds over time and undermines deployment reliability. Existing evaluation metrics primarily measure task correctness via completion-based scores and do not capture consistency in agent behavior across executions. Separately, agent behavior is analyzed either at the token level using probability distributions or at the single-response level using semantic clustering, but neither captures how inconsistency propagates across future turns of a trajectory. We introduce Recursive Semantic Divergence (RSD), an unsupervised trajectory-level consistency metric adapted from bisimulation metrics in reinforcement learning. RSD measures the expected cumulative semantic disagreement between two independent rollouts of the same agent from the same state, using natural language inference to detect logical inconsistency. It is defined recursively over future states and approximated by a neural network trained on independent rollouts. The learned metric estimates future divergence from the current state, providing a consistency score at each turn without requiring the full trajectory to complete. When used as a reward signal for fine-tuning, RSD reduces the variation in task progress from 132% to 91% on tau2-bench and from 90% to 44% on toolsandbox, while improving performance across benchmarks and model scales. Training with RSD as an additional reward signal matches supervised fine-tuning performance with substantially lower variance, without requiring ground-truth labels.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Closing the Consistency Gap: Self-Evolving Agents That Learn to Stay on CoursearXiv · 2026
- Actions Speak Louder than Words: Measuring Cross-Lingual Policy Retention in Tool-Using AgentsarXiv · 2026
- Same Winners, Different Success Rates: Evaluating How LLM Agents Recover from FailuresarXiv · 2026
- GraphACM: Graph-based Action Consistency Measurement for Uncertainty Quantification in LLM AgentsarXiv · 2026
- CASEL: Consequence-Aware Selective Execution for Reliable Long-Horizon Tool-Using AgentsarXiv · 2026
- Trajectory-Level Speculation with Semantic Verification for Tool-Using AgentsarXiv · 2026