English

Learning with the $p$-adics

Machine Learning 2025-12-30 v1 Artificial Intelligence Discrete Mathematics

Abstract

Existing machine learning frameworks operate over the field of real numbers (R\mathbb{R}) and learn representations in real (Euclidean or Hilbert) vector spaces (e.g., Rd\mathbb{R}^d). Their underlying geometric properties align well with intuitive concepts such as linear separability, minimum enclosing balls, and subspace projection; and basic calculus provides a toolbox for learning through gradient-based optimization. But is this the only possible choice? In this paper, we study the suitability of a radically different field as an alternative to R\mathbb{R} -- the ultrametric and non-archimedean space of pp-adic numbers, Qp\mathbb{Q}_p. The hierarchical structure of the pp-adics and their interpretation as infinite strings make them an appealing tool for code theory and hierarchical representation learning. Our exploratory theoretical work establishes the building blocks for classification, regression, and representation learning with the pp-adics, providing learning models and algorithms. We illustrate how simple Quillian semantic networks can be represented as a compact pp-adic linear network, a construction which is not possible with the field of reals. We finish by discussing open problems and opportunities for future research enabled by this new framework.

Keywords

Cite

@article{arxiv.2512.22692,
  title  = {Learning with the $p$-adics},
  author = {André F. T. Martins},
  journal= {arXiv preprint arXiv:2512.22692},
  year   = {2025}
}

Comments

29 pages

R2 v1 2026-07-01T08:42:59.792Z