Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers

By Albert Qiaochu Jiang, Wenda Li, Szymon Tworkowski, Konrad Czechowski, Tomasz Odrzyg'o'zd'z, Piotr Milo's, Yuhuai Wu, Mateja Jamnik. 2022

144 citations recorded by the source corpus.

In theorem proving, the task of selecting useful premises from a large library to unlock the proof of a given conjecture is crucially important. This presents a challenge for all theorem provers, especially the ones based on language models, due to their relative inability to reason over huge volumes of premises in text form. This paper introduces Thor, a framework integrating language models and automated theorem provers to overcome this difficulty. In Thor, a class of methods called hammers that leverage the power of automated theorem provers are used for premise selection, while all other tasks are designated to language models. Thor increases a language model's success rate on the PISA dataset from $39\%$ to $57\%$, while solving $8.2\%$ of problems neither language models nor automated theorem provers are able to solve on their own. Furthermore, with a significantly smaller computational budget, Thor can achieve a success rate on the MiniF2F dataset that is on par with the best existing methods. Thor can be instantiated for the majority of popular interactive theorem provers via a straightforward protocol we provide.

Subfields: Artificial Intelligence, Computational Theory and Mathematics, Natural Language Processing, Program Analysis & Verification

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yoshua Bengio
  2. Mohit Bansal
  3. Percy Liang
  4. Quoc V. Le
  5. Luke S. Zettlemoyer
  6. Jianfeng Gao
  7. Kyunghyun Cho
  8. Ruslan Salakhutdinov

In Computational Theory and Mathematics

  1. Kaiyu Yang
  2. Markus Norman Rabe
  3. Behnam Neyshabur
  4. Christian Szegedy
  5. Yuhuai Wu
  6. Edward W. Ayers
  7. Jeremy Avigad
  8. Mateja Jamnik

In Natural Language Processing

  1. Markus Norman Rabe
  2. Yuhuai Wu
  3. Sean Welleck
  4. Zhangir Azerbayev
  5. Wenda Li
  6. Hailey Schoelkopf
  7. Dragomir R. Radev
  8. Jiacheng Liu

In Program Analysis & Verification

  1. Markus Norman Rabe
  2. Sean Welleck
  3. Yuhuai Wu
  4. Christian Szegedy
  5. Stella Biderman
  6. Edward W. Ayers
  7. Mateja Jamnik
  8. Guillaume Lample

Citations in the corpus