SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.05817 · CVPR · 2024

SAFDNet: A Simple and Effective Network for Fully Sparse 3D Object Detection

Xiaolin Hu, Si Liu, Gang Zhang, Junnan Chen, Guohuan Gao, Jianmin Li

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 0 have no contract verdict; 7 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/2403.05817.json · badge: /api/ran/2403.05817.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
zhanggang001/HEDNet canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
FunctionStatusWhere it lives
cfg_from_yaml_file Ran
ran; our contract draft was wrong, not the code
zhanggang001/HEDNet/pcdet/config.py
code served (permissive licence) · get_code("44db2351bcc0bffe")
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 EasyDict. 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 yaml
from easydict import EasyDict
import tempfile
import os

# Create temporary YAML files for testing
temp_dir = tempfile.mkdtemp()

# Create a base config file
base_config_path = os.path.join(temp_dir, 'base_config.yaml')
with open(base_config_path, 'w') as f:
    yaml.dump({
        'model': {
            'layers': 3,
            'hidden_dim': 64
        },
        'learning_rate': 0.001,
        'batch_size': 32
    }, f)

# Create main config file that references base config
main_config_path = os.path.join(temp_dir, 'main_config.yaml')
with open(main_config_path, 'w') as f:
    yaml.dump({
        '_BASE_CONFIG_': base_config_path,
        'model': {
            'layers': 5
        },
        'epochs': 100,
        'learning_rate': 0.01
    }, f)

# Initialize config as EasyDict
initial_config = EasyDict()

ARGS = {
    'cfg_file': main_config_path,
    'config': initial_config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
easydict, yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EasyDict — a EasyDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a EasyDict 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
compute_fg_mask Ran
ran; our contract draft was wrong, not the code
zhanggang001/HEDNet/pcdet/utils/loss_utils.py
code served (permissive licence) · get_code("65fe32ede00e7dcb")
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, 128, 256) 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)

# gt_boxes2d: (B, N, 4) tensor with 2D box coordinates [u1, v1, u2, v2]
# B=2 (batch size), N=3 (number of boxes), 4 coordinates per box
gt_boxes2d = torch.tensor([
    [[10.5, 20.5, 50.5, 60.5],
     [5.0, 10.0, 30.0, 40.0],
     [70.0, 80.0, 100.0, 120.0]],
    [[15.5, 25.5, 55.5, 65.5],
     [8.0, 12.0, 32.0, 42.0],
     [75.0, 85.0, 105.0, 125.0]]
], dtype=torch.float32)

# shape: desired output mask shape (B, H, W) = (2, 128, 256)
shape = torch.Size([2, 128, 256])

# downsample_factor: integer downsampling factor
downsample_factor = 2

# device: torch device (CPU only)
device = torch.device('cpu')

ARGS = {
    'gt_boxes2d': gt_boxes2d,
    'shape': shape,
    'downsample_factor': downsample_factor,
    'device': device
}
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, 128, 256) — shape (2, 128, 256) 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
merge_new_config Ran
ran; our contract draft was wrong, not the code
zhanggang001/HEDNet/pcdet/config.py
code served (permissive licence) · get_code("50e8e8cdfc5129f0")
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 EasyDict. 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 yaml
from easydict import EasyDict
import tempfile
import os

# Create a temporary base config file
temp_dir = tempfile.mkdtemp()
base_config_path = os.path.join(temp_dir, 'base_config.yaml')

base_config_content = """
model:
  type: simple
  layers: 3
learning_rate: 0.001
batch_size: 32
"""

with open(base_config_path, 'w') as f:
    f.write(base_config_content)

# Create the base config as an EasyDict
config = EasyDict({
    'model': EasyDict({'type': 'simple', 'layers': 3}),
    'learning_rate': 0.001,
    'batch_size': 32
})

# Create the new_config with _BASE_CONFIG_ pointing to our temp file
new_config = {
    '_BASE_CONFIG_': base_config_path,
    'learning_rate': 0.01,
    'model': {
        'layers': 5
    },
    'optimizer': 'adam'
}

ARGS = {
    'config': config,
    'new_config': new_config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
easydict, yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EasyDict — a EasyDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a EasyDict 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
neg_loss_cornernet Ran
ran; our contract draft was wrong, not the code
zhanggang001/HEDNet/pcdet/utils/loss_utils.py
code served (permissive licence) · get_code("488b91d67a807558")
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)

# pred: (batch x c x h x w) - predictions, should be probabilities in (0, 1)
# gt: (batch x c x h x w) - ground truth, values in [0, 1]
# mask: (batch x h x w) - optional spatial mask

