TL;DR
This paper introduces a resource-rational framework for human sequence learning, modeling it as program induction under strict memory and computational constraints. By implementing a Hierarchical Adaptor Grammar (HAG) that curates local and global libraries of reusable code, the authors demonstrate how the order of past experiences dynamically shapes future learning, outperforming traditional chunking and fixed-grammar models in explaining human melodic recall and prediction.
What Problem Does This Paper Address?
How do humans extract abstract, reusable rules from sequential data—like music, language, or daily routines—given our limited cognitive resources?
The "Language of Thought" (LoT) hypothesis suggests that we represent knowledge as compact, mental programs. However, finding the right program within a massive space of algorithmic combinations is a notoriously difficult computational challenge. Traditional frameworks like Rate-Distortion Theory (RDT) explain how we balance accuracy against memory compression, but they suffer from two major flaws: they assume our mental encoding scheme is static, and they ignore the actual computational effort required to discover these programs in the first place.
This paper bridges these gaps by introducing a resource-rational model of program induction that accounts for both memory limits and search costs, showing how our internal toolkit of abstractions evolves over time based on the specific path of our experiences.
Methods
The authors develop the Hierarchical Adaptor Grammar (HAG) framework to model sequence learning as a resource-bounded optimization problem.
Key components include:
- Program Representation: Sequences are represented using Combinatory Logic (CL), a variable-free mathematical formalism that expresses structural regularities (e.g., transposing or repeating notes) as hierarchical binary trees.
- Dual Resource Constraints: HAG extends classical RDT by penalizing both representation length (memory budget, $\beta$) and the cognitive effort spent searching for solutions. Search is bounded by a stochastic sampler governed by a search budget ($\lambda_s$) and a backtracking budget ($\lambda_b$) for revising earlier structural commitments.
- Hierarchical Libraries: To mitigate resource constraints, HAG maintains two distinct caches of subprograms via a Hierarchical Pitman-Yor Process (HPYP): a local library ($L_{loc}$) for context-specific regularities within a single task, and a global library ($L_{glob}$) for abstract rules that generalize across tasks. Storing these subprograms reduces memory load (via compact pointers) and speeds up computation by providing high-quality starting proposals for future searches.
Datasets
- Melodic Sequence Dataset: The authors adapted a real-world MIDI dataset of melodies. The sequences were filtered for primary melodic instruments (piano, brass, reed, synth lead), pitch-normalized to a single octave, and constrained to exactly six unique pitch classes to make human execution feasible.
- The final dataset contained 298 sequences for training/simulations and 96 sequences for testing human participants in an online experiment on Prolific ($n=96$).
Key Insights and Ideas
- Path-Dependency is Fundamental: Learning is inherently historical. What we choose to abstract depends entirely on the order in which we encounter information. Early experiences seed the global library, making structurally similar sequences encountered later significantly cheaper to encode and easier to discover.
- Errors are Rational Simplifications: Human memory errors are rarely completely random. Instead, they represent systematic regularities where participants substitute complex sequences with simpler, more compressible subprograms (regularization), trading off perfect accuracy for reduced memory load.
- Reaction Times Map to Code Joints: Human reaction times spike at the exact boundaries where the HAG model predicts a transition between two distinct subprograms. This provides process-level evidence that the brain physically pauses to initiate a new mental "subroutine."
Key Results
- Favorable Rate-Distortion Trade-offs: In simulations, HAG achieved superior compression and stronger one-shot generalization to held-out sequences compared to non-adaptive fixed grammars (PCFGs) or shallow chunking methods.
- Superior Fit to Human Behavior: Trial-by-trial fits demonstrated that HAG was the best descriptive model for human behavior, capturing individual differences in both Phase 2 recall and Phase 3 out-of-sample free-continuation choices better than all alternative baselines (winning for 53 out of 96 participants based on BIC).
- Resource Allocation Trade-offs: The fitted parameters revealed a clear, quantifiable trade-off across participants between memory capacity ($\beta^{-1}$) and computational budget ($\lambda_s + \lambda_b$). Furthermore, participants' reliance on global vs. local libraries dynamically tracked the actual structural statistics of the sequences they experienced.
Limitations and Future Work
- Domain Generality: To keep the framework broadly applicable to any symbolic sequence, the authors omitted domain-specific musical features like meter, rhythm, or complex Western harmonic hierarchies. Integrating these would be necessary for a fully descriptive model of music cognition.
- Library Curation Costs: While the model accounts for search and backtracking costs, it treats the maintenance, updating, and refactoring of the libraries themselves as computationally free.
- Future Directions: The authors propose using targeted curriculum learning manipulations (e.g., altering sequence order) or introducing explicit cognitive stressors (like strict time pressure or dual-task paradigms) to further stress-test the path-dependent and resource-bounded predictions of the model.
Summary updated