arXiv:2610.29289cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.29289

Approximate Solomonoff Induction: On the Robustness of Learned Universal Predictors

Qian Li, Shang-Hua Teng

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

Abstract

Why large language models trained via log-loss minimization over massive and diverse datasets exhibit broad capabilities and generalizable skills is not yet fully understood. Grau-Moya et al. (ICML 2024) offer a conceptual explanation through the lens of meta-learning: if sequence-generating environments ν\nu are drawn from a prior wνw_\nu, minimizing population log-loss recovers the corresponding Bayesian mixture predictor ξ=∑νwνν\xi = \sum_\nu w_\nu \nu. In the idealized limit in which ww is a universal prior, the optimal predictor corresponds to Solomonoff universal induction. Practical machine learning algorithms, however, generally produce only approximately optimal predictors. This raises a natural question: Does the prediction performance remain robust under approximation? In this paper, we first provide a tight bound on the worst-case effect of approximation on prediction error. We show any predictor ρ\rho satisfying DKL(ξ∥ρ)≤ηD_{KL}(\xi \|\rho) \leq \eta retains bounded cumulative-expected-squared prediction error. However, while the Bayesian mixture predictor ξ\xi has error O(log⁡(1/wμ))O(\log(1/w_\mu)) in an environment μ\mu, we establish a tight Θ(η/wμ)\Theta(\eta/w_\mu) bound on the excess error of ρ\rho relative to ξ\xi. Thus, approximation can substantially degrade performance in environments assigned small prior probability. In sharp contrast, when environments are averaged according to prior ww, we prove that the excess prediction error is only O(η)O(\eta). Furthermore, we establish a distribution-shift theorem for dominated shifts from a training prior ww to a test prior w′w', interpolating our average-case and worst-case guarantees. Finally, we extend our robustness analysis to a finite-sampling setting relevant to learning universal predictors with neural networks and Transformers, where DKL(ξ∥ρ)D_{KL}(\xi \|\rho) could be unbounded. Our theory extends the classical theory of Bayesian and Solomonoff Induction to approximate predictors and characterizes a broad spectrum of prediction behavior. It helps explain the sharp gap between strong empirical benchmark performance and poor worst-case performance in rare environments, while providing quantitative justification for fine tuning and synthetic data generation designed to protect important but underrepresented task families.

1 Introduction

Large language models (LLMs) trained for sequential prediction have acquired a remarkable range of capabilities from vast and diverse data. In recent years, scaling model capacity, expanding the volume and breadth of training data, increasing computational resources [KMH+20][KMH^{+}20], and incorporating real-world human interaction [OWJ+22][OWJ^{+}22] have driven substantial progress, transforming LLMs into increasingly general-purpose systems for problem solving and induction. Given the substantial and rapidly growing resources required to train frontier models, understanding the benefits and limitations of further scaling has become more important than ever, raising a range of fundamental research questions.

Classical learning frameworks, such as semi-supervised learning, PAC learning, and reinforcement learning, typically analyze learning relative to a specified task, data distribution, and hypothesis class. In contrast, a single LLM trained on heterogeneous data can perform a wide range of tasks—including translation, writing, coding, and mathematical reasoning—without task-specific retraining, guided only by instructions or a few demonstrations provided in context. Although pretraining is largely driven by minimizing next-token log loss, the resulting models exhibit capabilities involving generation, abstraction, reasoning, and planning, often without explicit supervision for each capability. Moreover, once trained, such a model can be deployed at a comparatively low marginal cost per inference [Dee25]. LLM training thus distills enormous amounts of data and computation into a reusable neural network whose fixed parameters support adaptive behavior across contexts and tasks. This phenomenon suggests that learning to predict sufficiently rich and heterogeneous sequences can give rise to broad knowledge and generalizable computational abilities. Precisely how such capabilities emerge from a seemingly simple prediction objective, however, remains incompletely understood, and is central to characterizing the fundamental power and limitations of the current LLM paradigm.

Motivating Prior Work. Meta-learning, or learning to learn, provides a conceptual framework for understanding this phenomenon [GGMW +^{+}26]. Meta-learning treats the learning procedure itself as an object of optimization, using experience accumulated across tasks to improve the learning of new tasks [HAMS21]. It involves two levels of learning, either explicitly or implicitly: an inner process learns a particular task from a specified dataset and objective, while an outer process optimizes aspects of the inner process—such as the model class, initialization, or optimization rule—with the aim of reducing the data or computation required to solve new tasks.

