SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.19128 · 2025

SCA3D: Enhancing Cross-modal 3D Retrieval via 3D Shape and Caption Paired Data Augmentation

arXiv · PDF · Open in the Atlas

Code that ran

7 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 5 have no contract verdict; 2 failures of our instrument; 3 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.19128.json · badge: /api/ran/2502.19128.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
3dagentworld/sca3d canonical (classifier label)
classifier basis not recorded on the link
7 ran · 3 no recorded run
FunctionStatusWhere it lives
collate_fn Ran
ran on a synthesized input
3dagentworld/sca3d/SCA3D/dataloaders/data.py
code served (permissive licence) · get_code("eb503fa05caab93e")
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
import torch.utils.data as data

torch.manual_seed(0)

# The collate_fn expects a list of tuples with 6 elements each:
# (xyzrgb, caption, semantic_label, id, model_id, sentence)

# Create sample data items
batch_size = 2
num_points = 4
rgb_dim = 3
max_caption_length = 5
semantic_dim = 4

# Item 1
xyzrgb_1 = torch.randn(num_points, rgb_dim)
caption_1 = torch.tensor([1, 2, 3], dtype=torch.long)
semantic_label_1 = torch.randn(semantic_dim)
id_1 = "sample_id_1"
model_id_1 = "model_1"
sentence_1 = "a chair in the room"

# Item 2
xyzrgb_2 = torch.randn(num_points, rgb_dim)
caption_2 = torch.tensor([4, 5], dtype=torch.long)
semantic_label_2 = torch.randn(semantic_dim)
id_2 = "sample_id_2"
model_id_2 = "model_2"
sentence_2 = "a table by the window"

# Construct the data list that collate_fn will receive
data_list = [
    (xyzrgb_1, caption_1, semantic_label_1, id_1, model_id_1, sentence_1),
    (xyzrgb_2, caption_2, semantic_label_2, id_2, model_id_2, sentence_2),
]

ARGS = {
    "data": data_list
}
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
get_precomp_loader Ran
ran; our contract draft was wrong, not the code
3dagentworld/sca3d/SCA3D/dataloaders/data.py
code served (permissive licence) · get_code("9a65548557b55500")
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 DataLoader. 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 numpy as np
import pickle
import json
import os
import tempfile
from collections import defaultdict

torch.manual_seed(0)
np.random.seed(0)

# Create temporary directory for mock data
tmpdir = tempfile.mkdtemp()
shapenet_dir = tempfile.mkdtemp()
vocab_dir = os.path.join(shapenet_dir, 'vocab')
os.makedirs(vocab_dir, exist_ok=True)

# Create mock vocab JSON file
vocab_data = {
    'word_to_idx': {'<start>': 1, '<end>': 2, 'a': 3, 'red': 4, 'cube': 5},
    'idx_to_word': {1: '<start>', 2: '<end>', 3: 'a', 4: 'red', 5: 'cube'},
    'captions': [
        {'model': 'model_001', 'caption': ['a', 'red', 'cube']},
        {'model': 'model_002', 'caption': ['a', 'cube']},
    ]
}

with open(os.path.join(vocab_dir, 'shapenet.json'), 'w', encoding='utf-8') as f:
    json.dump(vocab_data, f)

# Create mock pickle data
pkl_data = {
    'model_001': (
        np.random.randn(100, 6).astype(np.float32),
        np.random.randn(100, 3).astype(np.float32),
        np.random.randint(0, 10, 100).astype(np.int32)
    ),
    'model_002': (
        np.random.randn(100, 6).astype(np.float32),
        np.random.randn(100, 3).astype(np.float32),
        np.random.randint(0, 10, 100).astype(np.int32)
    ),
}

pkl_path = os.path.join(shapenet_dir, 'precomputed.pkl')
with open(pkl_path, 'wb') as f:
    pickle.dump(pkl_data, f)

# Create mock split files
train_split_file = os.path.join(tmpdir, 'train_split.txt')
test_split_file = os.path.join(tmpdir, 'test_split.txt')
with open(train_split_file, 'w') as f:
    f.write('model_001\nmodel_002\n')
with open(test_split_file, 'w') as f:
    f.write('model_001\n')

# Create mock config object
class MockConfig:
    def __init__(self):
        self.num_points = 50
        self.pkl_path = 'precomputed.pkl'
        self.SEG_NUM = 10
        self.data_split = {
            'train_data': [train_split_file],
            'test_data': [test_split_file]
        }
        self.shapenet_path = shapenet_dir
        self.K = 5

