Hierarchical Reasoning Model

Guan Wang, Jin Li, Yuhao Sun, Xing Chen, Changling Liu +4 more
6/26/2025
cs.AIcs.LG

No official code found. Best implementation: EduardTalianu/HRM_txt (10 stars, last commit 2025-08-22). 4 more below.

Abstract

Reasoning, the process of devising and executing complex goal-oriented action sequences, remains a critical challenge in AI. Current large language models (LLMs) primarily employ Chain-of-Thought (CoT) techniques, which suffer from brittle task decomposition, extensive data requirements, and high latency. Inspired by the hierarchical and multi-timescale processing in the human brain, we propose the Hierarchical Reasoning Model (HRM), a novel recurrent architecture that attains significant computational depth while maintaining both training stability and efficiency. HRM executes sequential reasoning tasks in a single forward pass without explicit supervision of the intermediate process, through two interdependent recurrent modules: a high-level module responsible for slow, abstract planning, and a low-level module handling rapid, detailed computations. With only 27 million parameters, HRM achieves exceptional performance on complex reasoning tasks using only 1000 training samples. The model operates without pre-training or CoT data, yet achieves nearly perfect performance on challenging tasks including complex Sudoku puzzles and optimal path finding in large mazes. Furthermore, HRM outperforms much larger models with significantly longer context windows on the Abstraction and Reasoning Corpus (ARC), a key benchmark for measuring artificial general intelligence capabilities. These results underscore HRM's potential as a transformative advancement toward universal computation and general-purpose reasoning systems.

View on arXivView PDF

Code Implementations(5)

marinabar/cadHRMCommunity70%
Apache-2.0

Transposing the HRM architecture (https://arxiv.org/pdf/2506.21734) to generated text tokens based on encoded point clouds.

00HTML, PythonNov 11, 202511 months agoApache-2.0
PyTorch

Implementation of the Hierarchical Reasoning Model (HRM), based on the research paper “Hierarchical Reasoning Model” (2025) by Guan Wang, Jin Li, Yuhao Sun, Xing Chen, Changling Liu, Yue Wu, Meng Lu, Sen Song, and Yasin Abbasi Yadkori (arXiv:2506.21734).

00PythonAug 17, 20251 years ago
hierarchical-reasoning-modelhrmpytorchsudokutorch

PyTorch implementation of Hierarchical Reasoning Model (HRM) from arXiv:2506.21734 - dual-module architecture for complex reasoning tasks

20PythonAug 3, 20251 years ago
Apache-2.0

An Experimental attempt to achieve a thinking small Encoder Model based on https://arxiv.org/pdf/2412.13663 (ModernBert) and https://arxiv.org/abs/2506.21734 (HierarchicalReasoningModel)

51PythonAug 2, 20251 years agoApache-2.0

a text implementation of the HRM (Hierarchical reasoning) model (https://arxiv.org/abs/2506.21734)

101PythonAug 22, 20251 years ago

Similar Papers

Cite this paper

@article{wang2025hierarchical,
  title  = {Hierarchical Reasoning Model},
  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},
  year   = {2025},
  eprint = {2506.21734},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.21734v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.21734.svg)](https://codeofpaper.com/paper/2506.21734)

Discussion