Hierarchical vs. Flat Iteration in Shared-Weight Transformers

Sang-Il Han
4/15/2026
cs.CLcs.AI
transformer-attention

No confident code implementation found for this paper.

Abstract

We present an empirical study of whether hierarchically structured, shared-weight recurrence can match the representational quality of independent-layer stacking in a Transformer-based language model. HRM-LM replaces L independent Transformer layers with a two-speed recurrent pair: a Fast module operating at every step for local refinement, and a Slow module operating every T steps for global compression.

Show full abstract

This recurrent hierarchy is unrolled for M = N x T steps with shared parameters. The central and most robust finding, supported by a parameter-matched Universal Transformer ablation (UniTF, 1.2B) across five independent runs, is a sharp empirical gap between the two approaches.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{han2026hierarchical,
  title  = {Hierarchical vs. Flat Iteration in Shared-Weight Transformers},
  author = {Sang-Il Han},
  year   = {2026},
  eprint = {2604.14442},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.14442v1}
}

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/2604.14442.svg)](https://codeofpaper.com/paper/2604.14442)

Discussion