A Computational Cognitive Model for Processing Repetitions of Hierarchical Relations
Zeng Ren, Xinyi Guan, Martin Rohrmeier
TL;DR
The paper addresses how humans detect abstract repeats arising from hierarchical relations in sequences by introducing a Template programming language that foregrounds repetition combinators. It couples this language with a weighted deduction algorithm guided by Minimum Description Length to infer the smallest, most compressor-friendly template that explains observed sequences. Demonstrations in action planning and music show that minimal templates reveal meaningful relational repeats, including recursive and duplicated computations, suggesting a cognitively plausible mechanism for pattern recognition. The framework provides a versatile tool for exploring cognitive representations of structure and offers avenues for neuroscientific and psychological investigations into how people infer underlying generative patterns.
Abstract
Patterns are fundamental to human cognition, enabling the recognition of structure and regularity across diverse domains. In this work, we focus on structural repeats, patterns that arise from the repetition of hierarchical relations within sequential data, and develop a candidate computational model of how humans detect and understand such structural repeats. Based on a weighted deduction system, our model infers the minimal generative process of a given sequence in the form of a Template program, a formalism that enriches the context-free grammar with repetition combinators. Such representation efficiently encodes the repetition of sub-computations in a recursive manner. As a proof of concept, we demonstrate the expressiveness of our model on short sequences from music and action planning. The proposed model offers broader insights into the mental representations and cognitive mechanisms underlying human pattern recognition.
