Parsimony as a Regularizer for Program Synthesis

You are reading version 1 of this direction, frozen 2026-10-04. The latest version is version 2.

Version 1 of 226 papers41 conceptsfrozen 2026-10-04

When an AI is asked to find a rule that explains a few examples—such as predicting the next number in the sequence 2, 4, 6—it faces a problem of infinite possibilities. It could be the simple rule x + 2, or it could be a complex polynomial that just happens to hit those three numbers before veering off into millions. In the field of program synthesis, this is known as the "overfitting" problem: as the language used to write programs becomes more expressive, the system is more likely to find "spurious" solutions that fit the training data perfectly but fail to generalize to anything else.

To solve this, researchers have converged on a shared principle: Parsimony. By forcing the AI to prefer the shortest, simplest program possible, we can steer it away from memorization and toward the discovery of fundamental laws.

The Simplicity Bias

The core intuition behind this research is that in a symbolic search space, program length is a reliable proxy for generalization. A long program has the "capacity" to memorize specific data points, much like a high-degree polynomial can wiggle through every point on a graph. A short program, however, lacks the room for such complexity; if it fits the data, it likely does so because it has captured the underlying generative logic.

In Synthesizing theories of human language with Bayesian program induction, Kevin Ellis and Timothy J. O’Donnell demonstrate this by building a "computational linguist." When given a few words from a new language, the system searches for the shortest symbolic code that can generate those words. This parsimony-driven optimization prevents the model from simply listing the words it saw, forcing it instead to "discover" the grammar rules—like vowel harmony or suffix patterns—that define the language.

This same "simplicity bias" is what allows systems to learn from incredibly small amounts of data. Soham Dan and colleagues showed in Few-Shot Novel Concept Learning for Semantic Parsing that by enforcing a preference for the shortest logical program, a parser can learn a new word from just a single example. The brevity of the program acts as a filter, discarding complex, coincidental interpretations in favor of the most direct one.

Syntactic Regularization

If simplicity is the goal, how do we enforce it? One method is Syntactic Regularization. Instead of letting the synthesizer use every possible programming command, researchers restrict the "grammar" or the available functions.

Saswat Padhi and his team explored this in Overfitting in Synthesis: Theory and Practice, noting a counterintuitive trend: giving a synthesizer more tools often makes it perform worse. By interleaving multiple restricted grammars, they steer the search toward simpler components first. This prevents the system from picking a "powerful" but irrelevant operation that happens to satisfy a counterexample but breaks the overall logic.

Another approach is the Minimum Description Length (MDL) principle. In the CLX system for data transformation, Mike Cafarella and his co-authors use MDL to choose between different ways to clean a dataset. If one script is 50 characters long and another is 500, the system assumes the 50-character script is the "true" transformation. This mathematical heuristic balances accuracy with simplicity, ensuring the resulting code is both robust and human-readable.

Generalizing Across Domains

The power of parsimony is its universality. It works whether the "program" is a mathematical formula, a robot's script, or even a model of a human mind.

  • Mathematics: In Learning Program Synthesis for Integer Sequences from Scratch, Thibault Gauthier used parsimony to rediscover complex formulas for prime numbers. When multiple programs fit a sequence, the system always picks the shortest one, which almost always turns out to be the mathematically "correct" general formula.
  • Automation: Margarida Ferreira developed SYREN, described in Program Synthesis from Partial Traces, which turns messy execution logs into clean automation scripts. By optimizing for minimal syntactic complexity, the system moves from simply "replaying" a trace to "understanding" the loop structure behind it.
  • Social Intuition: Perhaps most ambitiously, Kunal Jha and researchers in Modeling Others' Minds as Code treat "Theory of Mind" as a synthesis problem. To predict what a person will do, the AI synthesizes a short program representing that person's goals. Because the program is concise, it captures the person's fundamental intent rather than getting distracted by the "noise" of their specific movements.

Why It Works

Parsimony works because it aligns the search process with the structure of the world. Most natural processes—whether they are the rules of a language or the steps of a sorting algorithm—can be described by relatively compact logic. As Christopher D. Rosin observed in his work on low-level looping programs, there is a profound correlation between minimality and truth. When a search process finds the smallest possible program that satisfies the constraints, it has almost certainly found the general algorithm, not just a lucky guess.

Papers in this version

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 12 papers
  2. Version 1 · 2026-10-04 · 26 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_minimum_description_length_principle_min_65b667e8,
  title = {minimum description length principle (minimal program synthesis)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/minimum-description-length-principle-minimal-program-synthesis/rdr_65b667e841be4c8d88d6eb8fe874991f},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-03},
}

This exact version (version 1, frozen text):

@misc{lacuna_parsimony_as_a_regularizer_for_program_s_65b667e8_v1,
  title = {Parsimony as a Regularizer for Program Synthesis},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/parsimony-as-a-regularizer-for-program-synthesis/rdr_65b667e841be4c8d88d6eb8fe874991f/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-03},
}