PatternMiner: Automated Mathematical Discovery Through LLM-Guided Training and Interpretation of Small Models
Organizations: University of Washington · Pacific Northwest National Laboratory
Abstract
There are several approaches to AI-driven mathematical discovery. One of these involves the use of large language models (LLMs) to resolve well-specified conjectures via text-based reasoning, while another uses narrow models and interpretability for more open-ended, human-in-the-loop exploration using object-based mathematical data. The latter is limited in its ability to move beyond simple empirical pattern detection while the former is not well-designed for direct, open-ended exploration of large mathematical datasets. In this paper we introduce PatternMiner, a system that combines these two paradigms. In PatternMiner, an LLM agent generates mathematical datasets based on an initial broad question, trains narrow machine learning models on them, uses interpretability techniques to extract patterns from these trained models, and uses these patterns to formulate conjectures. Once an initial conjecture has been formulated, PatternMiner instructs the agent to search for counterexamples using calls to mathematical software. If a set of counterexamples can be found, these are used as feedback for conjecture refinement or another round of training and interpretability. The conjecture progressively evolves through this iterative sequence with the agent allowed to try to prove it at any point. We describe the results of applying PatternMiner to five well-known positivity problems in algebraic combinatorics. PatternMiner proves several new theorems related to Schubert positivity and projection, a character-row evaluation formula, a restricted version of the Kazhdan--Lusztig combinatorial invariance conjecture, and Schur positivity for a family of immanant coefficients. We end by analyzing the most common routes to conjecture generation that are used by PatternMiner in our case studies as well as documenting the most common failure modes.
Figures & tables
| Problem | Sessions | New results | Rediscovered results | Generated conjectures |
|---|---|---|---|---|
| Schubert (11) | 61 | Projection obstruction and equivariant positivity (Thms B.1.3 , B.1.5 ); insufficient candidate statistics (Prop. B.1.8 ) | Descent and essential-rank conditions (Props B.1.1 , B.1.2 ) | Proved: arbitrarily large projection obstructions (Thm. B.1.3 ) |
| Kronecker (10) | 17 | — | First-row inequalities and hook bounds (Thms B.2.1 , B.2.2 ) | Refuted: two-row triangle inequalities (Prop. B.2.4 ); empirical: distinct-parts ordering (Table 15 ) |
| Row sums (12) | 33 | Fixed-tail formula and evaluation algorithm (Thm. B.3.2 ) | Positive formulas for hook partitions (App. B.6.1 ) | Refuted: injectivity of learned tableau map (Table 18 ) |
| Kazhdan–Lusztig (16) | 62 | Restrictions on length-13 failures (Prop. B.4.2 ; Thm. B.4.5 ; Prop. B.4.6 ) | Invariance through length 12 (Thm. B.4.1 ) | Proposed: two coefficient bounds (Conjs B.4.7 , B.6.1 ) |
| Monomial immanants (18) | 32 | Schur positivity for (Thm. B.5.2 ) | — | Proved: nonnegative character decomposition (Thm. B.5.2 ) |
| Pattern | Kronecker | Schubert | Character tables | Kazhdan– Lusztig | Imma- nants | Total |
|---|---|---|---|---|---|---|
| Feature associations | 3 | 4 | 2 | 1 | 1 | 11 |
| Unexplained examples | 3 | 9 | 0 | 1 | 0 | 13 |
| Counterexample refinement | 4 | 4 | 3 | 1 | 1 | 13 |
| Question shifting | 5 | 9 | 2 | 1 | 0 | 17 |
| Restriction to a subclass | 1 | 5 | 4 | 2 | 1 | 13 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Problem | Astra | Sol | Outcome |
|---|---|---|---|
| Kronecker (10) | 900 ∗ | 890 | Global matching rule for coefficients with a two-row index. Testing membership can require constructing large lists. |
| Schubert (11) | 876 | 880 | Positive rules for restricted output permutations or separated input supports. The two agents treated different families. |
| Row sums (12) | 860 | 859 | Unsigned matching count for all shapes and direct rules for hooks and two-row shapes. The all-shape construction uses an algebraic argument and has no established efficient membership test. |
| Kazhdan–Lusztig (16) | 891 | 875 | Coefficient formulas for restricted interval families, including Boolean-middle intervals with specified endpoints. Classical formulas cover some of the cases. |
| Immanants (18) | 900 ∗ | 898 | Both agents gave formulas for matrices of lower bandwidth at most one. Positivity on this family also follows from prior work. |