SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.01257 · 2023

Collect-and-Distribute Transformer for 3D Point Cloud Analysis

arXiv · PDF · Open in the Atlas

Code that ran

9 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; 1 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2306.01257.json · badge: /api/ran/2306.01257.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
haibo-qiu/cdformer canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
batched_bincount Ran
ran on a synthesized input
haibo-qiu/cdformer/util/common_util.py
code served (permissive licence) · get_code("537b41b22eb88694")
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 int, shape (2, 5) 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)

# Analyze the function:
# - x: tensor that will be indexed with scatter_add_, needs integer dtype
# - dim: dimension for scatter_add_ (should be valid for x's shape)
# - max_value: used to create output tensor shape (x.shape[0], max_value)

# Create a small batched integer tensor
# batch_size=2, sequence_length=4, with values suitable for bincount (0 to max_value-1)
x = torch.tensor([[0, 1, 2, 1],
                   [1, 2, 0, 2]], dtype=torch.long)

# dim should be 1 (the dimension we're binning over)
dim = 1

# max_value should be larger than any value in x
max_value = 5

ARGS = {
    'x': x,
    'dim': dim,
    'max_value': max_value
}
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 int, shape (2, 5) — shape (2, 5) 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
download_and_extract_archive Ran
ran; our contract draft was wrong, not the code
haibo-qiu/cdformer/util/modelnet40.py
pointer only (licence: MIT); the stored copy get_code serves, from Yuzhe-Fu/FlashFPS, is pointer only (licence: NOASSERTION) · get_code("b9389712035a81db")
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 Yuzhe-Fu/FlashFPS, 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.

jitter_pointcloud Ran
ran, honoured the contract we drafted
haibo-qiu/cdformer/util/shapenetpart.py
pointer only (licence: MIT); the stored copy get_code serves, from MosyMosy/Purge-Gate, is pointer only (licence: NONE) · get_code("ca8de2253f873186")
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 MosyMosy/Purge-Gate, 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.

knn_point Ran
ran on a synthesized input
haibo-qiu/cdformer/util/common_util.py
code served (permissive licence) · get_code("fc04f4bec5d8b230")
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 4, 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)

# Construct tensors for the function
# query: [B, M, C] - batch size 2, M points 3, C features 4
query = torch.randn(2, 3, 4)

# support: [B, N, C] - batch size 2, N points 5, C features 4
support = torch.randn(2, 5, 4)

# k: number of neighbors to find
k = 2

ARGS = {
    "k": k,
    "query": query,
    "support": support,
}
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 4, 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_cfg_from_cfg_file Ran
ran on a synthesized input
haibo-qiu/cdformer/util/config.py
code served (permissive licence) · get_code("2b4c4dece8574cb3")
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 CfgNode. 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 os
import tempfile
import yaml

class CfgNode(dict):
    """
    CfgNode represents an internal node in the configuration tree. It's a simple
    dict-like container that allows for attribute-based access to keys.
    """

    def __init__(self, init_dict=None, key_list=None, new_allowed=False):
        init_dict = {} if init_dict is None else init_dict
        key_list = [] if key_list is None else key_list
        for k, v in init_dict.items():
            if type(v) is dict:
                init_dict[k] = CfgNode(v, key_list=key_list + [k])
        super(CfgNode, self).__init__(init_dict)

    def __getattr__(self, name):
        if name in self:
            return self[name]
        else:
            raise AttributeError(name)

    def __setattr__(self, name, value):
        self[name] = value

    def __str__(self):

        def _indent(s_, num_spaces):
            s = s_.split('\n')
            if len(s) == 1:
                return s_
            first = s.pop(0)
            s = [num_spaces * ' ' + line for line in s]
            s = '\n'.join(s)
            s = first + '\n' + s
            return s
        r = ''
        s = []
        for k, v in sorted(self.items()):
            seperator = '\n' if isinstance(v, CfgNode) else ' '
            attr_str = '{}:{}{}'.format(str(k), seperator, str(v))
            attr_str = _indent(attr_str, 2)
            s.append(attr_str)
        r += '\n'.join(s)
        return r

    def __repr__(self):
        return '{}({})'.format(self.__class__.__name__, super(CfgNode, self).__repr__())

