arXiv:2609.01666cs.ITSep 2026

Manuscript Offprint

arXiv:2609.01666

Solomonoff Induction and Singular Integrals

Will Troiani, Daniel Murfet

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The Solomonoff distribution MM assigns an a priori probability to a finite binary string zz by summing over all programs whose output begins with zz, a program of length ℓ\ell weighted by 2−ℓ2^{-\ell}: the likely strings are those with many short explanations. This is apparently a purely discrete notion of complexity. However, Riemann sums are also countable. We show that the sum defining MM contains, suitably reorganised, Riemann sums approximating the Bayesian evidence of any computable statistical model — singular integrals whose asymptotics are governed by Singular Learning Theory and, through it, by invariants of algebraic geometry. Concretely, for every computable Bayesian model we construct a single monotone Turing machine whose induced semimeasure agrees with the evidence ZnZ_n up to a uniform multiplicative constant. For a computable Bayesian model satisfying in addition the hypotheses of Watanabe's free energy asymptotics, it follows that data Xn=X1⋯XnX^n = X_1 \cdots X_n drawn i.i.d. from the true distribution satisfies

−log⁡M(Xn)≤nLn(w0)+λlog⁡n−(m−1)log⁡log⁡n+OP(1),-\log M(X^n) \leq n L_n(w_0) + \lambda \log n - (m-1) \log \log n + O_{\mathbb{P}}(1),

where LnL_n is the empirical loss, w0w_0 an optimal parameter, λ\lambda the learning coefficient, and mm its multiplicity. The learning coefficient, a geometric measure of model simplicity, thereby appears within the Solomonoff distribution as the coefficient of log⁡n\log n in an upper bound on code length.

1 Introduction

An approach to universal Artificial General Intelligence (AGI) has been defined in [6, 7] using a formalisation of an agent performing optimally across all computable environments. A key ingredient towards this definition is the Solomonoff prior, which is the mixture, defined with respect to a fixed universal monotone Turing machine U\mathcal{U}:

ξU:=∑ν2−K(ν)⋅ν\xi_{\mathcal{U}}:=\sum_{\nu}2^{-\mathcal{K}(\nu)}\cdot \nu

*Resolution. will@resolution.org

†Resolution. murfet@resolution.org where the sum is over all lower-semicomputable semimeasures ν\nu, and K\mathcal{K} is the Kolmogorov complexity with respect to U1\mathcal{U}^1. Once a method of evaluating the performance of agents has been constructed, the universally intelligent agent AIXI (sometimes spelt AIξ\xi) is then defined as a maximiser of this valuation; see [7, Chapter 7] for details. A key property of AIXI is that it uses simple reasoning, as motivated by philosophy of science concepts such as Occam's razor2^2 and Epicurus' principle3^3, and formalised by the minimisation of K\mathcal{K}.

It is therefore common to swap out the Solomonoff prior for the Solomonoff distribution MM, which agrees with ξU\xi_{\mathcal{U}} up to a multiplicative constant in the case of sequence prediction, and is defined as follows for a finite binary string zz:

M(z)=∑p:U(p)=z∗2−ℓ(p),(1)M(z)=\sum_{p:\mathcal{U}(p)=z*}2^{-\ell(p)}, \tag{1}

summing over minimal programs pp; here U(p)=z∗\mathcal{U}(p)=z* means that in the run of U\mathcal{U} on any input tape extending pp, the input head has consumed exactly pp at the step at which the last bit of zz is written (Definition A.3). That (1) is a reasonable notion of a priori probability is exemplified by the correspondence between machines and semimeasures: every monotone Turing machine TT induces a lower-semicomputable semimeasure PTP_T (Definition A.4), where PT(z)P_T(z) is the probability that the output of TT begins with zz when its input tape is filled with uniformly random bits, and conversely every lower-semicomputable semimeasure arises this way up to a bounded multiplicative factor [6, 7]. Under this correspondence, MM dominates each PTP_T with constant 2−ℓ(⟨T⟩)2^{-\ell(\langle T\rangle)} (Theorem A.7).

