Learning Correct Behavior from Examples: Validating Sequential Execution in Autonomous Agents

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Sharma, Reshabh K, Mittal, Gaurav, Hu, Yu
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917460647608320
author Sharma, Reshabh K
Mittal, Gaurav
Hu, Yu
author_facet Sharma, Reshabh K
Mittal, Gaurav
Hu, Yu
contents As autonomous agents become increasingly sophisticated, validating their sequential behavior presents a significant challenge. Traditional testing approaches require manual specification, exact sequence matching, or thousands of training examples. We present a novel algorithm that automatically learns correct behavior from just 2-10 passing execution traces and validates new executions against this learned model. Our approach combines dominator analysis from compiler theory with multimodal large language model-powered semantic understanding to identify essential states and handle non-deterministic behavior. The system constructs a generalized ground truth model using Prefix Tree Acceptors, merges traces through multi-tiered equivalence detection, and validates new executions via topological subsequence matching. In controlled experiments, our system achieved high accuracy in detecting product bugs and false successes using only 3 training traces. This approach provides explainable validation results with coverage metrics and works across diverse domains including UI testing, code generation, and robotic processes.
format Preprint
id arxiv_https___arxiv_org_abs_2605_03159
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Learning Correct Behavior from Examples: Validating Sequential Execution in Autonomous Agents
Sharma, Reshabh K
Mittal, Gaurav
Hu, Yu
Artificial Intelligence
Software Engineering
As autonomous agents become increasingly sophisticated, validating their sequential behavior presents a significant challenge. Traditional testing approaches require manual specification, exact sequence matching, or thousands of training examples. We present a novel algorithm that automatically learns correct behavior from just 2-10 passing execution traces and validates new executions against this learned model. Our approach combines dominator analysis from compiler theory with multimodal large language model-powered semantic understanding to identify essential states and handle non-deterministic behavior. The system constructs a generalized ground truth model using Prefix Tree Acceptors, merges traces through multi-tiered equivalence detection, and validates new executions via topological subsequence matching. In controlled experiments, our system achieved high accuracy in detecting product bugs and false successes using only 3 training traces. This approach provides explainable validation results with coverage metrics and works across diverse domains including UI testing, code generation, and robotic processes.
title Learning Correct Behavior from Examples: Validating Sequential Execution in Autonomous Agents
topic Artificial Intelligence
Software Engineering
url https://arxiv.org/abs/2605.03159