cs.AIAug 14, 2026

A Graph-Based Reinforcement Learning Framework for Structured Drift Diagnosis and Recovery in Autonomous LLM Agents

Authors: Ismail El Hamraoui, Sagar Jose, Nicolas Bureau, Robert Plana

Organizations: Digital Excellence Center, Assystem EOS, France

Abstract

Autonomous LLM agents are increasingly deployed in complex real-world workflows, yet they remain vulnerable to runtime behavioral drift, a silent deviation from the original task that can lead to irreversible side effects on external systems. Existing approaches address drift at the prompt level but lack structured mechanisms for step-level detection, risk assessment, and recovery decision. Because the main task-executing agent is often a large and expensive model that cannot be re-trained on every deployment, this work targets a plug-and-play recovery module instead. It introduces a graph-based framework in which a single small language model is trained via reinforcement learning to specialize at each node of a recovery graph, external to the main agent. Each node has a precise role,: drift classification, operation detection, risk evaluation, or final decision and the model learns to produce structured XML-formatted reasoning adapted to that role. Training combines rule-based structural rewards with an LLM-as-judge semantic-quality signal, so that the model is graded both on how it answers (schema and length) and on what it says. Experiments on the public AppWorld benchmark show that the method generally exploits information about the suspected drift onset to issue correct recovery decisions using a small language model. In addition, the trained small language model reliably respects the prescribed output schema and produces semantically appropriate content in each field according to its assigned node role.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. When to Intervene? An Empirical Study of Errors and Self-Recovery in LLM Agents

    Oct 27, 2026Chiming Duan, Tong Jia, Yingxi Chen +3LLM AgentsLLM Agent Reliability

  2. Experience Memory Graph: Extracting Reusable Correction Knowledge from Agent Trajectories

    Jul 15, 2026Wenjun Wang, Yuchen Fang, Fengrui Liu +2Agent MemoryLLM Self-Correction

  3. Robust Function Calling for LLM Agents Under Interface Drift

    Oct 16, 2026Aniruddha Chattopadhyay, Kanishka Halder, Partha Sarathi RoyTool-Augmented Language Model AgentsLLM Agent Reliability