# Hyper-Connection Factory

- **ID:** 1231
- **Kind:** code
- **URL:** https://github.com/wdlctc/hyper-connection-factory
- **Authors:** Cheng Luo
- **Venue:** GitHub: wdlctc/hyper-connection-factory, created 25 Sep 2026, MIT
- **Published:** 2026
- **Source:** github
- **Language:** en
- **Access:** free
- **Tags:** hyper-connections, residual, muddformer, denseformer, laurel, attnres, architecture, scaling, fineweb-edu
- **Topics:** residual connections, hyper-connections, MUDDFormer, scaling, architecture, controlled comparison
- **Added:** 2026-10-04
- **Verified:** 2026-10-04
- **Page:** https://papers.projxon.ai/entries/1231

## Summary

Open-source repo with unified implementations of 11 residual-connection variants for decoder LLMs (HC, mHC, Frac, DenseFormer, MUDDFormer, LAuReL, AttnRes, MHAR, DAR) behind a single interface on one shared transformer body — same attention/MLP, init, data, optimizer, schedule, so differences are due to wiring alone. Trains with one recipe from 38M to 1.2B params at ~20 tokens/param on FineWeb-Edu (8xH100; checkpoints, configs, sweep scripts, logs, plots all in repo). Key result: what survives scale is dynamic, input-dependent mixing — MUDDFormer best at every size (Δ val loss vs pre-norm: -0.112 S / -0.070 M / -0.071 L / -0.061 XL); mHC and dynamic HC shrink smoothly but stay positive; static HC's gain fades at M then recovers at L with depth. Gotchas: plain MUDDFormer diverges at 24 layers (fixed by PrePostDANorm, previously only in the paper's JAX code); small-scale rankings don't transfer (mHC looked worse than pre-norm on laptop but is among the best on GPU); fancy variants train at ~0.5x pre-norm throughput. Single seed at L/XL. Relevant to the user's LLM pretraining and Launch Helm work.

## Research notes

- Discovery: @ChengLuo_lc (Cheng Luo, verified) X post + 3-post self-thread 2026-10-04 2:21 AM ET (https://x.com/ChengLuo_lc/status/2106630717690233011), 1.4K views
- San Diego

## Similar entries

- [DepthBench: Measuring How Residual Connections Enable More Computational Depth](https://papers.projxon.ai/entries/789) (paper, #789)
- [ResiDual: Transformer with Dual Residual Connections](https://papers.projxon.ai/entries/548) (paper, #548)
- [How Model Growth, Recursion, and Boundary Operators Influence Scaling Exponents](https://papers.projxon.ai/entries/725) (paper, #725)
- [How Much Is One Recurrence Worth? Iso-Depth Scaling Laws for Looped Language Models](https://papers.projxon.ai/entries/699) (paper, #699)
- [nanowhale](https://papers.projxon.ai/entries/599) (code, #599)
- [Sparse Layers are Critical to Scaling Looped Language Models](https://papers.projxon.ai/entries/1085) (paper, #1085)
