Papers › Ladder-residual: parallelism-aware architecture for accelerating large model inference...

Ladder-residual: parallelism-aware architecture for accelerating large model inference with communication overlapping

11 Jan 2025arXiv:2501.06589archive 2025-07-28

Muru Zhang, Mayank Mishra, Zhongzhu Zhou, William Brandon, Jue Wang, Yoon Kim, Jonathan Ragan-Kelley, Shuaiwen Leon Song, Ben Athiwaratkun, Tri Dao

Large language model inference is both memory-intensive and time-consuming, often requiring distributed algorithms to efficiently scale. Various model parallelism strategies are used in multi-gpu training and inference to partition computation across multiple devices, reducing memory load and computation time. However, using model parallelism necessitates communication of information between GPUs, which has been a major bottleneck and limits the gains obtained by scaling up the number of devices. We introduce Ladder Residual, a simple architectural modification applicable to all residual-based models that enables straightforward overlapping that effectively hides the latency of communication. Our insight is that in addition to systems optimization, one can also redesign the model architecture to decouple communication from computation. While Ladder Residual can allow communication-computation decoupling in conventional parallelism patterns, we focus on Tensor Parallelism in this paper, which is particularly bottlenecked by its heavy communication. For a Transformer model with 70B parameters, applying Ladder Residual to all its layers can achieve 29% end-to-end wall clock speed up at inference time with TP sharding over 8 devices. We refer the resulting Transformer model as the Ladder Transformer. We train a 1B and 3B Ladder Transformer from scratch and observe comparable performance to a standard dense transformer baseline. We also show that it is possible to convert parts of the Llama-3.1 8B model to our Ladder Residual architecture with minimal accuracy degradation by only retraining for 3B tokens. We release our code for training and inference for easier replication of experiments.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2501.06589")

Code

Syntology Ran 6 of 10 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 2 ran · fixture could not drive it.

By repository: official repository: 10 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mayank31398/ladder-residual-inference officialmentioned in papermentioned on GitHubpytorchBSD-3-Clause report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 6 ran; 1 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
2ran · fixture could not drive it
4unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mayank31398/ladder-residual-inference. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

repeat_kv mayank31398/ladder-residual-inference/hf_modeling_utils/modeling_llama_ladder.py official repository ran · fixture could not drive it fingerprinted BSD-3-Clause (permissive) · 30d7eec482ebf6b1 · report
apply_rotary_pos_emb mayank31398/ladder-residual-inference/hf_modeling_utils/modeling_llama_ladder.py official repository ran · our draft was wrong BSD-3-Clause (permissive) · bac65c3dafaec040 · report
find_multiple mayank31398/ladder-residual-inference/gpt_fast/gpt_ladder_TP.py official repository ran · honoured contract fingerprinted BSD-3-Clause (permissive) · aba86ffbed27ba65 · report
logits_to_probs mayank31398/ladder-residual-inference/benchmark.py official repository ran · fixture could not drive it fingerprinted BSD-3-Clause (permissive) · f4d39ec8a89dcfa0 · report
multinomial_sample_one_no_sync mayank31398/ladder-residual-inference/benchmark.py official repository ran · our draft was wrong fingerprinted BSD-3-Clause (permissive) · 5b6f45360aa68edd · report
rotate_half mayank31398/ladder-residual-inference/hf_modeling_utils/modeling_llama_ladder.py official repository ran · our draft was wrong fingerprinted BSD-3-Clause (permissive) · b99eea6376d1e212 · report
apply_rope_scaling mayank31398/ladder-residual-inference/gpt_fast/utils.py official repository unverified BSD-3-Clause (permissive) · e32aa65ed977997d · report
apply_rotary_emb mayank31398/ladder-residual-inference/gpt_fast/utils.py official repository unverified BSD-3-Clause (permissive) · 1102ffb719fa5cde · report
precompute_freqs_cis mayank31398/ladder-residual-inference/gpt_fast/utils.py official repository unverified BSD-3-Clause (permissive) · 410ff1b0adf4919f · report
sample mayank31398/ladder-residual-inference/benchmark.py official repository unverified BSD-3-Clause (permissive) · d44fdad445a56d5e · report

Tasks

Large Language Model

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutFocusLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSPEEDSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections