Introduction
How do humans learn so much from so little? In machine learning, the bias-variance tradeoff suggests that a model must either have strong prior assumptions (high bias) to learn from small datasets, or be highly flexible (low variance) but require massive amounts of data. Humans seem to defy this tradeoff: we are incredibly flexible learners who can also master a new pattern after seeing only two or three data points.
This research investigates this conundrum in the context of 2D spatiotemporal patterns—such as a dot moving in a spiral or a zig-zag. While standard time-series models (like Gaussian Processes) or deep learning models (like LSTMs) can fit data, they often lack the specific "inductive biases" that characterize human thought, such as internal preferences for symmetry, repetition, and geometry. The authors propose that human pattern learning is best understood as probabilistic program synthesis, where the brain induces symbolic, algorithmic programs to represent and extrapolate structured data.
Methods and Models
To test this hypothesis, the researchers combined experimental psychology with probabilistic programming, comparing human performance against four classes of models:
- Bayesian Ridge Regression: A linear model assuming a fixed, simple structure.
- Non-compositional Gaussian Process (GP-NC): A standard statistical model that looks for smooth or periodic trends but cannot combine them.
- Compositional Gaussian Process (GP-SL): A more flexible "structure-learning" model that can combine different kernels (e.g., a periodic trend on top of a linear one).
- Language of Thought (LoT) Model: A program synthesis model utilizing a grammar of symbolic primitives like
Repeat,Move,Turn, andScale. It essentially tries to "write a program" that generates the observed dots.
To find the best "program" or "kernel" for a given set of dots, the models used Sequential Monte Carlo (SMC) with Markov Chain Monte Carlo (MCMC) rejuvenation. This allowed the models to maintain a distribution of multiple hypotheses simultaneously, mimicking how a human might be uncertain between two different potential rules.
The Stimuli and Human Task
The researchers developed a custom benchmark of 50 unique 2D sequences featuring algorithmically interesting structures: spirals, polygons, grids, staircases, and nested combinations of these motifs.
Fifty adult participants performed a prediction task. For each sequence, dots were revealed one by one, and participants had to click where they thought the next dot would appear based on its previous trajectory.
Key Insights
- Learning as Programming: Human pattern learning isn't just about statistical smoothing; it's about program induction. We look at a sequence and subconsciously ask, "What is the simplest rule or loop that could generate this?"
- Simplicity Bias: Humans have a strong preference for "simple" geometric primitives (like 90-degree turns or perfect repetitions). The LoT model naturally encodes this by assigning higher prior probability to shorter, simpler programs.
- Multimodal Uncertainty: When humans are unsure, their guesses aren't just uniformly noisy; they cluster around distinct structural possibilities. For example, if a dot moves in a right angle, a human might guess it will continue straight or turn again. The LoT model captures this multimodal uncertainty much better than standard statistical models.
Results
The LoT model significantly outperformed all other models in predicting human behavior. Using the Akaike Information Criterion (AIC), the LoT model's fit was better than the next best model (GP-SL) by a staggering margin of over 13,000 points.
Both humans and the LoT model showed a similar rate of learning, becoming significantly more accurate as more points were revealed. In contrast, simpler models (Ridge and GP-NC) plateaued early. Furthermore, the LoT model successfully reproduced specific human biases, such as the tendency to assume a pattern will repeat its previous change in angle or speed.
Limitations and Future Work
While the LoT grammar is highly expressive, it remains finite. It cannot currently represent extremely abstract patterns, such as dots that move to "spell out words" or follow complex social rules. Additionally, program synthesis is computationally expensive. While the authors used SMC/MCMC, the human brain likely uses even more efficient heuristic ways to navigate the massive space of possible programs. Future work could explore how humans learn new primitives over time, perhaps learning the concept of a "spiral" and then using that as a single building block in a more complex program.
Summary updated