paper-with-me

Papers

In-context learning and Occam's razor

2024-10-17 · Eric Elmoznino, Tom Marty, Tejas Kasetty, Leo Gagnon, Sarthak Mittal, Mahan Fathi, Dhanya Sridhar, Guillaume Lajoie

A central goal of machine learning is generalization. While the No Free Lunch Theorem states that we cannot obtain theoretical guarantees for generalization without further assumptions, in practice we observe that simple models which explain the training data generalize best: a principle called Occam's razor. Despite the need for simple models, most current approaches in machine learning only minimize the training error, and at best indirectly promote simplicity through regularization or architecture design. Here, we draw a connection between Occam's razor and in-context learning: an emergent ability of certain sequence models like Transformers to learn at inference time from past observations in a sequence. In particular, we show that the next-token prediction loss used to train in-context learners is directly equivalent to a data compression technique called prequential coding, and that minimizing this loss amounts to jointly minimizing both the training error and the complexity of the model that was implicitly learned from context. Our theory and the empirical experiments we use to support it not only provide a normative account of in-context learning, but also elucidate the shortcomings of current in-context learning methods, suggesting ways in which they can be improved. We make our code available at https://github.com/3rdCore/PrequentialCode.

📄 PDF Abstract BibTeX arXiv:2410.14086

Code (1)

3rdcore/prequentialcode 공식 구현 pytorch

Tasks

Data CompressionIn-Context Learning

Similar Papers 제목 키워드 기반

The Geometric Occam's Razor Implicit in Deep Learning

2021-11-30 · Benoit Dherin, Michael Munn, David G. T. Barrett

In over-parameterized deep neural networks there can be many possible parameter configurations that fit the training data exactly. However, the properties of these interpolating solutions are poorly understood. We argue …

ARCDeep Learning

Do Language Models Follow Occam's Razor? An Evaluation of Parsimony in Inductive and Abductive Reasoning

2025-09-03 · Yunxin Sun, Abulhair Saparov arxiv

Non-deductive reasoning, encompassing inductive and abductive reasoning, is essential in addressing complex real-world questions. One key feature of inductive and abductive reasoning is that there are many valid hypothes…

Statistical learning theory and Occam's razor: The core argument

2023-12-21 · Tom F. Sterkenburg

Statistical learning theory is often associated with the principle of Occam's razor, which recommends a simplicity preference in inductive inference. This paper distills the core argument for simplicity obtainable from s…

Learning Theory

Achieving Occam's Razor: Deep Learning for Optimal Model Reduction

2023-03-24 · Botond B Antal, Anthony G Chesebro, Helmut H Strey, Lilianne R Mujica-Parodi 외

All fields of science depend on mathematical models. Occam's razor refers to the principle that good models should exclude parameters beyond those minimally required to describe the systems they represent. This is becaus…

Deep Learning

Colab NAS: Obtaining lightweight task-specific convolutional neural networks following Occam's razor

2022-12-15 · Andrea Mattia Garavagno, Daniele Leonardis, Antonio Frisoli

The current trend of applying transfer learning from convolutional neural networks (CNNs) trained on large datasets can be an overkill when the target application is a custom and delimited problem, with enough data to tr…

GPUHardware Aware Neural Architecture SearchNeural Architecture SearchTransfer Learning