Papers › Training-Free Activation Sparsity in Large Language Models

Training-Free Activation Sparsity in Large Language Models

26 Aug 2024arXiv:2408.14690archive 2025-07-28

James Liu, Pragaash Ponnusamy, Tianle Cai, Han Guo, Yoon Kim, Ben Athiwaratkun

Activation sparsity can enable practical inference speedups in large language models (LLMs) by reducing the compute and memory-movement required for matrix multiplications during the forward pass. However, existing methods face limitations that inhibit widespread adoption. Some approaches are tailored towards older models with ReLU-based sparsity, while others require extensive continued pre-training on up to hundreds of billions of tokens. This paper describes TEAL, a simple training-free method that applies magnitude-based activation sparsity to hidden states throughout the entire model. TEAL achieves 40-50% model-wide sparsity with minimal performance degradation across Llama-2, Llama-3, and Mistral families, with sizes varying from 7B to 70B. We improve existing sparse kernels and demonstrate wall-clock decoding speed-ups of up to 1.53× and 1.8× at 40% and 50% model-wide sparsity. TEAL is compatible with weight quantization, enabling further efficiency gains.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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

Code

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

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

fasterdecoding/teal 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

14 samples harvested; 7 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
2ran · fixture could not drive it
2ran
7unverified

Licence: 0 of the 14 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 fasterdecoding/teal. “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.

ActivationModule fasterdecoding/teal/teal/model.py official repository ran MIT (permissive) · 4f283dcb0a0422d7 · report
Distribution fasterdecoding/teal/teal/model.py official repository ran MIT (permissive) · c5354bfc34cf09a3 · report
get_layer_greedy_sparsities fasterdecoding/teal/teal/model.py official repository ran · our draft was wrong MIT (permissive) · 9b77813d7a7d746d · report
interp fasterdecoding/teal/teal/model.py official repository ran · our draft was wrong MIT (permissive) · e141b830083564c0 · report
logits_to_probs FasterDecoding/TEAL/gpt-fast/generate.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · f4d39ec8a89dcfa0 · report
multinomial_sample_one_no_sync FasterDecoding/TEAL/gpt-fast/generate.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 5b6f45360aa68edd · report
sample FasterDecoding/TEAL/gpt-fast/generate.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 8465782fc7e1fe39 · report
SparseModelMixin fasterdecoding/teal/teal/model.py official repository unverified MIT (permissive) · dc1705f0ac812a98 · report
SparsifyFn fasterdecoding/teal/teal/model.py official repository unverified MIT (permissive) · 8247ca701a965ec3 · report
_FA2_forward fasterdecoding/teal/teal/model.py official repository unverified MIT (permissive) · 82f026ca4d133e3f · report
_mlp_forward fasterdecoding/teal/teal/model.py official repository unverified MIT (permissive) · 8f9f6dcb910a3d1e · report
_monkeypatch_layer fasterdecoding/teal/teal/model.py official repository unverified MIT (permissive) · 9d238e7c8da0339a · report
_monkeypatch_mlp fasterdecoding/teal/teal/model.py official repository unverified MIT (permissive) · 31cd3abe1ae1c21e · report
_monkeypatch_self_attn fasterdecoding/teal/teal/model.py official repository unverified MIT (permissive) · f89bf27e96be35db · report

Tasks

Quantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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