One approach is memory-based meta-learning (MBML) [SBB +^{+}16], in which a memory-augmented model—an LLM whose context serves as memory, for example—is trained on data drawn from a distribution over tasks using a single optimization loop. The two levels of learning are realized through different mechanisms: the outer process updates the model's parameters across training tasks, whereas the inner process adapts to an individual task through changes in the model's memory state. At test time, the parameters remain fixed, and adaptation proceeds through memory dynamics without task-specific parameter updates. In-context learning thus emerges as a learned adaptation procedure implemented through the model's forward computation.

This MBML framework admits a precise Bayesian characterization [OWR +^{+}19, XRLM22]. For a fixed horizon n, suppose that each training sequence is generated by first sampling a task ν\nu from a prior distribution w, then sampling data x1:nx_{1:n} from ν\nu. Suppose a sufficiently expressive model ρθ∗\rho_{\theta^*} is trained to minimize the population log-loss objective

Ln(ρθ)=Eν∼wEx∼ν[−∑t=1nlog⁡2ρθ(xt∣x<t)]\mathcal{L}_{n}(\rho_{\theta})=\mathbb{E}_{\nu\sim w}\mathbb{E}_{x\sim\nu}\left[-\sum_{t=1}^{n}\log_{2}\rho_{\theta}(x_{t}\mid x_{<t})\right]

Then ρθ∗\rho_{\theta^*} behaves as the Bayesian mixture predictor ξ(x)=∑vwv⋅v(x)\xi(x) = \sum_v w_v \cdot v(x). In particular,

ρθ∗(xt∣x<t)=ξ(xt∣x<t)=∑νwν(x<t)ν(xt∣x<t),\rho_{\theta^{*}}(x_{t}\mid x_{<t})=\xi(x_{t}\mid x_{<t})=\sum_{\nu}w_{\nu}(x_{<t})\nu(x_{t}\mid x_{<t}),

where wν(x<t)∝wν⋅ν(x<t)w_{\nu}(x_{<t}) \propto w_{\nu} \cdot \nu(x_{<t}) is the posterior probability of ν\nu. Thus, conditioned on an observed prefix x<tx_{<t}, the Bayesian predictor combines the predictions of the candidate tasks according to their posterior probabilities, reflecting both their prior weights and their consistency with the observations. The appeal of the Bayesian perspective lies in its strong prediction guarantee [Hut05]: at test time, ρθ∗\rho_{\theta^*} can achieve efficient in-context adaptation to any task μ\mu with positive prior weight wμ>0w_{\mu} > 0:

Sn(μ,ρθ∗):=∑t=1nEx<t∼μ∑xt(μ(xt∣x<t)−ρθ∗(xt∣x<t))2=O(log⁡1wμ).S_{n}(\mu,\rho_{\theta^{*}}):=\sum_{t=1}^{n}\mathbb{E}_{x_{<t}\sim\mu}\sum_{x_{t}}\left(\mu(x_{t}\mid x_{<t})-\rho_{\theta^{*}}(x_{t}\mid x_{<t})\right)^{2}=O\left(\log\frac{1}{w_{\mu}}\right).

This provides a principled explanation of in-context learning as amortized Bayesian prediction: training amortizes learning across tasks by encoding an adaptive inference procedure into the forward computation of a neural network. In particular, consider the class of all computable environments 1^{1} endowed with the universal prior wν=Θ(2−K(ν))w_{\nu} = \Theta(2^{-K(\nu)}), where K(ν)K(\nu) denotes the Kolmogorov complexity of ν\nu. The resulting single Bayesian predictor becomes Solomonoff universal induction [Sol78, Sol86], which achieves cumulative expected squared prediction error O(K(μ))O(K(\mu)) simultaneously in every computable environment μ\mu, independently of the prediction horizon. Building on this connection, [GGH +^{+}24] proposed learning increasingly general predictors by meta-training neural networks on synthetic data generated by computationally bounded environments, represented by universal Turing machines with bounded program lengths and runtimes. Progressively relaxing these bounds while increasing model capacity and training data offers an principled approach toward universal prediction, provided that the corresponding prediction objectives can be optimized sufficiently well. The paper [GGMW +^{+}26] placed this framework within the broader context of algorithmic compression: minimizing sequential log loss can be understood as learning to compress observations by approximating and amortizing Bayesian prediction over their underlying generative mechanisms. Under a universal prior, the resulting predictor favors simpler computational explanations while averaging over all computable hypotheses according to both their simplicity and their consistency with the observations.

