# VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets

VeriLadder: 도구로 검증한 Verilog 데이터셋

Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · arXiv · 2026년 11월 21일

- **연구 문제** 기존 Verilog 데이터셋은 문법만 확인해 합성되지 않는 코드나 모호한 지시문이 섞여 있습니다.
- **연구 방법** VeriLadder는 설계를 합성해 보고, LLM이 명세를 고쳐 쓰게 한 뒤, 다른 모델이 만든 회로를 형식 동치 검사로 확인합니다.
- **주요 결과** 정제 명세만으로 같은 회로를 다시 만든 비율이 원본 지시문의 26.1%에서 78.2%로 올랐습니다.

## 학습 데이터가 회로를 정하지 못하는 문제

Verilog용 LLM의 성능은 학습 데이터의 질에 크게 좌우되지만, 공개된 데이터셋 대부분은 코드가 문법에 맞는지만 확인합니다. 모델은 자연어 지시문과 Verilog 모듈 쌍에서 배우는데, 지시문이 과제를 설명하는 유일한 문서이므로 지시문이 곧 설계의 명세가 됩니다. 그러나 문법 검사로는 코드가 실제 하드웨어로 합성되는지 알 수 없습니다. 하드웨어 엔지니어는 설계를 정해진 순서로 검사합니다. 먼저 합성 도구가 코드를 논리 게이트와 플립플롭으로 된 회로로 바꿀 수 있어야 하고, 그다음으로 명세가 회로의 동작을 다른 엔지니어가 같은 회로를 만들 만큼 정확히 기술해야 합니다.

기존 데이터셋은 이 두 속성을 모두 잘 확인하지 못하며 빈틈이 여러 가지입니다. 합성 여부를 검사하지 않아서 실패한 설계는 걸러지거나 라벨 없이 남고, 실패 원인도 함께 사라집니다. 명세 품질은 어떤 데이터셋도 측정하지 않습니다. 일부 데이터셋은 명세만 읽은 다른 LLM이 짝 코드와 동등한 코드를 쓰는지 round-trip으로 검사하지만, 실패하면 쌍을 버리거나 라벨만 붙이고 명세를 고치지는 않습니다. 또 설계마다 지시문이 하나뿐인데, LLM은 프롬프트의 표현에 민감하고 현장의 엔지니어들은 같은 설계를 서로 다른 말로 요청합니다. 기능만 살짝 다른 하드 네거티브가 없어서 모델은 명세의 어느 세부가 중요한지 배우기 어렵습니다.

![Table 1: Comparison of VeriLadder with prior Verilog datasets, by the checks they apply and the training data they provide. PPA is power, performance and area…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-03f1498512d27916e316ef73c90e134e.png?thumb=512)

**Table 1** . Comparison of VeriLadder with prior Verilog datasets, by the checks they apply and the training data they provide. PPA is power, performance and area after synthesis.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

이 빈틈은 수치로도 드러납니다. RTLCoder 설계의 28%, PyraNet 설계의 43%가 합성에 실패했고, 합성에 성공한 설계 가운데서도 16%와 19%는 회로를 만들어 내지 못했습니다. 원본 지시문만으로 같은 회로를 다시 만드는 비율도 26.1%에 그쳤습니다. 이런 데이터를 라벨 없이 학습하면 모델은 하드웨어가 될 수 없는 코드를 옳은 코드처럼 배우게 됩니다. 그래서 저자들은 합성 가능성을 RTL 데이터셋의 첫 라벨로 두어야 한다고 봅니다. 합성 불가 설계를 양성 예시에서 빼고, 실패 범주와 함께 대조 학습과 선호 최적화의 음성 예시로 쓸 수 있기 때문입니다. 합성 과정에서 critical warning이 나온 설계도 회로는 만들어지므로 경고를 라벨의 일부로 남긴 채 다음 단계로 넘기며, Level 3을 통과한 설계의 11.8%가 이런 경고를 가지고 있었습니다.

