atlas

Research map / Learning theory and algorithms / Combinatorial and search optimization

Learning to compute Gröbner bases

NeurIPS 2024 · Learning theory and algorithms › Combinatorial and search optimization · approach: Differentiable and symbolic reasoning · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces the first Transformer-based learning approach to Gröbner basis computation, with a backward dataset-generation method for 0-dimensional radical ideals in shape position and a hybrid discrete/continuous coefficient embedding.

Problem

Gröbner basis computation is NP-hard (doubly exponential worst case), and training Transformers for it requires many (non-Gröbner set, Gröbner basis) pairs, which are prohibitively expensive to generate forward; coefficient tokenization over infinite fields also blows up vocabulary or sequence lengt

Approach

Generate datasets backward: sample a reduced lex Gröbner basis in shape position, then multiply by random unimodular upper-triangular and permutation matrices to obtain a non-Gröbner generating set with the same ideal; embed continuous coefficients with a small feed-forward network instead of large number-token vocabularies.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace discrete coefficient tokens with hybrid continuous coefficient embeddingTransformer Gröbner basis computation · Shape position, Qaccuracy (%): 93.7 -> 66.8Hurt
Replace discrete coefficient tokens with hybrid continuous coefficient embeddingTransformer Gröbner basis computation · Shape position, F7 and F31accuracy (%): 72.3 -> 54.1; 46.8 -> 6.1Hurt
Replace discrete coefficient tokens with hybrid continuous coefficient embeddingTransformer Gröbner basis computation · Cauchy module, Q and F31accuracy (%): 99.7 -> 98.3; 93.8 -> 15.1Hurt
Use hybrid coefficient embedding instead of discrete tokensTransformer Gröbner basis computation · Shape position, Raccuracy (%)No clear effect
Generate the dataset backward from sampled Gröbner bases rather than forward-computing themDataset generation for Q, n=3, 4, 5 · Q dataset, 1,000 samplesruntime (seconds): 8.29 -> 5.46; 21.0 -> 7.05; 164.3 -> 7.91Helped
Use two hidden layers rather than one in coefficient embedding (ablation)Hybrid input embedding · Shape position, Q and F7, n=2accuracy (%): 66.8 -> 67.2; 54.1 -> 54.3Helped
Use two hidden layers rather than one in coefficient embedding (ablation)Hybrid input embedding · Shape position, F31 and R, n=2accuracy (%): 6.1 -> 5.6; 57.2 -> 56.2Hurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic 0-dimensional shape-position Gröbner basis datasets over Q, F7, F31, R (n=2..5) Cauchy module datasets

Benchmarks: synthetic test sets D_n^-(k) for n=2..5 over Q, F7, F31, R Cauchy module test sets for n=2,3

Metrics: accuracy (exact match) support accuracy runtime in seconds success rate of forward generation

Baselines: SageMath std (Buchberger) SageMath slimgb SageMath stdfglm

Builds on: Lample and Charton symbolic mathematics with Transformers FGLM algorithm Bruhat decomposition AdamW

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy