SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.05874 · AAAI · 2025

MMGDreamer: Mixed-Modality Graph for Geometry-Controllable 3D Indoor Scene Generation

Chao Zhang, Yifan Xu, Guangyao Zhai, Hanqi Jiang, Zhifei Yang, Mingzhe Xing, Zhen Xiao, Keyang Lu, Jiaxing Qi, Ruifei Ma, Shenglin Yin, Jieyi Long, and 1 more

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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 6 have no contract verdict; 1 failure of our instrument; 0 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/2502.05874.json · badge: /api/ran/2502.05874.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
yangzhifeio/MMGDreamer canonical (classifier label)
classifier basis not recorded on the link
7 ran · 0 no recorded run
FunctionStatusWhere it lives
add_loss Ran
ran on a synthesized input
yangzhifeio/MMGDreamer/model/losses.py
code served (permissive licence) · get_code("71f6aeee227cbb9a")
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 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
import torch.nn as nn

torch.manual_seed(0)

# Create a small tensor for curr_loss
curr_loss = torch.tensor(0.5, requires_grad=True)

# Create a dictionary to store losses
loss_dict = {}

# Set up arguments
total_loss = torch.tensor(1.0, requires_grad=True)
loss_name = "mse_loss"
weight = 2.0

ARGS = {
    "total_loss": total_loss,
    "curr_loss": curr_loss,
    "loss_dict": loss_dict,
    "loss_name": loss_name,
    "weight": weight
}
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 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
bce_loss Ran
ran on a synthesized input
yangzhifeio/MMGDreamer/model/losses.py
code served (permissive licence) · get_code("7b45bf6a75cf0869")
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 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 bce_loss function
input_tensor = torch.randn(4, dtype=torch.float32)
target_tensor = torch.randint(0, 2, (4,), dtype=torch.float32)
reduce_flag = True

ARGS = {
    "input": input_tensor,
    "target": target_tensor,
    "reduce": reduce_flag,
}
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 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
build_mlp Ran
ran; our contract draft was wrong, not the code
yangzhifeio/MMGDreamer/model/layers.py
code served (permissive licence) · get_code("d5fa2a668d4411e5")
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 Sequential. 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_list': [8, 16, 32, 4],
    'activation': 'relu',
    'batch_norm': 'batch',
    'dropout': 0.1,
    'final_nonlinearity': 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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
calculate_model_losses Ran
ran on a synthesized input
yangzhifeio/MMGDreamer/model/losses.py
code served (permissive licence) · get_code("d854d8b53ef53f15")
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 1, 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
import torch.nn as nn

torch.manual_seed(0)

class MockWriter:
    def add_scalar(self, name, value, step):
        pass

