Kolpona: An Agentic Framework with Gradient-Free Neuron Programming for RTL Generation

Musa Tur Farazi, Md Nasir Uddin, Soumik Bhattacharjee, Tishna Sabrina, Chowdhury Mohammad Rakin HaiderarXiv 2026

TL;DR

Instead of burning GPU hours fine-tuning an LLM to write better hardware code, what if you could just perform microscopic brain surgery on a handful of its neurons? Kolpona introduces neuron programming—mathematically writing single-neuron patches directly into an open-weight model to cure its bad coding habits, no gradients required. Paired with a team of tool-using agents and clever simulation-based voting, this approach turns standard open models into state-of-the-art chip designers—and surprisingly, makes them better at Python, too.

What Problem Does This Paper Address?

Teaching Large Language Models (LLMs) to write synthesizable hardware code—specifically Register-Transfer Level (RTL) designs in Verilog—is notoriously tough. Usually, improving open-weight models requires supervised fine-tuning or reinforcement learning on massive, curated datasets of verified hardware designs. That demands heavy GPU clusters and overwrites every weight in the network.

Recently, an alternative called weight-space programming (WSP) emerged, where an external system inspects a model’s activations and edits its weights directly using forward passes alone. Until now, WSP had mostly been tested on tiny models doing simple math or Q&A. The authors ask: Can surgical, gradient-free weight edits actually upgrade a multi-billion-parameter reasoning model on a hardcore engineering task like chip design?

Methods

Kolpona operates in two distinct phases: a one-time weight-editing phase, and a multi-agent inference phase.

Figure 1. Overview of Kolpona. Neuron programming writes single MLP neurons that remove failure habits found on practice tasks, and it keeps an edit only if a paired testbench comparison favours it. At inference time, the edited model runs N tool-using agents and a label-free selection stage, which delivers one design per task without any testbench or reference design.

1. Neuron Programming (Weight Editing)

Rather than training with an optimizer, the authors fix recurring failure habits (like runaway reasoning loops, declaring ports twice, or mixing up synchronous vs. asynchronous resets) one MLP neuron at a time—running on a CPU in minutes.

Each SwiGLU neuron is treated as a tiny, closed-form program made of three hand-crafted vectors:

  • Trigger ($g$): Separates states where a bad habit starts from ordinary positions, keeping the neuron exponentially quiet everywhere else.
  • Read ($p$): Measures a signal the model already computes internally (e.g., whether the prompt asked for a synchronous reset).
  • Write ($u$): Pushes the logits toward the desired next tokens while leaving special chat and top tokens undisturbed.
Anatomy of a programmed MLP neuron

An LLM (Claude) proposes these edits under human supervision. Crucially, every edit must survive a strict, paired statistical test (McNemar's test) on fresh practice testbenches before it is kept. For the 4B model, low-activity neurons are overwritten; for the 27B model, zero-weight "spare" neurons are appended to the MLPs.

2. Label-Free Agentic Selection (Inference)

At test time, there is no reference testbench to check the model's work. So, $N$ independent agents write, compile (via Icarus Verilog), and debug candidate designs. To pick a single winner without ground-truth labels, Kolpona runs a four-stage tournament:

  1. Short-run voting: Group designs that produce identical cycle-by-cycle outputs over 200 random cycles; pick the biggest group.
  2. Long simulations: Run ~152,000 cycles (plus constant-threshold edge cases) to expose sneaky counter or timer bugs, splitting groups that diverge.
  3. Same-model judgement: The edited LLM acts as a referee, judging code duels (or behavioral diffs for the 4B model) between competing groups.
  4. Example replay: The model extracts truth tables or waveforms mentioned in the prompt and verifies the winning candidate actually obeys them.

Datasets

  • Practice Data (Diagnosis & Acceptance Testing): Filtered splits of CodeV-R1 (2,916 tasks) and OriGen (10,824 tasks), scrubbed of near-duplicates to the test sets.
  • RTL Evaluation Benchmarks: VerilogEval v2 (156 tasks; also served as a development set for the final selection stage), RTLLM v2.1 (50 designs), ChipBench (30 self-contained tasks), and CVDP cid003 (78 problems).
  • Python Transfer Benchmarks: LiveCodeBench v6 (131 recent problems), HumanEval+, and MBPP+. No new benchmarks were introduced.

Key Insights and Ideas

  • Removing roadblocks beats teaching new tricks: Neuron programming shines at clearing bottlenecks the model already understands internally—like stopping infinite thinking loops or fixing syntax slips. Complex logic bugs (like finite-state machine timing errors) don't show up as neat, single-token triggers and can't be patched this way.
  • Hardware edits magically fix Python: Even though the 4B model's neuron edits were diagnosed and tested exclusively on Verilog tasks, those exact same weight changes significantly boosted its zero-shot Python coding scores. Fixing general habits like runaway reasoning pays dividends across languages!
  • Microscopic footprint: On Qwen3.5-4B, editing just 25 neurons changes fewer than 0.005% of the weights, yet transforms a model that constantly times out into a strong coder.

Key Results

Pass@1 comparison across four RTL benchmarks

Figure 4. Pass@1 (%) of our systems, their base models and published systems (Yu et al., 2026a) on four RTL benchmarks.
  • Kolpona (Qwen3.8-27B) runs on a single 32 GB RTX 5090 GPU and beats every published system compared—including GPT-5.5 and Claude Opus 4.7—hitting 94.9% pass@1 on VerilogEval v2 (up from 73.1% base) and 92.0% on RTLLM v2.1 (up from 66.0%). It also reaches 66.7% on ChipBench and 59.0% on CVDP.
  • Kolpona-mini (Qwen3.5-4B) sees neuron programming alone (16 active standalone neurons, no tools) jump VerilogEval v2 pass@1 from 31.7% to 55.4%, slashing token-limit timeouts from 152 answers down to 5 out of 312. Adding the agentic framework pushes it to 77.6%.
  • Cross-Language Transfer: With one answer and no tools, the RTL-edited 4B model boosts Python pass@1 from 84.8% to 91.5% on HumanEval+ and from 67.7% to 77.5% on MBPP+. With the Python agent harness, it hits 63.4% on LiveCodeBench v6 (vs. 55.8% base).

Limitations and Future Work

  • Domain & Scope Constraints: Neuron programming requires executable practice testbenches to validate edits, and it can only cure habits that are linearly separable and localized to specific tokens—deep algorithmic logic errors remain out of reach.
  • Human-in-the-Loop & Compute Tradeoffs: Designing neuron edits still requires diagnostic effort and human supervision, while running $N=10$ multi-turn agents costs noticeably more inference compute than a single pass.
  • Shared Blind Spots: If most agents and the judging model misread an ambiguous specification in the exact same way, label-free selection cannot rescue the design.
  • Future Work: The authors point toward scaling the framework to larger multi-module hardware designs and applying neuron programming to other domains with executable verification checks.

Summary updated

BibTeX
@misc{farazi2026kolpona,
  author = {Musa Tur Farazi and Md Nasir Uddin and Soumik Bhattacharjee and Tishna Sabrina and Chowdhury Mohammad Rakin Haider},
  title = {{Kolpona: An Agentic Framework with Gradient-Free Neuron Programming for RTL Generation}},
  year = {2026},
  eprint = {2611.33973},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33973},
}
Figure