SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.17412 · 2025

Direct3D-S2: Gigascale 3D Generation Made Easy with Spatial Sparse Attention

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 (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 4 no recorded run), measured 2026-11-24; 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/2505.17412.json · badge: /api/ran/2505.17412.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
DreamTechAI/Direct3D-S2 community (classifier label)
classifier basis not recorded on the link
6 ran · 4 no recorded run
FunctionStatusWhere it lives
get_activation Ran
ran; our contract draft was wrong, not the code
DreamTechAI/Direct3D-S2/direct3d_s2/models/refiner/unet3d.py
code served (permissive licence) · get_code("802333c05f6b9927")
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 SiLU. 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 = {
    'act_fn': 'swish'
}
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 SiLU — a SiLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SiLU 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
modulate Ran
ran; our contract draft was wrong, not the code
DreamTechAI/Direct3D-S2/direct3d_s2/modules/utils.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
patchify Ran
ran; our contract draft was wrong, not the code
DreamTechAI/Direct3D-S2/direct3d_s2/modules/spatial.py
code served (permissive licence) · get_code("e6b8cd9f318cc00b")
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, 48, 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)

# Test case 1: 2D spatial tensor (image-like)
# Shape: (N=2, C=3, H=8, W=8) with patch_size=4
x_2d = torch.randn(2, 3, 8, 8)

