SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.10356 · NeurIPS · 2024

FasterDiT: Towards Faster Diffusion Transformers Training without Architecture Modification

Wenyu Liu, Xinggang Wang, Cheng Wang, Jingfeng Yao

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (6 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-23; 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/2410.10356.json · badge: /api/ran/2410.10356.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
hustvl/LightningDiT community
Papers with Code archive
6 ran · 4 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input · constructed an object; no result was computed
hustvl/LightningDiT/models/lightningdit.py
code served (permissive licence) · get_code("10d58a623eb5beb1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, Attention: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "dim": 8,
    "num_heads": 2,
    "qkv_bias": False,
    "qk_norm": False,
    "attn_drop": 0.0,
    "proj_drop": 0.0,
    "norm_layer": nn.LayerNorm,
    "fused_attn": True,
    "use_rmsnorm": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Attention — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Attention output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
FinalLayer Ran
ran on a synthesized input · constructed an object; no result was computed
hustvl/LightningDiT/models/lightningdit.py
code served (permissive licence) · get_code("044b0ed1c2fd2514")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, FinalLayer: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "hidden_size": 4,
    "patch_size": 2,
    "out_channels": 3,
    "use_rmsnorm": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type FinalLayer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a FinalLayer output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
LabelEmbedder Ran
ran on a synthesized input · constructed an object; no result was computed
hustvl/LightningDiT/models/lightningdit.py
code served (permissive licence) · get_code("908133c58e4b4a36")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, LabelEmbedder: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class LabelEmbedder(nn.Module):
    """
    Embeds class labels into vector representations. Also handles label dropout for classifier-free guidance.
    Same as DiT.
    """

    def __init__(self, num_classes, hidden_size, dropout_prob):
        super().__init__()
        use_cfg_embedding = dropout_prob > 0
        self.embedding_table = nn.Embedding(num_classes + use_cfg_embedding, hidden_size)
        self.num_classes = num_classes
        self.dropout_prob = dropout_prob

    def token_drop(self, labels, force_drop_ids=None):
        """
        Drops labels to enable classifier-free guidance.
        """
        if force_drop_ids is None:
            drop_ids = torch.rand(labels.shape[0], device=labels.device) < self.dropout_prob
        else:
            drop_ids = force_drop_ids == 1
        labels = torch.where(drop_ids, self.num_classes, labels)
        return labels

    @torch.compile
    def forward(self, labels, train, force_drop_ids=None):
        use_dropout = self.dropout_prob > 0
        if train and use_dropout or force_drop_ids is not None:
            labels = self.token_drop(labels, force_drop_ids)
        embeddings = self.embedding_table(labels)
        return embeddings


num_classes = 10
hidden_size = 4
dropout_prob = 0.1

label_embedder = LabelEmbedder(
    num_classes=num_classes,
    hidden_size=hidden_size,
    dropout_prob=dropout_prob
)

labels = torch.randint(0, num_classes, (2,))
train = True
force_drop_ids = None

ARGS = {
    "num_classes": num_classes,
    "hidden_size": hidden_size,
    "dropout_prob": dropout_prob,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LabelEmbedder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LabelEmbedder output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
RMSNorm Ran
ran on a synthesized input · constructed an object; no result was computed
hustvl/LightningDiT/models/lightningdit.py
code served (permissive licence) · get_code("3777a235d6ea1491")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, RMSNorm: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# RMSNorm expects:
# - dim: int (dimension of input tensor)
# - eps: float (optional, small value for numerical stability)
# The forward method takes x (torch.Tensor) of shape (..., dim)

# Create arguments for RMSNorm initialization
dim = 4
eps = 1e-6

ARGS = {
    "dim": dim,
    "eps": eps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RMSNorm — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RMSNorm output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
SwiGLUFFN Ran
ran on a synthesized input · constructed an object; no result was computed
hustvl/LightningDiT/models/lightningdit.py
code served (permissive licence) · get_code("39fbca475083b37f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, SwiGLUFFN: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.nn.functional as F
from typing import Callable, Optional

torch.manual_seed(0)

# Define ARGS dict with all parameters for SwiGLUFFN.__init__
ARGS = {
    "in_features": 4,
    "hidden_features": 8,
    "out_features": 3,
    "act_layer": nn.SiLU,
    "drop": 0.1,
    "bias": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SwiGLUFFN — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a SwiGLUFFN output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
VisionRotaryEmbeddingFast Ran
ran on a synthesized input · constructed an object; no result was computed
hustvl/LightningDiT/models/lightningdit.py
code served (permissive licence) · get_code("64a16f9548e5d293")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, VisionRotaryEmbeddingFast: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from math import pi

torch.manual_seed(0)

ARGS = {
    'dim': 8,
    'pt_seq_len': 16,
    'ft_seq_len': 16,
    'custom_freqs': None,
    'freqs_for': 'lang',
    'theta': 10000,
    'max_freq': 10,
    'num_freqs': 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type VisionRotaryEmbeddingFast — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a VisionRotaryEmbeddingFast output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
LightningDiT Not yet run
unverified (harvested, no recorded run)
hustvl/LightningDiT/models/lightningdit.py
code served (permissive licence) · get_code("4f92bf659324e8f1")
How it ran

no invocation recorded.

LightningDiTBlock Not yet run
unverified (harvested, no recorded run)
hustvl/LightningDiT/models/lightningdit.py
code served (permissive licence) · get_code("3df6325a7d960bdc")
How it ran

no invocation recorded.

TimestepEmbedder Not yet run
unverified (harvested, no recorded run)
hustvl/LightningDiT/models/lightningdit.py
code served (permissive licence) · get_code("8f2712b9234f6ba0")
How it ran

no invocation recorded.

modulate Not yet run
unverified (harvested, no recorded run)
hustvl/LightningDiT/models/lightningdit.py
code served (permissive licence) · get_code("5ea6b9bd142d4069")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 5 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 5 later) and 5 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
RMSNorm
brick of this paper's assembly: helper
5 other papers
2 dated earlier, 3 later · 3 only as an assembly brick
2310.15747 (2023-10)
Large Language Models are Temporal and Causal Reasoners for Video Question Answering
2405.13911 (2024-05)
TOPA: Extending Large Language Models for Video Understanding via Text-Only Pre-Alignment
2602.04680 (2026-02)
Audio ControlNet for Fine-Grained Audio Generation and Editing
and 2 more not named here
modulate
brick of this paper's assembly: helper
3 other papers
3 later · 1 only as an assembly brick
2412.08781 (2024-12)
GMem: A Modular Approach for Ultra-Efficient Generative Models
2505.07447 (2025-05)
Unified Continuous Generative Models
2607.12753 (2026-07)
RFMSR: Residual Flow Matching for Image Super-Resolution
Attention
brick of this paper's assembly: model
1 other paper
1 later
2607.12753 (2026-07)
RFMSR: Residual Flow Matching for Image Super-Resolution
FinalLayer
brick of this paper's assembly: model
1 other paper
1 later
2607.12753 (2026-07)
RFMSR: Residual Flow Matching for Image Super-Resolution
SwiGLUFFN
brick of this paper's assembly: helper
1 other paper
1 later · 1 only as an assembly brick
2607.12753 (2026-07)
RFMSR: Residual Flow Matching for Image Super-Resolution

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-23.

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 (DiT) have attracted significant attention in research. However, they suffer from a slow convergence rate. In this paper, we aim to accelerate DiT training without any architectural modification. We identify the following issues in the training process: firstly, certain training strategies do not consistently perform well across different data. Secondly, the effectiveness of supervision at specific timesteps is limited. In response, we propose the following contributions: (1) We introduce a new perspective for interpreting the failure of the strategies. Specifically, we slightly extend the definition of Signal-to-Noise Ratio (SNR) and suggest observing the Probability Density Function (PDF) of SNR to understand the essence of the data robustness of the strategy. ( 2) We conduct numerous experiments and report over one hundred experimental results to empirically summarize a unified accelerating strategy from the perspective of PDF. (3) We develop a new supervision method that further accelerates the training process of DiT. Based on them, we propose FasterDiT, an exceedingly simple and practicable design strategy. With few lines of code modifications, it achieves 2.30 FID on ImageNet at 256×256 resolution with 1000 iterations, which is comparable to DiT (2.27 FID) but 7× faster in training.

For agents

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

get_harvested_code_for_paper("2410.10356")
get_code_for_paper("2410.10356")
have("2410.10356")

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

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

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

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

Connect an agent — have() is free.