mlsanityData to 14 Oct 2026

Computational Algebra with Attention: Transformer Oracles for Border Basis Algorithms

arXiv 2505.23696 ↗First posted 29 May 2025cs.LG cs.SCcited by 7

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2019Deep Learning for Symbolic Mathematicscited by 270
  3. 2020Algorithms with Predictionscited by 153
  4. 2023A Survey of Imitation Learning: Algorithms, Recent Developments, and Challengescited by 148
  5. 2017Deeply AggreVaTeD: Differentiable Imitation Learning for Sequential Predictioncited by 93
  6. 2017Failures of Gradient-Based Deep Learningcited by 80
  7. 2024Why are Sensitive Functions Hard for Transformers?cited by 74
  8. 2024Is Behavior Cloning All You Need? Understanding Horizon in Imitation Learningcited by 74
  9. 2021Linear algebra with transformerscited by 63
  10. 2024Transformers Provably Solve Parity Efficiently with Chain of Thoughtcited by 50
  11. 2022SALSA: Attacking Lattice Cryptography with Transformerscited by 28
  12. 2025FoNE: Precise Single-Token Number Embeddings via Fourier Featurescited by 22
10 more
  1. 2020Learning selection strategies in Buchberger's algorithmcited by 20
  2. 2019Gradient Boosts the Approximate Vanishing Idealcited by 8
  3. 2019Spurious Vanishing Problem in Approximate Vanishing Idealcited by 7
  4. 2023Learning to Compute Gr"obner Basescited by 7
  5. 2018Using Machine Learning to Improve Cylindrical Algebraic Decompositioncited by 6
  6. 2022Approximate Vanishing Ideal Computations at Scalecited by 6
  7. 2014Dual-to-kernel learning with idealscited by 5
  8. 2018Approximate Vanishing Ideal via Data Knottingcited by 5
  9. 2021Border basis computation with gradient-weighted normalizationcited by 5
  10. 2025Approximating Latent Manifolds in Neural Networks via Vanishing Idealscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 2.

7 papers.