SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.05848 · 2024

Wavelet Convolutions for Large Receptive Fields

arXiv · PDF · Open in the Atlas

Code that ran

7 of 14 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; 7 no recorded run), measured 2026-11-22; 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/2407.05848.json · badge: /api/ran/2407.05848.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
bgu-cs-vil/wtconv canonical (classifier label)
classifier basis: census
7 ran · 7 no recorded run
FunctionStatusWhere it lives
compute_scaled_weight Ran
ran; our contract draft was wrong, not the code
bgu-cs-vil/wtconv/fast_wtconv/cuda_haar/haar_cuda.py
code served (permissive licence) · get_code("89aebc2a59c89f7c")
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 (2, 4, 3, 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)

# The function expects:
# - weight: (C*4, 1, K, K) depthwise conv weights
# - scale: (1, C*4, 1, 1) or (C*4,) per-channel scales
# - kernel_size: int, default 3

# Let's use C=2, so C*4=8, and kernel_size=3
C = 2
C4 = C * 4  # 8
K = 3

# weight: (8, 1, 3, 3)
weight = torch.randn(C4, 1, K, K, dtype=torch.float32)

# scale: (8,) - per-channel scales
scale = torch.randn(C4, dtype=torch.float32)

# kernel_size
kernel_size = K

ARGS = {
    "weight": weight,
    "scale": scale,
    "kernel_size": kernel_size,
}
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 (2, 4, 3, 3) — shape (2, 4, 3, 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
compute_scaled_weight Ran
ran; our contract draft was wrong, not the code
bgu-cs-vil/wtconv/fast_wtconv/triton_haar/triton_haar.py
code served (permissive licence) · get_code("65aed3f0fdef124d")
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 (2, 4, 3, 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 tiny tensors matching the function's expectations
# weight: (C*4, 1, K, K) depthwise conv weights
# Let C = 2, so C*4 = 8, K = 3
C = 2
K = 3
C4 = C * 4

weight = torch.randn(C4, 1, K, K)

# scale: (1, C*4, 1, 1) or (C*4,)
# We'll use (1, C*4, 1, 1) shape
scale = torch.randn(1, C4, 1, 1)

kernel_size = K

ARGS = {
    "weight": weight,
    "scale": scale,
    "kernel_size": kernel_size,
}
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 (2, 4, 3, 3) — shape (2, 4, 3, 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
create_1d_wavelet_filter Ran
ran; our contract draft was wrong, not the code
bgu-cs-vil/wtconv/wtconv/util/wavelet.py
code served (permissive licence) · get_code("68b01718f52888a0")
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 pywt

torch.manual_seed(0)

ARGS = {
    "wave": "db1",
    "in_size": 3,
    "out_size": 5,
    "type": torch.float
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pywt, 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
create_2d_wavelet_filter Ran
ran; our contract draft was wrong, not the code
bgu-cs-vil/wtconv/wtconv/util/wavelet.py
code served (permissive licence) · get_code("1685a5e7e0c05088")
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 pywt

torch.manual_seed(0)

ARGS = {
    "wave": "db1",
    "in_size": 3,
    "out_size": 4,
    "type": torch.float32,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pywt, 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
get_input_grad Ran
ran; our contract draft was wrong, not the code
bgu-cs-vil/wtconv/erf.py
code served (permissive licence) · get_code("d944fed242e85a94")
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, 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
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal model that has forward_features method
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv = nn.Conv2d(3, 16, kernel_size=3, padding=1)
    
    def forward_features(self, x):
        # Returns tensor of shape (batch, channels, height, width)
        return self.conv(x)

model = MinimalModel()

# Create sample input tensor: (batch_size=2, channels=3, height=4, width=5)
samples = torch.randn(2, 3, 4, 5, requires_grad=True)

ARGS = {
    "model": model,
    "samples": samples
}
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 ndarray, ndim 2, dtype family float, shape (4, 5) — shape (4, 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
get_rectangle Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
bgu-cs-vil/wtconv/erf.py
code served (permissive licence) · get_code("7795b07b71124f9f")
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 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 numpy as np

# Create a small 2D numpy array (data) and a threshold value
np.random.seed(0)
data = np.random.rand(10, 10)  # 10x10 array with random values
thresh = 0.3  # threshold as a float between 0 and 1

ARGS = {
    "data": data,
    "thresh": thresh
}
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 tuple, ndim 1, 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
scaled_depthwise_conv Ran
ran; our contract draft was wrong, not the code
bgu-cs-vil/wtconv/fast_wtconv/triton_haar/triton_depthwise.py
code served (permissive licence) · get_code("84b9e513e0e6515a")
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 (2, 4, 8, 8) 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)

# Depthwise conv parameters
batch_size = 2
channels = 4
height = 8
width = 8
kernel_size = 3
padding = 1

# Input tensor (B, C, H, W)
input_tensor = torch.randn(batch_size, channels, height, width, dtype=torch.float32)

# Weight tensor (C, 1, K, K) for depthwise convolution
weight_tensor = torch.randn(channels, 1, kernel_size, kernel_size, dtype=torch.float32)

# Scale tensor (1, C, 1, 1) for per-channel scaling
scale_tensor = torch.randn(1, channels, 1, 1, dtype=torch.float32)

# Optional bias tensor (C,)
bias_tensor = torch.randn(channels, dtype=torch.float32)

ARGS = {
    "input": input_tensor,
    "weight": weight_tensor,
    "scale": scale_tensor,
    "padding": padding,
    "bias": bias_tensor,
}
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 (2, 4, 8, 8) — shape (2, 4, 8, 8) 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
fused_haar_conv_scale Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/wtconv/fast_wtconv/cuda_haar/haar_cuda.py
code served (permissive licence) · get_code("1cbae5666182a259")
How it ran

no invocation recorded.

haar2d Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/wtconv/fast_wtconv/metal_haar/haar_metal.py
code served (permissive licence) · get_code("b1afaa284fa5ea22")
How it ran

no invocation recorded.

haar2d_double Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/wtconv/fast_wtconv/metal_haar/haar_metal.py
code served (permissive licence) · get_code("98b6fd13f94b25f9")
How it ran

no invocation recorded.

ihaar2d Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/wtconv/fast_wtconv/metal_haar/haar_metal.py
code served (permissive licence) · get_code("1b783f2d139defa2")
How it ran

no invocation recorded.

process Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/wtconv/erf.py
code served (permissive licence) · get_code("88b1d8105f215aad")
How it ran

no invocation recorded.

wavelet_1d_transform Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/wtconv/wtconv/util/wavelet.py
code served (permissive licence) · get_code("be3a2755891acf65")
How it ran

no invocation recorded.

wavelet_branch Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/wtconv/fast_wtconv/cuda_haar/haar_cuda.py
code served (permissive licence) · get_code("03af63e169a4cb46")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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_rectangle 1 other paper
1 dated earlier
2309.15812 (2023-09)
Convolutional Networks with Oriented 1D Kernels

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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In recent years, there have been attempts to increase the kernel size of Convolutional Neural Nets (CNNs) to mimic the global receptive field of Vision Transformers' (ViTs) self-attention blocks. That approach, however, quickly hit an upper bound and saturated way before achieving a global receptive field. In this work, we demonstrate that by leveraging the Wavelet Transform (WT), it is, in fact, possible to obtain very large receptive fields without suffering from over-parameterization, e.g., for a $k \times k$ receptive field, the number of trainable parameters in the proposed method grows only logarithmically with $k$. The proposed layer, named WTConv, can be used as a drop-in replacement in existing architectures, results in an effective multi-frequency response, and scales gracefully with the size of the receptive field. We demonstrate the effectiveness of the WTConv layer within ConvNeXt and MobileNetV2 architectures for image classification, as well as backbones for downstream tasks, and show it yields additional properties such as robustness to image corruption and an increased response to shapes over textures. Our code is available at https://github.com/BGU-CS-VIL/WTConv.

For agents

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

get_harvested_code_for_paper("2407.05848")
get_code_for_paper("2407.05848")
have("2407.05848")

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

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

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

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

Connect an agent — have() is free.