# Qwen3.6 learns to fix chip design bugs, solving 74% of HWE-Bench tasks

Peking University researchers turned 18,257 public hardware code changes into runnable training tasks. An open Qwen model trained on them nearly doubled its score at repairing real chip bugs, but still trails the best commercial models.

- Category: Code
- Readiness level: III (Open source) on Science Underway's four-step scale, as proposed
- Published: 2026-12-02
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/qwen3-6-learns-to-fix-chip-design-bugs-solving-74-of-hwe-bench-tasks

## The study

OriGent: Post-Training Hardware Engineering Agents through Scalable Environment Synthesis (preprint, not peer reviewed). arXiv 2611.38637. https://arxiv.org/abs/2611.38637

## At a glance

- What it shows: Past bug fixes from public chip-design projects can be rebuilt into practice exercises for an AI assistant. A mid-sized open model trained on them went from fixing about four in ten real hardware bugs to about three in four.
- What it does not show: It does not show the model working inside a real chip design team. It also does not match the best commercial models, which fix 90% or more of the same bugs.
- Why it matters: Hardware code is scarce online, which has held back AI help for chip engineers. A repeatable way to make training material from public history, released openly, lowers that barrier.

## What the study shows

The study tackles a known gap. AI coding agents, models that edit code and run tools on their own, have improved quickly on ordinary software. Chip design has lagged. Its code is rare in public datasets, and each project needs its own mix of simulators and build tools to check a fix.

The authors built a pipeline that mines merged pull requests, which are accepted code changes on GitHub. Software agents rebuild the project as it was before each fix. They then write two kinds of test. Target tests must fail before the fix and pass after it. Regression tests, which guard existing behaviour, must pass both times. A further agent writes a plain description of the bug, and a separate reviewer agent checks it for gaps and leaked hints.

The result is 18,257 runnable tasks from 90 repositories. They span chip design code, verification, chip design software (EDA tools), hardware description languages and firmware. More than half came from changes that had no tests of their own, so other pipelines would have discarded them. The authors also report that correct solutions usually differ from the original fix, which suggests the tests accept more than one valid answer.

Using these tasks, the authors trained Qwen3.6-35B-A3B, an open model. First came supervised fine-tuning, where the model copies successful worked examples from a stronger model, DeepSeek-V4.1 Flash. Then came reinforcement learning, where the model learns from pass or fail rewards. They used GRPO, a common method of this kind.

They tested on HWE-Bench v1.1: 417 real hardware bug-repair tasks from six projects kept out of training. The authors report the resolve rate rose from 40.8% for the base model to 66.8% after fine-tuning and 74.2% after reinforcement learning, averaged over three runs. Frontier systems on the public leaderboard score between about 90% and 99%. The paper is a preprint and has not been peer reviewed.

## Our reading

In our reading, the main contribution is the training material, not the model. Turning old pull requests into checked exercises is a known idea in software. Making it work for hardware, where a ten-year-old project may need a different simulator and compiler, is the hard part. The authors handle this by building reusable toolchain setups per project era and reusing them across tasks.

The headline gain is real but needs context. The trained model still fails about one bug in four. The best commercial systems fail about one in a hundred. The comparison is also not like for like: the frontier scores come from the leaderboard, each run in its own tool, while the authors ran their models in OpenCode, an open agent harness.

A practical example: a team that cannot send proprietary chip code to an outside API could run this open model on its own servers. It could then try it on routine regressions in its own repositories. Whether it would help there is not tested in this paper.

The rest of the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/qwen3-6-learns-to-fix-chip-design-bugs-solving-74-of-hwe-bench-tasks

## How this was made

An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
