SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.12766 · CVPR · 2023

Spherical Transformer for LiDAR-based 3D Recognition

Hong Kong, Jiaya Jia, Jianhui Liu, Yukang Chen, Xin Lai, Fanbin Lu

arXiv · PDF · Open in the Atlas

Code that ran

9 of 13 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; 4 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/2303.12766.json · badge: /api/ran/2303.12766.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
dvlab-research/sphereformer canonical (classifier label)
classifier basis not recorded on the link
9 ran · 4 no recorded run
FunctionStatusWhere it lives
cart2sphere Ran
ran on a synthesized input
dvlab-research/sphereformer/model/spherical_transformer.py
code served (permissive licence) · get_code("0ded69a3ab085049")
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, 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
import numpy as np

torch.manual_seed(0)

# The function takes xyz as input
# It expects xyz to be a tensor with shape (batch_size, 3)
# where the 3 dimensions are x, y, z coordinates

xyz = torch.tensor([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0]
], dtype=torch.float32)

ARGS = {
    "xyz": xyz
}
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 (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
collate_fn_limit Ran
ran on a synthesized input
dvlab-research/sphereformer/util/data_util.py
code served (permissive licence) · get_code("a7c2ca770f470c6c")
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 torch
import logging

torch.manual_seed(0)

# Create a simple logger
logger = logging.getLogger("test_logger")

# Create sample batch items
# Each item is (coord, xyz, feat, label)
# coord: coordinates (N, 3)
# xyz: spatial coordinates (N, 3)
# feat: features (N, 4)
# label: labels (N,)

item1 = (
    torch.randn(5, 3),      # coord
    torch.randn(5, 3),      # xyz
    torch.randn(5, 4),      # feat
    torch.randint(0, 2, (5,))  # label
)

item2 = (
    torch.randn(7, 3),      # coord
    torch.randn(7, 3),      # xyz
    torch.randn(7, 4),      # feat
    torch.randint(0, 2, (7,))  # label
)

item3 = (
    torch.randn(4, 3),      # coord
    torch.randn(4, 3),      # xyz
    torch.randn(4, 4),      # feat
    torch.randint(0, 2, (4,))  # label
)

batch = [item1, item2, item3]
max_batch_points = 12

ARGS = {
    "batch": batch,
    "max_batch_points": max_batch_points,
    "logger": logger
}
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 — 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
collation_fn_voxelmean Ran
ran on a synthesized input
dvlab-research/sphereformer/util/data_util.py
code served (permissive licence) · get_code("f9f9d2518f7c1cb8")
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 torch

torch.manual_seed(0)

# Construct a batch of sample data
# Each item in batch is: (coords, xyz, feats, labels, inds_recons)

# Item 1
coords_1 = torch.randint(0, 10, (3, 4))  # 3 points, 4 coords (x,y,z,batch)
xyz_1 = torch.randn(3, 3)  # 3 points, 3 spatial dims
feats_1 = torch.randn(3, 5)  # 3 points, 5 features
labels_1 = torch.randint(0, 2, (3,))  # 3 labels
inds_recons_1 = torch.tensor([0, 1, 2])  # 3 reconstruction indices

# Item 2
coords_2 = torch.randint(0, 10, (2, 4))  # 2 points, 4 coords
xyz_2 = torch.randn(2, 3)  # 2 points, 3 spatial dims
feats_2 = torch.randn(2, 5)  # 2 points, 5 features
labels_2 = torch.randint(0, 2, (2,))  # 2 labels
inds_recons_2 = torch.tensor([0, 1])  # 2 reconstruction indices

batch = [
    (coords_1, xyz_1, feats_1, labels_1, inds_recons_1),
    (coords_2, xyz_2, feats_2, labels_2, inds_recons_2),
]

ARGS = {
    "batch": batch,
}
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 — 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
colorize Ran
ran, honoured the contract we drafted
dvlab-research/sphereformer/util/common_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Cavendish518/SFPNet, is pointer only (licence: NOASSERTION) · get_code("1dad93b61e98c32e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Cavendish518/SFPNet, 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.

exponential_split Ran
ran on a synthesized input
dvlab-research/sphereformer/model/spherical_transformer.py
code served (permissive licence) · get_code("3ca452aff97da9d5")
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, 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
import numpy as np

torch.manual_seed(0)

# Create small tensors for the function
# xyz needs shape (N, 3) where the function accesses xyz[:, 2]
xyz = torch.randn(2, 3)

# index_0 and index_1 are used to index into xyz[:, 2]
# They should contain valid indices into the first dimension
index_0 = torch.tensor([0, 1])
index_1 = torch.tensor([1, 0])

# relative_position_index is modified in place at [:, 2]
# It should have shape (N, 3) to match the indexing
relative_position_index = torch.zeros(2, 3)

# a is a scalar parameter with default value
a = 0.05 * 0.25

ARGS = {
    "xyz": xyz,
    "index_0": index_0,
    "index_1": index_1,
    "relative_position_index": relative_position_index,
    "a": a,
}
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 (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
get_logger Ran
ran; our contract draft was wrong, not the code
dvlab-research/sphereformer/util/logger.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Cavendish518/SFPNet, is pointer only (licence: NOASSERTION) · get_code("e985f384ed063aef")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Cavendish518/SFPNet, 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.

initialize_scheduler Ran
ran; our contract draft was wrong, not the code
dvlab-research/sphereformer/util/lr.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from RikkiXu/NCD_PC, is pointer only (licence: NONE) · get_code("1cfda515a69f8682")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from RikkiXu/NCD_PC, 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.

intersectionAndUnion Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dvlab-research/sphereformer/util/common_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Cavendish518/SFPNet, is pointer only (licence: NOASSERTION) · get_code("2a66f4ab6863908c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Cavendish518/SFPNet, 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_cfg_from_cfg_file Ran
ran; our contract draft was wrong, not the code
dvlab-research/sphereformer/util/config.py
code served (permissive licence) · get_code("277a13798d6d6981")
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 tempfile
import os
import yaml

# Create a temporary YAML file for testing
temp_dir = tempfile.mkdtemp()
yaml_file = os.path.join(temp_dir, "config.yaml")

# Create a valid YAML config file with the expected structure
config_data = {
    "model": {
        "name": "test_model",
        "layers": 3,
        "hidden_dim": 64
    },
    "training": {
        "learning_rate": 0.001,
        "batch_size": 32,
        "epochs": 10
    },
    "data": {
        "dataset": "cifar10",
        "split": 0.8
    }
}

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

ARGS = {
    "file": yaml_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
collation_fn_voxelmean_tta Not yet run
unverified (harvested, no recorded run)
dvlab-research/sphereformer/util/data_util.py
code served (permissive licence) · get_code("b2c35d25a8ad278c")
How it ran

no invocation recorded.

elastic Not yet run
unverified (harvested, no recorded run)
dvlab-research/sphereformer/util/semantic_kitti.py
code served (permissive licence) · get_code("921e8ddc91e0d8a6")
How it ran

no invocation recorded.

intersectionAndUnionGPU Not yet run
unverified (harvested, no recorded run)
dvlab-research/sphereformer/util/common_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Cavendish518/SFPNet, is pointer only (licence: NOASSERTION) · get_code("136834d66336e6b9")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Cavendish518/SFPNet, 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. No invocation recorded.

merge_cfg_from_list Not yet run
unverified (harvested, no recorded run)
dvlab-research/sphereformer/util/config.py
code served (permissive licence) · get_code("4efe685c6fb1ec11")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 8 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 8 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
merge_cfg_from_list 23 other papers
10 dated earlier, 12 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
load_cfg_from_cfg_file 22 other papers
10 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 19 more not named here
intersectionAndUnion 11 other papers
8 dated earlier, 2 later, 1 same year, order not determinable
2004.01658 (2020-04)
PointGroup: Dual-Set Point Grouping for 3D Instance Segmentation
Huang_PrimitiveNet_Primitive_Instance_Segmentation_With_Local_Primitive_Embedding_Under_Adversarial_ICCV_2021_paper (2021 (year only))
PrimitiveNet: Primitive Instance Segmentation with Local Primitive Embedding under Adversarial Metric
2108.05293 (2021-08)
Few-Shot Segmentation with Global and Local Contrastive Learning
and 8 more not named here
intersectionAndUnionGPU 9 other papers
4 dated earlier, 4 later, 1 same year, order not determinable
2108.05293 (2021-08)
Few-Shot Segmentation with Global and Local Contrastive Learning
2203.14508 (2022-03)
Stratified Transformer for 3D Point Cloud Segmentation
2210.06780 (2022-10)
Intermediate Prototype Mining Transformer for Few-Shot Semantic Segmentation
and 6 more not named here
colorize 4 other papers
3 dated earlier, 1 later
2108.05293 (2021-08)
Few-Shot Segmentation with Global and Local Contrastive Learning
2203.14508 (2022-03)
Stratified Transformer for 3D Point Cloud Segmentation
2210.06780 (2022-10)
Intermediate Prototype Mining Transformer for Few-Shot Semantic Segmentation
and 1 more not named here
get_logger 2 other papers
1 dated earlier, 1 later
2203.14508 (2022-03)
Stratified Transformer for 3D Point Cloud Segmentation
2407.11569 (2024-07)
SFPNet: Sparse Focal Point Network for Semantic Segmentation on General LiDAR Point Clouds
initialize_scheduler 2 other papers
1 dated earlier, 1 later
2203.14508 (2022-03)
Stratified Transformer for 3D Point Cloud Segmentation
2407.12489 (2024-07)
Dual-level Adaptive Self-Labeling for Novel Class Discovery in Point Cloud Segmentation
collation_fn_voxelmean_tta 1 other paper
1 later
2407.11569 (2024-07)
SFPNet: Sparse Focal Point Network for Semantic Segmentation on General LiDAR Point Clouds

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

LiDAR-based 3D point cloud recognition has benefited various applications. Without specially considering the Li-DAR point distribution, most current methods suffer from information disconnection and limited receptive field, especially for the sparse distant points. In this work, we study the varying-sparsity distribution of LiDAR points and present SphereFormer to directly aggregate information from dense close points to the sparse distant ones. We design radial window self-attention that partitions the space into multiple non-overlapping narrow and long windows. It overcomes the disconnection issue and enlarges the receptive field smoothly and dramatically, which significantly boosts the performance of sparse distant points. Moreover, to fit the narrow and long windows, we propose exponential splitting to yield fine-grained position encoding and dynamic feature selection to increase model representation ability. Notably, our method ranks 1 st on both nuScenes and SemanticKITTI semantic segmentation benchmarks with 81.9% and 74.8% mIoU, respectively. Also, we achieve the 3 rd place on nuScenes object detection benchmark with 72.8% NDS and 68.5% mAP. Code is available at https: // github.com/ dvlab-research/ SphereFormer.git.

For agents

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

get_harvested_code_for_paper("2303.12766")
get_code_for_paper("2303.12766")
have("2303.12766")

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

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

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

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

Connect an agent — have() is free.