Skip to main content
QUICK REVIEW

[논문 리뷰] Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verification

Zenan Li, Ziran Yang|arXiv (Cornell University)|2026. 03. 18.
Topic ModelingComputer Science인용 수 0
한 줄 요약

이 논문은 Gödel-Code-Prover를 제시하며, Lean 4에서 검증 목표를 하위목표로 계층적으로 분해하고 principled scoring 메커니즘과 하이브리드 강화 학습을 활용하는 계층적 증명 탐색 프레임워크를 제시한다. 이는 Lean 벤치마크에서 강력한 증명 성공률을 달성하며, 427 tasks에서 전체 62.0%의 성공률을 보고하고, 기초 모델 대비 최대 2.6x의 개선을 보인다.

ABSTRACT

Large language models (LLMs) can generate plausible code but offer limited guarantees of correctness. Formally verifying that implementations satisfy specifications requires constructing machine-checkable proofs, a task that remains beyond current automation. We propose a hierarchical proof search framework for automated code verification in Lean~4 that decomposes complex verification goals into structurally simpler subgoals before attempting tactic-level proving. Central to our approach is a principled decomposition score that combines constructive justification with structural effectiveness. Crucially, this score serves as both the training reward and the inference-time ranking criterion, ensuring strict alignment between optimization and deployment. We train Goedel-Code-Prover-8B, a single unified policy for both decomposition and completion, via supervised initialization followed by hybrid reinforcement learning, where a continuous decomposition reward drives planning exploration while supervised replay stabilizes proof generation. On three Lean-based code verification benchmarks comprising 427 tasks, our 8B-parameter model achieves a 62.0\% prove success rate, a 2.6$ imes$ improvement over the strongest baseline, surpassing neural provers up to 84$ imes$ larger. We further observe consistent inference-time scaling: success rates improve monotonically with search iterations and sampling budget, with our trained model achieving greater efficiency than frontier off-the-shelf models of comparable scale.

연구 동기 및 목표

  • 코드에 대한 형식적 검증의 필요성을 입증하고 테스트 및 LLM의 타당성에 의존하지 않는 정확성 보장을 제공한다.
  • Lean 4에서 코드를 자동 검증하기 위한 계층적 분해–그다음–증명 프레임워크를 제안한다.
  • 최적화와 배치를 모두 정렬하기 위한 원칙적 분해 점수를 도입한다.
  • 감독 학습 초기화와 하이브리드 RL을 통해 분해와 완성을 모두 다루는 통합 8B 파라미터 정책을 학습한다.
  • 세 가지 Lean 벤치마크에서 프런티어 모델과 신경 증명기 대비 실질적 개선을 확인한다.

제안 방법

  • 자동 Lean 4 코드 검증을 Hoare 스타일 작업으로 형상화하고, 증명 탐색을 계획(분해) 루프와 증명(전술 생성) 루프의 연속으로 모델링한다.
  • 구성적 정당화(증명 재구성 및 quickcheck)와 구조적 효과성(AST를 기반으로 한 연산자 footprint)에 기반한 분해 점수를 정의한다.
  • scaffolded 분해/완성 트래젝터리에서 지도학습 미세조정과, 밀집 분해 보상과 희소한 완성 신호를 균형 잡은 하이브리드 강화 학습의 2단계 학습 파이프라인을 사용한다.
  • 공유 목표를 가진 통합 정책 Gödel-Code-Prover-8B를 채택하여 분해와 완성을 모두 다루고, 분해에 GRPO를, 완성에는 감독 재생 replay를 적용한다.
  • 추론은 가장 높은 footprint 목표를 선택하는 반복적 분해로 시작하고, 잎 노드의 증명을 완성하며, pass@k를 위한 병렬 실행이 가능하다.
Figure 3: Number of solved problems by baselines and our framework across three benchmarks. Baselines are evaluated with parallel generation under a Pass@128 budget; our method operates under a search-based inference setting using Göedel-Code-Prover-8B. Our framework outperforms all baselines by a s
Figure 3: Number of solved problems by baselines and our framework across three benchmarks. Baselines are evaluated with parallel generation under a Pass@128 budget; our method operates under a search-based inference setting using Göedel-Code-Prover-8B. Our framework outperforms all baselines by a s

실험 결과

연구 질문

  • RQ1學習된 계층적 증명 탐색 프레임워크가 프런티어 모델 및 신경 증명기와 비교해 Lean 4 코드를 얼마나 잘 검증할 수 있는가?
  • RQ2분해 점수가 학습 및 배치 성능과 증명 성공에 어떤 영향을 미치는가?
  • RQ3 joint 분해 및 완성 학습 대 비대체 설정의 효과는 어떠한가?
  • RQ4추론 예산 및 반복 수에 따라 증명 성능이 실제로 어떻게 확장되는가?

주요 결과

  • 프레임워크는 Verina에서 68.8%, Clever에서 54.0%, AlgoVeri에서 62.3%의 증명 성공을 달성하고, 전체 427 tasks에서 62.0%의 성공을 보인다.
  • 가장 강력한 기저 모델 대비 2.6x의 우위를 보이며, 최대 84x 더 큰 신경 증명기를 능가한다.
  • Quickcheck 필터가 잘못된 하위 목표를 걸러내며, 견고한 분해 유효성에 기여한다.
  • 증명은 일반적으로 평균 8–17개의 분해된 보조정리와 130줄이 넘는 증명 코드로 구성되며, 일부는 680줄을 초과한다.
  • 추론은 더 많은 검색 반복과 예산에서 단조로운 개선을 보이며, 확장 가능한 잠재력을 시사한다.
  • 벤치마크 전반에 걸쳐 프런티어 추론 모델 및 신경 증명기에 비해 상당한 이점을 보여준다.
Figure 4: Decomposition reduction rate vs. iterations across three benchmarks. Lower values indicate more aggressive goal simplification.
Figure 4: Decomposition reduction rate vs. iterations across three benchmarks. Lower values indicate more aggressive goal simplification.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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