Authors: Shuzhen Li, Yifan Zhang, Jiacheng Guo, Quanquan Gu, Mengdi Wang
DeepLoop is a residual-scaling rule for weight-tied looped Transformers.
Looped models increase effective depth by revisiting the same physical blocks,
and the DeepNorm exponent that stabilizes untied depth (
where
model/ model definitions (GPT-MHA-RoPE, looped variants, LoopDeepNorm scaling)
config/ training configurations (FineWeb-Edu LM and ARC-AGI)
utils/ tokenizers, optimizer, checkpoint, distributed, reproducibility utilities
scripts/ training / evaluation launchers
lib/runtime.sh shared venv/env setup
eval/ lm-evaluation-harness and ARC-AGI eval runners
integrations/
hrm/ DeepLoop applied to the Hierarchical Reasoning Model (ARC-AGI)
vanilla_hrm/ reproducible vanilla-HRM baseline package (build + eval)
train_adam_finewebedu.py FineWeb-Edu language-modeling entry point
train_adam_arc_agi.py ARC-AGI entry point
dataloader.py, arc_agi_dataloader.py token-stream / ARC data loaders
python -m venv .venv &&source .venv/bin/activate
pip install -r requirements.txt
# or: pip install -e .Multi-GPU training via torchrun; each experiment is a config file:
torchrun --standalone --nproc_per_node=4 \
train_adam_finewebedu.py config/train_gpt_mha_rope_small_loop3_adam_50BT_ctx1024_80g4.pyThe base baseline keeps
integrations/hrm/ provides the DeepLoop residual-scaling drop-in for the
Hierarchical Reasoning Model
(hrm_act_v1_dl.py + hrm_v1_dl*.yaml) and the p-sweep launchers.
integrations/vanilla_hrm/ provides a hash-verified vanilla-HRM baseline
package (dataset rebuild + evaluation). See the README in each directory for
step-by-step instructions.
@article{deeploop2026,
title = {DeepLoop: Depth Scaling for Looped Transformers},
author = {Li, Shuzhen and Zhang, Yifan and Guo, Jiacheng and Gu, Quanquan and Wang, Mengdi},
year = {2026}
}Apache License 2.0. See LICENSE.