Papers › Accelerating Diffusion Transformers with Token-wise Feature Caching

Accelerating Diffusion Transformers with Token-wise Feature Caching

5 Oct 2024arXiv:2410.05317archive 2025-07-28

Chang Zou, Xuyang Liu, Ting Liu, Siteng Huang, Linfeng Zhang

Diffusion transformers have shown significant effectiveness in both image and video synthesis at the expense of huge computation costs. To address this problem, feature caching methods have been introduced to accelerate diffusion transformers by caching the features in previous timesteps and reusing them in the following timesteps. However, previous caching methods ignore that different tokens exhibit different sensitivities to feature caching, and feature caching on some tokens may lead to 10× more destruction to the overall generation quality compared with other tokens. In this paper, we introduce token-wise feature caching, allowing us to adaptively select the most suitable tokens for caching, and further enable us to apply different caching ratios to neural layers in different types and depths. Extensive experiments on PixArt-α, OpenSora, and DiT demonstrate our effectiveness in both image and video generation with no requirements for training. For instance, 2.36× and 1.93× acceleration are achieved on OpenSora and PixArt-α with almost no drop in generation quality.

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

Code

Syntology Ran 10 of 13 code samples harvested from 2 repositories linked to this paper; 3 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract; 4 ran · fixture could not drive it; 3 ran with no contract checked.

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

Shenyi-Z/ToCa officialmentioned in papermentioned on GitHubpytorch report
shenyi-z/duca 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

13 samples harvested; 10 ran; 2 honoured the contract we drafted; 3 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.

2ran · honoured contract
1ran · violated contract
4ran · fixture could not drive it
3ran
3unverified

Licence: 13 of the 13 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 2 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.

attn_score Shenyi-Z/ToCa/PixArt-alpha-ToCa/diffusion/model/cache_functions/cache_cutfresh.py official repository ran · honoured contract GPL-3.0 (copyleft) · pointer only · 4e293dc87bdfee20 · report
fresh_ratio_scheduler Shenyi-Z/ToCa/PixArt-alpha-ToCa/diffusion/model/cache_functions/cache_cutfresh.py official repository ran · honoured contract GPL-3.0 (copyleft) · pointer only · 197ebe37931d403b · report
local_selection_with_bonus Shenyi-Z/ToCa/PixArt-alpha-ToCa/diffusion/model/cache_functions/cache_cutfresh.py official repository ran · fixture could not drive it fingerprinted GPL-3.0 (copyleft) · pointer only · bd60c5aeb25295c0 · report
norm_score Shenyi-Z/ToCa/PixArt-alpha-ToCa/diffusion/model/cache_functions/cache_cutfresh.py official repository ran · violated contract GPL-3.0 (copyleft) · pointer only · a2f810a673cf074a · report
similarity_score Shenyi-Z/ToCa/PixArt-alpha-ToCa/diffusion/model/cache_functions/cache_cutfresh.py official repository ran · fixture could not drive it GPL-3.0 (copyleft) · pointer only · 195ca5d843403029 · report
cache_cutfresh Shenyi-Z/ToCa/PixArt-alpha-ToCa/diffusion/model/cache_functions/cache_cutfresh.py official repository unverified GPL-3.0 (copyleft) · pointer only · bac2e25d384c61d9 · report
score_evaluate Shenyi-Z/ToCa/PixArt-alpha-ToCa/diffusion/model/cache_functions/cache_cutfresh.py official repository unverified GPL-3.0 (copyleft) · pointer only · 135b93cfa6587819 · report
attn_score shenyi-z/duca/DuCa-DiT/cache_functions/cache_cutfresh.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · 346c3a66a40712b8 · report
fresh_ratio_scheduler shenyi-z/duca/DuCa-DiT/cache_functions/cache_cutfresh.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · 7cae5e5028551bec · report
kv_norm_score shenyi-z/duca/DuCa-DiT/cache_functions/cache_cutfresh.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · ab83bffc3af507ee · report
local_selection_with_bonus shenyi-z/duca/DuCa-DiT/cache_functions/cache_cutfresh.py community (archive-listed) ran · fixture could not drive it fingerprinted GPL-3.0 (copyleft) · pointer only · baf40c4c9808e3cd · report
score_evaluate shenyi-z/duca/DuCa-DiT/cache_functions/cache_cutfresh.py community (archive-listed) ran · fixture could not drive it GPL-3.0 (copyleft) · pointer only · 9d8e492d65747dec · report
cache_cutfresh shenyi-z/duca/DuCa-DiT/cache_functions/cache_cutfresh.py community (archive-listed) unverified GPL-3.0 (copyleft) · pointer only · 329975da8dd67e51 · report

Tasks

Video Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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