The minimal programs pp in (1) are binary strings which may be of the form ⟨T⟩p′\langle T\rangle p' where ⟨T⟩\langle T\rangle is some encoding of a Turing machine TT and p′p' is the rest of the string, which may be passed as input to TT or as extra information. Amongst such strings are two conceptually distinct categories: deterministic programs, specified by the portion of the string ⟨T⟩\langle T\rangle and some input to TT contained in p′p'; and samplers, which read their code from ⟨T⟩\langle T\rangle and then continue reading p′p' as random bits used to sample from a predictive distribution.

A preference for simplicity has also been considered in a different context, that of Bayesian learning. Fix a model class {p(⋅∣w)∣w∈W}\{p(\cdot \mid w) \mid w \in W\}, a family of probability distributions indexed by a parameter ww ranging over a space WW, together with a prior distribution ϕ\phi on WW with density φ\varphi. Given data Dn=(z1,…,zn)D_n = (z_1, \ldots, z_n) consisting of nn i.i.d. samples, Bayes' rule updates the prior to the posterior distribution

p(w∣Dn)∝φ(w)∏i=1np(zi∣w),p(w \mid D_n) \propto \varphi(w) \prod_{i=1}^n p(z_i \mid w),

and by Bayesian learning we mean the evolution of this posterior as nn increases. Amongst

1^1Our monotone Turing machines have tape alphabet B={0,1}\mathbb{B} = \{0,1\} and no blank symbols, so the contents of the input tape may be read as random bits, to be used for random sampling (Definition A.3). In the context of reinforcement learning, this sum is instead over lower-semicomputable chronological semimeasures, but we will not consider these here.

2^2Among the hypotheses consistent with the observations, prefer the simplest [7, Section 16.1].

3^3Discard no hypothesis consistent with the observations; in the prior, every such hypothesis retains positive weight [7, Section 16.1].

the samplers appearing in (1) are those implementing Bayesian learning for a fixed computable model class: draw w∼ϕw \sim \phi, then sample from p(⋅∣w)p(\cdot \mid w).

When the model class is singular, Singular Learning Theory (SLT) describes the large-nn behaviour of the Bayesian evidence

Zn:=∫Wφ(w)∏i=1np(zi∣w)dw,Z_{n}:=\int_{W}\varphi(w)\prod_{i=1}^{n}p(z_{i}\mid w)dw,

the normalising constant of the posterior above. Watanabe's theorems [14, 15] give the asymptotic expansion of the associated free energy (see Appendix B):

Fn:=−log⁡Zn=nLn(w0)+λlog⁡n−(m−1)log⁡log⁡n+OP(1),F_{n}:=-\log Z_{n}=nL_{n}(w_{0})+\lambda\log n-(m-1)\log\log n+O_{\mathbb{P}}(1),

where Ln(w):=−1n∑i=1nlog⁡p(zi∣w)L_{n}(w):=-\frac{1}{n}\sum_{i=1}^{n}\log p(z_{i}\mid w) is the empirical loss, w0w_{0} is an optimal parameter, λ>0\lambda>0 is the learning coefficient, and mm is its multiplicity. A localisation of λ\lambda near a chosen parameter, the Local Learning Coefficient (LLC), has been adopted as a measure of model simplicity [8, 5]: in the regular case the learning coefficient equals half the number of parameters, and so reads as an effective parameter count. This leaves us with two notions of simplicity: minimum description length on the one hand, and singular model simplicity as measured by the learning coefficient on the other.

The goal of the present paper is to see how these two notions of simplicity relate to one another. At first sight they belong to different worlds: the sum (1) is indexed by a countable set of discrete objects, while the evidence ZnZ_{n} is an integral over a continuous parameter space, whose asymptotics are controlled by the geometry of the zero locus of the Kullback–Leibler divergence and ultimately by resolution of singularities. The bridge is the observation that Riemann sums are also countable. We show that the sum defining MM can be reorganised so that within it appear Riemann sums for the evidence integrals of computable Bayesian models.

