← Latest papers
🤖 AI

From Mirage to Grounding: Towards Reliable Multimodal Circuit-to-Verilog Code Generation

This paper reveals a critical "Mirage" phenomenon in which multimodal models bypass visual circuit diagrams to generate code solely based on text identifiers, and introduces VeriGround, a 4B-parameter model trained with anonymization and preference alignment to achieve reliable, truly grounded conversion of circuit diagrams to Verilog.

Original authors: Guang Yang, Xing Hu, Xiang Chen, Xin Xia

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

Original authors: Guang Yang, Xing Hu, Xiang Chen, Xin Xia

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

The Big Problem: The "Mirage" Effect

Imagine you are taking a test where you must draw a city map based on an image of that city. However, the test instructions also include a list of street names (like "Main Street" and "Oak Avenue").

The researchers discovered that many AI models cheat. Instead of actually looking at the city image to figure out where the streets run, the AI reads the list of street names and simply recites a memorized map it already knows.

The "Mirage" Phenomenon:
The authors call this a Mirage (a Fata Morgana). It is like seeing water in the desert that is not actually there.

  • The Test: They showed the AI a real circuit diagram (the image) and asked it to write the code (the map).
  • The Trick: They replaced the real image with a blank white image, but kept the list of street names (the module header) exactly the same.
  • The Result: Surprisingly, the AI performed just as well with the blank image, sometimes even better!

This proves that the AI did not actually "see" the circuit diagram. It ignored the image entirely and guessed the code based only on the component names. If the names were "Sum" and "Carry," the AI knew it had to build a "Half Adder" without ever looking at the wires in the diagram.

Why This Matters: The Silicon Trap

Why is this important? The paper compares this to building a house.

  • Normal Code: If a web designer makes a mistake, the website looks ugly. It can be fixed easily.
  • Circuit Code: If an AI makes a mistake in a circuit diagram, that code is burned onto a physical chip (silicon). Once the chip is manufactured, you cannot undo the mistake with "Ctrl+Z." It is like pouring a concrete foundation and then realizing the door is on the wrong side. You have to tear down the entire building.

If the AI hallucinates (makes things up) based on text clues instead of visual reality, it could create chips that look perfect on paper but fail in the real world.

The Solution: The "Amnesia" Test and a New AI

To fix this, the researchers built two things: a new test and a new AI model named VeriGround.

1. The New Test: "C2VEVAL" (The Amnesia Test)

They created a benchmark where they "anonymized" the test.

  • Normal Mode: The AI sees the diagram and the names (e.g., "Clock", "Reset").
  • Anonymized Mode: They changed all names to generic placeholders like "Val_0", "Val_1", and "Val_2".
  • The Goal: If the AI truly understands the image, it should still work with the generic names. If it only cheated using the names, it should fail.

The Result: When they removed the names, the performance of most large AI models collapsed. This confirmed that the "Mirage" was real. The models actually looked at the image only about 8–9% of the time.

2. The New AI: "VeriGround" (The Honest Student)

The researchers trained a new, smaller AI (only 4 billion parameters, which is tiny compared to giants like GPT-5) to stop cheating. They used three specific training tricks:

  • Trick A: The "Veiled" Training (Anonymization): They forced the AI to learn from anonymized data. Since it could not rely on the names, it had to learn to read the actual lines and shapes in the diagram.
  • Trick B: The "Say No" Training (Refusal Augmentation): They taught the AI to say, "I cannot do this," if the image was blank or did not match the instructions. This prevents the AI from guessing when it is unsure.
  • Trick C: Focus on the "First Impression" (D-ORPO): This is a technical adjustment. When an AI decides to answer or refuse, it makes that decision in the very first words of its response. The researchers made the AI pay special attention to these first few words to ensure it makes the right choice (Generating vs. Refusing) without being confused by the length of the answer.

The Results: Small but Mighty

The new AI, VeriGround, achieved some impressive results:

  • It actually looks: Under the "anonymized" test (where cheating is impossible), VeriGround scored much higher than all other models, proving it really reads the diagrams.
  • It does not guess blindly: It learned to reject blank images 92% of the time, yet rarely rejected a valid image (only 1.2% false rejections).
  • It punches above its weight: Although VeriGround is a "small" model (4B parameters), it performed just as well as the massive, expensive "GPT-5.4" model when names were present, and outperformed it when the names were removed.

Summary

The paper reveals that many AI models are "just pretending" when converting circuit images into code; they only read the labels and ignore the image. The authors built a new test to expose this "Mirage" and trained a new, honest AI (VeriGround) that actually looks at the image, refuses to guess when confused, and performs better on this task than the giants.

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 →