Papers › Accelerating Transformer Inference for Translation via Parallel Decoding

Accelerating Transformer Inference for Translation via Parallel Decoding

17 May 2023arXiv:2305.10427archive 2025-07-28

Andrea Santilli, Silvio Severino, Emilian Postolache, Valentino Maiorca, Michele Mancusi, Riccardo Marin, Emanuele Rodolà

Autoregressive decoding limits the efficiency of transformers for Machine Translation (MT). The community proposed specific network architectures and learning-based methods to solve this issue, which are expensive and require changes to the MT model, trading inference speed at the cost of the translation quality. In this paper, we propose to address the problem from the point of view of decoding algorithms, as a less explored but rather compelling direction. We propose to reframe the standard greedy autoregressive decoding of MT with a parallel formulation leveraging Jacobi and Gauss-Seidel fixed-point iteration methods for fast inference. This formulation allows to speed up existing models without training or modifications while retaining translation quality. We present three parallel decoding algorithms and test them on different languages and models showing how the parallelization introduces a speedup up to 38% w.r.t. the standard autoregressive decoding and nearly 2x when scaling the method on parallel resources. Finally, we introduce a decoding dependency graph visualizer (DDGviz) that let us see how the model has learned the conditional dependence between tokens and inspect the decoding procedure.

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="2305.10427")

Code

Syntology Ran 0 of 10 code samples harvested from 3 repositories linked to this paper; 10 have no recorded run.

By repository: official repository: 5 samples from 1 repository, 0 ran; community (archive-listed): 5 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

teelinsan/parallel-decoding officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
hao-ai-lab/Consistency_LLM mentioned on GitHubpytorch report
hao-ai-lab/lookaheaddecoding mentioned on GitHubpytorch 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; 0 ran; 0 honoured the contract we drafted; 10 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.

10unverified

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 3 repositories linked to this paper, official or community; each sample names its own and says which. “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.

check_stop_cond teelinsan/parallel-decoding/src/ipi/stopping_condition.py official repository unverified Apache-2.0 (permissive) · 0ca9c56c259031c2 · report
generate_target teelinsan/parallel-decoding/src/ipi/decoders/mt_decoding.py official repository unverified Apache-2.0 (permissive) · b3326122212147a3 · report
get_electra_train_flops teelinsan/parallel-decoding/exp/flops_calculator.py official repository unverified Apache-2.0 (permissive) · 38a5a87b00d0d865 · report
limit_past_key_values teelinsan/parallel-decoding/src/ipi/stopping_condition.py official repository unverified Apache-2.0 (permissive) · 3dca968fd18bbcc2 · report
stopping_criterion teelinsan/parallel-decoding/src/ipi/stopping_condition.py official repository unverified Apache-2.0 (permissive) · 5f4c2e11347eb5a8 · report
append_new_generated_pool hao-ai-lab/lookaheaddecoding/lade/decoding.py community (archive-listed) unverified Apache-2.0 (permissive) · c1a277b44d064673 · report
fill_pool_with_prompt hao-ai-lab/lookaheaddecoding/lade/decoding.py community (archive-listed) unverified Apache-2.0 (permissive) · 7c3d0baab443d8d8 · report
jacobi_forward hao-ai-lab/Consistency_LLM/cllm/cllm_llama_modeling.py community (archive-listed) unverified Apache-2.0 (permissive) · 6325980f1e2ddbb3 · report
jacobi_greedy_search_multilevel hao-ai-lab/lookaheaddecoding/lade/decoding.py community (archive-listed) unverified Apache-2.0 (permissive) · 069151ed3da2a52d · report
update_token_map hao-ai-lab/lookaheaddecoding/lade/decoding.py community (archive-listed) unverified Apache-2.0 (permissive) · 521d2c89634e3413 · report

Tasks

Machine TranslationTranslation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SPEEDTest

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