cs.LGNov 16, 2026

On the Applicability of pp-adic Numbers in Computational Modules for Neural Networks

Authors: Vladimir Evgrafov

Organizations: Vladimir Evgrafov, Lomonosov Moscow State University, Faculty of Computational Mathematics and Cybernetics (CMC), Moscow, Russia.

Abstract

The applicability of pp-adic arithmetic as an intermediate computational module in an otherwise unchanged machine-learning pipeline is investigated. A one-feature linear regression on the scikit-learn Diabetes dataset serves as the test model. The fitted coefficients are represented in Qp\mathbb{Q}_p, predictions are computed in that field, and rational reconstruction is applied to the outputs. In the pyAdic experiments, rational reconstruction either returns no result or produces values that differ from the baseline predictions; changing computational precision can change both the magnitude and sign of the reconstructed value. In SageMath, forward conversions succeed, but the reconstructed predictions differ from the baseline. An alternative representation based on digit reversal fails to preserve ordinary addition because of carry propagation. Under the tested settings, none of the test predictions is reconstructed correctly. These results show that the tested conversion and reconstruction procedures do not provide a compatible intermediate module even for linear regression. Models defined directly over pp-adic data and operations offer a direction for further investigation.

Figures & tables

Explore similar work

CardsList
  1. Continuous Optimization for p-adic Models

    Sep 21, 2026Julian Salazar, Dimitri Kanevsky, Matt Harvey +2Gradient Descent

  2. Numbers Already Carry Their Own Embeddings

    Jun 12, 2026Suhyun Bae, Donghun LeeRepresentation Learning