What is Algebraic Machine Learning?
Algebraic Machine Learning (AML) is an approach to machine learning that uses abstract algebra as the foundation for learning. A task is written as a set of axioms in a simple algebra. A model of those axioms is computed and broken down into elementary components, called atoms. In AML, “learning results from the cumulative discovery of certain atoms” of that model.1
How it works
- The task is written as axioms. The data, the goal of the task and any prior knowledge are encoded as axioms of an algebra called a semilattice. See The algebra and Encoding a task.
- Models are sets of atoms. A model of the axioms is described by a set of atoms, the basic components into which it decomposes. See Atomized semilattices.
- The freest model is computed. A procedure called Full Crossing produces the freest model of the axioms: the model in which the only true statements are the axioms and their logical consequences. See The freest model and Full Crossing.
- Subsets of its atoms generalize. The freest model is not itself a generalizing model, but certain subsets of its atoms are. In practice a sparse variant of the procedure, Sparse Crossing, computes such subsets directly from the axioms. See Why subsets of the freest model generalize and Sparse Crossing.
The learning principle gives an overview of the four stages.2
What it has been shown to do
- Classifying images. AML has been evaluated on MNIST, FashionMNIST, CIFAR-10 and medical image datasets, with reported accuracy comparable to that of optimized multilayer perceptrons.3 See MNIST and other image datasets.
- Solving formal problems from their specification. The same method finds Hamiltonian cycles in graphs, and solves Sudoku, from a description of the problem alone, without training data.4 See Hamiltonian cycles and Sudoku.
- A larger evaluation. A paper accepted at NeurIPS 2026 reports an evaluation across 24 classification datasets. In it AML is applied once to each training set, without hyperparameter tuning, and gives test accuracies statistically indistinguishable from those of multilayer perceptrons selected with validation data or cross-validation.5
These results come with limits. The freest model of a task is usually too large to compute, which is why Sparse Crossing is used in practice.6 On Hamiltonian cycles AML finds cycles in few attempts, including on graphs known to be among the hardest, and from axioms that describe only the graph and the goal. Each attempt takes from half a second to several seconds, however, which makes it much slower than specialized state-of-the-art algorithms.4
Who develops it
AML was introduced in 2018 by Fernando Martin-Maroto and Gonzalo G. de Polavieja, co-founders of Algebraic AI.7 It has been developed since by a group that also includes Nabil Abderrahaman, David Méndez and Antonio Ricciardo, at Champalimaud Research in Lisbon and at Algebraic AI. See Publications and Timeline.
An open-source implementation, the Open-AML-Engine, is available.8
Where to go next
- The learning principle and the pages under it explain each idea in plain language, with the formal statements alongside.
- Examples work through three cases, starting with The 4×4 image example.
- The FAQ answers common questions, and the glossary defines every term.
- History covers Algebraic AI, the company behind AML, the papers, the timeline and independent coverage.
- Theory is the technical reference, starting with Finite atomized semilattices.
- Software describes the engine, the tutorials and the playground.
- Perspectives presents the authors’ view of how AML relates to statistical machine learning.
- About sets out the editorial policy of this wiki, which Algebraic AI maintains.
References
- Martin-Maroto, Abderrahaman, Méndez and de Polavieja (2025), Algebraic Machine Learning: Learning as computing an algebraic decomposition of a task, arXiv:2502.19944.
- Martin-Maroto, Abderrahaman-Elena, Mendez and de Polavieja, Algebraic Machine Learning: learning as computing subsets of the subdirect decomposition from Abstract Algebra, accepted at NeurIPS 2026.
- Martin-Maroto and de Polavieja (2018), Algebraic machine learning, arXiv:1803.05252.
Footnotes
-
Martin-Maroto et al. (2025), Discussion. ↩
-
Martin-Maroto et al. (2025), abstract and Figure 1. ↩
-
Martin-Maroto et al. (2025), abstract and section “Learning from data”. ↩
-
Martin-Maroto et al. (2025), section “Learning without data”. ↩ ↩2
-
Martin-Maroto, Abderrahaman-Elena, Mendez and de Polavieja, NeurIPS 2026, abstract. ↩
-
Martin-Maroto et al. (2025), section “Practical computation of generalizing subsets with Sparse Crossing”. ↩
-
Martin-Maroto & de Polavieja (2018). ↩
-
Martin-Maroto et al. (2025), section “Code availability”. ↩