AI News selected for Professionals and Decision Makers
Primary Research Stream

Automata from Agent Traces: Failure and Next-Step Prediction

06:00 · August 26, 2026 · arXiv cs.AI RSS

Automata from Agent Traces: Failure and Next-Step Prediction

LLM-based agents execute multi-step tasks, but their behavioral structure remains opaque: long unstructured traces resist the safety auditing and runtime monitoring that deployment requires. Existing approaches operate per-trace or success-only, so they miss the cross-run topology that links next-step and failure prediction. To recover that shared structure, we collapse an entire trace corpus into a single, compact finite-state machine (FSM) that serves as a structural substrate for the otherwise unpredictable behavior of LLM agents. Across twelve public datasets, the FSMs are compact (7-43 states), replay held-out data at >=0.997 fitness with near-identical topology across splits, and build in milliseconds. This substrate addresses both prediction goals. For next-step prediction, FSM-state context outperforms Agent Workflow Memory on every ground-truth-matched dataset. For failure prediction, per-state behavioral features reach held-out AUROC up to 0.94, and an online monitor ranks failing runs above passing ones from a partial trace, triggering early stopping well before completion. Behavioral topology thus appears shaped more by the deployment harness than by the LLM, providing a model-agnostic structural primitive for safety auditing and runtime monitoring.

Summary

LLM-based agents generate extended execution traces that interleave reasoning steps with tool calls, yet the underlying behavioral patterns remain difficult to inspect for safety auditing or runtime oversight. Existing techniques typically analyze traces individually or restrict attention to successful runs, overlooking the shared structure across multiple executions that could support both next-step forecasting and failure detection.

The proposed approach addresses this by distilling an entire corpus of traces into a single compact deterministic finite-state machine. An activity extraction function first maps each message to a symbol from a small alphabet of observed actions. A prefix tree is then constructed and merged according to the last activity, yielding a directly-follows automaton. Across twelve public datasets the resulting machines contain between 7 and 43 states, achieve fitness scores of at least 0.997 on held-out traces, and are produced in milliseconds. The same automaton remains stable across different training splits and across multiple underlying language models when the deployment harness is held constant.

This finite-state representation supplies a unified substrate for downstream tasks. Conditioning next-step predictions on the current FSM state improves cross-entropy over strong workflow-memory baselines on every matched dataset. For failure detection, simple per-state behavioral statistics reach held-out AUROC values up to 0.94 and enable an online monitor that ranks failing trajectories above successful ones from partial traces, permitting early termination well before task completion. The work indicates that the recovered topology is shaped primarily by the system prompt, tool set, and task distribution rather than by the choice of language model, offering a lightweight, model-agnostic primitive for monitoring autonomous agents.

Why it matters

This research is highly relevant for Dutch AI researchers and practitioners focusing on AI safety and compliance with the EU AI Act. The proposed FSM-based monitoring offers a transparent, model-agnostic tool for auditing LLM agents and ensuring reliable deployment in enterprise environments.

More in this beat
Autonomous Mathematical Discovery in an Open-World Multi-Agent Environment

06:00 · August 26, 2026

Autonomous Mathematical Discovery in an Open-World Multi-Agent Environment

This article presents a breakthrough in autonomous AI-driven scientific discovery using multi-agent systems. It is highly relevant for Dutch AI researchers focusing on AI for Science, multi-agent collaboration, and transparent AI methodologies, offering open-source tools and reproducible mathematical findings.

Relevance 85 · Audience 95

LLM Agents Perform Controlled Experiments Using Simulation Models

06:00 · August 26, 2026

LLM Agents Perform Controlled Experiments Using Simulation Models

This research is highly relevant for Dutch AI researchers and industrial R&D teams, particularly in the strong local chemical, pharmaceutical, and high-tech manufacturing sectors. It provides a novel, actionable framework for grounding LLM reasoning in scientific simulations, addressing the critical need for reliable and evidence-based AI decision support in enterprise environments.

Relevance 85 · Audience 95

Serving Masked Diffusion LLMs: Characterization and Design Principles from Real Hardware

06:00 · August 26, 2026

Serving Masked Diffusion LLMs: Characterization and Design Principles from Real Hardware

This research is highly relevant for Dutch AI infrastructure researchers and HPC operators looking to optimize the serving of emerging diffusion LLMs. The findings on CPU bottlenecks and step-level parallelism provide actionable design principles for building efficient, scalable, and cost-effective AI inference systems in the Netherlands.

Relevance 85 · Audience 95

Function-Level Execution Feedback for Code Preference Optimization

06:00 · August 26, 2026

Function-Level Execution Feedback for Code Preference Optimization

This research provides a highly actionable and novel methodology for aligning code generation models, which is directly applicable to Dutch AI researchers and software-heavy enterprises. The open-source nature and rigorous mathematical foundation make it an excellent resource for advanced AI practitioners in the Netherlands looking to improve LLM coding capabilities.

Relevance 85 · Audience 95

How much of a measured AI preference is the model, and how much is the instrument?

06:00 · August 26, 2026

How much of a measured AI preference is the model, and how much is the instrument?

The Netherlands strongly emphasizes ethical, transparent, and safe AI development. For Dutch researchers focusing on AI alignment and ethics, this paper provides critical methodological insights into the unreliability of current techniques used to measure AI 'preferences' or welfare.

Relevance 75 · Audience 90

AI Agents Push Humans Out of the Loop

06:00 · August 26, 2026

AI Agents Push Humans Out of the Loop

Directly addresses ethical AI deployment and human oversight mandated by the EU AI Act, relevant to Dutch enterprises and regulators prioritizing transparent, human-centered AI. Offers actionable design and organizational recommendations for Dutch AI practitioners building or deploying agents.

Relevance 68 · Audience 82