TL;DR
Standard neural networks live in the smooth world of real numbers, making them great at capturing magnitudes, while $p$-adic numbers naturally encode trees, hierarchies, and modular arithmetic. Combining both into a single "adelic" network seems like a recipe for topological disaster, because real spaces are connected and $p$-adic spaces are shattered into totally disconnected dust. By proving a universal approximation theorem on these combined spaces, the authors let topology dictate the exact blueprint of an adelic neural layer—and discover it naturally takes the form of a $p$-adic-routed Mixture of Experts.
What Problem Does This Paper Address?
In machine learning, your choice of number system shapes what your model finds "easy." Real numbers ($\mathbb{R}$) measure closeness by magnitude, which is ideal for smooth, continuous changes. Meanwhile, for a prime $p$, the $p$-adic numbers ($\mathbb{Q}_p$) measure closeness by divisibility: two numbers are close if their difference is divisible by a high power of $p$ (meaning their base-$p$ expansions share a long prefix). This creates an ultrametric geometry where balls are either completely disjoint or nested inside one another, naturally organizing data into an infinite $p$-ary tree. For example, a simple linear model over $\mathbb{Q}_p$ can learn modular arithmetic—an XOR-like task that trips up real linear models.
In number theory, the adeles gather $\mathbb{R}$ and all $\mathbb{Q}_p$ into one unified ring. Building a neural network on a "proxi-adelic" space (combining $\mathbb{R}$ with finitely many $\mathbb{Q}_{p_i}$) could give models both geometric superpowers at once.
The catch? Their topologies violently clash. $\mathbb{R}$ is connected, whereas $\mathbb{Q}_p$ is totally disconnected (its only connected subsets are single points). Consequently, every continuous function from a connected real domain into $\mathbb{Q}_p$ is completely constant! Naive combinations—like concatenating coordinates or shoving $p$-adic numbers into $\mathbb{R}$—either break continuity or destroy the tree geometry we wanted in the first place. Instead of guessing how an adelic layer should look, the authors ask: what architecture is forced upon us by universal approximation?
Methods
The authors study continuous functions on compact domains $K_{\mathbb{R}} \times \prod_{i=1}^M \mathbb{Z}_{p_i}^{d_i}$ (where $K_{\mathbb{R}}$ is compact and connected, and $\mathbb{Z}_{p_i}$ is the unit ball of $p_i$-adic integers). Using Heine’s theorem (compactness implies uniform continuity) and the fact that $p$-adic spaces can be cleanly partitioned into finitely many clopen balls, they derive a general Proxi-Adelic Universal Approximation Theorem.
To turn abstract math into a computable neural layer, they plug in two established building blocks:
- Standard one-hidden-layer perceptrons for the real coordinates.
- $p$-adic character networks (recent universal approximators over $\mathbb{Q}_p$) for each $p_i$-adic coordinate.
- Closed-form ball indicators that check whether a $p$-adic input falls inside a specific ball—which reduces to a simple modular congruence test on its first $s$ digits.
Because partitioning a $p$-adic space into tiny disjoint balls creates an exploding number of unshared sub-networks with hard, zero-gradient step gates, the authors also derive two novel universal relaxations:
- Ball covers instead of partitions: Allowing balls to overlap so nested balls act as a coarse-to-fine refinement down the $p$-adic tree.
- Fourier expansion of the gates: Replacing hard indicator functions in the real branch with their finite-group Fourier expansions, turning step-function switches into smooth cosine modulations of $p$-adic fractional parts.
Datasets
Not discussed in the paper. (This work is purely theoretical.)
Key Insights and Ideas
- Topology forces a one-way street from $\mathbb{R}$ to $\mathbb{Q}_p$: Because $K_{\mathbb{R}}$ is connected and $\mathbb{Q}_{p_i}$ is totally disconnected, a continuous $p_i$-adic output cannot depend on the real inputs at all. Information flows from $p$-adic coordinates into real outputs, and symmetrically between distinct primes $p_1$ and $p_2$, never from $\mathbb{R}$ into $\mathbb{Q}_p$.
- Adelic layers are secretly Mixtures of Experts (MoE): For real-valued outputs, the universal approximator is a finite sum of real networks, each switched on by a $p$-adic ball indicator. In practice, the first $s$ digits of the $p$-adic input act as a deterministic router selecting which real "expert" evaluates the real input.
- Hierarchical weight sharing via covers: In $\mathbb{Z}_p$, any two balls are either disjoint or nested. Relaxing disjoint partitions to overlapping covers means a point activates a chain of nested balls $U_1 \supsetneq U_2 \supsetneq \dots$, allowing big balls to learn broad, shared representations and deeper balls to add local refinements.
- Berkovich space is the natural home of the gates: Every point inside a $p$-adic ball is equally valid as its "center," meaning the model's gates really depend on the ball itself as a geometric object, rather than a specific center parameter. In 1D, these closed balls correspond directly to points on the Berkovich affine line—linking the architecture to recent $p$-adic optimization theory.
Key Results
Because the paper is strictly theoretical, there are no empirical benchmarks; the core results are mathematical density guarantees under the uniform norm ($d_\infty$):
- Theorem 2 (Universal Approximation): Proves that finite sums of native real networks gated by $p$-adic ball indicators are dense in $\mathcal{C}(K, \mathbb{R}^n)$, and native $p_i$-adic networks gated by ball indicators of the other primes ($p_k \neq p_i$) are dense in $\mathcal{C}(K, \mathbb{Q}_{p_i}^{n_i})$.
- Corollary 2 (Explicit Layer): Instantiating Theorem 2 with sigmoidal perceptrons and $p$-adic character networks yields an explicit, finitely parameterized universal adelic layer.
- Proposition 4 (Cosine Modulation): Proves that weighting real networks by $\cos(2\pi \theta_{\gamma, \mathbf{s}}(\mathbf{z} - \mathbf{c}))$—using $p$-adic phases—preserves universal approximation while allowing all experts to contribute simultaneously with weights in $[-1, 1]$.
Limitations and Future Work
- No sample complexity or generalization bounds: As with classical universal approximation theorems, proving density says nothing about how many balls or frequencies are needed in practice, or how well the models generalize.
- Training the gates is currently an open puzzle: Because $p$-adic metrics take discrete values, standard losses are flat almost everywhere. Even state-of-the-art continuous optimization on the Berkovich line doesn't immediately rescue the gates: ball indicators use real step functions (locally constant with respect to centers), Fourier phases remain locally constant in the centers, and cross-prime gates cannot be continuously relaxed due to total disconnectedness.
- Next steps: Extending the Berkovich space correspondence to multi-prime anisotropic balls, and actually training a small $\mathbb{R} \times \mathbb{Q}_p$ model on a toy task combining smooth magnitudes with modular/hierarchical structure (e.g., via gradient descent on real weights paired with Berkovich updates or relaxed cosine weights).
Summary updated