SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.13561 · CVPR · 2025

WeatherGen: A Unified Diverse Weather Generator for LiDAR Point Clouds via Spider Mamba Diffusion

Jin Xie, Jian Yang, Yang Wu, Yun Zhu, Jianjun Qian, Kaihua Zhang

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 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; 2 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 6 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2504.13561.json · badge: /api/ran/2504.13561.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
wuyang98/weathergen canonical (classifier label)
classifier basis not recorded on the link
10 ran · 1 no recorded run
FunctionStatusWhere it lives
cdist_rbf Ran
ran; our contract draft was wrong, not the code
wuyang98/weathergen/metrics/bev.py
code served (permissive licence) · get_code("8786933bc5aae78d")
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

torch.manual_seed(0)

# Create small tensors for p and q
# p: shape (2, 4) - 2 points in 4-dimensional space
# q: shape (3, 4) - 3 points in 4-dimensional space
p = torch.randn(2, 4)
q = torch.randn(3, 4)

# sigma is a float parameter for the RBF kernel
sigma = 0.5

ARGS = {
    "p": p,
    "q": q,
    "sigma": sigma,
}
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, 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
components_from_spherical_harmonics Ran
ran; our contract draft was wrong, not the code
wuyang98/weathergen/models/encoding.py
code served (permissive licence) · get_code("07fc468c17c6e3d4")
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, 9) 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)

# The function expects:
# - levels: int - number of spherical harmonic levels
# - directions: tensor with shape (..., 3) where last dimension is x, y, z coordinates

# Create a small directions tensor with shape (2, 4, 3)
# This gives us a batch of 2, sequence length 4, and 3 spatial coordinates (x, y, z)
directions = torch.randn(2, 4, 3)

# levels should be an integer
levels = 3

ARGS = {
    "levels": levels,
    "directions": directions,
}
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, 9) — shape (2, 4, 9) 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
compute_frechet_distance Ran
ran, honoured the contract we drafted
wuyang98/weathergen/metrics/distribution.py
code served (permissive licence) · get_code("d671e8485cbec728")
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 float, 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 numpy as np
import scipy

np.random.seed(0)

# Create two sets of feature vectors
# Shape: (n_samples, n_features)
# Using distinct dimensions: 6 samples, 4 features
feats1 = np.random.randn(6, 4).astype(np.float32)
feats2 = np.random.randn(6, 4).astype(np.float32)

ARGS = {
    "feats1": feats1,
    "feats2": feats2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
compute_jsd_2d Ran
ran; our contract draft was wrong, not the code
wuyang98/weathergen/metrics/bev.py
code served (permissive licence) · get_code("4a22c88c27ba8887")
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 float32, 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
from scipy.spatial.distance import jensenshannon

torch.manual_seed(0)

# Create two small 2D histogram tensors
# Shape: (batch=2, height=4, width=3) - will be flattened to (2, 12)
hist1 = torch.rand(2, 4, 3) + 0.1  # Add 0.1 to ensure non-zero values
hist2 = torch.rand(2, 4, 3) + 0.1

ARGS = {
    "hist1": hist1,
    "hist2": hist2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float32, 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
compute_squared_mmd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wuyang98/weathergen/metrics/distribution.py
code served (permissive licence) · get_code("7461447a581621e6")
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 float, 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 numpy as np

np.random.seed(0)

# Create two feature matrices with shape (num_samples, feature_dim)
# Using distinct dimensions: 5 samples, 4 features
feats1 = np.random.randn(5, 4).astype(np.float32)
feats2 = np.random.randn(6, 4).astype(np.float32)

ARGS = {
    "feats1": feats1,
    "feats2": feats2,
    "num_subsets": 100,
    "max_subset_size": 1000,
}
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 float, 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
generate_polar_coords Ran
ran, honoured the contract we drafted
wuyang98/weathergen/models/encoding.py
code served (permissive licence) · get_code("2e678e95ef0c4dd1")
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 4, dtype family float, shape (1, 2, 4, 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

torch.manual_seed(0)

ARGS = {
    'H': 4,
    'W': 3,
    'device': torch.device('cpu')
}
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 4, dtype family float, shape (1, 2, 4, 3) — shape (1, 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
get_hdl64e_linear_ray_angles Ran
ran on a synthesized input
wuyang98/weathergen/evaluate_weather.py
code served (permissive licence) · get_code("e0e80565163c44db")
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 4, dtype family float, shape (1, 2, 64, 1024) 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)

ARGS = {
    "HH": 64,
    "WW": 1024,
    "device": torch.device('cpu')
}
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 4, dtype family float, shape (1, 2, 64, 1024) — shape (1, 2, 64, 1024) 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
point_cloud_to_histogram Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wuyang98/weathergen/metrics/bev.py
code served (permissive licence) · get_code("dd28dc16f21bab45")
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 (100, 100) 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)

# Create a point cloud tensor with shape (N, 3)
# N=10 points, 3 coordinates (x, y, z)
point_cloud = torch.randn(10, 3) * 50.0  # Scale to have some points in depth range

ARGS = {
    "point_cloud": point_cloud,
    "field_size": 160.0,
    "bins": 100,
    "min_depth": 3.0,
    "max_depth": 70.0,
}
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 (100, 100) — shape (100, 100) 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
resize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wuyang98/weathergen/evaluate.py
code served (permissive licence) · get_code("8907b6307e2f248b")
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) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 6, 10) 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.functional as F