ARGS = {
    'args': None,
    'pred': torch.randn(2, 4),
    'target': torch.randn(2, 4),
    'name': 'test_loss',
    'angles': torch.randint(0, 3, (2,)),
    'angles_pred': torch.randn(2, 3),
    'mu': torch.randn(2, 5),
    'logvar': torch.randn(2, 5),
    'KL_weight': 0.5,
    'writer': MockWriter(),
    'counter': 1,
    'withangles': 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 tuple, ndim 1, 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
load_ckpt Ran
ran on a synthesized input
yangzhifeio/MMGDreamer/dataset/threedfront_dataset.py
code served (permissive licence) · get_code("2f96282ef3f85dbe")
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 dict. 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

torch.manual_seed(0)

# The function accepts a checkpoint which can be either:
# 1. A string (file path) - but we can't use real file I/O
# 2. A state_dict (dict) - this is what we'll use

# Create a simple state_dict with some model parameters
state_dict = {
    'layer1.weight': torch.randn(4, 3),
    'layer1.bias': torch.randn(4),
    'layer2.weight': torch.randn(5, 4),
    'layer2.bias': torch.randn(5),
}

ARGS = {
    'ckpt': state_dict
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
read_all_ply Ran
ran on a synthesized input
yangzhifeio/MMGDreamer/dataset/util.py
code served (permissive licence) · get_code("b2c65dac80e05d34")
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. 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 numpy as np
from plyfile import PlyData, PlyElement
import tempfile
import os

# Create a temporary PLY file with the required structure
temp_dir = tempfile.mkdtemp()
temp_filename = os.path.join(temp_dir, "test.ply")

# Create vertex data with x, y, z, red, green, blue, and objectId
vertex_data = np.array([
    (0.0, 1.0, 2.0, 255, 128, 64, 1),
    (3.0, 4.0, 5.0, 200, 100, 50, 2),
], dtype=[('x', 'f4'), ('y', 'f4'), ('z', 'f4'), 
          ('red', 'u1'), ('green', 'u1'), ('blue', 'u1'),
          ('objectId', 'i4')])

# Create face data
face_data = np.array([
    ([0, 1, 0],),
], dtype=[('vertex_indices', 'i4', (3,))])

# Write PLY file
vertex_el = PlyElement.describe(vertex_data, 'vertex')
face_el = PlyElement.describe(face_data, 'face')
ply_data = PlyData([vertex_el, face_el])
ply_data.write(temp_filename)

ARGS = {
    "filename": temp_filename
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, plyfile — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
read_ply Ran
ran on a synthesized input
yangzhifeio/MMGDreamer/dataset/util.py
code served (permissive licence) · get_code("d99992e2baeb87d2")
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. 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 numpy as np
from plyfile import PlyData, PlyElement
import tempfile
import os

# Create a minimal valid PLY file for testing
def create_test_ply_file():
    # Create temporary file
    fd, temp_path = tempfile.mkstemp(suffix='.ply')
    os.close(fd)
    
    # Define vertex data with x, y, z coordinates
    vertex_data = np.array([
        (0.0, 1.0, 2.0),
        (3.0, 4.0, 5.0),
    ], dtype=[('x', 'f4'), ('y', 'f4'), ('z', 'f4')])
    
    # Create vertex element
    vertex_el = PlyElement.describe(vertex_data, 'vertex')
    
    # Create PLY data and write to file
    ply_data = PlyData([vertex_el])
    ply_data.write(temp_path)
    
    return temp_path

# Generate test PLY file
test_ply_filename = create_test_ply_file()

ARGS = {
    'filename': test_ply_filename,
    'points_only': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, plyfile — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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
build_mlp 3 other papers
3 dated earlier
2108.08841 (2021-08)
Graph-to-3D: End-to-End Generation and Manipulation of 3D Scenes Using Scene Graphs
2402.12259 (2024-02)
Open3DSG: Open-Vocabulary 3D Scene Graphs from Point Clouds with Queryable Objects and Open-Set Relationships
2412.08580 (2024-12)
LAION-SG: An Enhanced Large-Scale Dataset for Training Complex Image-Text Models with Structural Annotations

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

Controllable 3D scene generation has extensive applications in virtual reality and interior design, where the generated scenes should exhibit high levels of realism and controllability in terms of geometry. Scene graphs provide a suitable data representation that facilitates these applications. However, current graph-based methods for scene generation are constrained to text-based inputs and exhibit insufficient adaptability to flexible user inputs, hindering the ability to precisely control object geometry. To address this issue, we propose MMGDreamer, a dual-branch diffusion model for scene generation that incorporates a novel Mixed-Modality Graph, visual enhancement module, and relation predictor. The mixed-modality graph allows object nodes to integrate textual and visual modalities, with optional relationships between nodes. It enhances adaptability to flexible user inputs and enables meticulous control over the geometry of objects in the generated scenes. The visual enhancement module enriches the visual fidelity of text-only nodes by constructing visual representations using text embeddings. Furthermore, our relation predictor leverages node representations to infer absent relationships between nodes, resulting in more coherent scene layouts. Extensive experimental results demonstrate that MMGDreamer exhibits superior control of object geometry, achieving state-of-the-art scene generation performance.

For agents

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

get_harvested_code_for_paper("2502.05874")
get_code_for_paper("2502.05874")
have("2502.05874")

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

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

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

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

Connect an agent — have() is free.