Abstract
Large Language Models (LLMs) have demonstrated remarkable emergent capabilities, yet a unified theoretical framework explaining their success remains elusive. This paper establishes a formal mathematical bridge between LLMs and Solomonoff Induction, the theoretical gold standard for universal prediction. By framing LLM training as a search for algorithmic simplicity and inference as a computable approximation of the Solomonoff prior, we provide a rigorous explanation for phenomena such as in-context learning and scaling laws. Furthermore, we introduce a novel confidence-based sample selection method that leverages these theoretical insights to significantly improve few-shot performance.
Introduction
The rapid advancement of Large Language Models (LLMs) has outpaced our theoretical understanding. While empirical observations like scaling laws and emergent in-context learning are well-documented, they often lack a cohesive mathematical foundation. This research addresses this gap by situating LLMs within the framework of Algorithmic Information Theory (AIT), specifically Solomonoff Induction. The paper argues that LLMs are not merely "stochastic parrots" but are practical, computable instantiations of an idealized universal induction engine.
Theoretical Framework: Bridging LLMs and AIT
Solomonoff Induction, proposed in the 1960s, offers an optimal method for predicting the next symbol in any sequence by considering all possible programs that could have generated the observed data. However, it is fundamentally uncomputable, requiring infinite resources. This paper establishes that LLMs serve as a bridge between this perfect-but-impossible theory and practical machine learning.
As illustrated in Figure 1, the LLM process maps directly onto AIT concepts. LLM training, which minimizes prediction loss, corresponds to the search for minimal description length (Kolmogorov Complexity). LLM inference, the generation of the next token, approximates the Solomonoff universal predictive distribution. Under this framework, Scaling Laws are interpreted as making the model a more precise approximation of the Solomonoff prior as parameters and data increase.
Methods
The researchers establish two fundamental theoretical results:
- Training as Program Search: They prove that the standard LLM training process (minimizing prediction loss) is mathematically equivalent to searching for the shortest "program" (parameter set $\theta$) capable of generating the training data $\mathcal{D}$. This links learning efficiency directly to algorithmic compressibility and Occam’s Razor.
- Inference as Induction: They demonstrate that the next-token prediction mechanism in LLMs serves as a computable approximation of Solomonoff’s universal predictive distribution $M(x_{t+1} | x_{1:t})$.
Beyond the theoretical proof, the authors propose a practical application: Confidence-Based Sample Selection. If an LLM is an approximation of a universal learner, it should learn fastest when exposed to data it finds "surprising." They developed an algorithm that selects few-shot examples where the model currently has low confidence in the correct answer, rather than the standard approach of picking examples it already understands well.
Experimental Results
The authors validated their theoretical insights using three diverse text classification benchmarks: SMS Spam Collection, Emotion Recognition, and AG News. They tested these across several model families, including Qwen 2.5 (3B and 7B) and Llama 3.1/3.2 (3B and 8B).
The experimental results strongly support the "low-confidence" selection strategy:
- Significant Accuracy Gains: On the SMS dataset, Qwen 2.5 (3B) improved from 76.62% accuracy (using high-confidence examples) to 90.07% (using low-confidence examples).
- Smaller Models Benefit Most: The performance jump was particularly pronounced in smaller architectures. For instance, Llama 3.2 (3B) saw an accuracy leap from 64.94% to 73.22% on the SMS dataset.
- Consistency: Across almost every model and dataset, prioritizing "hard" examples that expose the model's predictive weaknesses led to better few-shot performance than selecting "easy" (high-confidence) ones.
Discussion and Limitations
While the link between LLMs and Solomonoff Induction is formal, it remains an approximation. Real-world constraints like finite model capacity and optimization heuristics (like SGD) mean LLMs will always diverge from the theoretical ideal. Furthermore, the experimental validation was limited to text classification; whether these insights hold for more complex generative tasks like coding remains a subject for future work.
Conclusion
By bridging the gap between the uncomputable ideal of Solomonoff Induction and the practical reality of LLMs, this work provides a robust theoretical lens for understanding AI behavior and a practical tool for optimizing few-shot learning through targeted data selection.
Summary updated