TL;DR
Large Language Models (LLMs) are being developed to learn "libraries" of reusable mathematical tools. However, this paper investigates two prominent systems, LEGO-Prover and TroVE, and finds that actual tool reuse is surprisingly rare. Ablation studies suggest that performance gains are driven more by self-correction and self-consistency than by true library reuse, questioning the effectiveness of current library learning approaches.
What Problem Does This Paper Address?
The field of AI is increasingly exploring how Large Language Models (LLMs) can learn to use and create "libraries" of tools—like formal mathematical lemmas or Python functions—to solve complex problems. The inspiration is human knowledge, which is built upon reusable concepts. However, a critical question arises: are these LLM systems truly learning to create reusable libraries, or are their reported performance improvements due to other mechanisms? This paper dives into this question by examining two leading LLM library learning systems, LEGO-Prover and TroVE, to understand the extent and impact of actual tool reuse.
Methods
The researchers analyzed the behavior of two LLM-based library learning systems:
- LEGO-Prover: This system aims to learn reusable formal Isabelle lemmas for mathematical theorem proving. The study analyzed its released logs to quantify lemma reuse.
- TroVE: This system focuses on inducing reusable Python functions for solving programmatic tasks. The researchers reproduced TroVE's results and analyzed its learned libraries.
To test their hypothesis that reuse is not the primary driver of performance, the authors performed ablation studies. This involved modifying the systems to disable or limit reuse mechanisms and observing the impact on performance. For LEGO-Prover, this meant preventing cross-problem sharing of lemmas. For TroVE, it involved disabling the "IMPORT" mode, which is responsible for using learned functions.
Datasets
The following datasets were used for evaluation:
- miniF2F: Used to evaluate LEGO-Prover.
- MATH: Used to evaluate TroVE.
The paper does not introduce new benchmarks.
Key Insights and Ideas
- The "Library" is Largely Untouched: Despite systems being designed to learn and reuse tools, the analysis revealed that actual, direct reuse of learned lemmas or functions is extremely infrequent.
- Reuse is Not the Magic Bullet: Ablation studies showed that disabling reuse mechanisms had a minimal impact on performance, suggesting that other factors are more responsible for the observed accuracy gains.
- Self-Correction and Self-Consistency Reign Supreme: The paper posits that mechanisms like self-correction (where the model refines its own outputs) and self-consistency (ensuring multiple attempts yield the same result) are the primary drivers of performance improvements in these systems, rather than the learned library itself.
- A Call for Better Evaluation: The findings highlight the need for evaluation metrics that go beyond simple accuracy to truly assess the effectiveness of library learning and tool reuse.
Key Results
- LEGO-Prover: In the analyzed logs, only one lemma was reused verbatim once, and no lemma's name was reused more than once across solutions. Ablating cross-problem sharing for LEGO-Prover resulted in only a minor performance drop.
- TroVE: The final libraries learned by TroVE contained a small number of functions, and only a handful were reused across thousands of test questions. An ablation study disabling function import also showed strong performance, sometimes even exceeding the baseline.
Limitations and Future Work
- Limited Scope of Ablations: The authors acknowledge that their ablation studies were limited in scope (two models, two datasets) due to resource constraints.
- Dataset Suitability: It's questioned whether current datasets, particularly for Python programming tasks, are diverse enough to truly necessitate and showcase novel library learning, or if existing standard libraries suffice.
- True Library Learning Capacity: The paper raises the question of whether LLMs can learn reusable functions and lemmas, but current datasets simply don't provide the opportunity.
- Future Directions: The authors call for a better understanding of LLM library learning limitations and improved evaluation frameworks that focus on reuse behavior. They also pose fundamental questions about whether LLMs are capable of direct, verbatim reuse and whether such reuse would actually improve mathematical reasoning or be too brittle.
Summary updated