![Figure 5: Level-1 outcome for each dataset, as a share of all designs (numbers of designs in parentheses). An empty circuit is synthesizable but maps to no sta…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-a3972eac714f35b61d97835f0961804f.png?thumb=512)

**Fig. 5** . Level-1 outcome for each dataset, as a share of all designs (numbers of designs in parentheses). An empty circuit is synthesizable but maps to no standard cell.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

![Figure 21: Failure families as a share of the designs that fail synthesis in each dataset](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-2066a441462eff09270f44ef2c23a67f.png?thumb=512)

**Fig. 21** . Failure families as a share of the designs that fail synthesis in each dataset.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 24쪽에서 그림 영역을 추출했습니다.

## 다섯 단계로 쌓은 검증 사다리

VeriLadder는 설계 하나마다 합성, 명세 채점, 명세 정제, 패러프레이즈, 한 사실 변형의 다섯 단계를 차례로 적용합니다. Level 1에서 Yosys는 설계를 게이트 수준 넷리스트로 합성하고 Nangate 45 nm 라이브러리의 셀로 매핑해 셀 수, 면적, 논리 깊이를 기록하며, 정적 타이밍 분석으로 임계 경로 지연을 구합니다. 합성되지 않은 코드는 하드웨어가 되지 못하고 뒤 단계도 합성된 회로를 읽으므로, 셀이 하나 이상인 effectively synthesizable 설계만 Level 2로 넘어갑니다.

![Figure 2: What a record of VeriLadder contains. Each frame lists what one level adds and holds only the designs that reach that level. At Level 3 the record ke…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-734c3cd8ed29b44766124cf8059db42a.png?thumb=512)

**Fig. 2** . What a record of VeriLadder contains. Each frame lists what one level adds and holds only the designs that reach that level. At Level 3 the record keeps the refinement trajectory, and at Level 5 the counterexample of every one-fact variant. “Looks like” boxes are simplified drawings, “Useful for” names a use of what the level adds, and Figures 3–20 show real records.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Figure 22: Cell count, area and critical-path delay of effectively synthesizable designs (Nangate 45 nm). Each curve shows the share of designs at or below a v…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-ea3f878ad2e3140282b1913819445b55.png?thumb=512)

**Fig. 22** . Cell count, area and critical-path delay of effectively synthesizable designs (Nangate 45 nm). Each curve shows the share of designs at or below a value; the delay curve covers the designs with a plausible delay.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.

Level 2는 원래 지시문이 설계를 얼마나 구체적으로 명세하는지를 일관성, 모호성 없음, 완전성, 검증 가능성의 네 항목에 1에서 5로 매기며, 이 등급은 LLM이 부여합니다. 그래서 등급은 형식 검증을 대신하지 못하고, 수용 여부는 round trip으로 정해집니다. 정제기 Writer는 원래 지시문, Yosys 사실, 검사된 동작 기술을 입력받아 개요, 인터페이스, 동작, 리셋, 타이밍의 다섯 절로 된 정제 명세를 씁니다. 이 명세는 출력이 사이클마다 무엇을 하는지만 적고 회로가 어떻게 계산하는지는 적지 않습니다. 원래 지시문과 코드가 어긋나면 정제 명세는 코드를 따르고, 그 설계에는 지시문이 코드와 모순된다는 플래그를 붙여 사용자가 해당 쌍을 찾거나 제외할 수 있게 합니다.

독립된 빌더 Claude Haiku 5.5가 명세만 읽고 최대 다섯 번 모듈을 쓰며, 정제기 gpt-6-luna와 다른 모델 계열이라 코드에 대한 같은 시각을 공유하지 않습니다. 형식 동치 검사기는 포트 이름, 방향, 폭이 맞는지 먼저 보고, 미터를 만들어 모든 레지스터가 0인 상태에서 출력이 다를 수 있는지 SAT solver에 묻습니다. 순차 회로는 리셋 뒤 처음 20 사이클까지만 확인하고, 많은 사이클 뒤에야 드러나는 차이를 잡으려고 3,000 사이클짜리 무작위 입력 세 개를 서로 다른 리셋 패턴으로 시뮬레이션하며, 마지막으로 두 설계가 같은 클럭 에지를 쓰는지 확인합니다.

