{
  "id": 1231,
  "kind": "code",
  "title": "Hyper-Connection Factory",
  "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.",
  "body": "",
  "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",
  "url": "https://github.com/wdlctc/hyper-connection-factory",
  "links": [],
  "authors": [
    "Cheng Luo"
  ],
  "tags": [
    "hyper-connections",
    "residual",
    "muddformer",
    "denseformer",
    "laurel",
    "attnres",
    "architecture",
    "scaling",
    "fineweb-edu"
  ],
  "topics": "residual connections, hyper-connections, MUDDFormer, scaling, architecture, controlled comparison",
  "venue": "GitHub: wdlctc/hyper-connection-factory, created 25 Sep 2026, MIT",
  "publisher": "",
  "source": "github",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-10-04T00:00:00.000Z",
  "verified_at": "2026-10-04T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "1540"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-04T12:04:59.902Z",
  "updated_at": "2026-10-04T12:04:59.902Z",
  "page": "https://papers.projxon.ai/entries/1231",
  "markdown": "https://papers.projxon.ai/entries/1231.md",
  "api": "https://papers.projxon.ai/api/entries/1231",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 789,
      "kind": "paper",
      "title": "DepthBench: Measuring How Residual Connections Enable More Computational Depth",
      "summary": "Introduces DepthBench, a controlled benchmark for studying computational depth across architectures, proposing effective computational depth as a new scaling axis. Systematically varies the width-depth aspect ratio (d_model/n_layer) from shallow-wide to deep-narrow shapes while keeping model size and the pretraining recipe fixed, across 10 representative architectures. Finds the benefit of allocating capacity to depth is strongly architecture-dependent: standard Pre-LN and most norm- and scaling-based variants (e.g. LayerNorm Scaling) give little benefit and can even degrade as models get deeper and narrower, whereas HC and Full AttnRes improve consistently even at extreme deep shapes. Gains extend beyond pretraining loss into improved domain-specific performance and effective computation; layer-level analyses link HC/Full AttnRes gains to more effective utilization of additional layers via distinct mechanisms. Concludes residual-connection design determines whether depth can serve as a meaningful scaling axis.",
      "url": "https://arxiv.org/abs/2609.32534",
      "authors": [
        "Keyu Wang",
        "Yangyi Huang",
        "Jiale Kang",
        "David Gonzalez-Martinez",
        "Weiyang Liu",
        "Shiwei Liu"
      ],
      "tags": [
        "architecture",
        "scaling-laws",
        "depth",
        "residual-connections",
        "mhc",
        "attnres",
        "benchmark",
        "transformers"
      ],
      "venue": "arXiv",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/789",
      "markdown": "https://papers.projxon.ai/entries/789.md",
      "api": "https://papers.projxon.ai/api/entries/789"
    },
    {
      "id": 548,
      "kind": "paper",
      "title": "ResiDual: Transformer with Dual Residual Connections",
      "summary": "PPLN keeps a Post-LN path (diverse hidden states) plus a Pre-LN dual residual (lower-bounded gradients). Theory: Post-LN grads decay ~O((1/2)^{(N-k)/2}); Pre-LN |Δh|~O(1/√k) collapse; ResiDual inherits the better of each. IWSLT-14 E6D6 BLEU 35.63 vs Post-LN 35.37 / Pre-LN 35.12; E12D12 36.09 vs Pre-LN 35.18 (Post-LN fails). WMT DE→EN E18D18 27.65 vs Pre-LN 26.57 / B2T 27.30. OPUS-100 E18D18 ALL 31.0 vs Pre-LN 30.3, matching a 100-layer DeepNet 31.1. Trains without LR warmup on IWSLT. Code https://github.com/microsoft/ResiDual.",
      "url": "https://arxiv.org/abs/2304.14802",
      "authors": [
        "Shufang Xie",
        "Huishuai Zhang",
        "Junliang Guo",
        "Xu Tan",
        "Jiang Bian",
        "Hany Hassan Awadalla",
        "Arul Menezes",
        "Tao Qin",
        "Rui Yan"
      ],
      "tags": [
        "residual",
        "pre-ln",
        "post-ln",
        "ppln",
        "machine-translation",
        "microsoft",
        "fairseq"
      ],
      "venue": "arXiv / Microsoft Research / Microsoft Azure Translation / Renmin University of China",
      "source": "",
      "license": "",
      "published_year": 2023,
      "added_at": "2026-10-01T16:45:05.207Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 48,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/548",
      "markdown": "https://papers.projxon.ai/entries/548.md",
      "api": "https://papers.projxon.ai/api/entries/548"
    },
    {
      "id": 725,
      "kind": "paper",
      "title": "How Model Growth, Recursion, and Boundary Operators Influence Scaling Exponents",
      "summary": "Chen, Vegesna, Dahal & Wilson show that architecture — specifically model growth via looped/recurrent transformers — can modify pretraining scaling exponents, not just shift loss curves. A 7.4B growth architecture matches GPT-3 13B on CORE with roughly 20× less compute, with gains that increase with scale; even a simple boundary operator in a vanilla transformer helps.",
      "url": "https://arxiv.org/abs/2609.19107",
      "authors": [
        "Zixi Chen",
        "Akshay Vegesna",
        "Samip Dahal",
        "Andrew Gordon Wilson"
      ],
      "tags": [
        "scaling-laws",
        "looped-transformers",
        "architecture",
        "pretraining"
      ],
      "venue": "arXiv:2609.19107",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/725",
      "markdown": "https://papers.projxon.ai/entries/725.md",
      "api": "https://papers.projxon.ai/api/entries/725"
    },
    {
      "id": 699,
      "kind": "paper",
      "title": "How Much Is One Recurrence Worth? Iso-Depth Scaling Laws for Looped Language Models",
      "summary": "Measures the value of one recurrence in a looped (depth-recurrent) transformer in equivalent unique parameters. From an iso-depth pretraining sweep over recurrence counts r in {1,2,4,8} spanning ~50x in training compute, the authors fit a joint scaling law L = E + A(N_once + r^phi N_rec)^(-alpha) + B D^(-beta) and estimate a recurrence-equivalence exponent phi = 0.46 — between full equivalence (phi=1, looping a block r times equals r unique blocks) and no capacity gain (phi=0).",
      "url": "https://arxiv.org/abs/2604.21106",
      "authors": [
        "Kristian Schwethelm",
        "Daniel Rueckert",
        "Georgios Kaissis"
      ],
      "tags": [
        "looped-transformers",
        "scaling-laws",
        "recurrence",
        "architecture"
      ],
      "venue": "arXiv (cs.LG), v3 revised 2026-05-07",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 20,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/699",
      "markdown": "https://papers.projxon.ai/entries/699.md",
      "api": "https://papers.projxon.ai/api/entries/699"
    },
    {
      "id": 599,
      "kind": "code",
      "title": "nanowhale",
      "summary": "huggingface/nanowhale ports DeepSeek-V4 (MLA, 4+1 MoE with top-2, Hyper-Connections hc_mult=4 / Sinkhorn, MTP) into HF Trainer/SFTTrainer at hidden 320 / 8 layers / vocab 129,280 / ctx 2048 (~110M params: 41M embed + 69M non-embed). Pretrain 5K steps on FineWeb-Edu (~2.6B tokens, final loss ~5.3, 1×H100) then 3K-step SmolTalk SFT. Checkpoints on HF as cmpatino/nanowhale-100m-base and cmpatino/nanowhale-100m. README flags bf16 NaNs from Hyper-Connections at this scale (use fp32) and a from_pretrained re-init quirk. README license MIT; GitHub API has no SPDX (no LICENSE file). Companion HF base card is Apache-2.0.",
      "url": "https://github.com/huggingface/nanowhale",
      "authors": [
        "cmpatino"
      ],
      "tags": [
        "nanowhale",
        "deepseek-v4",
        "moe",
        "mla",
        "hyper-connections",
        "huggingface",
        "small-lm"
      ],
      "venue": "Hugging Face (GitHub)",
      "source": "github",
      "license": "MIT",
      "published_year": 2026,
      "added_at": "2026-08-14T18:35:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 390,
      "page": "https://papers.projxon.ai/entries/599",
      "markdown": "https://papers.projxon.ai/entries/599.md",
      "api": "https://papers.projxon.ai/api/entries/599"
    },
    {
      "id": 1085,
      "kind": "paper",
      "title": "Sparse Layers are Critical to Scaling Looped Language Models",
      "summary": "Looped language models repeat a set of transformer layers through depth, reducing memory costs and providing natural early-exit points at loop boundaries. However, looped models do not scale as favorably as standard transformers with unique layers. We compare standard and Mixture-of-Experts (MoE) transformers, with and without looping, and find two main results. First, we find Looped-MoE models scale better than the standard baseline while dense looped models do not. We trace this to routing divergence between loop…",
      "url": "https://arxiv.org/abs/2605.09165",
      "authors": [
        "Ryan Lee",
        "Jacob Biloki",
        "Edward J. Hu",
        "Jonathan May"
      ],
      "tags": [
        "looped-lm",
        "sparse-layers",
        "scaling",
        "early-exit",
        "2605.09165"
      ],
      "venue": "arXiv / cs.LG",
      "source": "arxiv",
      "license": "arXiv non-exclusive / check PDF",
      "published_year": 2026,
      "added_at": "2026-09-29T20:34:19.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 10,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1085",
      "markdown": "https://papers.projxon.ai/entries/1085.md",
      "api": "https://papers.projxon.ai/api/entries/1085"
    }
  ]
}