torch.manual_seed(0)

# Create a small input tensor for interpolation
# F.interpolate expects input of shape (N, C, H, W) for 4D or (N, C, L) for 3D
# Using 4D tensor: batch=2, channels=4, height=3, width=5
x = torch.randn(2, 4, 3, 5)

# Define target size for interpolation
# Can be a single int for 1D, tuple of ints for 2D or 3D
size = (6, 10)

ARGS = {
    "x": x,
    "size": size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 4, dtype family float, shape (2, 4, 6, 10) — shape (2, 4, 6, 10) 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
scatter Ran
ran on a synthesized input
wuyang98/weathergen/evaluate_weather.py
code served (permissive licence) · get_code("5dded98cc63dcf0c")
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 (4, 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)

# Construct arguments for scatter function
# The function iterates over (h, w) index pairs and v values, assigning array[h, w] = v

# Create a 2D array (4x3 for distinct dimensions)
array = np.zeros((4, 3), dtype=np.float32)

# Create index as list of (h, w) tuples
index = [(0, 0), (1, 2), (2, 1), (3, 0)]

# Create value as list of scalar values
value = [1.0, 2.0, 3.0, 4.0]

ARGS = {
    "array": array,
    "index": index,
    "value": value
}
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 ndarray, ndim 2, dtype family float, shape (4, 3) — shape (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
preprocess Not yet run
unverified (harvested, no recorded run)
wuyang98/weathergen/evaluate_weather.py
code served (permissive licence) · get_code("778867a51493373f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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, 0 later) and 3 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
resize 2 other papers
2 dated earlier
2309.09256 (2023-09)
LiDAR Data Synthesis with Denoising Diffusion Probabilistic Models
2412.02241 (2024-12)
Fast LiDAR Data Generation with Rectified Flows
cdist_rbf 1 other paper
1 dated earlier
2309.09256 (2023-09)
LiDAR Data Synthesis with Denoising Diffusion Probabilistic Models
components_from_spherical_harmonics 1 other paper
1 dated earlier
2309.09256 (2023-09)
LiDAR Data Synthesis with Denoising Diffusion Probabilistic Models
compute_frechet_distance 1 other paper
1 dated earlier
2309.09256 (2023-09)
LiDAR Data Synthesis with Denoising Diffusion Probabilistic Models
compute_jsd_2d 1 other paper
1 dated earlier
2309.09256 (2023-09)
LiDAR Data Synthesis with Denoising Diffusion Probabilistic Models
compute_squared_mmd 1 other paper
1 dated earlier
2309.09256 (2023-09)
LiDAR Data Synthesis with Denoising Diffusion Probabilistic Models
generate_polar_coords 1 other paper
1 dated earlier
2309.09256 (2023-09)
LiDAR Data Synthesis with Denoising Diffusion Probabilistic Models
point_cloud_to_histogram 1 other paper
1 dated earlier
2309.09256 (2023-09)
LiDAR Data Synthesis with Denoising Diffusion Probabilistic Models

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

3D scene perception demands a large amount of adverseweather LiDAR data, yet the cost of LiDAR data collection presents a significant scaling-up challenge. To this end, a series of LiDAR simulators have been proposed. Yet, they can only simulate a single adverse weather with a single physical model, and the fidelity of the generated data is quite limited. This paper presents WeatherGen, the first unified diverse-weather LiDAR data diffusion generation framework, significantly improving fidelity. Specifically, we first design a map-based data producer, which can provide a vast amount of high-quality diverse-weather data for training purposes. Then, we utilize the diffusiondenoising paradigm to construct a diffusion model. Among them, we propose a spider mamba generator to restore the disturbed diverse weather data gradually. The spider mamba models the feature interactions by scanning the Li-DAR beam circle or central ray, excellently maintaining the physical structure of the LiDAR data. Subsequently, following the generator to transfer real-world knowledge, we design a latent feature aligner. Afterward, we devise a contrastive learning-based controller, which equips weather control signals with compact semantic knowledge through language supervision, guiding the diffusion model to generate more discriminative data. Extensive evaluations demonstrate the high generation quality of WeatherGen. Through WeatherGen, we construct the mini-weather dataset, promoting the performance of the downstream task under adverse weather conditions. Code is available: https: //github.com/wuyang98/weathergen

For agents

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

get_harvested_code_for_paper("2504.13561")
get_code_for_paper("2504.13561")
have("2504.13561")

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

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

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

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

Connect an agent — have() is free.