While modern AI models, particularly Large Language Models (LLMs), excel at predicting the next token in a sequence, they often struggle with a fundamental cognitive skill: abstraction. Abstraction is the human ability to filter out irrelevant details, recognize underlying structural patterns, and transfer these generalized concepts to entirely new scenarios. For example, once we understand the grammatical structure of a sentence, we can effortlessly swap nouns and verbs (variables) without losing the underlying logic.
Most sequence models are "concrete." They learn specific, rigid patterns but lack a mechanism to represent "slots" or variables. This leads to two major issues:
- Memory Inefficiency: Models must store every variation of a pattern separately.
- Poor Transfer: When faced with a new sequence that follows a known abstract rule but uses different "tokens," models often have to start learning from scratch.
To bridge this gap, researchers have introduced the Hierarchical Variable Learning Model (HVM), a cognitive model that mimics the human ability to learn abstract patterns from sequences. By combining "chunking" (grouping items) with "variable discovery" (grouping similar items by context), HVM achieves superior memory efficiency and accurately predicts how humans transfer abstract knowledge to new tasks.
The HVM Approach: Chunking and Variable Discovery
The Hierarchical Variable Learning Model operates through two primary mechanisms to build its understanding of sequences:
- Chunking: The model identifies stable, recurring sequences of units and concatenates them into a single "chunk." This builds upon previous Hierarchical Chunking Models (HCM), allowing the system to treat frequent multi-item sequences as single, manageable units.
- Variable Discovery: This is HVM's core innovation. The model looks for different chunks that appear in the exact same contexts—meaning they share the same preceding and succeeding chunks. It then groups these contextually interchangeable chunks into a Variable.
To keep retrieval efficient as the dictionary of chunks and variables grows, HVM organizes memory into a hierarchical "parsing graph" (a prefix Trie). This mimics the cue-based, content-addressable nature of human memory.
Unlike many deep learning models, HVM uses a non-parametric approach. It does not require a fixed architecture size; instead, it dynamically grows its dictionary and abstraction layers based on the data. The model iteratively parses a sequence, updates its statistics, proposes new chunks and variables, and then "cleans" its representation by deleting unused items before the next pass.
Experimental Validation
The researchers evaluated HVM across three distinct environments to test its efficiency and cognitive alignment:
- Synthetic Sequences: Custom probabilistic models with nested hierarchical structures tested HVM's ability to recover "ground truth" abstractions.
- Real-World Language (babyLM): The model processed snippets of 1,000 characters from four diverse domains: child-directed speech (CHILDES), the British National Corpus (BNC), literature (Gutenberg), and Open Subtitles.
- Human Behavioral Data: A memory recall experiment involving 112 participants who memorized sequences of colors. Some sequences shared abstract variables, while a control group's sequences did not.
Key Insights and Results
Abstraction as Compression
The paper demonstrates that abstraction is not just a "higher-level" cognitive function; it is a mathematically efficient way to compress data. By utilizing variables, HVM creates a significantly more compact dictionary than standard algorithms. On the babyLM dataset, HVM consistently produced more efficient coding (a lower dictionary size relative to sequence length) and lower Negative Log-Likelihood (NLL) than both Lempel-Ziv (LZ78) and chunk-only models.
The LLM Transfer Gap
One of the most striking findings highlights a critical limitation in current AI. While LLMs (like GPT-2 and Llama 3) are excellent at memorizing training data, they fail to exhibit the "transfer benefit" seen in humans. When a human learns an abstract rule, they memorize new sequences following that rule much faster. LLMs, however, treat transfer sequences as almost entirely new data. In the transfer task, both HVM and humans showed significantly improved performance when variables were reused, whereas all tested LLM variants failed to differentiate between training sequences that shared variables and those that didn't.
Human Alignment and the Rate-Distortion Trade-off
HVM’s sequence likelihood—a measure of how "surprising" it finds a sequence—strongly correlated with human recall times ($R = 0.86$ in training, $R = 0.70$ in transfer). Furthermore, the authors show a precise relationship between abstraction and "distortion." Higher levels of abstraction introduce more uncertainty (because a variable could represent many specific chunks), but this "distortion" is exactly what allows the model to generalize to novel sequences.
Limitations and Future Directions
While HVM presents a significant step forward in cognitive modeling, it has current limitations. Positional constraints mean HVM currently only proposes variables between chunks, struggling to discover variables at the very beginning or end of a sequence. It also faces challenges with "distanced" dependencies, where two chunks are separated by a variable number of other items. Finally, the iterative proposal and cleaning process requires further optimization for massive-scale computing.
Looking ahead, the authors suggest that HVM's mechanisms could eventually serve as a "smarter tokenizer" for Transformers or State Space Models (SSMs). By providing these architectures with the interpretable, abstract "blocks" they currently lack, HVM could help bridge the gap between human-like generalization and deep learning scale.
Summary updated