RTLCoder 설계 14,385개 가운데 57개는 오해되어 Level 2에서 멈췄고, 36개는 프로그램 검사를 통과한 정제 명세를 얻지 못해 14,292개가 round trip에 들어갔습니다. 원래 지시문으로는 빌더가 14,385개의 26.1%를 다시 만들었고, 포트 목록을 더하자 36.7%였습니다. 저자들은 이 차이가 지시문의 표현이 회로를 충분히 정하지 못한 데서 왔다고 봅니다. 정제 명세의 길이는 중앙값이 197 토큰으로 원래 지시문의 180 토큰보다 조금 길었지만, 단어 수로는 128과 129로 거의 같았고 그 차이는 정확한 이름, 폭, 상수에서 나왔습니다.

![Figure 15: The round trip. (a) Outcome of the 14,292 designs that reach it; the 11,247 accepted designs give the refinement trajectories. (b) Share of designs…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-9164c463fed0781fa0f22ca9efd1a803.png?thumb=512)

**Fig. 15** . The round trip. (a) Outcome of the 14,292 designs that reach it; the 11,247 accepted designs give the refinement trajectories. (b) Share of designs that each builder rebuilds from each kind of specification, verified equivalent to the original code (1,460 randomly sampled designs; 95% confidence intervals). From the original instruction to the refined specification after revision, Claude Haiku 5.5 gains 55 and the open Qwen3-Coder-30B 43 percentage points, so the gain is not tied to the builder that the pipeline uses.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.

