Building hierarchically nested structure by rapid neural sequences
2025-12-11
Hierarchically nested structures are fundamental to human cognition, enabling complex behaviors across domains including language, planning, and mathematics. However, the neural mechanisms that enable the flexible construction of these hierarchical structures are poorly understood. Here, we designed a task where participants mentally built sequences with nested, multidepth structures by recursively applying a fixed set of rules. Using magnetoencephalography, we find that the brain constructs nested hierarchies through rapid neural sequences that perform two recurring generative operations. The first operation identifies the hierarchy depth of a symbol and is associated with increased ripple-band power; while the second arranges the symbol into its correct order at that level, a process that scales with the number of depths, also positively correlated with planning time. These results reveal a fundamental neural computation for transforming sensory information into structured representations, which is essential for higher-order cognition.