ARGS = {
    "x": x_2d,
    "patch_size": 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 Tensor, ndim 4, dtype family float, shape (2, 48, 2, 2) — shape (2, 48, 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
pixel_shuffle_3d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DreamTechAI/Direct3D-S2/direct3d_s2/modules/spatial.py
code served (permissive licence) · get_code("9e5521078878a448")
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 5, dtype family float, shape (2, 1, 8, 6, 10) 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 a valid input tensor
# Shape: (B, C, H, W, D)
# B=2 (batch), C=8 (channels, must be divisible by scale_factor^3)
# H=4, W=3, D=5 (distinct spatial dimensions)
x = torch.randn(2, 8, 4, 3, 5)

# Scale factor must divide C evenly: C // scale_factor^3 must be an integer
# With C=8 and scale_factor=2: C_ = 8 // 8 = 1 ✓
scale_factor = 2

ARGS = {
    "x": x,
    "scale_factor": scale_factor,
}
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 5, dtype family float, shape (2, 1, 8, 6, 10) — shape (2, 1, 8, 6, 10) 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
unpatchify Ran
ran; our contract draft was wrong, not the code
DreamTechAI/Direct3D-S2/direct3d_s2/modules/spatial.py
code served (permissive licence) · get_code("d01c19a64a056d04")
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, 4, 8, 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

torch.manual_seed(0)

# For unpatchify, we need:
# - x: a torch.Tensor with shape (N, C, *spatial)
# - patch_size: an int

# The function works with DIM = x.dim() - 2
# So if x has 4 dimensions total, DIM = 2 (2D spatial)
# The constraint is: x.shape[1] % (patch_size ** DIM) == 0

# Let's create a 2D case:
# x shape: (batch=2, channels=16, height=4, width=4)
# DIM = 2, patch_size = 2
# channels (16) must be divisible by patch_size**DIM = 2**2 = 4
# 16 % 4 == 0 ✓

x = torch.randn(2, 16, 4, 4)
patch_size = 2

ARGS = {
    "x": x,
    "patch_size": patch_size,
}
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, 4, 8, 8) — shape (2, 4, 8, 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
zero_module Ran
ran; our contract draft was wrong, not the code
DreamTechAI/Direct3D-S2/direct3d_s2/modules/utils.py
code served (permissive licence) · get_code("129b804760b3115f")
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 SimpleModule. 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)

# Create a simple module with some parameters
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
        self.conv = nn.Conv1d(2, 2, 3)
    
    def forward(self, x):
        return x

module = SimpleModule()

# Verify the module has non-zero parameters before zeroing
for p in module.parameters():
    assert p.abs().sum() > 0, "Parameters should be non-zero initially"

ARGS = {
    "module": module
}
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 SimpleModule — a SimpleModule output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModule 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_down_block Not yet run
unverified (harvested, no recorded run)
DreamTechAI/Direct3D-S2/direct3d_s2/models/refiner/unet3d.py
code served (permissive licence) · get_code("484f913e371f7172")
How it ran

no invocation recorded.

get_up_block Not yet run
unverified (harvested, no recorded run)
DreamTechAI/Direct3D-S2/direct3d_s2/models/refiner/unet3d.py
code served (permissive licence) · get_code("97a1118ec5c59ded")
How it ran

no invocation recorded.

norm_layer Not yet run
unverified (harvested, no recorded run)
DreamTechAI/Direct3D-S2/direct3d_s2/models/autoencoders/dense_vae.py
code served (permissive licence) · get_code("6818f26f5c2a59a4")
How it ran

no invocation recorded.

scale_module Not yet run
unverified (harvested, no recorded run)
DreamTechAI/Direct3D-S2/direct3d_s2/modules/utils.py
code served (permissive licence) · get_code("9136b5f9b735334b")
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, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 2 the same month, 2 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
zero_module 196 other papers
176 dated earlier, 1 the same month, 18 later, 1 same year, order not determinable · 49 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
and 193 more not named here
modulate 101 other papers
74 dated earlier, 1 the same month, 24 later, 1 same year, order not determinable, 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
scale_module 14 other papers
14 dated earlier
2303.08863 (2023-03)
Class-Guided Image-to-Image Diffusion: Cell Painting from Brightfield Images with Class Labels
2310.12190 (2023-10)
DynamiCrafter: Animating Open-domain Images with Video Diffusion Priors
2310.15587 (2023-10)
SCANDL: A Diffusion Model for Generating Synthetic Scanpaths on Texts
and 11 more not named here
get_activation 3 other papers
3 dated earlier
2310.07771 (2023-10)
DrivingDiffusion: Layout-Guided multi-view driving scene video generation with latent diffusion model
2410.10105 (2024-10)
High-Precision Dichotomous Image Segmentation via Probing Diffusion Capacity
2502.10248 (2025-02)
Step-Video-T2V Technical Report: The Practice, Challenges, and Future of Video Foundation Model
norm_layer 1 other paper
1 dated earlier
2412.01506 (2024-12)
Structured 3D Latents for Scalable and Versatile 3D Generation
patchify 1 other paper
1 dated earlier
2412.01506 (2024-12)
Structured 3D Latents for Scalable and Versatile 3D Generation
pixel_shuffle_3d 1 other paper
1 dated earlier
2412.01506 (2024-12)
Structured 3D Latents for Scalable and Versatile 3D Generation
unpatchify 1 other paper
1 dated earlier
2412.01506 (2024-12)
Structured 3D Latents for Scalable and Versatile 3D Generation

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

Repositories linked to this paper

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

Abstract

Generating high-resolution 3D shapes using volumetric representations such as Signed Distance Functions (SDFs) presents substantial computational and memory challenges. We introduce Direct3D-S2, a scalable 3D generation framework based on sparse volumes that achieves superior output quality with dramatically reduced training costs. Our key innovation is the Spatial Sparse Attention (SSA) mechanism, which greatly enhances the efficiency of Diffusion Transformer (DiT) computations on sparse volumetric data. SSA allows the model to effectively process large token sets within sparse volumes, substantially reducing computational overhead and achieving a 3.9x speedup in the forward pass and a 9.6x speedup in the backward pass. Our framework also includes a variational autoencoder (VAE) that maintains a consistent sparse volumetric format across input, latent, and output stages. Compared to previous methods with heterogeneous representations in 3D VAE, this unified design significantly improves training efficiency and stability. Our model is trained on public available datasets, and experiments demonstrate that Direct3D-S2 not only surpasses state-of-the-art methods in generation quality and efficiency, but also enables training at 1024 resolution using only 8 GPUs, a task typically requiring at least 32 GPUs for volumetric representations at 256 resolution, thus making gigascale 3D generation both practical and accessible. Project page: https://www.neural4d.com/research/direct3d-s2.

For agents

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

get_harvested_code_for_paper("2505.17412")
get_code_for_paper("2505.17412")
have("2505.17412")

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

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

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

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

Connect an agent — have() is free.