batch_size = 2
num_channels = 4
height = 3
width = 5

# Create pred tensor - predictions (batch x c x h x w)
# Use values between 0.1 and 0.9 to avoid log(0) or log(1) issues
pred = torch.rand(batch_size, num_channels, height, width) * 0.8 + 0.1

# Create gt tensor - ground truth with mostly 0s and some 1s (batch x c x h x w)
gt = torch.zeros(batch_size, num_channels, height, width)
gt[0, 0, 0, 0] = 1.0
gt[1, 2, 1, 2] = 1.0

# Create mask tensor - spatial mask (batch x h x w)
mask = torch.ones(batch_size, height, width)
mask[0, 0, 0] = 0.0  # mask out one position

ARGS = {
    "pred": pred,
    "gt": gt,
    "mask": mask,
}
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
post_act_block_dense Ran
ran; our contract draft was wrong, not the code
zhanggang001/HEDNet/pcdet/models/backbones_3d/spconv_backbone_2d.py
code served (permissive licence) · get_code("0d095007c24b14c0")
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 = {
    "in_channels": 3,
    "out_channels": 16,
    "kernel_size": 3,
    "stride": 1,
    "padding": 1,
    "dilation": 1,
    "norm_fn": nn.BatchNorm2d,
}
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
post_act_block_dense_1d Ran
ran; our contract draft was wrong, not the code
zhanggang001/HEDNet/pcdet/models/model_utils/hednet_utils.py
code served (permissive licence) · get_code("2817a0301783631c")
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
from functools import partial

torch.manual_seed(0)

norm_fn_1d = partial(nn.BatchNorm1d, eps=0.001, momentum=0.01)

ARGS = {
    'input_dim': 16,
    'output_dim': 32,
    'kernel_size': 3,
    'stride': 1,
    'padding': 1,
    'dilation': 1,
    'norm_fn': norm_fn_1d,
    'conv_type': 'conv'
}
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
post_act_block_dense_2d Ran
ran; our contract draft was wrong, not the code
zhanggang001/HEDNet/pcdet/models/model_utils/hednet_utils.py
code served (permissive licence) · get_code("4d8a9bad93483f4e")
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
from functools import partial

torch.manual_seed(0)

norm_fn_2d = partial(nn.BatchNorm2d, eps=0.001, momentum=0.01)

ARGS = {
    'input_dim': 3,
    'output_dim': 16,
    'kernel_size': 3,
    'stride': 1,
    'padding': 1,
    'dilation': 1,
    'groups': 1,
    'norm_fn': norm_fn_2d,
    'conv_type': 'conv'
}
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
get_corner_loss_lidar Not yet run
unverified (harvested, no recorded run)
zhanggang001/HEDNet/pcdet/utils/loss_utils.py
code served (permissive licence) · get_code("1780d388cc532a6d")
How it ran

no invocation recorded.

post_act_block Not yet run
unverified (harvested, no recorded run)
zhanggang001/HEDNet/pcdet/models/backbones_3d/spconv_backbone.py
code served (permissive licence) · get_code("2b4e0558df870bf9")
How it ran

no invocation recorded.

