Skip to main content
QUICK REVIEW

[논문 리뷰] AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithms

Haoyu Zhao, Ziran Yang|arXiv (Cornell University)|2026. 02. 10.
Software Testing and Debugging TechniquesComputer Science인용 수 0
한 줄 요약

AlgoVeri는 Dafny, Verus, Lean 전반에 걸친 다국어 vericoding 벤치마크를 77개의 고전 알고리즘에 대해 도입하여 언어 간 격차와 최신 모델들에서의 상태 재수정(수정) 역학의 차이를 드러낸다.

ABSTRACT

Vericoding refers to the generation of formally verified code from rigorous specifications. Recent AI models show promise in vericoding, but a unified methodology for cross-paradigm evaluation is lacking. Existing benchmarks test only individual languages/tools (e.g., Dafny, Verus, and Lean) and each covers very different tasks, so the performance numbers are not directly comparable. We address this gap with AlgoVeri, a benchmark that evaluates vericoding of $77$ classical algorithms in Dafny, Verus, and Lean. By enforcing identical functional contracts, AlgoVeri reveals critical capability gaps in verification systems. While frontier models achieve tractable success in Dafny ($40.3$% for Gemini-3 Flash), where high-level abstractions and SMT automation simplify the workflow, performance collapses under the systems-level memory constraints of Verus ($24.7$%) and the explicit proof construction required by Lean (7.8%). Beyond aggregate metrics, we uncover a sharp divergence in test-time compute dynamics: Gemini-3 effectively utilizes iterative repair to boost performance (e.g., tripling pass rates in Dafny), whereas GPT-OSS saturates early. Finally, our error analysis shows that language design affects the refinement trajectory: while Dafny allows models to focus on logical correctness, Verus and Lean trap models in persistent syntactic and semantic barriers. All data and evaluation code can be found at https://github.com/haoyuzhao123/algoveri.

연구 동기 및 목표

  • 글로벌 불변식을 갖는 고전 알고리즘에 대한 vericoding의 공정하고 언어 간 비교 평가를 촉진한다.
  • SMT 기반 및 인터랙티브 정리 증명 검증 시스템 간에 명세를 의미적으로 정렬한다.
  • Dafny, Verus, Lean 전반에서 모델 성능을 정량화하고 도구 체인 병목 현상을 식별한다.
  • 프런티어(frontier) 모델과 오픈(Open) 모델 간의 테스트 시간 계산 역학 및 오류 모드를 분석한다.

제안 방법

  • Dafny, Verus, Lean 간에 정렬된 명세를 가진 77개의 교과서 스타일 알고리즘 문제 모음을 만든다.
  • 컴파일러/검증 피드백을 이용한 다회 수정으로 대상 LLM을 평가하여 검증이 성공할 때까지 수행한다.
  • 의미 체커(의미적 검증기)를 사용하여 컴파일러 검증을 넘는 해를 필터링하고 알고리즘 적합성을 보장한다.
  • 언어별 프런티어 모델과 오픈 가중치 모델을 비교하여 알고리즘 클래스별 성능 격차를 식별한다.
  • 깊이 기반 수정과 너비 기반 병렬 샘플링을 비교하기 위해 iso-컴퓨트 분석을 수행한다.

실험 결과

연구 질문

  • RQ1글로벌 불변 알고리즘을 다룰 때 LLM이 SMT 기반 및 ITP 검증 시스템에 의해 수용되는 코드와 증명을 생성할 수 있는가?
  • RQ2정렬된 명세 하에서 Dafny, Verus, Lean 간 성능 및 실패 모드가 어떻게 다른가?
  • RQ3vericoding 성공에 있어 모델 능력 대 검증 시스템의 상대적 기여도는 무엇인가?
  • RQ4반복적 수정 전략이 오픈 모델에 의미 있는 개선을 가져오는가, 그리고 이것이 프런티어 모델과 어떻게 비교되는가?

주요 결과

  • 프런티어 모델은 Dafny에서(시맨틱 필터링으로 최대 40.3%의 컴파일러 검증 포함) Verus(24.7%) 및 Lean(7.8%)보다 더 높은 검증 비율을 달성한다.
  • AlgoVeri는 언어 및 알고리즘 클래스 전반에 걸친 큰 성능 격차를 드러내며 그래프 알고리즘과 글로벌 불변식이 특히 어려움, 특히 Verus 및 Lean 하에서.
  • 프런티어 모델은 Dafny와 Verus에서 반복적 수정을 통해 지속적으로 개선되며 경우에 따라 합격률이 세 배로 증가하는 반면, 오픈 모델은 더 일찍 포화된다(예: GPT-OSS-120B).
  • iso-compute 분석은 오픈 모델의 경우 깊이 기반 수정이 병렬 샘플링보다 이익이 적음을 시사하며, 현재 아키텍처에서 깊은 수리의 효용은 제한적임을 시사한다.
  • 언어 설계가 정제 경로를 형성한다: Dafny는 논리 중심 개선을 지원하고, Verus/Lean은 구문적/의미론적 제약과 탐색 복잡성을 부과하여 진전을 가로막는다.
  • table_headers:[],
  • table_rows:[]

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.