Hierarchical Reasoning Model

Guan Wang, Jin Li, Yuhao Sun, Xing Chen, Changling Liu, Yue Wu, Meng Lu, Sen Song, Yasin Abbasi-YadkoriarXiv 2025 · DOI

Abstract

Current Large Language Models (LLMs) struggle with complex reasoning tasks that require extensive search or backtracking due to their fixed-depth Transformer architectures. We introduce the Hierarchical Reasoning Model (HRM), a 27M-parameter recurrent architecture inspired by the multi-timescale processing of the human brain. By separating abstract planning from detailed execution in a latent space, HRM achieves state-of-the-art performance on reasoning benchmarks like ARC-AGI and Sudoku-Extreme using only 1,000 training examples. Our results demonstrate that deep logical reasoning can emerge from internal latent states without the need for externalized Chain-of-Thought tokens.

Introduction

Modern AI models face a fundamental limitation: their computational depth is tied to their physical depth. While Chain-of-Thought (CoT) prompting allows models to extend computation over time, it is often brittle, data-hungry, and computationally expensive. Standard Recurrent Neural Networks (RNNs) offer a potential solution but frequently suffer from "early convergence," where hidden states stabilize too quickly to solve complex problems.

The Hierarchical Reasoning Model (HRM) addresses these challenges by mimicking the hierarchical "Cross Frequency Coupling" observed in the brain, where high-level meta-representations (theta waves) modulate lower-level detailed representations (gamma waves).

Methods: The HRM Architecture

HRM utilizes a two-tier recurrent structure to decouple planning from execution.

The HRM architecture mimics biological cross-frequency coupling, separating high-level abstract planning from low-level detailed computation.

Two-Tier Recurrence and Hierarchical Convergence

The model consists of a High-level (H) module for abstract planning and a Low-level (L) module for detailed execution. For every update of the H-module, the L-module performs $T$ timesteps of computation. To prevent the stagnation typical of RNNs, HRM employs a "restart" strategy: once the L-module reaches a local equilibrium, the H-module updates the context, effectively re-initializing the L-module's search in a new direction. This allows for an effective depth of $N \times T$ steps.

Efficient Training and Adaptive Compute

To maintain efficiency, HRM uses a one-step gradient approximation based on the Implicit Function Theorem, achieving $O(1)$ memory usage compared to the $O(T)$ requirements of Backpropagation Through Time (BPTT). Furthermore, a Q-learning-based halting mechanism (Adaptive Computational Time) allows the model to dynamically allocate more "thinking time" to harder problems.

Experimental Results

We evaluated HRM on benchmarks requiring rigorous logical search, including ARC-AGI, Sudoku-Extreme, and Maze-Hard. Notably, the model was trained from scratch on only ~1,000 samples per task.

HRM outperforms much larger frontier models on ARC-AGI and solves complex Sudoku and Maze tasks where traditional models fail.

Benchmark Performance

On the ARC-AGI benchmark, the 27M-parameter HRM achieved an accuracy of 40.3%, significantly outperforming much larger models like o3-mini-high (34.5%) and Claude 3.7 (21.2%). In more extreme cases like Sudoku-Extreme and Maze-Hard—where standard CoT models often fail completely—HRM achieved near-perfect performance.

Latent Reasoning and Scaling

A key insight from HRM is that complex reasoning can occur entirely within internal hidden states rather than needing to be externalized into text tokens. The model exhibits strong inference-time scaling; by simply increasing the maximum allowed compute segments at test time, the model's accuracy on difficult tasks continues to improve without any additional training.

Discussion and Future Work

HRM demonstrates that a brain-inspired, hierarchical approach to recurrence can overcome the limitations of fixed-depth Transformers. The model naturally develops a dimensionality hierarchy similar to the mouse cortex, suggesting it captures fundamental principles of biological intelligence. Future research will explore more sophisticated gating mechanisms for state merging and the causal necessity of the observed dimensionality hierarchy.

Summary updated

BibTeX
@misc{wang2025hierarchical,
  author = {Guan Wang and Jin Li and Yuhao Sun and Xing Chen and Changling Liu and Yue Wu and Meng Lu and Sen Song and Yasin Abbasi-Yadkori},
  title = {{Hierarchical Reasoning Model}},
  year = {2025},
  eprint = {2506.21734},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.21734},
}
Figure