Computational Algebra with Attention: Transformer Oracles for Border Basis Algorithms
Not on the map. Why?
Abstract (arXiv)
Solving systems of polynomial equations, particularly those with finitely many solutions, is a crucial challenge across many scientific fields. Traditional methods like Gr"obner and Border bases are fundamental but suffer from high computational costs, which have motivated recent Deep Learning approaches to improve efficiency, albeit at the expense of output correctness. In this work, we introduce the Oracle Border Basis Algorithm, the first Deep Learning approach that accelerates Border basis computation while maintaining output guarantees. To this end, we design and train a Transformer-based oracle that identifies and eliminates computationally expensive reduction steps, which we find to dominate the algorithm's runtime. By selectively invoking this oracle during critical phases of computation, we achieve substantial speedup factors of up to 3.5x compared to the base algorithm, without compromising the correctness of results. To generate the training data, we develop a sampling method and provide the first sampling theorem for border bases. We construct a tokenization and embedding scheme tailored to monomial-centered algebraic computations, resulting in a compact and expressive input representation, which reduces the number of tokens to encode an n-variate polynomial by a factor of O(n). Our learning approach is data efficient, stable, and a practical enhancement to traditional computer algebra algorithms and symbolic computation.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 22 of its 71 references that are in the map. First posted on arXiv 29 May 2025.
Builds on
22 of 71 references.
References · 22
- 2017Attention Is All You Needcited by 60,361
- 2019Deep Learning for Symbolic Mathematicscited by 270
- 2020Algorithms with Predictionscited by 153
- 2023A Survey of Imitation Learning: Algorithms, Recent Developments, and Challengescited by 148
- 2017Deeply AggreVaTeD: Differentiable Imitation Learning for Sequential Predictioncited by 93
- 2017Failures of Gradient-Based Deep Learningcited by 80
- 2024Why are Sensitive Functions Hard for Transformers?cited by 74
- 2024Is Behavior Cloning All You Need? Understanding Horizon in Imitation Learningcited by 74
- 2021Linear algebra with transformerscited by 63
- 2024Transformers Provably Solve Parity Efficiently with Chain of Thoughtcited by 50
- 2022SALSA: Attacking Lattice Cryptography with Transformerscited by 28
- 2025FoNE: Precise Single-Token Number Embeddings via Fourier Featurescited by 22
10 more
- 2020Learning selection strategies in Buchberger's algorithmcited by 20
- 2019Gradient Boosts the Approximate Vanishing Idealcited by 8
- 2019Spurious Vanishing Problem in Approximate Vanishing Idealcited by 7
- 2023Learning to Compute Gr"obner Basescited by 7
- 2018Using Machine Learning to Improve Cylindrical Algebraic Decompositioncited by 6
- 2022Approximate Vanishing Ideal Computations at Scalecited by 6
- 2014Dual-to-kernel learning with idealscited by 5
- 2018Approximate Vanishing Ideal via Data Knottingcited by 5
- 2021Border basis computation with gradient-weighted normalizationcited by 5
- 2025Approximating Latent Manifolds in Neural Networks via Vanishing Idealscited by 5
Built on by
Citing papers per year: 2025: 5; 2026: 2.
7 papers.
- 2026The Agentic Researcher: A Practical Guide to AI-Assisted Research in Mathematics and Machine Learningcited by 4
- 2025Neural Sum-of-Squares: Certifying the Nonnegativity of Polynomials with Transformerscited by 2
- 2025Discovering Learning-Friendly Generation Orders for Sequential Computationcited by 1
- 2025HATSolver: Learning Groebner Bases with Hierarchical Attention Transformerscited by 1
- 2025CALT: A Library for Computer Algebra with Transformercited by 0
- 2025Learning Moderately Input-Sensitive Functions: A Case Study in QR Code Decodingcited by 0
- 2026Learning Large-Scale Modular Addition with an Auxiliary Moduluscited by 0
- 2026Learning Large-Scale Modular Addition with an Auxiliary Modulus8 May 2026
- 2026The Agentic Researcher: A Practical Guide to AI-Assisted Research in Mathematics and Machine Learning16 Mar 2026
- 2025HATSolver: Learning Groebner Bases with Hierarchical Attention Transformers9 Dec 2025
- 2025Neural Sum-of-Squares: Certifying the Nonnegativity of Polynomials with Transformers15 Oct 2025
- 2025Discovering Learning-Friendly Generation Orders for Sequential Computation30 Jun 2025
- 2025Learning Moderately Input-Sensitive Functions: A Case Study in QR Code Decoding25 Jun 2025
- 2025CALT: A Library for Computer Algebra with Transformer10 Jun 2025