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

The learning principle

Why subsets of the freest model generalize

The freest model of a task contains exactly what the training axioms say and nothing more. Algebraic Machine Learning (AML) obtains models that go further, and answer correctly about examples that were not in their training data, by keeping only some of the atoms of the freest model. This page sets out the argument for why that works.

The atoms of the rules are in the data

Suppose the examples follow hidden rules. Given enough examples, the freest model of the examples has the same essential atoms as the freest model of the rules themselves, so the atoms of the rules are there to be found in a model built from data.

Precisely, let \(P\) be the set of duples that define the hidden rules of a task, and \(Q\) the set of all duples that are logical consequences of \(P\), excluding \(P\). The non-redundant atoms of the freest model of \(Q\) are the same as the non-redundant atoms of the freest model of \(P\). If a large enough subset of \(Q\) is provided as task duples, the freest model of the task duples becomes equivalent to the model of the rule duples.1

They appear early

The equivalence holds in the limit where all of \(Q\) is known. The non-redundant atoms of the final model, or an approximation to them, must however be created much earlier. In the small image example the final model required 3,375 crossings, but its non-redundant atoms are already present before 200 crossings.2

How an atom evolves

As training proceeds, each atom either stays as it is or grows. Enforce the positive task duples \(r_1, \dots, r_n\) in turn, starting from the freest semilattice \(N_0\), to obtain models \(N_1, \dots, N_n\). For each atom \(\phi\) of \(N_n\) there is an inward chain of atoms \(\lambda_0, \lambda_1, \dots, \lambda_n\) with \(\lambda_i \in N_i\) and \(\lambda_n = \phi\). If \(\lambda_{i-1}\) is not in the discriminant of \(r_i\) then \(\lambda_i = \lambda_{i-1}\); otherwise \(\lambda_i\) has more constants in its upper constant segment, and the atom is said to grow, or to become wider.

Three numbers describe the history of an atom \(\phi\) of the final model. Its growth \(g(\phi)\) is the number of times the atoms of its chain grow. Its inception \(k(\phi)\) is the index of the first model of the sequence that contains \(\phi\). Its success \(h(\phi) = n - k(\phi)\) is the number of consecutive crossings through which \(\phi\) has remained unchanged.

An atom can only grow a limited number of times, because its upper constant segment cannot be larger than \(\vert C \vert\). An atom that has reached its final size is mature, and a mature atom causes no false negatives.2

False negatives

An atom that has survived many examples unchanged is unlikely to wrongly reject a new example. The probability of false negative (PFN) of a subset of \(Z\) atoms is the probability that one or more of them makes a test duple negative that should be positive. Under the assumption that training and test distributions are the same, it is approximated by

\[\mathrm{PFN}(\phi_1, \dots, \phi_Z) \approx \sum_{i=1}^{Z} \min\left(\frac{1}{h(\phi_i) + 1},\ \frac{g(\phi_i) + 1}{j + 1}\right),\]

where \(j\) is the number of positive training duples crossed so far, and by the simpler expression

\[\mathrm{PFN}(\phi_1, \dots, \phi_Z) \approx \sum_{i=1}^{Z} \frac{1}{h(\phi_i)} .\]

The PFN is therefore reduced by using fewer atoms and atoms with high success.3

False positives

Atoms that reject many of the known counterexamples are unlikely to wrongly accept a new one. The probability of false positive (PFP) is the probability that a test duple that should be negative is positive in the model. For a false positive, every atom of the subset must fail to discriminate the duple, so a larger subset makes one less likely. If the atoms are assumed independent,

\[\overline{\mathrm{PFP}}(\phi_1, \dots, \phi_Z) = \prod_{i=1}^{Z} \overline{\mathrm{PFP}}(\phi_i).\]

The negative duples of the training set play no role in computing the freest model, so the PFP of an individual atom can be obtained empirically from them. Where the individual probabilities are correlated, lower correlation gives a smaller expected PFP for the subset.2

Which atoms to keep

The two error probabilities together say which atoms to keep: few of them, long-lived ones, that between them reject all the counterexamples and overlap little in what they reject. To minimize the test PFN, the atoms selected should be as few as possible and highly successful. To minimize the test PFP, they should be effective at discriminating negative duples, have low mutual correlation, and be numerous enough to make every negative duple of the training set negative.2

The load and the point of abrupt confidence transition

The sum in the first approximation of the PFN is a quantity called the load,

\[L = \sum_{i=1}^{Z} \min\left(\frac{1}{h(\phi_i) + 1},\ \frac{g(\phi_i) + 1}{j + 1}\right).\]

It can be computed during training and measures the immaturity of the atoms and how much learning is still required. It can be much larger than 1 at the beginning of learning and goes down as the model learns. Only in the region \(L \leq 1\) can the amount of learning be measured with a test set.

Consider now the confidence that the PFN of a set of atoms is greater than a bound \(\Delta\). As a function of \(\Delta\) it falls from high to low abruptly, at the value

\[\Delta_T = 1 - e^{-L} ,\]

the point of abrupt confidence transition. In practical terms, a given bound on the PFN can be established with confidence at a particular number of training examples, and that confidence changes from low to high within a narrow window of examples. This does not mean that learning occurs abruptly: the PFN improves gradually as the number of training examples grows, and it is the confidence in a given bound that changes suddenly.4 The derivations are on Generalization theory.

No validation set, and no overfitting

On this account, and in the experiments reported so far, AML does not overfit, and it needs no validation data to choose settings or to decide when to stop training. Because the algebra grows as it learns, no architecture has to be specified and no validation dataset is used to select an architecture or other hyperparameters. No validation dataset is needed to stop training either: the authors state that “both our theoretical analysis and the empirical results show no overfitting”. The evidence given is the test accuracy on MNIST, which increases during training.5

Limitations

  • The PFN and PFP estimates assume that training and test distributions are the same, and the PFP formula assumes that the atoms behave independently.2
  • Atoms that do not discriminate any of the counterexamples used are not found by this method. In the image example, the method recovers some atoms of the rule and not others, because the counterexamples are also images.2
  • After training on MNIST, about 70% of the test images have a digit assigned by the subset condition itself. This is attributed to a training set that is not large enough, and the remaining images are classified by a best guess.6

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 “Generalizing models”; Supplementary section “Discovery of rules in data”. ↩

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

  3. Martin-Maroto et al. (2025), section “Generalizing models”; Supplementary section “Derivation of the Probability of False Negative”. ↩

  4. Martin-Maroto et al. (2025), Supplementary section “Point of abrupt confidence transition and the expected training set size”. ↩

  5. Martin-Maroto et al. (2025), section “Learning from data”, Figure 4b. ↩

  6. Martin-Maroto et al. (2025), section “Learning from data”. ↩