opt = MockConfig()

# Create mock vocab
vocab = {
    'word_to_idx': vocab_data['word_to_idx'],
    'idx_to_word': vocab_data['idx_to_word']
}

ARGS = {
    'data_path': tmpdir,
    'data_split': 'train',
    'vocab': vocab,
    'opt': opt,
    'batch_size': 2,
    'shuffle': True,
    'num_workers': 0,
    'collate_fn': None
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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
l1norm Ran
ran; our contract draft was wrong, not the code
3dagentworld/sca3d/SCA3D/models/model.py
code served (permissive licence) · get_code("a1e099b0f700be6a")
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 (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
import torch.nn as nn

torch.manual_seed(0)

# Create a small tensor to normalize
# Shape: (2, 4) - batch size 2, dimension 4
X = torch.randn(2, 4)

# The function signature is: l1norm(X, dim, eps=1e-08)
# X: tensor to normalize
# dim: dimension along which to compute L1 norm
# eps: small constant to avoid division by zero

ARGS = {
    "X": X,
    "dim": 1,
    "eps": 1e-08
}
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 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
lambda_softmax_func Ran
ran on a synthesized input
3dagentworld/sca3d/SCA3D/models/model.py
code served (permissive licence) · get_code("756af0f529e8efd8")
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 3, dtype family float, shape (2, 4, 3) as a later run recorded it. 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, 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)

# The function expects:
# - inputs: tensor of shape (batch_size, max_word_len, k_parts)
# - lambda_val: scalar multiplier
# - k_parts: list/tensor of k values for each batch element

batch_size = 2
max_word_len = 4
k_parts_value = 3

# Create inputs tensor with shape (batch_size, max_word_len, k_parts_value)
inputs = torch.randn(batch_size, max_word_len, k_parts_value)

# lambda_val is a scalar multiplier
lambda_val = 0.5

# k_parts should be a list or tensor with k values for each batch element
# Based on the function's usage: k_expand = torch.Tensor(k_parts).view(-1, 1, 1)
# This suggests k_parts is something that can be converted to a tensor with shape (batch_size,)
k_parts = [2, 3]

ARGS = {
    "inputs": inputs,
    "lambda_val": lambda_val,
    "k_parts": k_parts,
}
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 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 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
multi_index_list Ran
ran on a synthesized input
3dagentworld/sca3d/utils/common_tools.py
code served (permissive licence) · get_code("a3311d58663005ac")
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 list, 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 numpy as np

torch.manual_seed(0)

# The function multi_index_list takes a list and indices, 
# and returns elements from the list at those indices.
# It's a simple indexing operation: [li[i] for i in idx]

# Create a simple list with distinct elements
li = ['a', 'b', 'c', 'd', 'e']

# Create indices to select from the list
idx = [0, 2, 4, 1]

ARGS = {
    'li': li,
    'idx': idx
}
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 list, ndim 1, dtype family float — a list 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
rotate_point Ran
ran on a synthesized input
3dagentworld/sca3d/SCA3D/dataloaders/data.py
code served (permissive licence) · get_code("4bd367b04bee9a29")
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 2, dtype family float, shape (2, 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 numpy as np

# The function expects:
# - point: array-like that can be converted to np.array and reshaped to (-1, 3)
# - rotation_angle: scalar angle in radians

# Create a small point array with shape that can be reshaped to (-1, 3)
# Using a 2x3 array (2 points, 3D coordinates each)
point = np.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])

# Rotation angle in radians (e.g., 45 degrees)
rotation_angle = np.pi / 4

