Explore the research collection
1 entry · Follow this search
- Paper
Hyperloop Transformers
Parameter-efficient looped architecture for edge/on-device memory limits. Splits the model into begin/middle/end blocks, loops only the middle 3× (~25%/50%/25% allocation). Twist: hyper-connections (mHC-style) applied only after each loop iteration — begin-block output copied into n=4 parallel residual streams, input-dependent transition matrices mix streams per loop, outputs averaged back. Simpler diagonal transition replaces mHC's Sinkhorn-Knopp matrix (PPL 14.40 vs 14.59); loop-position embedding acts as depth-wise-RNN input. Net cost over vanilla looped: 150–300K extra parameters; plain PyTorch, negligible slowdown (no custom kernel). Results (FineWeb-Edu, 2.5× Chinchilla tokens, SwiGLU+RoPE): 1B: PPL 9.65 (579.7M) vs vanilla Transformer 10.19 (990.5M), mHC 10.07, Looped 10.02; downstream 49.8% vs 48.0%/48.6%/49.2%. 2B: PPL 8.49 vs 8.60/8.57; downstream 54.6% vs 52.8%/53.7%. INT4 GPTQ: holds 9.81 vs 10.27/10.16/10.24 (hyper-connections partially compensate looped models' extra quantization sensitivity — authors' honest caveat: looped layers see "more" inputs, making them harder to quantize). Overtrained 240M (100B tokens, 400 tok/param): stays competitive (12.19 vs 12.15/12.16/12.56). Caveats: authors' own main limitation is scale — capped at ~2B on academic compute; the "match a Transformer with 50% fewer parameters" claim untested at larger scales; v3 abstract softened "outperform" → "perform well compared to" (report v3 wording). Diminishing returns past 3 loops; loop-level hyper-connections (14.40) beat every-layer (14.45); logit-lens shows stronger vocab alignment (early-exit potential, unexplored).