AML Wiki Review copy, version 1.1, 12 November 2026
algebraic.ai

The learning principle

Algebraic Machine Learning (AML) learns in four stages. This page gives an overview of them; each stage is set out in detail on the pages listed under it.

1. The task is written as axioms

The task is written as a set of axioms in an algebra called a semilattice. The things the task is about, such as pixels, labels, positions on a board or the nodes of a graph, are named by constants. Constants are combined into terms: an image, for example, is the combination of its pixels. Each axiom relates two terms and states that the first is contained in the second, or that it is not. “This image is a 7” and “this image is not a 3” are axioms of this kind. The data, the goal of the task and any prior knowledge all take this one form, so a task can be made of examples, of rules, or of both.1

Formally, a semilattice has one binary operation \(\odot\) that is commutative, associative and idempotent, and the operation induces an order relation: \(a \leq b\) holds when \(b \odot a = b\). A term is an idempotent summation of constants. An axiom is a duple, an ordered pair of terms \((T_L, T_R)\), taken either as positive, \(T_L \leq T_R\), or as negative, \(T_L \not\leq T_R\).1

In detail: The algebra and Encoding a task.

2. Models are sets of atoms

A model of the task is a semilattice in which the axioms hold. AML works with models that are described by a set of elementary components, called atoms. An atom is itself a set of constants, and whether a statement holds in a model is read from the model’s atoms.2 This decomposition has been proposed as a way to find the fundamental building blocks of a problem.3

Formally, the model is an atomized semilattice, described by its set of atoms \(\{\phi_1, \phi_2, \dots\}\). A duple \(T_L \leq T_R\) holds in the model when every atom below \(T_L\) is also below \(T_R\). Each atom corresponds to a subdirectly irreducible component of the semilattice, so the set of atoms is a subdirect decomposition of the model.2

In detail: Atomized semilattices.

3. The freest model is computed

Among the models of a task one is singled out, the freest model. In it, the only statements that are true are the axioms themselves and what follows logically from them. It is computed by a procedure called Full Crossing, which starts from a model with one atom for each constant and enforces the positive axioms one at a time, in any order.4

In detail: The freest model and Full Crossing, with a worked case on The 4×4 image example.

4. Subsets of its atoms generalize

The freest model is not itself a model that generalizes. Certain subsets of its atoms are: each such subset is a smaller model that still satisfies the axioms.5

The argument has two parts. If the data follow hidden rules, the freest model of enough data has the same non-redundant atoms as the freest model of those rules. And the errors that a subset of atoms can be expected to make on unseen data can be estimated from quantities observed during training, which tells which atoms to select.6

In practice the whole freest model is usually too large to compute. A sparse version of Full Crossing, called Sparse Crossing, obtains generalizing subsets directly from the axioms: it enforces the positive axioms in sequence and keeps, at each step, only the atoms needed to keep the negative axioms satisfied. Models obtained separately can be combined, because the union of two models of the same axioms is again a model of them.7

In detail: Why subsets of the freest model generalize, Sparse Crossing and Model additivity.

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.

See also

Footnotes

  1. Martin-Maroto et al. (2025), section “Encoding a task as axioms of an algebraic structure”. ↩ ↩2

  2. Martin-Maroto et al. (2025), section “Atomized models of the task”. ↩ ↩2

  3. Martin-Maroto et al. (2025), opening of the Results. ↩

  4. Martin-Maroto et al. (2025), section “Freest atomized model”. ↩

  5. Martin-Maroto et al. (2025), abstract and Figure 1. ↩

  6. Martin-Maroto et al. (2025), section “Generalizing models”. ↩

  7. Martin-Maroto et al. (2025), section “Practical computation of generalizing subsets with Sparse Crossing”. ↩