Skip to main content
QUICK REVIEW

[Paper Review] LIME: Learning Inductive Bias for Primitives of Mathematical Reasoning

Yuhuai Wu, Markus N. Rabe|arXiv (Cornell University)|Jan 15, 2021
Neural Networks and ApplicationsComputer Science51 references9 citations
TL;DR

This paper proposes LIME, a novel pre-training method that encodes inductive biases for mathematical reasoning by training transformers on three synthetic tasks inspired by Peirce's reasoning primitives—deduction, induction, and abduction. The approach achieves significant performance gains on four mathematical reasoning benchmarks with minimal computational cost, outperforming vanilla transformers and demonstrating transferability to non-transformer architectures like LSTMs.

ABSTRACT

While designing inductive bias in neural architectures has been widely studied, we hypothesize that transformer networks are flexible enough to learn inductive bias from suitable generic tasks. Here, we replace architecture engineering by encoding inductive bias in the form of datasets. Inspired by Peirce's view that deduction, induction, and abduction are the primitives of reasoning, we design three synthetic tasks that are intended to require the model to have these three abilities. We specifically design these tasks to be synthetic and devoid of mathematical knowledge to ensure that only the fundamental reasoning biases can be learned from these tasks. This defines a new pre-training methodology called "LIME" (Learning Inductive bias for Mathematical rEasoning). Models trained with LIME significantly outperform vanilla transformers on four very different large mathematical reasoning benchmarks. Unlike dominating the computation cost as traditional pre-training approaches, LIME requires only a small fraction of the computation cost of the typical downstream task. The code for generating LIME tasks is available at https://github.com/tonywu95/LIME.

Motivation & Objective

  • To investigate whether inductive biases for mathematical reasoning can be learned through pretraining on synthetic datasets, rather than through architectural design.
  • To address the limitation of traditional pretraining methods that dominate downstream computation costs and rely on large-scale natural language corpora.
  • To explore whether learning reasoning primitives (deduction, induction, abduction) through synthetic tasks improves generalization on mathematical reasoning benchmarks.
  • To disentangle the contributions of pretraining—content knowledge versus inductive bias—especially in the context of reasoning tasks.
  • To demonstrate that pretraining can be effective even without loading vocabulary embeddings or output layer weights, enabling cross-vocabulary transfer.

Proposed method

  • Design three synthetic tasks corresponding to Peirce's three reasoning primitives: deduction (inferring conclusions from premises), induction (generalizing rules from examples), and abduction (inferring explanations from evidence and rules).
  • Construct tasks devoid of mathematical knowledge, focusing solely on logical structure to ensure models learn fundamental reasoning inductive biases.
  • Pre-train standard transformer models on these synthetic tasks using minimal computation—approximately two hours on a single GPU.
  • Apply the same pre-trained model to diverse downstream mathematical reasoning benchmarks without reinitializing embeddings or output layers.
  • Use curriculum learning principles by teaching basic reasoning skills before fine-tuning on domain-specific tasks.
  • Evaluate performance on four benchmarks: IsarStep, HOList Skip-tree, MetaMathStep, and LeanStep, comparing with models trained from scratch and standard pretraining baselines.

Experimental results

Research questions

  • RQ1Can inductive biases for mathematical reasoning be effectively encoded in the form of synthetic datasets rather than through architectural modifications?
  • RQ2Does pretraining on synthetic reasoning tasks that mimic deduction, induction, and abduction lead to measurable improvements in downstream mathematical reasoning performance?
  • RQ3Can LIME pretraining achieve significant gains with a fraction of the computational cost of traditional pretraining methods?
  • RQ4Is the benefit of LIME transferable to non-transformer architectures, such as LSTMs?
  • RQ5To what extent does the performance gain from LIME stem from learning inductive bias rather than memorizing content from pretraining data?

Key findings

  • LIME pretraining improved top-1 accuracy on IsarStep from 20.4% to 26.9%, a relative improvement of 31.9%.
  • On LeanStep, LIME increased top-1 accuracy from 15.5% to 29.8%, a relative improvement of 92.3%.
  • The method required only about two hours of training on a single GPU, representing a negligible fraction of the compute cost of downstream tasks.
  • Loading vocabulary embeddings or output layer weights during fine-tuning did not significantly improve performance, indicating that the model learns general inductive biases rather than task-specific knowledge.
  • LIME also improved performance on LSTMs, though the gains were smaller—increasing top-1 accuracy from 5.5% to 6.9% for vanilla LSTM and from 12.3% to 13.4% for LSTM with attention—highlighting the transformer’s superior capacity to learn from synthetic tasks.
  • The results suggest that the transformer architecture is malleable enough to learn strong inductive biases from dataset design, supporting the hypothesis that inductive bias can be encoded via data rather than architecture.

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.