SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.15062 · 2026

Gated Recurrent Transformers: Expressive Depth through Recurrent Modulation

Mostafa Elhoushi, Amr Alanwar, Amr Hegazy

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (6 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2608.15062.json · badge: /api/ran/2608.15062.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Amr-Hegazy1/gated-recurrent-transformer community
Papers with Code archive
6 ran · 0 no recorded run
FunctionStatusWhere it lives
Block Ran
ran on a synthesized input · constructed an object; no result was computed
Amr-Hegazy1/gated-recurrent-transformer/model.py
pointer only (licence: NONE) · get_code("4bf62a544098285f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Amr-Hegazy1/gated-recurrent-transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

CausalSelfAttention Ran
ran on a synthesized input · constructed an object; no result was computed
Amr-Hegazy1/gated-recurrent-transformer/model.py
pointer only (licence: NONE) · get_code("cf67a1a0d7a92283")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Amr-Hegazy1/gated-recurrent-transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GPT Ran
ran on a synthesized input · constructed an object; no result was computed
Amr-Hegazy1/gated-recurrent-transformer/model.py
pointer only (licence: NONE) · get_code("4a36068299d8769d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Amr-Hegazy1/gated-recurrent-transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GPTConfig Ran
ran on a synthesized input · constructed an object; no result was computed
Amr-Hegazy1/gated-recurrent-transformer/model.py
pointer only (licence: NONE) · get_code("3ef385415ab3948d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Amr-Hegazy1/gated-recurrent-transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

LayerNorm Ran
ran on a synthesized input · constructed an object; no result was computed
Amr-Hegazy1/gated-recurrent-transformer/model.py
pointer only (licence: NONE) · get_code("dd90a9573c2ca61e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Amr-Hegazy1/gated-recurrent-transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MLP Ran
ran on a synthesized input · constructed an object; no result was computed
Amr-Hegazy1/gated-recurrent-transformer/model.py
pointer only (licence: NONE) · get_code("03786358454495bd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Amr-Hegazy1/gated-recurrent-transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Scaling transformer language models creates an inherent tension between expressivity and memory efficiency. While unique weights across layers preserve functional specialization-from input-grounding to abstract refinement-they incur a substantial memory footprint. Conversely, standard depth-sharing enforces uniform transformations that collapse representational diversity and degrade modeling quality. We introduce the GATED RECURRENT TRANSFORMER (GRT), a recurrent depth transformer where fixed-depth prelude and coda blocks bracket a single shared core iterated R times. Inspired by gated recurrent neural networks, we employ a lightweight projection and an elementwise update gate-conditioned on the hidden state, the fixed prelude output, and noise resampled at every stepto modulate the recurrent update. This allows the model to specialize the input to the same few layers across recurrences, rather than requiring many unique layers to achieve functional diversity. Under an isoFLOPS constraint, a 3-layer GATED RECURRENT TRANSFORMER matches the accuracy of a 12-layer GPT-2 Small baseline with similar training and inference FLOPs, and leads MoR and heavy-tail depth sampling in all nine scale-by-budget cells; at medium and large scale it approaches dense quality at the standard token budget and overtakes it at medium scale once that budget is doubled. Under an isoPARAMS constraint, deeper recurrence achieves a 2.76 validation loss versus 2.84 for a non-recurrent counterpart at matched parameter and data budget. Our results demonstrate that adaptive depth reuse is a principled strategy for trading parameters for quality: at large scale, 62% fewer parameters and 59% less peak decoding memory for a 10% increase in compiled generation latency. Code is available at https://github.com/Amr-Hegazy1/gated-recurrent-transformer.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.15062")
get_code_for_paper("2608.15062")
have("2608.15062")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2608.15062.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2608.15062.svg)](https://syntology.ai/paper/2608.15062)

Connect an agent — have() is free.