Abstract
Agentic exploration, letting LLM-powered agents branch, backtrack, and search across many execution paths, demands systems support well beyond today's pass-at-k resets. Our benchmark of six snapshot/restore mechanisms shows that generic tools such as CRIU or container commits are not fast enough even in isolated testbeds, and they crumble entirely in real deployments where agents share files, sockets, and cloud APIs with other agents and human users. In this talk, we pinpoint three open fundamental challenges: fork semantics, which concerns how branches reveal or hide tentative updates; external side-effects, where fork awareness must be added to services or their calls intercepted; and native forking, which requires cloning databases and runtimes in microseconds without bulk copying.
Introduction
Large Language Model (LLM) agents are increasingly tasked with solving complex, long-horizon problems. However, current system infrastructures often force a "pass@k" approach: if an agent fails at step ten, the entire environment is reset to the initial state for a fresh attempt. This brute-force method is inefficient and limits the agent's ability to learn from intermediate failures. To achieve higher success rates, agents must engage in "agentic exploration"—the ability to branch, backtrack, and search through intermediate states. This paper argues that the primary bottleneck for such exploration is not the LLM's reasoning, but the underlying system's inability to efficiently manage state transitions.
Exploration Primitives
To enable systematic exploration, we categorize agent interactions into three core system primitives:
- Prefix Replay: Re-executing a sequence of commands from the start to reach a specific intermediate node.
- Snapshot/Restore: Capturing the complete system state (RAM and Disk) at a specific node to allow near-instantaneous reloading.
- Backtracking: Implementing specific "undo" operations to reverse individual actions.
While prefix replay is simple to implement, its latency grows linearly with the number of steps. Snapshot/restore offers a more scalable alternative but faces significant technical hurdles in modern environments, particularly when dealing with "live" memory and external dependencies.
Benchmarking State Restoration
We evaluated the feasibility of these primitives by benchmarking six distinct technologies across varying memory and disk workloads:
- CRIU: Userspace process checkpointing.
- Docker/Podman Commits: Filesystem-only snapshots via container images.
- Hybrid (Podman + CRIU): A combination of container runtimes and memory checkpointing.
- AWS VM Snapshots: Traditional virtual machine-level checkpoints.
- checkpoint-lite: A custom Go-based prototype utilizing CRIU dumps and OverlayFS for optimized filesystem snapshots.
Performance was measured using benchmarks like Terminal-Bench, WebArena, and OSWorld. In Terminal-Bench specifically, we observed that disabling exploration capabilities caused agent accuracy to plummet from 30.6% to just 3.4%, highlighting the necessity of these primitives for long-horizon tasks.
Key Results and the "Second-Scale" Wall
Our benchmarking reveals a massive performance gap between existing tools and the requirements for interactive agentic branching.
As shown in the table above, traditional AWS VMs are prohibitively slow, requiring over five minutes for instantiation. While Docker and Podman are faster, they typically lose live memory state, necessitating a full application reboot that negates the benefits of snapshotting. Our prototype, checkpoint-lite, significantly outperformed the standard Hybrid approach, restoring a 2GB state in 1.757 seconds compared to the Hybrid's 18.154 seconds.
Despite these improvements, even "second-scale" latencies are too high for agents intended to explore hundreds of potential paths. We identify a "second-scale wall" that current generic tools cannot break, largely because they were designed for backup rather than rapid branching.
Toward Native Forking
The limitations of current tools stem from their design as general-purpose backup or migration utilities. We propose the development of "Native Forking": a system primitive that behaves like a Unix fork(), but encompasses the entire system state. This requires:
- Microsecond Latency: Moving from seconds to microseconds by integrating with the OS storage stack and making language runtimes (like Python) heap-aware of copy-on-write operations.
- Fork-Aware APIs: External services must understand branching. Instead of simple mutations, APIs should support versioned writes or speculative execution branches to avoid the "External Side-Effect Trap," where a local restore cannot undo a remote API call.
- Multi-Agent Semantics: Systems must define visibility rules for speculative branches, determining how agents interact with shared resources during exploration.
Conclusion
Current system infrastructures are ill-equipped for the demands of agentic exploration. Moving beyond simple sandboxed resets requires a fundamental shift toward native forking and fork-aware system architectures. By reducing state restoration to the microsecond scale and addressing external side-effects, we can unlock the full potential of LLM agents in complex, real-world environments.
Summary updated