Learning to Generalize Recursively: Structural Insights from the Tower of Hanoi
Add the PDF
@openreview[bot] · 2026-11-22 21:22 UTC · b82f04adde1e ·
versions/v_4ig5i4tm.json modified
+++ b/versions/v_4ig5i4tm.json@@ -15,8 +15,12 @@}],"title": "Learning to Generalize Recursively: Structural Insights from the Tower of Hanoi","url": "https://openreview.net/forum?id=GbpGDAjM2v",+ "pdf": {+ "source": "https://openreview.net/forum?id=GbpGDAjM2v",+ "license": "CC-BY-4.0"+ },"evidence": ["https://openreview.net/forum?id=GbpGDAjM2v"],"abstract": "Transformer-based reasoning models achieve strong performance on multi-step reasoning benchmarks, yet their ability to generalize out-of-distribution (OOD) on structured reasoning and planning tasks, especially those involving recursive strategies, remains brittle. We study this limitation through the 3-peg Tower of Hanoi, a canonical recursive planning problem that requires preserving structural invariants over exponentially long execution horizons. We formulate the task as deterministic policy learning with a minimal state-based decoding rule, which separates one-step policy prediction from long-horizon deployment. We then analyze the structure of the optimal Hanoi trajectory and show that it has a parity-controlled cyclic pattern, which reveals two inductive biases important for recursive generalization: relative, shift-invariant interactions across disks and hierarchical computation aligned with recursive structure. Guided by these insights, we propose a hierarchy-aware Transformer-LSTM hybrid architecture that combines recurrence over disk order with rotary positional encoding (RoPE). Through systematic length-extrapolation experiments, we show that hierarchical recurrence substantially improves stability, and that combining it with RoPE enables near-perfect generalization far beyond the training regime. These results identify architectural inductive biases required to preserve structural consistency under deep recursive composition."
versions/v_4ig5i4tm.pdf added
+++ b/versions/v_4ig5i4tm.pdf@@ -0,0 +1,3 @@+version https://git-lfs.github.com/spec/v1+oid sha256:bea44d21ac6300c07f5cae9814d1aadda925eca2168b3fde8e86126e00bb2907+size 2815059