BugGen 2.0: 확장 가능한 RTL 버그 합성을 위한 대규모 언어 모델의 역할 재설계
BugGen 2.0: Rethinking the Roles of LLMs for Scalable RTL Bug Synthesis
한국어 초록
AI 기반 레지스터 전송 수준(RTL) 결함 위치 탐지와 디버깅에는 버그의 위치가 알려져 있고 실패를 관찰할 수 있는 정답 데이터셋이 필요하다. 테스트벤치의 탐지 능력도 주입한 버그로 평가한다. 이러한 데이터셋을 대규모로 만드는 일은 전자 설계 자동화(EDA)의 주요 과제다. BugGen 1.0은 대규모 언어 모델(LLM)이 문맥을 고려한 RTL 변이를 생성할 수 있음을 보였다. 다만 변경 위치를 고르는 일과 수정안을 만드는 일을 모두 모델에 맡기므로 추론 비용이 크고 유효하지 않은 위치를 고를 수 있다. BugGen 2.0은 역할을 바꿔 구조 분석, 대상 선택, 검증을 결정론적 알고리즘에 맡기고, LLM은 국소적인 의미 단위의 코드 수정에 집중하게 한다. OpenTitan IP 블록 네 개와 FabScalar에 LLM 세 종을 적용한 결과, 적어도 두 건의 테스트 실패를 일으키면서 컴파일할 수 있는 버그 시나리오가 요청한 수량만큼 모두 생성됐다. 설정한 변이 유형 16개 중 14~16개가 포함됐다. 같은 모델로 비교를 완료한 실험에서 토큰 사용량은 BugGen 1.0 대비 6.8~15.4분의 1, Firefly 대비 1.5~7.9분의 1로 줄었다. 새 버그를 모두 시뮬레이션하지 않고도 데이터셋을 확장할 수 있다. 관찰할 수 있는 실패를 일으켜 기준을 통과한 시나리오를 찾은 뒤, 같은 위치에 다른 변이를 만들고 일부만 시뮬레이션해 나머지의 통과 여부를 추정한다. 이에 따라 AES 변이의 63.6%와 FabScalar 변이의 33.9%는 시뮬레이션을 생략했다. 전체 시뮬레이션에서는 AES 변이의 77.7%, FabScalar 변이의 95.2%가 통과했다. 직접 비교 가능한 FabScalar 집합에서 추정 오차는 1.09%였다. 이 결과는 LLM을 의미 단위의 수정에 집중시키면 추론과 시뮬레이션 비용을 줄이고 모델 및 설계 간 일관성을 높일 수 있음을 보여 준다.
원문 초록
AI-assisted RTL localization and debugging need ground-truth bug datasets with known locations and observable failures, while testbench grading uses injected bugs to measure detection capability. Creating such datasets at scale remains a major EDA challenge. BugGen 1.0 shows that Large Language Models (LLMs) can generate context-aware RTL mutations. Still, it relies on the model for both choosing where to mutate and generating the edit, which increases inference costs and can lead to invalid choices. BugGen 2.0 changes this division of labor. Deterministic algorithms handle structural analysis, target selection, and validation, while the LLM focuses on localized semantic rewriting. Across four OpenTitan IP blocks and FabScalar with three LLMs, BugGen 2.0 reaches every requested quota of compilable bug scenarios that cause at least two test failures, with 14-16 of 16 configured mutation types represented. In completed same-model comparisons, it reduces token use by 6.8x-15.4x relative to BugGen 1.0 and 1.5x-7.9x relative to Firefly. BugGen 2.0 also expands the dataset without simulating every new bug. After finding accepted scenarios with observable failures, it generates alternative mutations at the same locations, simulates only a subset, and estimates acceptance for the rest. This skips 63.6% of AES and 33.9% of FabScalar variant simulations. Full simulation finds that 77.7% of AES variants and 95.2% of FabScalar variants are accepted, with a 1.09% estimation error on the directly comparable FabScalar set. These results show that focusing LLMs on semantic rewriting lowers inference and simulation cost while improving consistency across models and designs.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2611.23091v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.