Skip to main content
QUICK REVIEW

[Paper Review] Mathematical Reasoning via Self-supervised Skip-tree Training

Markus N. Rabe, Dennis Lee|arXiv (Cornell University)|Jun 8, 2020
Topic ModelingComputer Science29 references13 citations
TL;DR

This paper proposes a self-supervised skip-tree training method for language models on formal mathematical expressions, significantly improving logical reasoning over standard skip-sequence approaches. Trained on the HOList dataset, models achieve strong performance on tasks like type inference, assumption prediction, and equality completion, and generate provable, useful conjectures without fine-tuning.

ABSTRACT

We examine whether self-supervised language modeling applied to mathematical formulas enables logical reasoning. We suggest several logical reasoning tasks that can be used to evaluate language models trained on formal mathematical statements, such as type inference, suggesting missing assumptions and completing equalities. To train language models for formal mathematics, we propose a novel skip-tree task. We find that models trained on the skip-tree task show surprisingly strong mathematical reasoning abilities, and outperform models trained on standard skip-sequence tasks. We also analyze the models' ability to formulate new conjectures by measuring how often the predictions are provable and useful in other proofs.

Motivation & Objective

  • To investigate whether self-supervised language modeling on formal mathematical expressions enables strong logical reasoning without labeled data.
  • To develop a novel proxy training task—skip-tree—that respects the tree structure of mathematical expressions.
  • To evaluate language models on diverse reasoning tasks, including mechanical derivations and creative conjecture generation, without fine-tuning.
  • To measure the usefulness of model-generated conjectures by checking their provability and utility in existing proofs.

Proposed method

  • Propose a skip-tree task where masked sub-trees are predicted, preserving the hierarchical structure of formal mathematical expressions.
  • Train transformer-based language models on the HOList dataset, which contains formalized mathematics in HOL Light.
  • Use a masked prediction objective where the model predicts missing subtrees rather than linear sequences of tokens.
  • Design evaluation tasks such as type inference, missing assumption prediction, and equality completion to test reasoning capabilities.
  • Assess conjecture quality by checking if predictions are provable and used as premises in reinforcement learning-based proof search.
  • Apply a pruning step to filter out trivial or redundant conjectures, retaining only those that are essential in proofs.

Experimental results

Research questions

  • RQ1Can self-supervised language modeling on formal mathematical expressions yield strong logical reasoning abilities without fine-tuning?
  • RQ2Does a skip-tree training objective, which respects expression structure, outperform standard skip-sequence tasks in mathematical reasoning?
  • RQ3To what extent can language models generate new, provable, and useful mathematical conjectures?
  • RQ4How can the usefulness of model-generated conjectures be objectively measured in the context of formal proofs?

Key findings

  • Models trained on the skip-tree task outperform those trained on skip-sequence tasks across all reasoning evaluation tasks.
  • For the assumptions prediction task, 97.75% of model-generated statements were provable, and 3,445 out of 3,857 were used as premises in DeepHOL proofs.
  • In the equality completion task, 979 out of 3,440 predictions were both provable and useful in proofs.
  • For free-form conjecture generation, 49 out of 130 predictions were provable and used in proofs, including novel conjectures not present in the theorem database.
  • The model discovered a previously missing theorem ($b = a + c \Rightarrow a = b - c$) that was used in 1,728 proofs, demonstrating practical utility.
  • Some conjectures, such as $\texttt{COUNTABLE}(\{s(n)\mid n\in\mathbb{N}\})$, were entirely novel and not present in human-annotated proofs or the theorem database.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.