Chunking sequence information by mutually predicting recurrent neural networks

Toshitake Asabuki, Naoki Hiratani, Tomoki FukaibioRxiv 2017

Abstract

Interpretation and execution of complex sequences is crucial for various cognitive tasks such as language processing and motor control. The brain solves this problem arguably by dividing a sequence into discrete chunks of contiguous items. While chunking has been accounted for by predictive uncertainty, alternative mechanisms have also been suggested, and the mechanism underlying chunking is poorly understood. Here, we propose a class of unsupervised neural networks for learning and identifying repeated patterns in sequence input with various degrees of complexity. In this model, a pair of reservoir computing modules, each of which comprises a recurrent neural network and readout units, supervise each other to consistently predict others’ responses to frequently recurring segments. Interestingly, this system generates neural responses similar to those formed in the basal ganglia during habit formation. Our model extends reservoir computing to higher cognitive function and demonstrates its resemblance to sequence processing by cortico-basal ganglia loops.

Introduction

The human brain is a master of compression. When we process language or execute motor tasks, we do not treat every phoneme or muscle twitch as an isolated event. Instead, we group these elements into "chunks"—coherent units like words or motor programs. This process, known as chunking, is a cornerstone of cognitive efficiency and habit formation.

Traditional models of chunking often rely on "prediction errors," where the brain identifies boundaries when a sequence deviates from an expected pattern. However, this framework faces a "chicken-and-egg" dilemma: how can the brain detect a deviation from a pattern it hasn't yet learned? This research introduces a novel mechanism for unsupervised chunk learning that requires no external error signals or prior knowledge of sequence structure, relying instead on the mutual supervision of internal neural modules.

Methods: Dual Reservoir Computing

The proposed model utilizes Reservoir Computing (RC), a framework where a fixed, random recurrent neural network (the "reservoir") projects input into a high-dimensional space. In standard RC, only the output layer (the "readout") is trained to map this high-dimensional state to a target.

The innovation here lies in the Dual RC System. Rather than using an external teacher, the model employs two independent RC modules (R1 and R2) that receive identical input. The system operates through three core principles:

  1. Mutual Supervision: The output of R1 serves as the target for R2, and vice versa.
  2. Nonlinear Feedback: A rectified tanh function is applied to the teaching signals to ensure stability and maintain positive activity, preventing the networks from collapsing into trivial solutions.
  3. FORCE Learning: Readout weights are updated using the First-Order Reduced Connected Excitatory (FORCE) algorithm, allowing for rapid, online learning as the sequence unfolds.

By attempting to mimic each other's responses to recurring inputs, the two reservoirs eventually converge on the most statistically significant features of the sequence—effectively "discovering" the chunks without being told where they start or end.

Experimental Design and Datasets

To test the model, the researchers used synthetic datasets simulating sensory and motor sequences. These included:

  • Alphabet Sequences: Discrete items represented by 26 distinct "letters."
  • Embedded Chunks: Specific patterns (e.g., "a-b-c-d") placed within random noise letters.
  • Overlapping Chunks: Complex scenarios where different chunks shared common elements (e.g., "a-b-c" and "e-f-c"), requiring the model to disambiguate patterns based on context.
  • Variable Complexity: Testing the model's limits with different chunk lengths and occurrence frequencies.

Key Insights

The Role of Noise as a Catalyst

Counter-intuitively, the model requires a modest amount of external noise to function optimally. Noise acts as a regularizer, preventing the system from getting stuck in "local minima" (spurious or accidental patterns) and forcing it to focus on the most robust, recurring segments. Without this noise, the mutual supervision fails to distill the core patterns.

Low-Dimensional Dynamics

Principal Component Analysis (PCA) revealed that the reservoirs learn to represent chunks using their lowest-dimensional dynamical states. The high-dimensional "chaos" of the reservoir is distilled into a consistent, simple internal path whenever a learned chunk is processed, representing an "Aha!" moment for the system.

Biological Parallels: "Stop Cells"

A significant finding is the emergence of "ramping" activity in the readout units. These units peak at the end of a chunk, mirroring the behavior of "Stop cells" observed in the striatum of the basal ganglia during habit formation in rodents and primates. This suggests the model captures a fundamental aspect of how the brain signals the completion of a learned sequence.

The Necessity of Independence

The system's success depends on the reservoirs remaining structurally independent. If the reservoirs are allowed direct internal communication, the chunking mechanism fails. This suggests that the brain may implement such mutual supervision through spatially separated regions, such as the bilateral activation observed in the inferior frontal gyrus during language processing.

Results

The dual RC system demonstrated robust performance across several metrics:

  • Frequency Sensitivity: The model's ability to detect a chunk is directly proportional to the frequency of that chunk's appearance in the input stream.
  • Contextual Disambiguation: The model successfully segmented sequences even when chunks shared identical beginnings, middles, or endings.
  • Computational Efficiency: Learning was scale-invariant, performing effectively with reservoir sizes ranging from $N=30$ to $N=800$, indicating that the mechanism is computationally efficient and does not require massive neural overhead.

Discussion and Future Work

While the model successfully replicates "Stop cell" activity, it does not currently produce "Start cells" (neurons that fire at the beginning of a sequence). The authors note that since chunks were preceded by random noise in their setup, the beginning of a chunk is inherently unpredictable, explaining the absence of early-firing signals.

The model provides a compelling framework for understanding cortico-basal ganglia loops, though the specific biological "wiring" for mutual readout supervision remains an open question for experimentalists. Future research will explore whether this mutual-prediction framework can be extended to hierarchical chunking—learning to organize letters into words, and words into sentences—to more fully capture the complexity of human cognition.

Summary updated

BibTeX
@misc{asabuki2017chunking,
  author = {Toshitake Asabuki and Naoki Hiratani and Tomoki Fukai},
  title = {{Chunking sequence information by mutually predicting recurrent neural networks}},
  year = {2017},
  doi = {10.1101/215392},
  howpublished = {bioRxiv},
}
Figure