Reproduce “Transformer-Based Models Are Not Yet Perfect At Learning to Emulate Structural Recursion” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Dylan Zhang, Curt Tigges, Zory Zhang, Stella Biderman, Maxim Raginsky, Talia Ringer

Transformer-based models consistently learn non-recursive shortcuts for structural recursion tasks, failing to generalize robustly to increased depths or edge cases despite showing capacity for single-step reductions. This research reveals their reliance on statistical regularities over true compositional understanding of recursive semantics across various model scales and learning paradigms.

Key insights

  • Transformer models typically learn non-recursive, shortcut algorithms that are brittle to out-of-distribution inputs, rather than generalized structural recursion.
  • Performance on recursive tasks degrades significantly with increasing recursion depth or encountering specific edge cases not well-represented in training data, revealing a fixed-depth processing limitation.
  • Large language models struggle with in-context learning to summarize accurate recursive rules or execute step-wise recursive reductions correctly, often showing errors like non-termination or misinterpretation of rules.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.