def load_cfg_from_cfg_file(file):
    cfg = {}
    assert os.path.isfile(file) and file.endswith('.yaml'), '{} is not a yaml file'.format(file)
    with open(file, 'r') as f:
        cfg_from_file = yaml.safe_load(f)
    for key, value in cfg_from_file.items():
        if isinstance(value, dict):
            for k, v in cfg_from_file[key].items():
                cfg[k] = v
        else:
            cfg[key] = value
    cfg = CfgNode(cfg)
    return cfg

# Create a temporary YAML config file
temp_dir = tempfile.mkdtemp()
config_file = os.path.join(temp_dir, 'test_config.yaml')

config_data = {
    'model': {
        'name': 'resnet50',
        'pretrained': True,
        'num_layers': 50
    },
    'training': {
        'batch_size': 32,
        'learning_rate': 0.001
    },
    'dataset': 'imagenet',
    'epochs': 100
}

with open(config_file, 'w') as f:
    yaml.dump(config_data, f)

ARGS = {
    'file': config_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CfgNode — a CfgNode output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CfgNode 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
load_data Ran
ran; our contract draft was wrong, not the code
haibo-qiu/cdformer/util/modelnet40.py
pointer only (licence: MIT); the stored copy get_code serves, from Yuzhe-Fu/FlashFPS, is pointer only (licence: NOASSERTION) · get_code("9ed5c671b662922a")
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 Yuzhe-Fu/FlashFPS, 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.

load_data_partseg Ran
ran on a synthesized input
haibo-qiu/cdformer/util/shapenetpart.py
code served (permissive licence) · get_code("c184fb0167df4a63")
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 os
import tempfile
import h5py
import numpy as np

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create mock HDF5 files for the test
def create_mock_h5_file(filepath, partition_type):
    """Create a small mock HDF5 file with required datasets"""
    with h5py.File(filepath, 'w') as f:
        # Create small dummy data
        data = np.random.rand(2, 2048, 3).astype('float32')  # 2 samples, 2048 points, 3 coords
        label = np.array([0, 1], dtype='int64')  # 2 sample labels
        seg = np.random.randint(0, 50, size=(2, 2048), dtype='int64')  # segmentation labels
        
        f.create_dataset('data', data=data)
        f.create_dataset('label', data=label)
        f.create_dataset('pid', data=seg)

# Create mock training file
train_file = os.path.join(temp_dir, 'shapenet_part_seg_hdf5_data', 'train_0_cls_0.h5')
os.makedirs(os.path.dirname(train_file), exist_ok=True)
create_mock_h5_file(train_file, 'train')

# Create mock test file
test_file = os.path.join(temp_dir, 'shapenet_part_seg_hdf5_data', 'test_0_cls_0.h5')
create_mock_h5_file(test_file, 'test')

# Create mock val file
val_file = os.path.join(temp_dir, 'shapenet_part_seg_hdf5_data', 'val_0_cls_0.h5')
create_mock_h5_file(val_file, 'val')

ARGS = {
    'partition': 'test',
    'DATA_DIR': os.path.join(temp_dir, 'shapenet_part_seg_hdf5_data')
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py, numpy — 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
torch_grouping_operation Ran
ran; our contract draft was wrong, not the code
haibo-qiu/cdformer/util/common_util.py
pointer only (licence: MIT); the stored copy get_code serves, from zhh6425/MotionPointNet, is pointer only (licence: NONE) · get_code("d22682eba701fc02")
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 zhh6425/MotionPointNet, 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.

translate_pointcloud Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
haibo-qiu/cdformer/util/shapenetpart.py
pointer only (licence: MIT); the stored copy get_code serves, from MosyMosy/Purge-Gate, is pointer only (licence: NONE) · get_code("791051c3e72b67d2")
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 MosyMosy/Purge-Gate, 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.

merge_cfg_from_list Not yet run
unverified (harvested, no recorded run)
haibo-qiu/cdformer/util/config.py
code served (permissive licence) · get_code("4efe685c6fb1ec11")
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, 6 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 6 later) and 4 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
merge_cfg_from_list 23 other papers
11 dated earlier, 11 later, 1 same year, order not determinable
2003.13328 (2020-03)
Strip Pooling: Rethinking Spatial Pooling for Scene Parsing
2108.05293 (2021-08)
Few-Shot Segmentation with Global and Local Contrastive Learning
2111.15174 (2021-11)
CRIS: CLIP-Driven Referring Image Segmentation
and 20 more not named here
translate_pointcloud 13 other papers
9 dated earlier, 4 later
1806.01411 (2018-06)
FlowNet3D: Learning Scene Flow in 3D Point Clouds
1906.12320 (2019-06)
PointFlow: 3D Point Cloud Generation with Continuous Normalizing Flows
1912.00195 (2019-12)
SGAS: Sequential Greedy Architecture Search
and 10 more not named here
download_and_extract_archive 4 other papers
1 dated earlier, 3 later
2205.10528 (2022-05)
PointVector: A Vector Representation In Point Cloud Analysis
2403.00762 (2024-03)
Point Cloud Mamba: Point Cloud Learning via State Space Model
2404.15010 (2024-04)
X-3D: Explicit 3D Structure Modeling for Point Cloud Recognition
and 1 more not named here
load_data 4 other papers
1 dated earlier, 3 later
2205.10528 (2022-05)
PointVector: A Vector Representation In Point Cloud Analysis
2403.00762 (2024-03)
Point Cloud Mamba: Point Cloud Learning via State Space Model
2404.15010 (2024-04)
X-3D: Explicit 3D Structure Modeling for Point Cloud Recognition
and 1 more not named here
jitter_pointcloud 3 other papers
2 dated earlier, 1 later
1906.12320 (2019-06)
PointFlow: 3D Point Cloud Generation with Continuous Normalizing Flows
2305.07805 (2023-05)
Mesh2SSM: From Surface Meshes to Statistical Shape Models of Anatomy
2509.09785 (2025-09)
Purge-Gate: Backpropagation-Free Test-Time Adaptation for Point Clouds Classification via Token purging
torch_grouping_operation 1 other paper
1 later
2404.04720 (2024-04)
On Exploring PDE Modeling for Point Cloud Video Representation Learning

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

Remarkable advancements have been made recently in point cloud analysis through the exploration of transformer architecture, but it remains challenging to effectively learn local and global structures within point clouds. In this paper, we propose a new transformer network equipped with a collect-and-distribute mechanism to communicate short- and long-range contexts of point clouds, which we refer to as CDFormer. Specifically, we first employ self-attention to capture short-range interactions within each local patch, and the updated local features are then collected into a set of proxy reference points from which we can extract long-range contexts. Afterward, we distribute the learned long-range contexts back to local points via cross-attention. To address the position clues for short- and long-range contexts, we additionally introduce the context-aware position encoding to facilitate position-aware communications between points. We perform experiments on five popular point cloud datasets, namely ModelNet40, ScanObjectNN, ShapeNetPart, S3DIS and ScanNetV2, for classification and segmentation. Results show the effectiveness of the proposed CDFormer, delivering several new state-of-the-art performances on point cloud classification and segmentation tasks. The source code is available at \url{https://github.com/haibo-qiu/CDFormer}.

For agents

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

get_harvested_code_for_paper("2306.01257")
get_code_for_paper("2306.01257")
have("2306.01257")

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

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

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

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

Connect an agent — have() is free.