post_act_block Not yet run
unverified (harvested, no recorded run)
zhanggang001/HEDNet/pcdet/models/backbones_3d/spconv_backbone_2d.py
code served (permissive licence) · get_code("016a882194742fe9")
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, 8 the same month, 8 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
get_corner_loss_lidar 49 other papers
32 dated earlier, 1 the same month, 15 later, 1 same year, order not determinable
1907.03670 (2019-07)
From Points to Parts: 3D Object Detection from Point Cloud with Part-aware and Part-aggregation Network
1912.13192 (2019-12)
PV-RCNN: Point-Voxel Feature Set Abstraction for 3D Object Detection
2005.10821 (2020-05)
Hierarchical Multi-Scale Attention for Semantic Segmentation
and 46 more not named here
cfg_from_yaml_file 37 other papers
22 dated earlier, 1 the same month, 12 later, 2 same year, order not determinable
1907.03670 (2019-07)
From Points to Parts: 3D Object Detection from Point Cloud with Part-aware and Part-aggregation Network
2104.11896 (2021-04)
M3DeTR: Multi-representation, Multi-scale, Mutual-relation 3D Object Detection with Transformers
2203.10314 (2022-03)
Voxel Set Transformer: A Set-to-Set Approach to 3D Object Detection from Point Clouds
and 34 more not named here
compute_fg_mask 35 other papers
22 dated earlier, 1 the same month, 11 later, 1 same year, order not determinable
1907.03670 (2019-07)
From Points to Parts: 3D Object Detection from Point Cloud with Part-aware and Part-aggregation Network
2104.11896 (2021-04)
M3DeTR: Multi-representation, Multi-scale, Mutual-relation 3D Object Detection with Transformers
2105.00373 (2021-05)
Investigating the Impact of Multi-LiDAR Placement on Object Detection for Autonomous Driving
and 32 more not named here
merge_new_config 35 other papers
20 dated earlier, 1 the same month, 12 later, 2 same year, order not determinable
1907.03670 (2019-07)
From Points to Parts: 3D Object Detection from Point Cloud with Part-aware and Part-aggregation Network
2104.11896 (2021-04)
M3DeTR: Multi-representation, Multi-scale, Mutual-relation 3D Object Detection with Transformers
2203.10314 (2022-03)
Voxel Set Transformer: A Set-to-Set Approach to 3D Object Detection from Point Clouds
and 32 more not named here
neg_loss_cornernet 32 other papers
19 dated earlier, 1 the same month, 10 later, 2 same year, order not determinable
1907.03670 (2019-07)
From Points to Parts: 3D Object Detection from Point Cloud with Part-aware and Part-aggregation Network
2104.11896 (2021-04)
M3DeTR: Multi-representation, Multi-scale, Mutual-relation 3D Object Detection with Transformers
2203.10314 (2022-03)
Voxel Set Transformer: A Set-to-Set Approach to 3D Object Detection from Point Clouds
and 29 more not named here
post_act_block 28 other papers
17 dated earlier, 1 the same month, 9 later, 1 same year, order not determinable
1907.03670 (2019-07)
From Points to Parts: 3D Object Detection from Point Cloud with Part-aware and Part-aggregation Network
2104.11896 (2021-04)
M3DeTR: Multi-representation, Multi-scale, Mutual-relation 3D Object Detection with Transformers
2203.10314 (2022-03)
Voxel Set Transformer: A Set-to-Set Approach to 3D Object Detection from Point Clouds
and 25 more not named here
post_act_block_dense 10 other papers
4 dated earlier, 1 the same month, 4 later, 1 same year, order not determinable
1907.03670 (2019-07)
From Points to Parts: 3D Object Detection from Point Cloud with Part-aware and Part-aggregation Network
2308.07732 (2023-08)
UniTR: A Unified and Efficient Multi-Modal Transformer for Bird's-Eye-View Representation
03732 (2024 (year only))
TCC-Det: Temporarily consistent cues for weakly-supervised 3D detection
and 7 more not named here
post_act_block 9 other papers
4 dated earlier, 1 the same month, 4 later
1907.03670 (2019-07)
From Points to Parts: 3D Object Detection from Point Cloud with Part-aware and Part-aggregation Network
2308.07732 (2023-08)
UniTR: A Unified and Efficient Multi-Modal Transformer for Bird's-Eye-View Representation
2401.00912 (2024-01)
ScatterFormer: Efficient Voxel Transformer with Scattered Linear Attention
and 6 more not named here

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 object detection plays an essential role in autonomous driving. Existing high-performing 3D object detectors usually build dense feature maps in the backbone network and prediction head. However, the computational costs introduced by the dense feature maps grow quadratically as the perception range increases, making these models hard to scale up to long-range detection. Some recent works have attempted to construct fully sparse detectors to solve this issue; nevertheless, the resulting models either rely on a complex multi-stage pipeline or exhibit inferior performance. In this work, we propose a fully sparse adaptive feature diffusion network (SAFDNet) for LiDAR-based 3D object detection. In SAFDNet, an adaptive feature diffusion strategy is designed to address the center feature missing problem. We conducted extensive experiments on Waymo Open, nuScenes, and Argoverse2 datasets. SAFDNet performed slightly better than the previous SOTA on the first two datasets but much better on the last dataset, which features long-range detection, verifying the efficacy of SAFDNet in scenarios where long-range detection is required. Notably, on Argoverse2, SAFDNet surpassed the previous best hybrid detector HEDNet by 2.6% mAP while being 2.1× faster, and yielded 2.1% mAP gains over the previous best sparse detector FSDv2 while being 1.3× faster. The code will be available at https://github.com/zhanggang001/HEDNet.

For agents

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

get_harvested_code_for_paper("2403.05817")
get_code_for_paper("2403.05817")
have("2403.05817")

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

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

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

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

Connect an agent — have() is free.