![Figure 17: (a) Length in tokens of each kind of text for the 11,247 accepted designs (boxes: middle 50%; lines: medians; whiskers: 1.5 times the box width). (b…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-0e598814655b139d355becea2d418f51.png?thumb=512)

**Fig. 17** . (a) Length in tokens of each kind of text for the 11,247 accepted designs (boxes: middle 50%; lines: medians; whiskers: 1.5 times the box width). (b) Ratio of the length of each refined specification to the length of its original instruction.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.

![Figure 23: Share of designs rebuilt and verified equivalent, by design type. Gray is the share rebuilt from the original instruction, blue is what the refined…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-c87d6043fbc918def4cabb6d84b05819.png?thumb=512)

**Fig. 23** . Share of designs rebuilt and verified equivalent, by design type. Gray is the share rebuilt from the original instruction, blue is what the refined specification adds (in percentage points), and the number at the end is the share rebuilt from the refined specification. The rows of each size and each kind add up to all 14,385 designs processed at Level 3; the feature rows overlap, since a design can have several features, and 9,827 designs have none of them.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.

![Figure 24: Length of each accepted refined specification against the size of its code (11,247 designs; points are jittered slightly). A translation of the code…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-6985c5c5a454176b0991ba43f89d2573.png?thumb=512)

**Fig. 24** . Length of each accepted refined specification against the size of its code (11,247 designs; points are jittered slightly). A translation of the code line by line would lie near the dashed line. The refined specifications grow much more slowly than the code, because they state the rule that the code implements instead of each of its statements.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.

Level 4는 수용된 명세마다 같은 회로를 다르게 기술한 패러프레이즈를 만들며, 코드 생성 모델이 표현 변화에 민감하다는 점이 그 동기입니다. VeriAssist는 워크플로의 지시문만 바꿔 실험했을 뿐, 같은 회로를 기술한다고 검증된 패러프레이즈를 담은 Verilog 학습 세트는 알려진 것이 없었습니다. Level 5에서 Trickster 에이전트는 명세의 핵심 사실 하나, 예를 들어 포화 값을 255에서 254로 바꾸고 코드도 맞춰 바꾸어 9,306개의 one-fact variant를 만들었으며, 이 가운데 8,397개가 round trip을 통과했습니다.

![Figure 19: How much the 32,393 verified paraphrases differ from the refined specifications they reword. (a) Share of tokens that must change to turn the refine…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-2204aad6ebea3994acbd1ad59b1fd548.png?thumb=512)

**Fig. 19** . How much the 32,393 verified paraphrases differ from the refined specifications they reword. (a) Share of tokens that must change to turn the refined specification into the paraphrase (token edit distance, Qwen2.5- Coder tokenizer). (b) Share of the word 4-grams of a paraphrase that also appear in the refined specification. Dashed lines mark the medians; the medians of the three kinds of paraphrase are given in gray.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.

![Figure 28: Levels 4 and 5 with two builders on 1,460 randomly sampled designs. (a) Share of paraphrases rebuilt as the same circuit, by kind of paraphrase (95%…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-309215764c8b08e9980981a045069031.png?thumb=512)

**Fig. 28** . Levels 4 and 5 with two builders on 1,460 randomly sampled designs. (a) Share of paraphrases rebuilt as the same circuit, by kind of paraphrase (95% confidence intervals). (b) Given the one-fact variant specification𝑆′, the share of attempts in which the builder writes the changed design 𝐷′ (the intended outcome), the original design𝐷, or another design that is wrong or does not compile.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 32쪽에서 그림 영역을 추출했습니다.

## 채점 등급과 정제 효과의 검증

등급 평균이 명세 품질을 실제로 반영하는지는 round trip 결과와 맞춰 보았습니다. 네 등급의 평균은 round trip 통과 여부를 ROC AUC 0.89로 가려냈습니다. 품질을 하나씩 떼어 보면 verifiability가 0.86, completeness가 0.84로 가장 잘 맞았고, unambiguity 0.83과 consistency 0.81이 뒤따랐습니다. 재구현 비율은 등급과 함께 가장 가파르게 올랐습니다. 예를 들어 completeness 등급 2의 지시문은 4.8%, 등급 5의 지시문은 79.4%가 재구현되었습니다.

![Figure 9: (a) Share of designs that another LLM rebuilds from the original instruction, by the instruction’s grade on each quality. (b) ROC curve of each grade…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-48e03e4c660f0e2fed20dacb8454f4c7.png?thumb=512)

**Fig. 9** . (a) Share of designs that another LLM rebuilds from the original instruction, by the instruction’s grade on each quality. (b) ROC curve of each grade and of their average as a predictor of whether the circuit is rebuilt, with the AUC in parentheses; the dashed diagonal is chance.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

![Figure 10: Overlap of the four qualities on the 14,292 graded original instructions; a quality is low if its grade is 3 or less. (a) Number of instructions for…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-6874ce42050807150907f4fe3f6063e1.png?thumb=512)

**Fig. 10** . Overlap of the four qualities on the 14,292 graded original instructions; a quality is low if its grade is 3 or less. (a) Number of instructions for each combination of low qualities, for the ten most frequent combinations; a colored square marks a low quality, and the bar color gives how many of the four qualities are low. (b) Share of instructions rebuilt from the original instruction when no quality is low and when exactly one quality is low.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

채점 LLM에는 Table 2의 등급 기준을 그대로 주었고, 예시는 같은 기준 설계인 8-bit up-counter였습니다. 이 카운터는 동기식 active-high reset이 enable보다 우선하고 255에서 0으로 감기며, count는 레지스터 출력이고 tc는 count가 255이고 en이 1일 때만 1이 되는 조합 출력입니다. 등급 5는 서술된 모든 동작이 맞고 열린 항목이 없는 상태입니다. fine-tuning 전 채점 등급은 Level 2 등급과 Spearman 0.30에서 0.36으로 약하게 맞았습니다. 그러나 fine-tuning 뒤에는 unambiguity, completeness, verifiability에서 0.80에서 0.83이 되었고 68에서 72%의 등급이 정확히 일치했습니다.

다만 consistency는 0.61에 머물렀습니다. 네 등급의 평균은 같은 300개 지시문에서 round trip 결과를 ROC AUC 0.86으로 예측했는데, 이는 Level 2 등급의 0.90에 가깝고 fine-tuning 전의 0.59보다 훨씬 높습니다.

![Table 2: Grades of the four specification qualities, as given to the scoring LLM. The examples describe the same reference design: an 8-bit up-counter with a s…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-21301730e43d69e5670a8ee2a460517f.png?thumb=512)

**Table 2** . Grades of the four specification qualities, as given to the scoring LLM. The examples describe the same reference design: an 8-bit up-counter with a synchronous active-high reset that has priority over the enable, wrap-around from 255 to 0, a registered outputcount, and a combinational output tc that is 1 exactly whencountis 255 andenis 1.

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

같은 데이터로 학습한 Jev 방식 판정 모델은 텍스트를 생성하는 대신 분류 헤드를 붙였습니다. 이 모델은 지시문을 한 번 forward pass로 읽은 뒤 품질마다 다섯 선택지 중 하나를 고르는 객관식처럼 답하고, 등급별 확률을 돌려줍니다. 품질 수준은 채점 등급과 비슷했습니다. Spearman은 0.66에서 0.83, 정확 일치는 67에서 75%, AUC는 0.87이었으며, 확률은 expected calibration error 0.04로 0.09인 방식보다 잘 보정되었습니다.

![Figure 27: Grades of Qwen2.5-Coder-7B-Instruct on the 300 held-out instructions, before fine-tuning, after fine-tuning to write the grades (SFT), and as a Jev-…](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827/figures/figure-c56a1427b236824b80930eaf1e652c64.png?thumb=512)

**Fig. 27** . Grades of Qwen2.5-Coder-7B-Instruct on the 300 held-out instructions, before fine-tuning, after fine-tuning to write the grades (SFT), and as a Jev-style decision model with a classification head (↑ higher is better). (a) Spearman correlation with the Level 2 grades. (b) Share of grades that are exact (dark), one point off (light) or two or more points off (dashed).

[원문](https://arxiv.org/abs/2611.28617v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik · VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets · 원문 그림 인용 · 원본 PDF 31쪽에서 그림 영역을 추출했습니다.

정제 효과는 원본 지시문과 정제 명세로 각각 학습한 모델을 비교해 확인했습니다. Qwen2.5-Coder-7B-Instruct는 원본 지시문으로 학습했을 때 VerilogEval v2 functional pass@1이 39.4%, RTLLM v2가 31.2%였고, 정제 명세로 학습했을 때는 44.7%와 41.6%가 되었습니다. Qwen2.5-7B-Instruct에서는 같은 비교가 35.1%에서 39.2%, 24.0%에서 33.6%로 나타났습니다. 수용된 설계 11,247개 가운데 undriven net이 있는 54개는 제외했고, 나머지 11,193개 중 300개는 VeriLadder-Bench로 떼어 두고 10,893개로 LoRA rank 16에 세 epoch 학습했습니다.

여기에 CodeV-R1과 OriGen의 설계 3,248개를 더해 Table 4의 최종 모델을 만들었으며, 최종 모델은 pre-training 모델보다 높았지만 상용 모델은 여전히 앞섰습니다.

## 채점과 검증의 적용 범위

Level 2의 등급은 LLM이 부여하므로, 등급 자체는 명세의 수용 여부를 정하지 않습니다. 대신 각 명세는 round trip으로 직접 시험받습니다. 빌더 LLM인 Claude Haiku 5.5가 명세만 받아 모듈을 다섯 번 작성하는데, 이 모델은 정제 LLM인 gpt-6-luna와 다른 모델 계열이므로 정제 모델이 코드를 보는 관점을 공유하지 않습니다.

작성된 시도가 컴파일되지 않으면 Yosys 오류를 한 번 전달받아 스스로 고칠 기회를 얻습니다. 이어서 형식 동치 검사기가 각 시도를 원본 코드와 비교하며, 시도 가운데 하나라도 검증된 동치로 판정되면 그 명세는 통과합니다. 동치 검사기는 두 회로가 모든 입력 열에 대해 같은 출력을 내면 기능적으로 동치라고 봅니다. 이를 판정하기 위해 두 설계의 출력이 다를 수 있는지를 묻는 miter를 Yosys로 만들고, SAT 솔버가 동치를 확인하거나 차이를 보이는 반례 입력 열을 돌려주도록 합니다. 먼저 두 설계의 포트 이름, 방향, 폭이 같은지 비교합니다. 다음으로 모든 레지스터가 0인 상태에서 출력이 달라질 수 있는지 SAT 솔버에 묻는데, 조합 회로에서는 이것이 모든 입력에 대한 증명이 되지만 순차 회로에서는 리셋 이후 처음 20 클럭 사이클까지만 경계 검사를 합니다.

몇 사이클이 지나야 드러나는 차이, 예를 들어 큰 카운터의 차이는 무작위 입력 열 세 개를 각각 3,000 사이클씩 시뮬레이션해 잡습니다. 따라서 순차 설계의 동치는 제한된 범위 안의 증거이며, 20 클럭 사이클 밖의 동작은 무작위 시뮬레이션으로만 살펴봤습니다.

반례가 명세를 고치는 과정은 포화 가산기(saturating adder)에서 잘 드러납니다. 첫 번째 정제 명세는 합이 8비트에서 감싸진다고 잘못 적었는데, 반례 A=255, B=128에서 코드는 감싸지 않고 포화한다는 것이 드러났습니다. 전체 합을 비교하도록 고친 명세는 검사를 통과했습니다. 이 빌더와 정제 모델의 조합에서 얻은 결과이며, 다른 모델 조합에서도 같은 결과가 나오는지는 확인하지 않았습니다.

## 논문 정보

- **저자**: Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 21일
- **등록일**: 2026년 11월 24일
- **수정일**: 2026년 11월 21일
- **버전**: v1
- **arXiv**: 2611.28617
- **분류**: cs.AI · cs.SE
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.28617v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.28617v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Training data is a bottleneck in AI, especially for large language models (LLMs) that write Verilog, because register-transfer-level (RTL) code is rarely published and existing datasets mostly check code for syntax, not instruction correctness. This paper presents VeriLadder, a five-level Verilog dataset, and the multi-agent framework that builds it, in which LLM agents write and revise specifications, and EDA tools (a synthesizer and a formal equivalence checker) decide what is accepted. Its levels follow an engineer's checks. Level 1 labels designs from two large Verilog corpora, namely RTLCoder and PyraNet, with synthesis results, failure causes, critical warnings and post-synthesis metrics. 28% of RTLCoder designs fail synthesis and are kept as negatives. Level 2 grades each instruction on four specification qualities, and low grades predict failed rebuilds. Level 3 rewrites each instruction into a refined specification and accepts it only if an LLM from another model family, reading only that specification, writes a circuit formally equivalent to the original. This raises the share of rebuildable designs from 26.1% to 78.2%, keeping every failed specification with its counterexample. Levels 4 and 5 add verified paraphrases and one-fact variants, hard negatives that differ only in one behavior from the verified design. VeriLadder labels the synthesizability of 716,627 designs and, from RTLCoder, provides 11,247 refined specifications, 32,393 paraphrases and 8,397 one-fact variants. Fine-tuning Qwen2.5-Coder-7B-Instruct on VeriLadder raises functional pass@1 from 31.7% to 50.0% on VerilogEval v2 and from 35.0% to 45.2% on RTLLM v2. The dataset and fine-tuned models are publicly available.

## 원문 인용

Rajabi, Saeid, Yang, Chengmo, Patnaik, Satwik (2026). VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets. arXiv:2611.28617v1. https://arxiv.org/abs/2611.28617v1

**BibTeX**

```
@misc{saeid2026veriladder,
  title = {{VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets}},
  author = {Rajabi, Saeid and Yang, Chengmo and Patnaik, Satwik},
  year = {2026},
  eprint = {2611.28617},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28617v1}
}
```

## 이 논문의 용어

- [LoRA](https://refivu.com/terms/84da7a415b66-low-rank-adaptation-lora)
- [AUC](https://refivu.com/terms/017a335bbf0e-auc)
- [expected calibration error](https://refivu.com/terms/5989f8ad43cb-expected-calibration-error)
- [rubric](https://refivu.com/terms/950616f51b7a-rubric)
- [Yosys](https://refivu.com/terms/24ca4d89ddfa-yosys)

## 다른 논문 해설

- [AutoPILOT: A Visual Agent Harness for Real-Time Gameplay](https://refivu.com/papers/610b7c6f-2c3b-4308-bb50-b139b48fceb7-autopilot-a-visual-agent-harness-for-real-time.md)
- [LesionAgent: Training-Free Agentic Tumor Tracking and Response Assessment in Longitudinal CT](https://refivu.com/papers/aad1fd25-45a9-4d0f-bd6b-86f8fce045bc-lesionagent-training-free-agentic-tumor-tracking-and.md)
- [Same Executions, Different Gaps: Judgment Rules in Web-Agent Evaluation](https://refivu.com/papers/cb9c224a-78cc-40d2-ad37-8bf5d1ed1cf4-same-executions-different-gaps-judgment-rules-in-web.md)
- [Social Interaction Breaks Replicate Independence in Controlled-Clone LLM Agents](https://refivu.com/papers/b0f57efe-64e2-489e-934b-c47f708f4f19-social-interaction-breaks-replicate-independence-in.md)
- [$R^2$: Recognizing and Reducing Redundant Visual Tool Use](https://refivu.com/papers/49aa784c-5c6e-43d9-8bb6-f7eadf63bbe9-r-2-recognizing-and-reducing-redundant-visual-tool.md)
- [Do Senior Agents Do Their Job? Measuring Role Integrity in How LLM Agents Use Subordinate Material](https://refivu.com/papers/bc927eea-6310-4be4-b4ed-d2b00fdc8344-do-senior-agents-do-their-job-measuring-role.md)
- [From Pairwise to Collective: Encoder Collections Make Unpaired Vision-Language Alignment Reliable](https://refivu.com/papers/5dcdb240-b400-425a-832e-273e7da2f0a6-from-pairwise-to-collective-encoder-collections-make.md)
- [Beyond Single-Turn Privacy: Training-Data Leakage in Conversational RAG](https://refivu.com/papers/51c92831-e3a5-4575-943b-50961dd4fa10-beyond-single-turn-privacy-training-data-leakage-in.md)
- [KMed-31B Technical Report](https://refivu.com/papers/f1b37c66-9898-48db-825c-6abc8dde2417-kmed-31b-technical-report.md)
- [What Must a Model Tell a Planner? Outcome Interfaces for Risk-Aware Planning After Robot Damage](https://refivu.com/papers/cf59043a-79f8-46e1-ae50-8eb9c875193e-what-must-a-model-tell-a-planner-outcome.md)
- [Open Vision Banana: An Open Framework for Unified Visual Perception through Generation in RGB Space](https://refivu.com/papers/576d924e-e958-4776-a33a-b4654b299686-open-vision-banana-an-open-framework-for-unified.md)
- [Make Position Uninformative: Exchangeable Self-Distillation Flattens the Lost-in-the-Middle Curve](https://refivu.com/papers/48d101ec-b6d5-4a6c-866d-ab3bd6458801-make-position-uninformative-exchangeable-self-distillation.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827-veriladder-a-multi-agent-specification-refinement-system-for)
