{
  "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.",
  "body": "",
  "notes": "Primary: arxiv abs (cs.CL; also cs.AI, cs.LG, cs.NE). License not stated on abs/HTML at check. Correspondence Xu Tan xuta@microsoft.com and Rui Yan ruiyan@ruc.edu.cn. Microsoft Research / Azure Translation / Renmin University. Code https://github.com/microsoft/ResiDual (98 stars at check; MIT; archived). HF has no paper page (API 404). Discord posted PDF. Uses public IWSLT/WMT/OPUS; no new corpus, so no datasets_local row. License field left blank per catalog convention.",
  "url": "https://arxiv.org/abs/2304.14802",
  "links": [],
  "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"
  ],
  "topics": "Transformer architecture, residual connections, layer normalization",
  "venue": "arXiv / Microsoft Research / Microsoft Azure Translation / Renmin University of China",
  "publisher": "",
  "source": "",
  "language": "",
  "access": "",
  "license": "",
  "published_year": 2023,
  "added_at": "2026-10-01T16:45:05.207Z",
  "verified_at": null,
  "attrs": {
    "scale": "IWSLT-14 EN→DE 140k (E6D6/E12D12); WMT DE→EN 1.4M (E6D6/E18D18); OPUS-100 ~55M pairs / 100 langs (E18D18). Fairseq Adam, inverse-sqrt, 4000 warmup unless ablated",
    "purpose": "Fuse Pre-LN and Post-LN residuals so deep Transformers avoid both gradient vanishing and representation collapse",
    "time_period": "2023-04-28 (arXiv 2304.14802 v1). HF has no paper page (API 404)."
  },
  "enrichment": {
    "s2": {
      "venue": "Artificial Intelligence",
      "paper_id": "8f7f7b48184217c131844d725daefe6734735d8a",
      "published": "2023-04-28",
      "fetched_at": "2026-10-03T14:57:19.928Z",
      "citation_count": 48,
      "reference_count": 44,
      "influential_citation_count": 2
    },
    "arxiv": {
      "id": "2304.14802",
      "title": "ResiDual: Transformer with Dual Residual Connections",
      "authors": [
        "Shufang Xie",
        "Huishuai Zhang",
        "Junliang Guo",
        "Xu Tan",
        "Jiang Bian",
        "Hany Hassan Awadalla",
        "Arul Menezes",
        "Tao Qin",
        "Rui Yan"
      ],
      "updated": "2023-04-28",
      "abstract": "Transformer networks have become the preferred architecture for many tasks due to their state-of-the-art performance. However, the optimal way to implement residual connections in Transformer, which are essential for effective training, is still debated. Two widely used variants are the Post-Layer-Normalization (Post-LN) and Pre-Layer-Normalization (Pre-LN) Transformers, which apply layer normalization after each residual block's output or before each residual block's input, respectively. While both variants enjoy their advantages, they also suffer from severe limitations: Post-LN causes gradient vanishing issue that hinders training deep Transformers, and Pre-LN causes representation collapse issue that limits model capacity. In this paper, we propose ResiDual, a novel Transformer architecture with Pre-Post-LN (PPLN), which fuses the connections in Post-LN and Pre-LN together and inherits their advantages while avoids their limitations. We conduct both theoretical analyses and empirical experiments to verify the effectiveness of ResiDual. Theoretically, we prove that ResiDual has a lower bound on the gradient to avoid the vanishing issue due to the residual connection from Pre-LN. Moreover, ResiDual also has diverse model representations to avoid the collapse issue due to the residual connection from Post-LN. Empirically, ResiDual outperforms both Post-LN and Pre-LN on several machine translation benchmarks across different network depths and data sizes. Thanks to the good theoretical and empirical performance, ResiDual Transformer can serve as a foundation architecture for different AI models (e.g., large language models). Our code is available at https://github.com/microsoft/ResiDual.",
      "published": "2023-04-28",
      "categories": [
        "cs.CL",
        "cs.AI",
        "cs.LG",
        "cs.NE"
      ],
      "fetched_at": "2026-10-03T14:57:19.928Z"
    }
  },
  "enriched_at": "2026-10-03T14:57:19.965Z",
  "license_class": "unknown",
  "langs": [],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "567",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T12:29:06.561Z",
  "page": "https://papers.projxon.ai/entries/548",
  "markdown": "https://papers.projxon.ai/entries/548.md",
  "api": "https://papers.projxon.ai/api/entries/548",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "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.",
      "url": "https://github.com/wdlctc/hyper-connection-factory",
      "authors": [
        "Cheng Luo"
      ],
      "tags": [
        "hyper-connections",
        "residual",
        "muddformer",
        "denseformer",
        "laurel",
        "attnres",
        "architecture",
        "scaling",
        "fineweb-edu"
      ],
      "venue": "GitHub: wdlctc/hyper-connection-factory, created 25 Sep 2026, MIT",
      "source": "github",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-04T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1231",
      "markdown": "https://papers.projxon.ai/entries/1231.md",
      "api": "https://papers.projxon.ai/api/entries/1231"
    },
    {
      "id": 906,
      "kind": "paper",
      "title": "Differential Transformer",
      "summary": "arXiv 2410.05258 (v2): Diff Transformer computes attention as the difference of two softmax attention maps, canceling noise and encouraging sparse attention. Claims better language-modeling performance than Transformers, stronger long-context retrieval, fewer hallucinations, and better robustness under lower-bit quantization; Discord note highlighted ~40% fewer parameters for matched performance. Microsoft/academic author list (Ye, Dong, Xia, Sun, Zhu, Huang, Wei).",
      "url": "https://arxiv.org/abs/2410.05258",
      "authors": [
        "Tianzhu Ye",
        "Li Dong",
        "Yuqing Xia",
        "Yutao Sun",
        "Yi Zhu",
        "Gao Huang",
        "Furu Wei"
      ],
      "tags": [
        "differential-transformer",
        "differential-attention",
        "long-context",
        "microsoft",
        "arxiv:2410.05258"
      ],
      "venue": "arXiv 2410.05258",
      "source": "arxiv",
      "license": "",
      "published_year": 2024,
      "added_at": "2026-09-14T20:30:54.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 1,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/906",
      "markdown": "https://papers.projxon.ai/entries/906.md",
      "api": "https://papers.projxon.ai/api/entries/906"
    },
    {
      "id": 476,
      "kind": "paper",
      "title": "Bridging the Gap Between Latent and Explicit Reasoning with Looped Transformers",
      "summary": "LOTUS places K padded latent blocks between question and answer, loops the backbone R times, and applies per-position CE on gold CoT tokens through the base LM head (LOTUS-aux routes the same targets through a training-only decoder). First latent method reported to bridge explicit CoT at Llama-3.2-3B-Instruct: GSM8K 70.0 vs CoT 71.5 (LOTUS+CODI 70.6); OOD avg 63.9 vs 62.1. Thought-phase 133 vs 338.8 ms (2.5x); natural-language CoT stress 68.13 vs 68.41 with 6.9x thought speedup (140.8 vs 963.6 ms). Post-loop LM-head readout recovers gold CoT (70.9% top-1, 85.8% top-5) and puts mass on unseen-but-valid intermediates. Ablations: looped backbone and parallel gold-CoT CE are both needed; default K=6, c=25, R=6. Chains longer than K fall back to autoregressive completion. Math-only evaluation.",
      "url": "https://arxiv.org/abs/2606.31779",
      "authors": [
        "Ying Fan",
        "Anej Svete",
        "Kangwook Lee"
      ],
      "tags": [
        "lotus",
        "latent-cot",
        "looped-transformers",
        "gsm8k",
        "coconut",
        "sim-cot",
        "microsoft"
      ],
      "venue": "arXiv / Microsoft Research / ETH Zurich / KRAFTON",
      "source": "arxiv",
      "license": "arXiv perpetual non-exclusive license 1.0",
      "published_year": 2026,
      "added_at": "2026-08-14T16:54:04.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/476",
      "markdown": "https://papers.projxon.ai/entries/476.md",
      "api": "https://papers.projxon.ai/api/entries/476"
    },
    {
      "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": 1254,
      "kind": "paper",
      "title": "Attention Residuals",
      "summary": "Replaces standard PreNorm residual accumulation (fixed unit weights over all layer outputs, which causes uncontrolled hidden-state growth with depth and dilutes each layer's contribution) with Attention Residuals (AttnRes): each layer selectively aggregates earlier representations via learned, input-dependent softmax attention over preceding layer outputs. Block AttnRes makes this practical at scale: partitions layers into blocks and attends over block-level representations, cutting memory from O(Ld) to O(Nd) while preserving most gains; cache-based pipeline communication and a two-phase computation strategy make it a drop-in replacement for standard residuals with minimal overhead. Scaling-law experiments show consistent improvement across sizes; ablations validate content-dependent depth-wise selection. Integrated into the Kimi Linear architecture (48B total / 3B activated) pre-trained on 1.4T tokens, AttnRes yields more uniform output magnitudes and gradient distribution across depth and improves downstream performance on all evaluated tasks (reasoning, math, coding).",
      "url": "https://arxiv.org/abs/2603.15031",
      "authors": [
        "Kimi Team (Guangyu Chen",
        "Yu Zhang",
        "Jianlin Su",
        "Weixin Xu",
        "Siyuan Pan",
        "Yaoyu Wang",
        "Yucheng Wang",
        "Guanduo Chen",
        "Bohong Yin",
        "Yutian Chen",
        "Junjie Yan",
        "Ming Wei",
        "Y. Zhang",
        "Fanqing Meng",
        "Chao Hong",
        "Xiaotong Xie",
        "Shaowei Liu",
        "Enzhe Lu",
        "Yunpeng Tai",
        "Yanru Chen",
        "Xin Men",
        "Haiqing Guo",
        "Y. Charles",
        "Haoyu Lu",
        "Lin Sui",
        "Jinguo Zhu",
        "Zaida Zhou",
        "Weiran He",
        "Weixiao Huang",
        "Xinran Xu",
        "Yuzhi Wang",
        "Guokun Lai",
        "Yulun Du",
        "Yuxin Wu",
        "Zhilin Yang",
        "Xinyu Zhou)"
      ],
      "tags": [
        "residual-connections",
        "prenorm",
        "attention-residuals",
        "gradient-flow",
        "kimi",
        "block-attention",
        "pipeline-parallelism"
      ],
      "venue": "arXiv 2603.15031 [cs.CL], submitted 16 Mar 2026, technical report",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-05T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1254",
      "markdown": "https://papers.projxon.ai/entries/1254.md",
      "api": "https://papers.projxon.ai/api/entries/1254"
    },
    {
      "id": 446,
      "kind": "paper",
      "title": "Is One Layer Enough? Training A Single Transformer Layer Can Match Full-Parameter RL Training",
      "summary": "Systematic layer-wise study of how reinforcement-learning post-training of large language models distributes its gains across transformer layers. Against the usual assumption that every layer should be updated uniformly, the authors find that training a single transformer layer recovers most of the improvement achieved by full-parameter RL training and in some cases surpasses it. They introduce \"layer contribution\", the fraction of full RL improvement recovered by training one layer in isolation, and measure it across seven models spanning two families (Qwen3, Qwen2.5), three RL algorithms (GRPO, GiGPO, Dr. GRPO) and task domains including mathematical reasoning, code generation and agentic decision-making. RL gains concentrate in a small subset of layers, and a consistent structural pattern emerges: high-contribution layers sit in the middle of the stack while layers near the input and output ends contribute substantially less. The resulting layer rankings stay strongly correlated across datasets, tasks, model families and RL algorithms.",
      "url": "https://arxiv.org/abs/2607.01232",
      "authors": [
        "Zijian Zhang",
        "Rizhen Hu",
        "Athanasios Glentis",
        "Dawei Li",
        "Chung-Yiu Yau",
        "Hongzhou Lin",
        "Mingyi Hong"
      ],
      "tags": [],
      "venue": "arXiv",
      "source": "arxiv",
      "license": "arXiv (open); CC BY-NC-ND",
      "published_year": 2026,
      "added_at": "2026-08-11T21:52:01.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 3,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/446",
      "markdown": "https://papers.projxon.ai/entries/446.md",
      "api": "https://papers.projxon.ai/api/entries/446"
    }
  ]
}
