← Latest papers
🤖 AI

RTL-BenchLS: A Large-Scale Benchmark for RTL Reasoning and Generation with Large Language Models

This paper introduces RTL-BenchLS, a large-scale benchmark featuring over 10,000 formally verified Verilog designs and three novel self-supervised reasoning tasks that overcome the scalability limitations of existing benchmarks to rigorously evaluate and guide the development of LLMs for hardware design automation.

Original authors: Jing Wang, Shang Liu, Wenji Fang, Yuchao Wu, Yugao Zhu, Zhiyao Xie

Published 2026-06-09
📖 5 min read🧠 Deep dive

Original authors: Jing Wang, Shang Liu, Wenji Fang, Yuchao Wu, Yugao Zhu, Zhiyao Xie

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a brilliant but inexperienced apprentice how to build complex electronic circuits (called RTL designs) using only natural language instructions. To see if the apprentice is actually learning, you need a test.

For a long time, the tests used to evaluate these AI "apprentices" (Large Language Models or LLMs) were like kindergarten coloring books. They were small, simple, and the AI could easily get a perfect score just by memorizing the patterns. The paper argues that we need a real-world construction site to see if these AIs can actually do the job.

Here is the story of RTL-BenchLS, the new, much harder test introduced in the paper.

1. The Problem: The "Kindergarten" Tests

Existing tests were too easy. They had:

  • Too few designs: Like having only 50 tiny puzzles instead of thousands.
  • Too simple: Like asking the AI to build a single Lego brick instead of a whole castle.
  • One trick: They mostly just asked the AI to translate a sentence into code. Once the AI got good at that, the test stopped being useful because the AI was "saturating" (getting 100% on everything).

Furthermore, making a harder test was thought to be impossible. Why? Because to make a hard test, you usually need a human expert to write the "answer key" (a testbench) for every single puzzle. There aren't enough human experts to do that for 10,000 complex circuits.

2. The Solution: A Self-Checking "Magic Mirror"

The researchers built RTL-BenchLS, a massive library of over 10,000 verified circuit designs. These aren't tiny bricks; they are complex structures, some with nearly 500 lines of code.

To solve the "answer key" problem without hiring thousands of humans, they invented three new types of puzzles that act like a magic mirror. The AI has to prove it understands the circuit by doing things that must work if it truly understands the logic, rather than just guessing the right answer.

The Three New Puzzles:

Puzzle 1: The "Summarize and Rebuild" Challenge (Round-Trip Reasoning)

  • The Setup: You give the AI a complex circuit diagram.
  • The Task: The AI must first write a summary of how it works (like a recipe), and then, using only that summary, rebuild the exact same circuit from scratch.
  • The Catch: If the summary misses even one tiny detail, the rebuilt circuit will be different. The system checks if the new circuit is identical to the original.
  • Analogy: It's like asking a chef to taste a complex dish, write down the recipe, and then cook the dish again from that note. If the taste is different, they failed.

Puzzle 2: The "Missing Piece" Challenge (Masked-Content Reasoning)

  • The Setup: You show the AI a circuit, but you cover up a specific block of code with a "blank" sticker.
  • The Task: The AI must look at the surrounding code and the description of the blank spot to figure out exactly what was underneath the sticker and fill it in correctly.
  • Analogy: Imagine a jigsaw puzzle where one piece is hidden. You have to look at the picture around the hole and guess exactly what the missing piece looks like to complete the image.

Puzzle 3: The "Bug Detective" Challenge (Repository-Issue Reasoning)

  • The Setup: You give the AI a whole folder of code (a project) and a complaint from a user saying, "This part is broken!"
  • The Task: The AI must find the broken part in the massive code folder and fix it so it works exactly like the "golden" fix a human expert would make.
  • Analogy: You hand a mechanic a car with a weird noise and a note saying "it sounds like a squeak." The mechanic has to find the exact loose screw in the engine and fix it, without breaking anything else.

3. The Results: The AI is Still a "Novice"

The researchers tested 8 of the smartest AI models on this new, hard benchmark. The results were eye-opening:

  • On the old, easy tests: The best AIs got nearly 88% correct.
  • On the new, hard tests:
    • Round-Trip (Summarize & Rebuild): The best AI only got ~23% right.
    • Missing Piece: The best AI got ~28% right.
    • Bug Detective: The best AI got only ~12% right.

What this means: Even the smartest AIs are currently terrible at truly understanding complex hardware logic. They are good at mimicking patterns on simple tasks, but when you ask them to reason through a complex problem, they struggle significantly.

4. Why This Matters

This paper doesn't say AI will never build chips. It says that we have been overestimating how good they are because our tests were too easy.

RTL-BenchLS is like moving the test from a kindergarten classroom to a professional engineering firm. It shows us exactly where the AI is failing (like getting confused by complex logic or missing small details in a bug report) and gives engineers a real tool to measure progress. It leaves a lot of room for improvement, proving that the journey to fully automated hardware design is just beginning.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →