SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.01199 · 2024

TinyFusion: Diffusion Transformers Learned Shallow

arXiv · PDF · Open in the Atlas

Code that ran

4 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 4 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2412.01199.json · badge: /api/ran/2412.01199.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
vainf/tinyfusion canonical (classifier label)
classifier basis: census
4 ran · 4 no recorded run
FunctionStatusWhere it lives
center_crop_arr Ran
ran; our contract draft was wrong, not the code
vainf/tinyfusion/prune_by_score.py
pointer only (licence: NONE) · get_code("1712a07966b542ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, vainf/tinyfusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_npz_from_sample_folder Ran
ran; our contract draft was wrong, not the code
vainf/tinyfusion/sample_ddp.py
pointer only (licence: NOASSERTION) · get_code("404991021d3508d4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, vainf/tinyfusion (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
vainf/tinyfusion/models.py
pointer only (licence: NONE) · get_code("c92c27c924b517e8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, vainf/tinyfusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

modulate Ran
ran; our contract draft was wrong, not the code
vainf/tinyfusion/models.py
pointer only (licence: NONE) · get_code("03310bba324ae4fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, vainf/tinyfusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_logger Not yet run
unverified (harvested, no recorded run)
vainf/tinyfusion/extract_features.py
pointer only (licence: NONE); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("8382f7e48cc8a309")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, vainf/tinyfusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

download_model Not yet run
unverified (harvested, no recorded run)
vainf/tinyfusion/download.py
pointer only (licence: NONE); the stored copy get_code serves, from AyushRoy2001/ManifoldGD, is pointer only (licence: NONE) · get_code("6a0d5ecd441905cc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, vainf/tinyfusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

find_model Not yet run
unverified (harvested, no recorded run)
vainf/tinyfusion/download.py
pointer only (licence: NOASSERTION) · get_code("c0fda29272643a5f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, vainf/tinyfusion (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
vainf/tinyfusion/models.py
pointer only (licence: NONE) · get_code("665d8a4e8f673a4c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, vainf/tinyfusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 6 the same month, 6 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_2d_sincos_pos_embed_from_grid 190 other papers
133 dated earlier, 6 the same month, 50 later, 1 same year, order not determinable · 65 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 187 more not named here
modulate 101 other papers
58 dated earlier, 5 the same month, 37 later, 1 undated · 29 only as an assembly brick
2202.04200 (2022-02)
MaskGIT: Masked Generative Image Transformer
2203.10897 (2022-03)
Unified Multivariate Gaussian Mixture for Efficient Neural Image Compression
2212.09748 (2022-12)
Scalable Diffusion Models with Transformers
and 98 more not named here
get_2d_sincos_pos_embed 69 other papers
43 dated earlier, 4 the same month, 22 later · 12 only as an assembly brick
2203.10897 (2022-03)
Unified Multivariate Gaussian Mixture for Efficient Neural Image Compression
2212.09748 (2022-12)
Scalable Diffusion Models with Transformers
2303.14389 (2023-03)
Masked Diffusion Transformer is a Strong Image Synthesizer
and 66 more not named here
center_crop_arr 37 other papers
19 dated earlier, 4 the same month, 14 later
2211.17091 (2022-11)
Refining Generative Process with Discriminator Guidance in Score-based Diffusion Models
2212.09748 (2022-12)
Scalable Diffusion Models with Transformers
2311.09257 (2023-11)
UFOGen: You Forward Once Large Scale Text-to-Image Generation via Diffusion GANs
and 34 more not named here
create_logger 14 other papers
8 dated earlier, 1 the same month, 5 later
2212.09748 (2022-12)
Scalable Diffusion Models with Transformers
2405.20337 (2024-05)
OccSora: 4D Occupancy Generation Models as World Simulators for Autonomous Driving
2406.01733 (2024-06)
Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching
and 11 more not named here
download_model 14 other papers
9 dated earlier, 2 the same month, 3 later
2403.09176 (2024-03)
Switch Diffusion Transformer: Synergizing Denoising Tasks with Sparse Mixture-of-Experts
2407.01425 (2024-07)
FORA: Fast-Forward Caching in Diffusion Transformer Acceleration
2407.11633 (2024-07)
Scaling Diffusion Transformers to 16 Billion Parameters
and 11 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Diffusion Transformers have demonstrated remarkable capabilities in image generation but often come with excessive parameterization, resulting in considerable inference overhead in real-world applications. In this work, we present TinyFusion, a depth pruning method designed to remove redundant layers from diffusion transformers via end-to-end learning. The core principle of our approach is to create a pruned model with high recoverability, allowing it to regain strong performance after fine-tuning. To accomplish this, we introduce a differentiable sampling technique to make pruning learnable, paired with a co-optimized parameter to simulate future fine-tuning. While prior works focus on minimizing loss or error after pruning, our method explicitly models and optimizes the post-fine-tuning performance of pruned models. Experimental results indicate that this learnable paradigm offers substantial benefits for layer pruning of diffusion transformers, surpassing existing importance-based and error-based methods. Additionally, TinyFusion exhibits strong generalization across diverse architectures, such as DiTs, MARs, and SiTs. Experiments with DiT-XL show that TinyFusion can craft a shallow diffusion transformer at less than 7% of the pre-training cost, achieving a 2$\times$ speedup with an FID score of 2.86, outperforming competitors with comparable efficiency. Code is available at https://github.com/VainF/TinyFusion.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2412.01199")
get_code_for_paper("2412.01199")
have("2412.01199")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2412.01199.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2412.01199.svg)](https://syntology.ai/paper/2412.01199)

Connect an agent — have() is free.