Skip to main content
QUICK REVIEW

[논문 리뷰] LEGO-Prover: Neural Theorem Proving with Growing Libraries

Haiming Wang, Huajian Xin|arXiv (Cornell University)|2023. 10. 01.
Topic ModelingComputer Science인용 수 9
한 줄 요약

LEGO-Prover는 모듈식 확장 가능한 기술 라이브러리를 도입하여 LLM 기반 증명기가 보조정리(lemmas)를 검색하고 발전시켜 정리를 증명하도록 한다. 새로 만들어진 및 발전된 보조정리를 활용하여 miniF2F 성공률을 향상시킨다.

ABSTRACT

Despite the success of large language models (LLMs), the task of theorem proving still remains one of the hardest reasoning tasks that is far from being fully solved. Prior methods using language models have demonstrated promising results, but they still struggle to prove even middle school level theorems. One common limitation of these methods is that they assume a fixed theorem library during the whole theorem proving process. However, as we all know, creating new useful theorems or even new theories is not only helpful but crucial and necessary for advancing mathematics and proving harder and deeper results. In this work, we present LEGO-Prover, which employs a growing skill library containing verified lemmas as skills to augment the capability of LLMs used in theorem proving. By constructing the proof modularly, LEGO-Prover enables LLMs to utilize existing skills retrieved from the library and to create new skills during the proving process. These skills are further evolved (by prompting an LLM) to enrich the library on another scale. Modular and reusable skills are constantly added to the library to enable tackling increasingly intricate mathematical problems. Moreover, the learned library further bridges the gap between human proofs and formal proofs by making it easier to impute missing steps. LEGO-Prover advances the state-of-the-art pass rate on miniF2F-valid (48.0% to 57.0%) and miniF2F-test (45.5% to 47.1%). During the proving process, LEGO-Prover also manages to generate over 20,000 skills (theorems/lemmas) and adds them to the growing library. Our ablation study indicates that these newly added skills are indeed helpful for proving theorems, resulting in an improvement from a success rate of 47.1% to 50.4%. We also release our code and all the generated skills.

연구 동기 및 목표

  • 점점 더 복잡해지는 정리를 다루기 위해 모듈식 보조정리 재사용으로 형식적 추론 자동화를 촉진한다.
  • 증명기(prover)와 진화기(evolver) 구성요소를 통해 검증된 기술 라이브러리의 동적 성장을 가능하게 한다.
  • Isabelle/Lean 계열 환경에서 LLM이 보조정리를 재활용하고 발전시킬 수 있도록 하여 비형식과 형식 증명을 연결한다.

제안 방법

  • 증명기는 정리를 하위 목표로 분해하고 성장하는 기술 라이브러리에서 관련 보조정리를 검색하여 모듈식 Isabelle 증명을 구성한다.
  • 진화기는 기존 보조정리를 더 일반적이고 재사용 가능한 형태로 변환하고 해결되지 않은 요청을 해결하여 새로운 보조정리를 생성한다.
  • 세 가지 벡터 저장소(보조정리, 요청, 문제)가 임베딩 및 k-NN 탐색을 통해 기술을 인코딩/검색하여 프롬프팅에 정보를 제공한다.
  • LLMs가 비형식 증명을 초안으로 작성하면, 검색된 보조정리와 검증자 피드백과 함께 Isabelle 증명 스크립트로 형식화된다.
  • Isabelle/슬레지해머 기반 검증과 휴리스틱 전술이 필요 시 자동으로 증명을 수정하고, 검증된 보조정리를 라이브러리에 추가한다.
  • 성장 루프: 증명기/진화기로부터 얻은 새로운 보조정리를 검증하고 추가하여 향후 증명을 위한 라이브러리를 확장한다.
Figure 1: (a) Comparison between plain provers and LEGO-Prover. Unlike plain provers that prove the theorem sequentially, LEGO-Prover constructs the proof in a modular paradigm. Useful lemmas can be directly retrieved from the skill library and used as part of the proof. A newly constructed lemma ca
Figure 1: (a) Comparison between plain provers and LEGO-Prover. Unlike plain provers that prove the theorem sequentially, LEGO-Prover constructs the proof in a modular paradigm. Useful lemmas can be directly retrieved from the skill library and used as part of the proof. A newly constructed lemma ca

실험 결과

연구 질문

  • RQ1LLMs와 통합될 때 성장하는 모듈식 기술 라이브러리가 신경망 기반 정리 증명을 향상시킬 수 있는가?
  • RQ2발전된 보조정리가 원래 문제를 넘어 다른 증명을 돕도록 일반화되는가?
  • RQ3모듈식 증명 구성과 단일 블록 증명이 증명 성공률과 효율성 측면에서 어떻게 비교되는가?
  • RQ4기술 라이브러리를 제거할 때 증명 성능에 미치는 영향은 무엇인가?
  • RQ5결과 보조정리 라이브러리는 얼마나 크고 다양한가, 그리고 그것이 어떻게 활용되는가?

주요 결과

  • LEGO-Prover는 인간 비형식 증명이 포함된 상태에서 57.0% miniF2F-유효 및 50.0% miniF2F-테스트 합격률을 달성하고, 모델 비형식 증명으로는 52.4%/45.5%를 달성한다.
  • LEGO-Prover는 miniF2F에서 평균적으로 이전 접근법보다 약 6.75% 포인트 우수하다.
  • 성장하는 기술 라이브러리는 지속적인 개선을 가능하게 한다: 라이브러리 없이의 제거 실험은 50회 시도 내 검증에서 50.4%에서 47.1%로 떨어진다.
  • 라이브러리는 결국 22,532개의 기술을 포함하게 되며, 기여는 prover(10.8%), 요청 기반 evolver(38.2%), 방향성 트랜스포머 evolver(51.1%)이다.
  • 기술은 직접 사용되거나 새로운 보조정리를 영감받는 참고 자료로 사용되어 LLM 증명 생성을 촉진한다.
Figure 2: Overview of LEGO-Prover. (a) The prover takes three consecutive steps to prove the problem. The informal solver produces an informal solution for the problem statement, followed by using the decomposer to decompose it into step-by-step proof and propose useful sub-goals in the form of lemm
Figure 2: Overview of LEGO-Prover. (a) The prover takes three consecutive steps to prove the problem. The informal solver produces an informal solution for the problem statement, followed by using the decomposer to decompose it into step-by-step proof and propose useful sub-goals in the form of lemm

이 논문 읽기

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

누빈트에서 이 논문 읽기

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