TL;DR
AI agents that design computer chips often crash and burn when debugging complex hardware because their memory gets flooded with massive, noisy simulation logs—a problem called "context pollution." By modeling an AI system directly on how human engineers compartmentalize tasks and surgically probe signal waveforms, researchers built OneVeriAgent, matching massive industrial AI swarms at 97.7% accuracy. Even better, they show how open-weight models can teach themselves this workflow from scratch, no proprietary "teacher" required.
What Problem Does This Paper Address?
Imagine debugging a piece of procedural Python code: when something breaks, you read a linear stack trace back to the culprit. Hardware design—specifically Register-Transfer-Level (RTL) code like Verilog—is an entirely different beast. On a microchip, thousands of registers update in strict parallel on every single tick of a clock. A bug spotted at cycle 2,820 might have been triggered by a subtle bit-width overflow hundreds of cycles earlier.
When you hook an LLM agent up to a hardware simulator, the naive equivalent of a print statement is dumping a raw waveform file (VCD). Doing this floods the LLM’s context window with tens of thousands of irrelevant signal transitions. The model's self-attention dilutes, it forgets what it was doing, and it starts hallucinating—a failure mode known as context pollution. Existing frameworks try to survive this by restricting the agent to a single snapshot in time, or worse, letting the agent peek at the "golden testbench" (essentially handing it the answer key rather than making it deduce the fix realistically).
Methods
To conquer context pollution under realistic black-box conditions, the authors introduce OneVeriAgent, built on three core pillars:
- Agentic Temporal Exploration (ATE): Human chip designers don't read raw text dumps; they use visual waveform viewers to zoom in on specific suspect wires over tight time windows. ATE gives the debugging agent a tool to query a chosen subset of signals ($\sigma$) across a bounded time window ($[t^{\text{start}}, t^{\text{end}}]$). Crucially, instead of returning every clock tick, ATE returns a sparse trace—only outputting timestamps when a queried signal actually changes state. A 10,000-cycle run with one state flip costs just a handful of tokens.
- Task-Scoped Orchestration: Humans compartmentalize working memory depending on whether they are writing fresh code, hunting a bug, or patching a file. Instead of one flat agent hoarding every error log, an outer Orchestrator dispatches specialized subagents (
RTL,DEBUG,RTL_FIX) with strictly filtered contexts. For instance,RTL_FIXreceives only the source code and the text hypothesis of the bug—all the raw waveform traces stay locked inside theDEBUGsubagent and are discarded afterward.
(Note: Let's look closer at the architecture below)
- Tool-Validated Self-Distillation (TVSD): Open-weight models often struggle to format multi-step tool calls, burning through their retry budgets. Extending recent self-distillation ideas, TVSD samples multi-turn trajectories from an open base model and filters them only on whether the tool syntax is valid (e.g., making sure ATE calls include start and end times). Without checking if the final chip design actually passed—and without distilling from a closed frontier model—the base model is fine-tuned on its own valid traces to play every role in the hierarchy.
Datasets
No new benchmarks were created; instead, the authors stress-tested their setup across five existing suites:
- Training Pool (for TVSD): VerilogEval-v2 (156 self-contained problems) and RTLLM-v2 (50 structurally diverse blocks across arithmetic, memory, and control).
- Primary Held-Out Evaluation: CVDP (Comprehensive Verilog Design Problems), an industrial-scale suite of 262 expert-reviewed tasks spanning code completion, spec-to-code, modification, and bug fixing.
- Extended Evaluation: VerilogEval-v2-EXT (stratified into Easy, Medium, and Hard splits) and ChipBench (system-level tasks including multi-file CPU IP blocks).
Key Insights and Ideas
- Time-windowing beats signal-picking alone: In ablations, letting the agent pick suspect signals helped slightly, but forcing it to bound the time window recovered three times as many hard bugs. Without time bounds, periodic clocks and counters drown out the causal bug trace.
- More calls, fewer tokens: Compared to a flat single agent, the Orchestrator makes roughly twice as many LLM calls per problem (11.8 vs. 5.5), yet uses fewer total tokens (56k vs. 66.9k) because each request averages a lean 4.7k tokens instead of bloating into a 32k+ tail.
- Correctness filtering isn't needed for self-teaching: TVSD proves that open models don't need to know which trajectories solved the hardware problem during fine-tuning. Simply training on syntactically clean, self-generated tool interactions reshapes the model's habits enough to unlock complex waveform debugging.
Key Results
- Industrial-Frontier Accuracy: Paired with Claude Opus 4.6, OneVeriAgent hits 97.7% Agentic Pass Rate (APR) on CVDP—surpassing the top academic multi-agent system (ACE-RTL at 88.9%) and matching a closed-source 16-agent industrial swarm (Agentrys at 95.8%).
- System-Level Dominance: It achieves 100% Pass@1 on both VerilogEval-v2 and RTLLM-v2, 95.5% on VerilogEval-v2-EXT Hard, and 84.5% overall on ChipBench (leaping from 22.2% to 88.9% on cross-file CPU IP blocks where flat-context agents collapse).
- Closing the Open-Weight Gap: Applying TVSD to
Gemma4-31B-Instructlifts its held-out CVDP Pass@1 from 61.1% to 75.2% (+14.1%), with massive jumps in multi-cycle categories like Memory Buffers (+23.3%) and Sequential Datapaths (+19.3%).
Limitations and Future Work
The authors highlight four main boundaries to their work:
- Backbone Ceilings: While the architecture boosts every model tested, final accuracy is still tethered to the base model's raw reasoning power (75.2% on Gemma4-31B vs. 97.7% on Opus 4.6).
- RL Credit Assignment: Figuring out how to assign reinforcement learning rewards across an outer Orchestrator dispatch and inner subagent steps remains an open mathematical puzzle.
- Disk Storage Overhead: ATE currently queries a full VCD waveform written to disk; massive industrial multi-module chips will require selective signal dumping during simulation.
- Ambiguous Specs: Current benchmarks assume a complete specification paired with a matching testbench. If a natural-language spec is underspecified in the real world, a black-box debug subagent has no recourse to clarify design intent.
Summary updated