ARGS = {
    "point": point,
    "rotation_angle": rotation_angle
}
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 2, dtype family float, shape (2, 3) — shape (2, 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
timer Ran
ran on a synthesized input
3dagentworld/sca3d/utils/common_tools.py
code served (permissive licence) · get_code("b522db937a918b5a")
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 function. 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 functools
import time

def timer(func):
    @functools.wraps(func)
    def time_wrapper(*args, **kwargs):
        start_time = time.time()
        res = func(*args, **kwargs)
        end_time = time.time()
        print('%s took %f second' % (func.__name__, end_time - start_time))
        return res
    return time_wrapper

def sample_function(x, y):
    """A simple function to be decorated by timer"""
    return x + y

ARGS = {
    'func': sample_function
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
emd_inference_opencv Not yet run
unverified (harvested, no recorded run)
3dagentworld/sca3d/SCA3D/models/model_utils/emd_util.py
code served (permissive licence) · get_code("2e059b3e849cc9d3")
How it ran

no invocation recorded.

emd_inference_opencv_test Not yet run
unverified (harvested, no recorded run)
3dagentworld/sca3d/SCA3D/models/model_utils/emd_util.py
code served (permissive licence) · get_code("667b2d862e57062f")
How it ran

no invocation recorded.

get_parser Not yet run
unverified (harvested, no recorded run)
3dagentworld/sca3d/utils/config.py
code served (permissive licence) · get_code("2dded4a28caa3f96")
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, 0 the same month, 1 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
l1norm 12 other papers
11 dated earlier, 1 later · 3 only as an assembly brick
1803.08024 (2018-03)
Stacked Cross Attention for Image-Text Matching
2010.03403 (2020-10)
Universal Weighting Metric Learning for Cross-Modal Matching
2101.01368 (2021-01)
Similarity Reasoning and Filtration for Image-Text Matching
and 9 more not named here
emd_inference_opencv 1 other paper
1 dated earlier
2107.01872 (2021-07)
Parts2Words: Learning Joint Embedding of Point Clouds and Texts by Bidirectional Matching between Parts and Words
emd_inference_opencv_test 1 other paper
1 dated earlier
2107.01872 (2021-07)
Parts2Words: Learning Joint Embedding of Point Clouds and Texts by Bidirectional Matching between Parts and Words
get_precomp_loader 1 other paper
1 dated earlier
2107.01872 (2021-07)
Parts2Words: Learning Joint Embedding of Point Clouds and Texts by Bidirectional Matching between Parts and Words
lambda_softmax_func 1 other paper
1 dated earlier
2107.01872 (2021-07)
Parts2Words: Learning Joint Embedding of Point Clouds and Texts by Bidirectional Matching between Parts and Words
multi_index_list 1 other paper
1 dated earlier
2107.01872 (2021-07)
Parts2Words: Learning Joint Embedding of Point Clouds and Texts by Bidirectional Matching between Parts and Words
rotate_point 1 other paper
1 dated earlier
2107.01872 (2021-07)
Parts2Words: Learning Joint Embedding of Point Clouds and Texts by Bidirectional Matching between Parts and Words
timer 1 other paper
1 dated earlier
2107.01872 (2021-07)
Parts2Words: Learning Joint Embedding of Point Clouds and Texts by Bidirectional Matching between Parts and Words

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 cross-modal 3D retrieval task aims to achieve mutual matching between text descriptions and 3D shapes. This has the potential to enhance the interaction between natural language and the 3D environment, especially within the realms of robotics and embodied artificial intelligence (AI) applications. However, the scarcity and expensiveness of 3D data constrain the performance of existing cross-modal 3D retrieval methods. These methods heavily rely on features derived from the limited number of 3D shapes, resulting in poor generalization ability across diverse scenarios. To address this challenge, we introduce SCA3D, a novel 3D shape and caption online data augmentation method for cross-modal 3D retrieval. Our approach uses the LLaVA model to create a component library, captioning each segmented part of every 3D shape within the dataset. Notably, it facilitates the generation of extensive new 3D-text pairs containing new semantic features. We employ both inter and intra distances to align various components into a new 3D shape, ensuring that the components do not overlap and are closely fitted. Further, text templates are utilized to process the captions of each component and generate new text descriptions. Besides, we use unimodal encoders to extract embeddings for 3D shapes and texts based on the enriched dataset. We then calculate fine-grained cross-modal similarity using Earth Mover's Distance (EMD) and enhance cross-modal matching with contrastive learning, enabling bidirectional retrieval between texts and 3D shapes. Extensive experiments show our SCA3D outperforms previous works on the Text2Shape dataset, raising the Shape-to-Text RR@1 score from 20.03 to 27.22 and the Text-to-Shape RR@1 score from 13.12 to 16.67. Codes can be found in https://github.com/3DAgentWorld/SCA3D.

For agents

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

get_harvested_code_for_paper("2502.19128")
get_code_for_paper("2502.19128")
have("2502.19128")

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

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

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

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

Connect an agent — have() is free.