HRM-Agent: Training a recurrent reasoning model in dynamic environments using reinforcement learning
Long H Dang, David Rawlinson
TL;DR
Problem: adapt a compact hierarchical reasoning model to dynamic, uncertain, and partially observable environments using reinforcement learning. Approach: train HRM-Agent by replacing the output head with a DQN and decoupling environment time from recurrent time to support iterative planning and reuse of prior computation. Findings: the agent reaches the goal in ≈99% of episodes and achieves mean path lengths near the optimal ~10 steps; Carry Z generally yields faster convergence and clearer reuse of earlier computation. Significance: this work shows recurrent inference can support dynamic planning under changing conditions, motivating future work toward on-policy training, re-enabling ACT, and scaling to more complex, partially observable domains.
Abstract
The Hierarchical Reasoning Model (HRM) has impressive reasoning abilities given its small size, but has only been applied to supervised, static, fully-observable problems. One of HRM's strengths is its ability to adapt its computational effort to the difficulty of the problem. However, in its current form it cannot integrate and reuse computation from previous time-steps if the problem is dynamic, uncertain or partially observable, or be applied where the correct action is undefined, characteristics of many real-world problems. This paper presents HRM-Agent, a variant of HRM trained using only reinforcement learning. We show that HRM can learn to navigate to goals in dynamic and uncertain maze environments. Recent work suggests that HRM's reasoning abilities stem from its recurrent inference process. We explore the dynamics of the recurrent inference process and find evidence that it is successfully reusing computation from earlier environment time-steps.
