SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.13588 · 2024

Unveiling Redundancy in Diffusion Transformers (DiTs): A Systematic Study

arXiv · PDF · Open in the Atlas

Code that ran

7 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, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 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/2411.13588.json · badge: /api/ran/2411.13588.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
xdit-project/xdit canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
build_h3_vsa_metadata Ran
ran; our contract draft was wrong, not the code
xdit-project/xdit/xfuser/core/vsa_h3_attention.py
code served (permissive licence) · get_code("6048d66c2a6264ce")
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 MiniMaxH3VSAMetadata. 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 math

torch.manual_seed(0)

ARGS = {
    "prefix_segments": (10, 8, 5),
    "video_shape": (4, 3, 5),
    "device": torch.device("cpu"),
    "tile_shape": (4, 4, 4),
}
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 MiniMaxH3VSAMetadata — a MiniMaxH3VSAMetadata output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MiniMaxH3VSAMetadata 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
build_jenga_block_mask Ran
ran; our contract draft was wrong, not the code
xdit-project/xdit/xfuser/core/vsa_attention.py
code served (permissive licence) · get_code("2ea4980332dcbb85")
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 Tensor, ndim 4, dtype family float, shape (2, 3, 2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

# Construct tensors: [batch=2, heads=3, sequence=16, head_dim=4]
# sequence=16 is divisible by block_size=8, giving num_blocks=2
batch = 2
heads = 3
sequence = 16
head_dim = 4
block_size = 8

query = torch.randn(batch, heads, sequence, head_dim)
key = torch.randn(batch, heads, sequence, head_dim)

# Static block mask: shape [num_blocks=2, num_blocks=2]
static_block_mask = torch.zeros(2, 2, dtype=torch.bool)
static_block_mask[0, 0] = True

# Parameters
top_k = 1
prob_threshold = 0.9
first_frame_blocks = 1

ARGS = {
    'query': query,
    'key': key,
    'block_size': block_size,
    'top_k': top_k,
    'prob_threshold': prob_threshold,
    'static_block_mask': static_block_mask,
    'first_frame_blocks': first_frame_blocks,
}
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 Tensor, ndim 4, dtype family float, shape (2, 3, 2, 2) — shape (2, 3, 2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
compute_h3_vsa_topk Ran
ran, honoured the contract we drafted
xdit-project/xdit/xfuser/core/vsa_h3_attention.py
code served (permissive licence) · get_code("96d12ff78f7d783a")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 math

ARGS = {
    'sparsity': 0.3,
    'num_video_tiles': 100,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
get_device Ran
ran; our contract draft was wrong, not the code
xdit-project/xdit/xfuser/envs.py
code served (permissive licence) · get_code("b9f11de480b9aae2")
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 device. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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

torch.manual_seed(0)

# The function get_device takes a local_rank parameter (int) and returns a torch.device
# It doesn't actually use the device object in any complex way, just constructs and returns it
# So we just need to provide a valid integer for local_rank

ARGS = {
    "local_rank": 0
}
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 device — a device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a device 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
is_diffusers_import_error Ran
ran, violated the contract we drafted
xdit-project/xdit/xfuser/compat.py
code served (permissive licence) · get_code("5569fde490450b94")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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
from torch import nn

class MockImportError(ImportError):
    """Mock ImportError with name attribute for testing."""
    def __init__(self, name):
        self.name = name
        super().__init__(f"Cannot import {name}")

# Test case 1: ImportError from diffusers package
exc_diffusers = MockImportError("diffusers.models.unet")

# Test case 2: ImportError from a different package
exc_other = MockImportError("transformers.models.bert")

# Test case 3: ImportError with None name (edge case)
exc_none = MockImportError(None)

# Test case 4: ImportError with empty string name
exc_empty = MockImportError("")

# Test case 5: ImportError from diffusers_adapters (should NOT match)
exc_adapter = MockImportError("diffusers_adapters.custom")

ARGS = {
    "exc": exc_diffusers
}
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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
jenga_scheduled_drop_rate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xdit-project/xdit/xfuser/core/vsa_attention.py
code served (permissive licence) · get_code("bb417397aecb0c36")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

# Construct arguments for jenga_scheduled_drop_rate
ARGS = {
    'step_index': 5,
    'total_steps': 10,
    'drop_rates': [0.1, 0.2],
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
tile_h3_vsa_tensor Ran
ran; our contract draft was wrong, not the code
xdit-project/xdit/xfuser/core/vsa_h3_attention.py
code served (permissive licence) · get_code("a1f0fe3577596e03")
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 Tensor, ndim 4, dtype family float, shape (2, 192, 3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 math
import torch

torch.manual_seed(0)

# Define the constants and dataclass as in the function
FASTH3_VSA_TILE_SHAPE = (4, 4, 4)
FASTH3_VSA_TILE_ELEMENTS = math.prod(FASTH3_VSA_TILE_SHAPE)

from dataclasses import dataclass

@dataclass(frozen=True)
class MiniMaxH3VSAMetadata:
    """Cached mapping between packed H3 rows and the padded tile buffer."""
    total_seq_length: int
    num_prefix_tiles: int
    num_video_tiles: int
    variable_block_sizes: torch.Tensor
    packed_to_tiled_index: torch.Tensor
    tile_elements: int = FASTH3_VSA_TILE_ELEMENTS

    @property
    def num_tiles(self) -> int:
        return self.num_prefix_tiles + self.num_video_tiles

    @property
    def padded_seq_length(self) -> int:
        return self.num_tiles * self.tile_elements

# Create small tensors for testing
batch_size = 2
total_seq_length = 10
num_prefix_tiles = 1
num_video_tiles = 2
num_tiles = num_prefix_tiles + num_video_tiles
padded_seq_length = num_tiles * FASTH3_VSA_TILE_ELEMENTS
num_heads = 3
head_dim = 4

# Create input tensor [B, S, H, D]
tensor = torch.randn(batch_size, total_seq_length, num_heads, head_dim)

# Create variable_block_sizes tensor
variable_block_sizes = torch.tensor([5, 5])

# Create packed_to_tiled_index mapping
# This should map positions in [0, total_seq_length) to positions in [0, padded_seq_length)
packed_to_tiled_index = torch.arange(total_seq_length)

# Create metadata
metadata = MiniMaxH3VSAMetadata(
    total_seq_length=total_seq_length,
    num_prefix_tiles=num_prefix_tiles,
    num_video_tiles=num_video_tiles,
    variable_block_sizes=variable_block_sizes,
    packed_to_tiled_index=packed_to_tiled_index
)

ARGS = {
    "tensor": tensor,
    "metadata": metadata
}
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 Tensor, ndim 4, dtype family float, shape (2, 192, 3, 4) — shape (2, 192, 3, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
block_mask_to_delta_lut Not yet run
unverified (harvested, no recorded run)
xdit-project/xdit/xfuser/core/vsa_attention.py
code served (permissive licence) · get_code("7875bbc064147a85")
How it ran

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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 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.

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

The increased model capacity of Diffusion Transformers (DiTs) and the demand for generating higher resolutions of images and videos have led to a significant rise in inference latency, impacting real-time performance adversely. While prior research has highlighted the presence of high similarity in activation values between adjacent diffusion steps (referred to as redundancy) and proposed various caching mechanisms to mitigate computational overhead, the exploration of redundancy in existing literature remains limited, with findings often not generalizable across different DiT models. This study aims to address this gap by conducting a comprehensive investigation into redundancy across a broad spectrum of mainstream DiT models. Our experimental analysis reveals substantial variations in the distribution of redundancy across diffusion steps among different DiT models. Interestingly, within a single model, the redundancy distribution remains stable regardless of variations in input prompts, step counts, or scheduling strategies. Given the lack of a consistent pattern across diverse models, caching strategies designed for a specific group of models may not easily transfer to others. To overcome this challenge, we introduce a tool for analyzing the redundancy of individual models, enabling subsequent research to develop tailored caching strategies for specific model architectures. The project is publicly available at https://github.com/xdit-project/DiTCacheAnalysis.

For agents

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

get_harvested_code_for_paper("2411.13588")
get_code_for_paper("2411.13588")
have("2411.13588")

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

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

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

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

Connect an agent — have() is free.