Papers
Topics
Authors
Recent
Search
2000 character limit reached

SAND-Math: Critical Models & Synthetic Data

Updated 3 July 2026
  • SAND-Math is a comprehensive suite uniting discrete sandpile dynamics, variational PDEs, algebraic group theory, and ethnomathematical insights.
  • It employs methods from finite-state transducers, mixed FEM discretizations, and quasi-variational inequalities to elucidate stability, wave formation, and mass flux in granular flows.
  • Recent advances include synthetic data pipelines that generate challenging math problems for LLMs, enhancing problem difficulty calibration and interdisciplinary applications.

SAND-Math refers to a suite of mathematical concepts, models, and computational frameworks, spanning discrete dynamical systems (notably sandpile and chip-firing models), variational PDEs arising from granular flow, graph-theoretic and algebraic structures tied to self-organized criticality, ethnomathematical representations in cultural practices, and—recently—synthetic data generation pipelines for advanced mathematics question-answering with LLMs. The unifying thread is the emergence of complex, often critical, mathematical phenomena from local rules, structure, or data generation protocols reminiscent of granular avalanches.

1. Discrete Dynamical Sandpile Models: Kadanoff and Abelian Sandpile

The Kadanoff Sand Pile Model (KSPM) generalizes the Abelian Sandpile Model (ASM), introducing a parameter DD which controls toppling thresholds and the spread of grains. The state is a non-increasing, ultimately zero configuration h=(h0,h1,…)h=(h_0,h_1,\ldots), or equivalently in the height-difference (slope) representation σi=hi−hi+1\sigma_i = h_i - h_{i+1}.

Local Topple Rule: For fixed D≥2D\ge2, if σi≥D\sigma_i \ge D at column ii, D−1D-1 grains move from ii to columns i+1i+1 to i+D−1i+D-1:

  • h=(h0,h1,…)h=(h_0,h_1,\ldots)0 (if h=(h0,h1,…)h=(h_0,h_1,\ldots)1)
  • h=(h0,h1,…)h=(h_0,h_1,\ldots)2
  • h=(h0,h1,…)h=(h_0,h_1,\ldots)3
  • Other h=(h0,h1,…)h=(h_0,h_1,\ldots)4 unchanged

Stability and Fixed Points: A configuration is stable if h=(h0,h1,…)h=(h_0,h_1,\ldots)5 for all h=(h0,h1,…)h=(h_0,h_1,\ldots)6. Due to the diamond property and finiteness, every initial state (e.g., h=(h0,h1,…)h=(h_0,h_1,\ldots)7 grains at h=(h0,h1,…)h=(h_0,h_1,\ldots)8) relaxes, uniquely, to a stable configuration h=(h0,h1,…)h=(h_0,h_1,\ldots)9.

Iterating grain addition—each time adding one grain at σi=hi−hi+1\sigma_i = h_i - h_{i+1}0 and stabilizing—generates a sequence of avalanches, each captured by a firing sequence of column indices.

Wave Emergence and Analysis: For σi=hi−hi+1\sigma_i = h_i - h_{i+1}1, beyond a column at distance σi=hi−hi+1\sigma_i = h_i - h_{i+1}2 from the origin, the fixed point displays a periodic wave

σi=hi−hi+1\sigma_i = h_i - h_{i+1}3

modulo a possible single zero; generally, larger σi=hi−hi+1\sigma_i = h_i - h_{i+1}4 yields more intricate wave patterns. The spatial regularity can be formalized via a deterministic finite-state transducer, mapping temporal avalanche types to spatial patterns, establishing an analogy to renormalization and linking temporal dynamics to emergent spatial order (Perrot et al., 2013, Perrot et al., 2013).

Mathematical Significance: Compared to ASM (σi=hi−hi+1\sigma_i = h_i - h_{i+1}5), where fixed points are staircases, KSPM σi=hi−hi+1\sigma_i = h_i - h_{i+1}6 supports nontrivial wave structures beyond a logarithmic prefix, illustrating the deep connection between local rules and global self-organized criticality.

2. Variational and Quasi-Variational PDEs for Sandpile Growth

The evolution of sandpile surfaces with slope constraints leads to quasi-variational inequalities. For a domain σi=hi−hi+1\sigma_i = h_i - h_{i+1}7, with height σi=hi−hi+1\sigma_i = h_i - h_{i+1}8 and flux σi=hi−hi+1\sigma_i = h_i - h_{i+1}9, mass balance yields:

D≥2D\ge20

with an angle-of-repose constraint D≥2D\ge21. The admissible set depends nonlinearly on the evolving pile:

D≥2D\ge22

Quasi-Variational Inequality (QVI): The standard formulation seeks D≥2D\ge23, D≥2D\ge24, such that

D≥2D\ge25

Mixed Primal-Dual Regularization: To recover both D≥2D\ge26 and D≥2D\ge27, regularized formulations introduce power-law terms D≥2D\ge28 and mollified slope constraints D≥2D\ge29. Existence is established through finite-element discretization, weak convergence arguments, and passage to the limit in mesh, time, and regularization parameters (Barrett et al., 2012, Barrett et al., 2013).

