Papers › When Linear Attention Meets Autoregressive Decoding: Towards More Effective and...

When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Models

11 Jun 2024arXiv:2406.07368archive 2025-07-28

Haoran You, Yichao Fu, Zheng Wang, Amir Yazdanbakhsh, Yingyan Celine Lin

Autoregressive Large Language Models (LLMs) have achieved impressive performance in language tasks but face two significant bottlenecks: (1) quadratic complexity in the attention module as the number of tokens increases, and (2) limited efficiency due to the sequential processing nature of autoregressive LLMs during generation. While linear attention and speculative decoding offer potential solutions, their applicability and synergistic potential for enhancing autoregressive LLMs remain uncertain. We conduct the first comprehensive study on the efficacy of existing linear attention methods for autoregressive LLMs, integrating them with speculative decoding. We introduce an augmentation technique for linear attention that ensures compatibility with speculative decoding, enabling more efficient training and serving of LLMs. Extensive experiments and ablation studies involving seven existing linear attention models and five encoder/decoder-based LLMs consistently validate the effectiveness of our augmented linearized LLMs. Notably, our approach achieves up to a 6.67 reduction in perplexity on the LLaMA model and up to a 2× speedup during generation compared to prior linear attention methods. Codes and models are available at https://github.com/GATECH-EIC/Linearized-LLM.

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

Code

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

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

gatech-eic/linearized-llm officialmentioned in papermentioned 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

11 samples harvested; 7 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
2ran · violated contract
3ran · our draft was wrong
1ran · fixture could not drive it
4unverified

Licence: 1 of the 11 samples is 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 gatech-eic/linearized-llm. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

padding_to_multiple_of gatech-eic/linearized-llm/flash_pytorch.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 5f4fdf97a20b1819 · report
_global_linear_attn_causal gatech-eic/linearized-llm/experiments/llama_attn_replace.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5a9b970426ac2f96 · report
_global_linear_attn_p gatech-eic/linearized-llm/experiments/llama_attn_replace.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 288bee86546fbf67 · report
eval_decorator gatech-eic/linearized-llm/autoregressive_wrapper.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 2107ce5c9a769398 · report
exists gatech-eic/linearized-llm/autoregressive_wrapper.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · b767065fd213438a · report
top_k gatech-eic/linearized-llm/autoregressive_wrapper.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5d77a7df8b8103e4 · report
_local_quadratic_attn_p gatech-eic/linearized-llm/experiments/llama_attn_replace.py official repository unverified Apache-2.0 (permissive) · bef480ba7a34dcdd · report
_local_quadratic_attn_p_g1 gatech-eic/linearized-llm/experiments/llama_attn_replace.py official repository unverified Apache-2.0 (permissive) · d65e3eb5da171762 · report
linear_forward_noflashattn gatech-eic/linearized-llm/experiments/llama_attn_replace.py official repository unverified Apache-2.0 (permissive) · 682226da161991da · report
yoso_pointwise gatech-eic/linearized-llm/experiments/llama_attn_replace.py official repository unverified Apache-2.0 (permissive) · 6e35e1c26b0f21f6 · report
default identical code first harvested elsewhere ran · violated contract fingerprinted licence of this copy not recorded · 60fff7c3c400d7ff · report

Tasks

Decoder

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

LLaMA

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