SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.09176 · 2024

Switch Diffusion Transformer: Synergizing Denoising Tasks with Sparse Mixture-of-Experts

arXiv · PDF · Open in the Atlas

Code that ran

15 of 18 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; 6 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 3 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/2403.09176.json · badge: /api/ran/2403.09176.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
byeongjun-park/Switch-DiT canonical (classifier label)
classifier basis: census
15 ran · 3 no recorded run
FunctionStatusWhere it lives
approx_standard_normal_cdf Ran
ran; our contract draft was wrong, not the code
byeongjun-park/Switch-DiT/diffusion/diffusion_utils.py
code served (permissive licence) · get_code("d6a68e210556f857")
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) and returned Tensor, ndim 2, dtype family float, shape (2, 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 torch as th
import numpy as np

th.manual_seed(0)

# The function takes a single parameter 'x' which should be a torch tensor
# It performs mathematical operations on it: tanh, pow, addition, multiplication
# So x should be a tensor of any shape

x = th.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
bipartite_matching Ran
ran; our contract draft was wrong, not the code
byeongjun-park/Switch-DiT/util/model_util.py
code served (permissive licence) · get_code("7025a15a914aa29c")
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 1, dtype family int, shape (3,) 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 scipy.optimize import linear_sum_assignment

torch.manual_seed(0)

# Analyzing the function:
# - x1: indexed as x1[:, :, None], so needs shape (batch, dim1, 1) after indexing
#   This means x1 should be (batch, dim1)
# - x2: indexed as x2[:, None], so needs shape (1, dim2) after indexing
#   This means x2 should be (batch, dim2)
# - C is computed as abs(x1[:, :, None] - x2[:, None]).sum(0)
#   x1[:, :, None] has shape (batch, dim1, 1)
#   x2[:, None] has shape (batch, 1, dim2)
#   After broadcasting and abs, shape is (batch, dim1, dim2)
#   After .sum(0), shape is (dim1, dim2)
# - C is passed to linear_sum_assignment, which expects a 2D cost matrix
# - Result is indices[1] which is converted to tensor

# Creating small distinct dimensions for clarity
x1 = torch.randn(2, 3)  # batch=2, dim1=3
x2 = torch.randn(2, 4)  # batch=2, dim2=4

ARGS = {
    "x1": x1,
    "x2": x2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family int, shape (3,) — shape (3,) 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_gating Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
byeongjun-park/Switch-DiT/util/model_util.py
code served (permissive licence) · get_code("cab0618c0a02c1dd")
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 tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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)

# Parameters for compute_gating function
k = 2  # number of top-k experts
batch_size = 2
num_experts = 4

# zeros: tensor of shape (batch_size, num_experts) initialized to zero
zeros = torch.zeros(batch_size, num_experts)

# top_k_gates: tensor of shape (batch_size, k) with gate values
top_k_gates = torch.tensor([[0.8, 0.2], [0.6, 0.4]], dtype=torch.float32)

# top_k_indices: tensor of shape (batch_size, k) with expert indices
top_k_indices = torch.tensor([[0, 2], [1, 3]], dtype=torch.long)

ARGS = {
    "k": k,
    "zeros": zeros,
    "top_k_gates": top_k_gates,
    "top_k_indices": top_k_indices,
}
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 tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
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
continuous_gaussian_log_likelihood Ran
ran; our contract draft was wrong, not the code
byeongjun-park/Switch-DiT/diffusion/diffusion_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from rerv/vdt, is pointer only (licence: NOASSERTION) · get_code("ab1c9568b4e13899")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from rerv/vdt, and GitHub could not classify the licence of that repository (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.

create_mask_tasks Ran
ran, honoured the contract we drafted
byeongjun-park/Switch-DiT/models/DiT/models.py
code served (permissive licence) · get_code("65dba4593dc4b27d")
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 2, dtype family float, shape (4, 16) 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
import numpy as np

torch.manual_seed(0)

ARGS = {
    "unit_count": 16,
    "task_count": 4,
    "beta": 0.5,
    "alpha": 4.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 16) — shape (4, 16) 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
create_mask_tasks Ran
ran, honoured the contract we drafted
byeongjun-park/Switch-DiT/models/taskrouting.py
code served (permissive licence) · get_code("0562beb66a52dbef")
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 2, dtype family float, shape (4, 8) 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
import numpy as np

torch.manual_seed(0)

ARGS = {
    "unit_count": 8,
    "task_count": 4,
    "alpha": 2.0,
    "beta": 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 8) — shape (4, 8) 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
create_npz_from_sample_folder Ran
ran; our contract draft was wrong, not the code
byeongjun-park/Switch-DiT/sample_ddp.py
code served (permissive licence) · get_code("7b21a01ae77703a3")
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) and returned str. 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 tempfile
import os
from PIL import Image
import numpy as np

# Create a temporary directory with sample PNG files
temp_dir = tempfile.mkdtemp()

# Create a few small sample PNG images (3 samples instead of 50000 for testing)
num_samples = 3
image_height = 32
image_width = 32

for i in range(num_samples):
    # Create a small RGB image array
    img_array = np.random.randint(0, 256, (image_height, image_width, 3), dtype=np.uint8)
    img = Image.fromarray(img_array, mode='RGB')
    img.save(f'{temp_dir}/{i:06d}.png')

ARGS = {
    'sample_dir': temp_dir,
    'num': num_samples,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL, numpy, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
byeongjun-park/Switch-DiT/models/DiT/models.py
code served (permissive licence) · get_code("c92c27c924b517e8")
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) and returned ndarray, ndim 2, dtype family float, shape (18, 8) 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 numpy as np

# Define ARGS dict with all parameters for get_2d_sincos_pos_embed
ARGS = {
    "embed_dim": 8,
    "grid_size": 4,
    "cls_token": True,
    "extra_tokens": 2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (18, 8) — shape (18, 8) 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_beta_schedule Ran
ran, honoured the contract we drafted
byeongjun-park/Switch-DiT/diffusion/gaussian_diffusion.py
pointer only (licence: MIT); the stored copy get_code serves, from xuyanwu/SIDDMs-UFOGen, is pointer only (licence: NONE) · get_code("3e0fa4efc22272d4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from xuyanwu/SIDDMs-UFOGen, and GitHub detected no licence in that repository 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.

get_named_beta_schedule Ran
ran, honoured the contract we drafted
byeongjun-park/Switch-DiT/diffusion/gaussian_diffusion.py
code served (permissive licence) · get_code("4f55c34a92359642")
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 ndarray, ndim 1, dtype family float, shape (100,) 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 numpy as np

# The function get_named_beta_schedule takes two parameters:
# 1. schedule_name: str - one of 'linear' or 'cosine'
# 2. num_diffusion_timesteps: int - number of diffusion timesteps

ARGS = {
    'schedule_name': 'linear',
    'num_diffusion_timesteps': 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (100,) — shape (100,) 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
mean_flat Ran
ran; our contract draft was wrong, not the code
byeongjun-park/Switch-DiT/diffusion/gaussian_diffusion.py
code served (permissive licence) · get_code("f6d7c009a8efb8b7")
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) and returned Tensor, ndim 1, dtype family float, shape (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)

# The function takes a tensor and computes mean over all non-batch dimensions
# It expects a tensor with shape (batch_size, *other_dims)
# and returns a tensor of shape (batch_size,)

# Create a small tensor with batch dimension and other dimensions
# Using distinct sizes: batch=2, dim1=4, dim2=3
tensor = torch.randn(2, 4, 3)

ARGS = {
    "tensor": tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 1, dtype family float, shape (2,) — shape (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
modulate Ran
ran; our contract draft was wrong, not the code
byeongjun-park/Switch-DiT/util/model_util.py
code served (permissive licence) · get_code("03310bba324ae4fb")
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) and returned Tensor, ndim 2, dtype family float, shape (2, 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 torch

torch.manual_seed(0)

# Create small tensors for the modulate function
# x: input tensor with shape (batch_size, feature_dim)
x = torch.randn(2, 4)

# shift: tensor that will be unsqueezed to (batch_size, 1)
# so it should have shape (batch_size,)
shift = torch.randn(2)

# scale: tensor that will be unsqueezed to (batch_size, 1)
# so it should have shape (batch_size,)
scale = torch.randn(2)

ARGS = {
    "x": x,
    "shift": shift,
    "scale": scale,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 2, dtype family float, shape (2, 4) — shape (2, 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
normal_kl Ran
ran, honoured the contract we drafted
byeongjun-park/Switch-DiT/diffusion/diffusion_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from rerv/vdt, is pointer only (licence: NOASSERTION) · get_code("8afbfc42c6ea0448")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from rerv/vdt, and GitHub could not classify the licence of that repository (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.

sample_t_batch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
byeongjun-park/Switch-DiT/models/UW.py
code served (permissive licence) · get_code("567312c76772b0dd")
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 1, dtype family int, shape (6,) 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)

batch_size = 8
clusters = [(0, 10), (5, 15), (2, 8)]
device = 'cpu'

ARGS = {
    'batch_size': batch_size,
    'clusters': clusters,
    'device': device
}
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 1, dtype family int, shape (6,) — shape (6,) 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
space_timesteps Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
byeongjun-park/Switch-DiT/diffusion/respace.py
pointer only (licence: MIT); the stored copy get_code serves, from ianyeung/mgld-vsr, is pointer only (licence: NOASSERTION) · get_code("ea9dbc131adf582e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ianyeung/mgld-vsr, and GitHub could not classify the licence of that repository (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.

download_model Not yet run
unverified (harvested, no recorded run)
byeongjun-park/Switch-DiT/download.py
pointer only (licence: MIT); 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: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from AyushRoy2001/ManifoldGD, and GitHub detected no licence in that repository 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)
byeongjun-park/Switch-DiT/download.py
pointer only (licence: MIT); the stored copy get_code serves, from AyushRoy2001/ManifoldGD, is pointer only (licence: NONE) · get_code("29947a0a94157558")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from AyushRoy2001/ManifoldGD, and GitHub detected no licence in that repository 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.

get_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
byeongjun-park/Switch-DiT/models/DiT/models.py
code served (permissive licence) · get_code("665d8a4e8f673a4c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 13 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 4 the same month, 13 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
get_2d_sincos_pos_embed_from_grid 190 other papers
74 dated earlier, 6 the same month, 109 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
normal_kl 160 other papers
91 dated earlier, 6 the same month, 61 later, 2 same year, order not determinable · 19 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 157 more not named here
approx_standard_normal_cdf 154 other papers
86 dated earlier, 6 the same month, 60 later, 2 same year, order not determinable · 17 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 151 more not named here
modulate 101 other papers
21 dated earlier, 2 the same month, 77 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
17 dated earlier, 52 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
mean_flat 60 other papers
28 dated earlier, 32 later · 25 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2201.06503 (2022-01)
Analytic-DPM: an Analytic Estimate of the Optimal Reverse Variance in Diffusion Probabilistic Models
and 57 more not named here
space_timesteps 57 other papers
26 dated earlier, 31 later · 2 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
and 54 more not named here
get_beta_schedule 31 other papers
7 dated earlier, 24 later
2202.09671 (2022-02)
TRUNCATED DIFFUSION PROBABILISTIC MODELS AND DIFFUSION-BASED ADVERSARIAL AUTO-ENCODERS
2210.07574 (2022-10)
Is synthetic data from generative models ready for image recognition?
2306.02562 (2023-06)
Video Diffusion Models with Local-Global Context Guidance
and 28 more not named here
continuous_gaussian_log_likelihood 26 other papers
6 dated earlier, 19 later, 1 same year, order not determinable
2305.13311 (2023-05)
VDT: General-purpose Video Diffusion Transformers via Mask Modeling
2306.14770 (2023-06)
ProtoDiff: Learning to Learn Prototypical Networks by Task-Guided Diffusion
2312.02139 (2023-12)
DiffiT: Diffusion Vision Transformers for Image Generation
and 23 more not named here
create_npz_from_sample_folder 23 other papers
2 dated earlier, 21 later
2401.08740 (2024-01)
SiT: Exploring Flow and Diffusion-based Generative Models with Scalable Interpolant Transformers
2402.14167 (2024-02)
T-Stitch: Accelerating Sampling in Pre-Trained Diffusion Models with Trajectory Stitching
2405.02730 (2024-05)
U-DiTs: Downsample Tokens in U-Shaped Diffusion Transformers
and 20 more not named here
download_model 14 other papers
14 later
2407.01425 (2024-07)
FORA: Fast-Forward Caching in Diffusion Transformer Acceleration
2407.11633 (2024-07)
Scaling Diffusion Transformers to 16 Billion Parameters
2408.02615 (2024-08)
LaMamba-Diff: Linear-Time High-Fidelity Diffusion Models Based on Local Attention and Mamba
and 11 more not named here
find_model 10 other papers
10 later
2407.01425 (2024-07)
FORA: Fast-Forward Caching in Diffusion Transformer Acceleration
2408.02615 (2024-08)
LaMamba-Diff: Linear-Time High-Fidelity Diffusion Models Based on Local Attention and Mamba
2409.07756 (2024-09)
DiTAS: Quantizing Diffusion Transformers via Enhanced Activation Smoothing
and 7 more not named here
get_named_beta_schedule 5 other papers
1 dated earlier, 4 later
2212.08751 (2022-12)
Point-E: A System for Generating 3D Point Clouds from Complex Prompts
2410.10812 (2024-10)
HART: Efficient Visual Generation with Hybrid Autoregressive Transformer
2411.11925 (2024-11)
Continuous Speculative Decoding for Autoregressive Image Generation
and 2 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 models have achieved remarkable success across a range of generative tasks. Recent efforts to enhance diffusion model architectures have reimagined them as a form of multi-task learning, where each task corresponds to a denoising task at a specific noise level. While these efforts have focused on parameter isolation and task routing, they fall short of capturing detailed inter-task relationships and risk losing semantic information, respectively. In response, we introduce Switch Diffusion Transformer (Switch-DiT), which establishes inter-task relationships between conflicting tasks without compromising semantic information. To achieve this, we employ a sparse mixture-of-experts within each transformer block to utilize semantic information and facilitate handling conflicts in tasks through parameter isolation. Additionally, we propose a diffusion prior loss, encouraging similar tasks to share their denoising paths while isolating conflicting ones. Through these, each transformer block contains a shared expert across all tasks, where the common and task-specific denoising paths enable the diffusion model to construct its beneficial way of synergizing denoising tasks. Extensive experiments validate the effectiveness of our approach in improving both image quality and convergence rate, and further analysis demonstrates that Switch-DiT constructs tailored denoising paths across various generation scenarios.

For agents

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

get_harvested_code_for_paper("2403.09176")
get_code_for_paper("2403.09176")
have("2403.09176")

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

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

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

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

Connect an agent — have() is free.