Our Main Contributions. The classical theory [Sol78, Sol86, Hut05] focuses on the exact predictor that attains the minimum population log loss. In practice, however, limited model capacity and imperfect optimization—even when training data are abundant—mean that learned models generally only approximate the ideal Bayesian predictor. As emphasized by [GGMW +^{+}26], extending the Bayesian view of meta-learning beyond exact realizability and perfect optimization remains an important open direction. Motivated by this line of work, we take a first step toward understanding the fundamental gap between ideal Bayesian prediction and practical learned predictors by addressing the following central question:

To what extent do the guarantees of the ideal Bayesian predictor continue to hold when practical learning architectures can only approximate it?

In this work, we develop a theory of Bayesian and universal sequential prediction under approximation, characterizing performance and robustness across a broad range of regimes:

Environment-Wise Worst-Case Robustness. We show in Theorem 1 that every approximate predictor ρ\rho with excess population log loss at most η\eta, equivalently DKL(ξ∥ρ)≤ηD_{\mathrm{KL}}(\xi\|\rho) \leq \eta, retains a finite bound on

1^{1}We use the terms “task” and “environment” interchangeably.

its cumulative expected squared prediction error. Specifically, for any environment μ\mu, the error of the ideal Bayesian predictor ξ\xi is O(log⁡(1/wμ))O(\log(1/w_{\mu})), whereas that of ρ\rho is bounded by O(log⁡1/wμ+η/wμ)O(\log 1/w_{\mu} + \eta/w_{\mu}). We further show in Theorem 3 that the approximation-dependent term is tight. In particular, for a universal mixture, an error of order η2K(μ)\eta 2^{K(\mu)} is attained for infinitely many computable environments μ\mu. We also extend the analysis to two other fundamental measures of prediction error: cumulative KL divergence and cumulative squared Hellinger distance.

Typical Average-Case Robustness: In sharp contrast, we prove in Theorem 4 that, when performance is averaged over environments according to the prior w-the canonical average-case measure-the excess prediction error due to approximation is only O(η)O(\eta). We show that an analogous average-case bound holds for cumulative KL divergence but not for cumulative squared Hellinger distance.

Distribution-Shift Robustness: Furthermore, we establish a distribution-shift theorem (Theorem 5) for dominated shifts from a training prior w to a test prior w′w', where wv′≤Cwvw'_v \leq Cw_v for every environment vv and some C≥1C \geq 1. The resulting error bound is O(log⁡C+Cη)O(\log C + C\eta), thereby interpolating between our average-case and worst-case guarantees.

Finite-Data Robustness: Finally, in Section 5, we study predictors learned from finitely many training sequences. We show exponential upper-tail bounds for population KL error, yet its expectation can remain infinite when unseen events receive zero probability. Nevertheless, by using a weaker alternative measure of approximation, we extend our robustness analysis to this setting. In particular, we bound the expected average excess prediction error by the representation and optimization errors plus a finite-sample term that decays exponentially with the number of training sequences.

Taken together, these results provide a broad characterization of robustness to approximation in sequential prediction. They explain the sharp contrast between strong aggregate benchmark performance and poor worst-case performance on rare environments. This sharp distinction between worst-case and average-case behavior helps explain why approximation may have a much milder effect in practice. It may also shed light on the strong empirical performance of learned universal predictors [GGH +^{+}24, GGMW +^{+}26] and, more broadly, of LLMs across a wide range of tasks and benchmarks. Our distribution-shift theorem has several implications beyond basic transfer principle for sequential prediction. It provides a quantitative rationale for targeted sampling and synthetic data generation designed to protect important but underrepresented families of tasks. In particular, it provides a theoretical rationale for expecting that augmenting real-world datasets with Universal-Turing-Machine-generated (UTM-generated) data may improve prediction performance on practically important task families, as suggested by [GGH +^{+}24].