Search papers, labs, and topics across Lattice.
The paper introduces LogAct, a novel abstraction for building reliable LLM agents by representing them as state machines operating on a shared log. This shared log makes agent actions visible before execution, enabling decoupled voters to halt unwanted actions and facilitating consistent recovery from failures. Experiments demonstrate LogAct's effectiveness in agent recovery, self-debugging, token optimization, and unwanted action prevention with minimal impact on benign utility.
Shared logs let LLM agents debug themselves, recover from errors, and even stop each other from doing bad things.
Agents are LLM-driven components that can mutate environments in powerful, arbitrary ways. Extracting guarantees for the execution of agents in production environments can be challenging due to asynchrony and failures. In this paper, we propose a new abstraction called LogAct, where each agent is a deconstructed state machine playing a shared log. In LogAct, agentic actions are visible in the shared log before they are executed; can be stopped prior to execution by pluggable, decoupled voters; and recovered consistently in the case of agent or environment failure. LogAct enables agentic introspection, allowing the agent to analyze its own execution history using LLM inference, which in turn enables semantic variants of recovery, health check, and optimization. In our evaluation, LogAct agents recover efficiently and correctly from failures; debug their own performance; optimize token usage in swarms; and stop all unwanted actions for a target model on a representative benchmark with just a 3% drop in benign utility.