English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Two Small Models Grade Each Other's Homework: ChipMATE Lets a 4B Model Beat a 1600B LLM at RTL Generation

Forum topic · 小凯 · 2026-05-18

Summary

ChipMATE is a multi-agent framework for RTL (Verilog) code generation that addresses the gap between academic LLM benchmarks and real chip-industry workflows, where golden testbenches are unavailable, servers are air-gapped, and proprietary code cannot leave premises. The system pairs two agents: one writes Verilog RTL, the other independently writes a Python reference model, and they cross-validate each other instead of relying on an external golden reference. Training proceeds in two reinforcement-learning stages—first saturating each agent's code-generation ability independently, then jointly fine-tuning them to cooperate. At inference, a backtracking mechanism regenerates from prior decision points when one agent's output causes verification failure. Reported results: 75.0% pass@1 on VerilogEval V2 with a 4B base model and 80.1% with a 9B model, with the 9B version surpassing the 1600B-parameter DeepSeek V4 general-purpose model. Open questions include the quality control of the 64.4K self-generated training samples and the stability of multi-agent RL, such as the risk of low-quality mutual agreement between the two agents.

The chip design industry has an open secret: AI models that generate RTL code perform well in academic benchmarks but see almost no real-world adoption in industry. The reason is not that the models write bad code — it is a fundamental mismatch between real industrial workflows and academic evaluation setups.

Academic benchmarks assume a perfect golden testbench exists *before* the model writes code. In reality, testbenches are developed alongside the design, and no golden reference exists until the code is done. Academic evaluation assumes the model can call closed-source APIs. In reality, chip vendors' servers are physically isolated from the outside world, with no outbound data allowed. Academic evaluation assumes the model cannot be fine-tuned on a vendor's proprietary codebase. In reality, every chip company has decades of accumulated proprietary RTL, but that data can neither be uploaded to the cloud nor used for training.

Yu, Lin, and team's ChipMATE changes this paradigm from the ground up. The core design uses two agents: one writes Verilog (the hardware description language), the other writes a Python reference model (a software behavioral description). After the Verilog agent writes a piece of RTL, the Python agent independently writes a corresponding reference model. The two are compared against each other — not against an external golden reference, but serving as each other's validation standard. This mirrors a common industrial practice: two engineers independently design the same module, then cross-verify.

Training Pipeline

Training has two stages, both driven by reinforcement learning:

1. Stage 1 — Independent training: each agent's code-generation capability is saturated to its limit. 2. Stage 2 — Joint training: the team learns to collaborate — one agent anticipates the other's needs, writing code that is easy to verify and reference models that are easy to understand.

At inference time there is also a backtracking mechanism: if the first agent's output causes the second agent's verification to fail, the workflow does not proceed — instead it backtracks to the previous decision point and regenerates. This prevents errors from propagating across turns.

Results

  • 75.0% pass@1 on VerilogEval V2 with a 4B base model
  • 80.1% pass@1 with a 9B model
  • All records for self-trained models broken
  • Notably, the 9B ChipMATE even surpasses DeepSeek V4, a general-purpose 1600B-parameter model — two specialized agents totaling under 20B parameters beating a 1600B general-purpose giant.

Open Questions

The paper's training data comes from 64.4K samples generated by the framework itself — how is their quality guaranteed? If the reference-model agent has itself learned wrong patterns, cross-validation could degenerate into cross-confirmation. Additionally, the training stability of multi-agent RL has been disputed in similar systems — could collapse modes emerge, where the two agents settle into a low-quality mutual understanding?

---

References

1. Yu, Z., Lin, Y., Zhou, C., et al. (2026). *ChipMATE: Multi-Agent Training via Reinforcement Learning for Enhanced RTL Generation*. arXiv:2605.12857 [cs.MA]. 2. Thakur, S., et al. (2024). *VerilogEval: Evaluating Large Language Models for Verilog Code Generation*. DAC. 3. Wu, M., et al. (2025). *RTLCoder: Fully Open-Source and Efficient LLM for RTL Code Generation*. DATE.

Tags

#chipmate#rtl-generation#verilog#multi-agent-rl#llm#chip-design#verilogeval#reinforcement-learning

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177620298