It is no great surprise that Bayesian learning can be approximated by computable procedures, and so ought to contribute terms to the sum (1). There is a challenge, though: to arrive at a meaningful relationship between M(z)M(z) on the one hand, with z=z1⋯znz=z_{1}\cdots z_{n} and nn free to grow, and the learning coefficient on the other, the contribution must come from a single fixed machine serving every nn. This is possible, and constitutes the main technical work of the paper.

The construction has two stages. First, we define a computable procedure BayesSampler(m,ω)\text{BayesSampler}(\mathfrak{m},\omega) (Definition 2.9), where m\mathfrak{m} is a finite effective description of the statistical model, comprising an integer b>0b>0, a model class {p(⋅∣w)∣w∈W}\{p(\cdot\mid w)\mid w\in W\} of probability distributions on the set Bb\mathbb{B}^{b} of bit-strings of length bb, and a prior ϕ\phi on WW, and ω∈BN\omega\in\mathbb{B}^{\mathbb{N}} is an infinite string of uniformly random bits. Second, fixing m\mathfrak{m} and hard-wiring it into the procedure yields an ordinary monotone Turing machine BmB_{\mathfrak{m}} with Bm(ω)=BayesSampler(m,ω)B_{\mathfrak{m}}(\omega)=\text{BayesSampler}(\mathfrak{m},\omega), whose only input is ω\omega. This one machine is fixed by m\mathfrak{m} alone, receives neither the sample size nor the data, runs forever, and writes a single infinite string; its induced semimeasure reproduces the Bayesian evidence ZnZ_{n} of the model on every prefix, up to a uniform constant (Theorem 2.15). The relationship is that of a

Riemann sum to its integral: for every string z=z1⋯znz = z_1 \cdots z_n consisting of nn strings zi∈Bbz_i \in \mathbb{B}^b,

PBm(z)=∑α∏t=1np(zt∣wt(α)) ϕ(Dj(n),α),P_{B_{\mathrm{m}}}(z)=\sum_{\alpha}\prod_{t=1}^{n} p(z_{t}\mid w_{t}(\alpha))\,\phi\big(D_{j(n),\alpha}\big), Zn=∫W∏t=1np(zt∣w) dϕ(w),Z_{n}=\int_{W}\prod_{t=1}^{n} p(z_{t}\mid w)\,d\phi(w),

where the cells Dj(n),αD_{j(n),\alpha} partition the parameter space WW, up to a null set of boundaries, at a resolution growing with nn, and wt(α)w_t(\alpha) is the centre of the cube of the current cell at time step tt (Lemma 2.14). The estimate relating the two is

e−π2/6 Zn  ≤  PBm(z)  ≤  eπ2/6 Zn,e^{-\pi^{2}/6}\,Z_{n}\;\leq\;P_{B_{\mathrm{m}}}(z)\;\leq\;e^{\pi^{2}/6}\,Z_{n},

so the induced semimeasure of BmB_{\mathrm{m}} has exactly the free energy asymptotics of the model (Corollary 2.16). Since BmB_{\mathrm{m}} is one monotone Turing machine among those contributing to (1), dominance yields the main result (Theorem 2.17):

−log⁡M(z)  ≤  −log⁡Zn+O(1),-\log M(z)\;\leq\;-\log Z_{n}+O(1),

and when the strings X1,…,XnX_1,\ldots,X_n are drawn i.i.d. from a true distribution satisfying the hypotheses of Watanabe's theorem (Appendix B), writing Xn:=X1⋯XnX^n:=X_1\cdots X_n,

−log⁡M(Xn)  ≤  nLn(w0)+λlog⁡n−(m−1)log⁡log⁡n+OP(1).-\log M(X^n)\;\leq\;n L_n(w_0)+\lambda\log n-(m-1)\log\log n+O_{\mathbb{P}}(1).

The two notions of simplicity are thereby related within a single bound: the additive constant, which depends on the model description but on neither nn nor the data, pays for the description of the model, while the coefficient of log⁡n\log n is its learning coefficient.

Background on the Solomonoff distribution, following [7], is recalled in Appendix A, and the necessary singular learning theory in Appendix B. Related work is discussed in Remark 2.20.