Discretization and Algorithms:

  • Raviart–Thomas (RTσi≥D\sigma_i \ge D0) mixed FEM captures mass flux and surface with guaranteed convergence.
  • Nonconforming σi≥D\sigma_i \ge D1 finite elements (Crouzeix–Raviart) offer simpler implementational options while retaining accuracy and convergence guarantees.
  • Splitting methods and Picard iteration solve nonlinear algebraic systems per time step. Numerical experiments validate these schemes, demonstrating their correctness and ability to recover both height and flux—including singular, measure-valued flows.

3. Algebraic and Group-Theoretical Aspects: Sandpile Groups and Limits

Sandpile groups σi≥D\sigma_i \ge D2 encode the recurrent stable states of a sandpile process on finite graphs σi≥D\sigma_i \ge D3 (with sink). These groups are canonically isomorphic to the cokernel of the reduced Laplacian:

σi≥D\sigma_i \ge D4

and their order gives the number of spanning trees on σi≥D\sigma_i \ge D5 by the Matrix-Tree Theorem.

Limits and Canonical Maps: Considering rectangular domains σi≥D\sigma_i \ge D6 nested via monomorphisms σi≥D\sigma_i \ge D7 and their dual epimorphisms σi≥D\sigma_i \ge D8, the inverse limit of the extended sandpile groups is shown to be

σi≥D\sigma_i \ge D9

with ii0 the space of ii1-valued harmonic functions. This is a real two-torus in the planar case (Shkolnikov, 11 Jun 2025).

Combinatorial Consequences: For rectangle sizes ii2 and scaling ii3, the cardinalities of the sandpile groups (spanning tree counts) satisfy

ii4

4. Graph-Theoretic and Ethnomathematical Connections

Ethnomathematical practices, such as sand drawings in Oceania and Africa, embody fundamental mathematical concepts—Eulerian cycles, symmetry groups, and algorithmic construction—often predating formal Western codifications.

Continuity, Cyclicity, and Symmetry: Drawings are realized as continuous (piecewise-differentiable) maps ii5, corresponding to Euler circuits/trails in planar graphs. Cultural artifacts frequently realize cycles ii6 and exhibit actions of dihedral symmetry groups ii7.

Comparison to Classical European Graph Theory: The tracing of sand-figures matches Euler's celebrated solution to the Königsberg bridges problem. Indigenous patterns manifest Eulerian or Hamiltonian circuits and are analyzed with the same theoretical apparatus, further supporting curriculum enrichment via ethnomathematics (Wang et al., 2024).

5. Synthetic SAND-Math Datasets for Mathematical Reasoning with LLMs

"SAND-Math" (Synthetic Augmented Novel and Difficult Mathematics) extends the scope to automated generation of challenging mathematics problems—targeted at training LLMs—and provides an iterative pipeline for data creation, filtering, difficulty elevation ("Difficulty Hiking"), and curation.

Pipeline Structure:

  • Initial problem generation by LLM (DeepSeek-R1), yielding raw problems and solutions.
  • Self-consistency filtering: problems are retained only if solutions are self-consistent across independent samples.
  • De-duplication and benchmark decontamination using semantic similarity and Llama-judged checks.
  • Difficulty filtering: problems unsolved by a strong model (Qwen2.5-32B) are preferentially retained.
  • Difficulty hiking: selected problems are algorithmically "hiked" in difficulty by requiring novel theorem usage or cross-domain integration within the problem construct.

Dataset and Evaluation:

  • The final SAND-Math dataset comprises 8,842 novel, decontaminated, graded (difficulty-rated) math problems.
  • Experimental results: augmentation with SAND-Math yields increases in pass@1 accuracy (up to ii82.85 points on AIME25 over previous best synthetic sets).
  • Difficulty hiking step raises mean problem rating from 5.02 to 5.98 and increases the percentage of problems at ii9 from 47.2% to 76.8%.
  • Released at https://huggingface.co/datasets/amd/SAND-MATH (Manem et al., 28 Jul 2025).

6. Statistical and Number-Theoretic SAND-Math: Digital-Sum Phenomena

S(um)anD(ifference) numbers and primes are pairs D−1D-10 such that the digital sum D−1D-11 in a fixed numerical base D−1D-12. When both D−1D-13 and D−1D-14 are prime, these are "SanD primes." Asymptotic analysis demonstrates:

  • The number of SanD numbers D−1D-15 grows as D−1D-16 in decimal
  • The number of SanD primes D−1D-17 has the form D−1D-18 (base 10), or D−1D-19 in binary

This parallels the twin-prime constant in growth, but slow "quasi-fractal" fluctuations in the digital sum accelerate convergence irregularity, traced to Delange's periodic, nowhere-differentiable corrections to ii0 statistics (Dyson et al., 2019).

7. Significance, Applications, and Future Perspectives

SAND-Math unifies critical-state phenomena in distributed dynamical systems, offers a rigorous PDE and algebraic framework for granular flows and self-organized criticality, elucidates deep connections to group theory, combinatorics, and number theory, and now extends to LLM-oriented data generation and computational ethnomathematics. The field bridges theoretical mathematics, computational modeling, data-driven AI, and mathematical anthropology. Open directions include multi-round difficulty hiking for synthetic data, further algebraic study of sandpile group limits, and continued cross-fertilization with topological, stochastic, and ethnomathematical perspectives.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to SAND-Math.