Introduction
This paper introduces a novel unsupervised learning framework that discovers the underlying "rules" of a dataset by synthesizing programs capable of generating the observed data. By combining Bayesian inference with symbolic Satisfiability Modulo Theories (SMT) solvers, the system can learn complex, human-readable concepts—such as visual spatial relationships and linguistic morphology—from just a handful of noisy examples.
The Challenge: Data Efficiency and Abstraction
Traditional unsupervised learning methods, like deep autoencoders or manifold learning, excel at finding statistical patterns in high-dimensional perceptual data (e.g., pixels or audio). However, these methods often struggle to represent abstract, symbolic, or compositional structures. Concepts like "one shape inside another" or the systematic rules for conjugating English verbs are difficult to extract purely through statistical correlation.
Furthermore, deep learning typically requires massive amounts of data. Humans, by contrast, can learn a new visual concept or a grammatical rule from just a few examples. The authors aim to bridge this gap by treating unsupervised learning as a program synthesis problem: if a system can find a small, concise program that generates the data, it has effectively "learned" the underlying concept in an interpretable and highly data-efficient way.
Methodology: Learning as Compression
The authors formalize learning as Bayesian inference over a space of programs, grounded in the principle of Minimum Description Length (MDL). Under MDL, the best explanation for a dataset is the one that compresses it the most.
- The Generative Model: The system assumes data is produced by an unknown program $f$ applied to unknown inputs $I$. The objective is to minimize a cost function that balances three factors: the length of the program, the length of the inputs, and the "reconstruction error" (how well the program's output matches the noisy observed data).
- Sketching (PCFG): To make the vast search space of possible programs tractable, the system is provided with a "sketch"—a Probabilistic Context-Free Grammar (PCFG). This grammar defines the basic building blocks of the domain, such as "draw a shape," "rotate," or "add a suffix."
- Symbolic Search (SMT): The technical core of the paper involves translating the grammar and the MDL objective into a Satisfiability Modulo Theories (SMT) problem. A general-purpose symbolic solver (like Z3) is then used to jointly search for both the program and the latent inputs that best explain the observations.
- Handling Noise: Unlike standard program synthesis, which usually requires perfect input/output pairs, this method incorporates a noise model directly into the SMT constraints. This allows the solver to function robustly even when the real-world data is messy or imperfect.
Applications and Key Results
The researchers evaluated their domain-agnostic engine in two vastly different areas: visual reasoning and linguistics.
Visual Reasoning (SVRT)
The model was tested on the Synthetic Visual Reasoning Test (SVRT), a benchmark consisting of 23 visual classification problems (e.g., "are these two shapes the same?", "is one shape inside another?").
On these tasks, the program synthesis approach significantly outperformed convolutional neural networks (like LeNet5) and other baselines. While CNNs required thousands of examples to train, the synthesis model achieved higher accuracy using only 6 examples. It solved many tasks with >90% accuracy, closely mimicking the data efficiency of human learning patterns.
Linguistic Morphology (CELEX)
The model was also tasked with learning the rules of English inflectional morphology using the top 5000 lexemes from the CELEX Lexical Inventory. It successfully recovered the regular rules for verb conjugation—for instance, learning that the past tense usually adds a suffix, but that the specific phonetic realization of that suffix (/Id/, /d/, or /t/) depends conditionally on the final sound of the verb stem.
In a comparative "sanity check," the model achieved a 3.16% error rate in segmenting verbs into stems and suffixes, drastically outperforming the 16.43% error rate of Morfessor, a popular unsupervised morphology tool.
Key Insights
- Compression is Learning: Finding a compact, symbolic representation is a powerful mechanism for generalizing from very small datasets.
- Joint Inference: The SMT solver doesn't just find the overarching program; it simultaneously discovers the "latent inputs" (e.g., the stems of words or the specific coordinates of shapes) for every single data point.
- Interpretable AI: Unlike "black box" neural networks, the output of this system is a human-readable program, making the learned concepts entirely transparent.
Limitations and Future Work
The primary limitation of this approach is scalability. SMT solvers are computationally expensive and do not degrade gracefully as dataset sizes increase. While the authors used RANSAC to subsample data, the current iteration cannot handle the massive datasets typical of modern deep learning.
Future work may involve learning the grammar itself to reduce reliance on human-provided sketches, or developing hybrid systems that combine the massive scaling power of neural networks with the precise, symbolic reasoning of SMT solvers.
Summary updated