SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.03519 · CVPR · 2025

Do ImageNet-trained models learn shortcuts? The impact of frequency shortcuts on generalization

Shunxin Wang, Nicola Strisciuglio, Raymond Veldhuis

arXiv · PDF · Open in the Atlas

Code that ran

14 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 10 failures of our instrument; 4 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/2503.03519.json · badge: /api/ran/2503.03519.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
nis-research/hfss community
Papers with Code archive
14 ran · 4 no recorded run
FunctionStatusWhere it lives
White_Mask Ran
ran on a synthesized input · constructed an object; no result was computed
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("93097b2e633389ff")
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 an instance of its own class, White_Mask: the run constructed the object and did not call it, so no result was computed. 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.fft as fft

torch.manual_seed(0)

# Create a small mask tensor for frequency domain filtering
# The mask should match the spatial dimensions of the FFT output
mask = torch.ones(4, 5, dtype=torch.float32)

# Define ARGS dict with all parameters for White_Mask.__init__
ARGS = {
    'mask': mask,
    'flip': False
}
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 White_Mask — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a White_Mask 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
dict_to_namedtuple Ran
ran; our contract draft was wrong, not the code
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("7dade86e6e8016ce")
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 Args. 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 collections

def dict_to_namedtuple(d):
    Args = collections.namedtuple('Args', sorted(d.keys()))
    for k, v in d.items():
        if type(v) is dict:
            d[k] = dict_to_namedtuple(v)
        elif type(v) is str:
            try:
                d[k] = eval(v)
            except:
                d[k] = v
    args = Args(**d)
    return args

# Setup code to construct valid arguments
ARGS = {
    'd': {
        'learning_rate': '0.001',
        'batch_size': '32',
        'epochs': '10',
        'model_name': 'bert',
        'nested_config': {
            'hidden_dim': '256',
            'num_layers': '2'
        },
        'literal_string': 'some_string_value',
        'invalid_eval': 'this_will_not_eval_and_stays_string'
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Args — a Args 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
filter Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("3609e233a3276554")
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 (3, 4, 4) 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.fft as fft

torch.manual_seed(0)

# Create a small complex-valued tensor with shape (3, 4, 4)
# The function expects batch dimension of size 3 (it loops over range(3))
# and spatial dimensions of 4x4
x = torch.randn(3, 4, 4, dtype=torch.complex128)

# Create a mask with the same spatial dimensions as the FFT output
# The mask will be applied to y1[j, :, :] for each j in range(3)
# So it should have shape (4, 4) to match the spatial dimensions
mask = torch.ones(4, 4, dtype=torch.complex128)

ARGS = {
    "x": x,
    "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 3, dtype family float, shape (3, 4, 4) — shape (3, 4, 4) 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
gen_freqs_list Ran
ran, honoured the contract we drafted
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("052937d76a92f757")
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 list, ndim 2, dtype family int; 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

ARGS = {
    "h": 8,
    "w": 5
}
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 list, ndim 2, dtype family int — a list 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
generate_mask Ran
ran; our contract draft was wrong, not the code
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("2e0170b8a1504ca2")
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 (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)

sel_freqs = [(0, 0), (1, 1), (2, 2)]
h = 4
w = 3

ARGS = {
    "sel_freqs": sel_freqs,
    "h": h,
    "w": w,
}
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 (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
get_candidates Ran
ran; our contract draft was wrong, not the code
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("f23b96953d0f71ed")
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 list, 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 torch
import numpy as np
import pickle
import tempfile
import os

torch.manual_seed(0)
np.random.seed(0)

# Create a simple args object with all required attributes
class Args:
    def __init__(self):
        self.img_size = 64
        self.num_class = 5
        # Create a temporary mask file for stage2+
        self.temp_dir = tempfile.mkdtemp()
        self.mask_path = os.path.join(self.temp_dir, 'test_mask')
        
        # Generate a dummy S1_mask structure: dict[class][M] -> numpy array
        # S1_mask[c][M] should be a mask of shape (img_size, img_size)
        S1_mask = {}
        for c in range(self.num_class):
            S1_mask[c] = {}
            for M in range(10):
                S1_mask[c][M] = np.ones((self.img_size, self.img_size))
        
        # Save the mask
        with open(self.mask_path + '.pkl', 'wb') as f:
            pickle.dump(S1_mask, f)

args = Args()

# Define the parameters for get_candidates
num_candidates = 6  # Small number for testing
portion = 0.3  # Frequency portion to sample
stage = 'stage1'  # Start with stage1 to avoid mask loading issues

ARGS = {
    'args': args,
    'num_candidates': num_candidates,
    'portion': portion,
    'stage': stage
}
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 list, ndim 1, dtype family float — a list 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
get_dataloader Ran
ran on a synthesized input
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("302eb65e3d7d2b08")
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 DataLoader. 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.utils.data

torch.manual_seed(0)

class SimpleDataset(torch.utils.data.Dataset):
    def __init__(self, size=8):
        self.size = size
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        x = torch.randn(4)
        y = torch.tensor(idx % 2)
        return x, y

class ArgsConfig:
    def __init__(self, batch_size=2, num_workers=0):
        self.batch_size = batch_size
        self.num_workers = num_workers

args = ArgsConfig(batch_size=2, num_workers=0)
dataset = SimpleDataset(size=8)

ARGS = {
    'args': args,
    'dataset': dataset,
    'shuffle': False,
    'pin_memory': True
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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
get_next_subpolicy Ran
ran; our contract draft was wrong, not the code
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("605bc1e05087f4bb")
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 torch
import torchvision.transforms as transforms

torch.manual_seed(0)

class Args:
    def __init__(self):
        self.dataset = 'cifar10'
        self.img_size = 32

transform_candidates = [
    transforms.RandomHorizontalFlip(p=0.5),
    transforms.RandomVerticalFlip(p=0.5),
    transforms.ColorJitter(brightness=0.2),
]

ARGS = {
    'args': Args(),
    'transform_candidates': transform_candidates,
    'b': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — 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
get_topn_subpolicies_classwise Ran
ran; our contract draft was wrong, not the code
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("2d37e6f004585e77")
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 list. 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 numpy as np

torch.manual_seed(0)

class Args:
    def __init__(self):
        self.num_class = 3

# Create subpolicies: each is a tuple (name, tensor_of_scores)
# tensor_of_scores has shape [num_class] with scores for each class
subpolicies = []
for i in range(5):
    scores = torch.randn(3)  # 3 classes
    subpolicies.append((f"policy_{i}", scores))

ARGS = {
    "args": Args(),
    "subpolicies": subpolicies,
    "N": 2
}
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 list — a list 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
parse_args Ran
ran; our contract draft was wrong, not the code
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("ea5692df62e9082f")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 collections

torch.manual_seed(0)

ARGS = {
    'kwargs': {
        'dataset': 'cifar10',
        'use_cuda': False,
        'num_workers': 2,
        'batch_size': 32,
        'maskname': 'mask',
        'mask_path': 'masks',
        'model_path': 'resnet18',
        'num_class': 10,
        'P': 0.8,
        'N_B': 500,
        'stage': 'stage1',
        'ts': 0.05,
        'img_size': 224
    }
}
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
sample_frequency Ran
ran; our contract draft was wrong, not the code
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("1eecfa5954a49671")
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 list, 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 random

# Set seed for reproducibility
random.seed(0)

# Define arguments for sample_frequency
# portion: float between 0 and 1, representing the fraction of f_list to sample
# f_list: a list of frequencies (can be any numeric values)

portion = 0.5
f_list = [10.0, 20.5, 30.1, 40.3, 50.7, 60.2, 70.8, 80.4]

ARGS = {
    "portion": portion,
    "f_list": f_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
split_dataset Ran
ran; our contract draft was wrong, not the code
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("5f913213824f631e")
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 numpy as np
from sklearn.model_selection import StratifiedShuffleSplit

# Create a minimal dataset stand-in class
class SimpleDataset:
    def __init__(self, size, num_classes):
        self.targets = np.random.randint(0, num_classes, size)
    
    def __len__(self):
        return len(self.targets)

# Create a minimal args stand-in class
class ArgsConfig:
    def __init__(self, ts, seed):
        self.ts = ts
        self.seed = seed

# Construct the arguments
torch.manual_seed(0)
np.random.seed(0)

dataset = SimpleDataset(size=20, num_classes=3)
args = ArgsConfig(ts=0.3, seed=42)
k = 3
chosen_class = None

ARGS = {
    "args": args,
    "dataset": dataset,
    "k": k,
    "chosen_class": chosen_class
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, 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
validate_child Ran
ran on a synthesized input
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("ad6933c7dd4d745f")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch.nn as nn
from torch.utils.data import Dataset
import time

torch.manual_seed(0)

class SimpleDataset(Dataset):
    def __init__(self, size=4, num_classes=10):
        self.size = size
        self.num_classes = num_classes
        self.transform = None
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        image = torch.randn(3, 4, 4)
        label = idx % self.num_classes
        if self.transform:
            image = self.transform(image)
        return image, label

class SimpleModel(nn.Module):
    def __init__(self, num_classes=10):
        super().__init__()
        self.fc = nn.Linear(48, num_classes)
    
    def forward(self, x):
        x = x.view(x.size(0), -1)
        return self.fc(x)

class Args:
    def __init__(self):
        self.batch_size = 2
        self.num_workers = 0
        self.dataset = 'imagenet10'
        self.use_cuda = False

model = SimpleModel(num_classes=10)
dataset = SimpleDataset(size=4, num_classes=10)
subset_indx = [0, 1, 2, 3]
transform = nn.Identity()

ARGS = {
    'args': Args(),
    'model': model,
    'dataset': dataset,
    'subset_indx': subset_indx,
    'transform': transform,
    'device': None
}
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 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
validate_classwise Ran
ran; our contract draft was wrong, not the code
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("55e40597f228b3fc")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch.nn as nn

torch.manual_seed(0)

# Create a simple model that outputs logits
class SimpleModel(nn.Module):
    def __init__(self, num_classes=10):
        super().__init__()
        self.fc = nn.Linear(4, num_classes)
    
    def forward(self, x):
        return self.fc(x)

# Create a simple criterion
criterion = nn.CrossEntropyLoss(reduction='mean')

# Create a minimal args object
class Args:
    def __init__(self, dataset='imagenet10', use_cuda=None):
        self.dataset = dataset
        self.use_cuda = use_cuda

args = Args(dataset='imagenet10', use_cuda=None)

# Create a simple model
model = SimpleModel(num_classes=10)

# Create a valid_loader with small batches
# Each item is (images, target) where images have shape [batch_size, 4]
# and target has shape [batch_size]
valid_loader = [
    (torch.randn(2, 4), torch.randint(0, 10, (2,))),
    (torch.randn(2, 4), torch.randint(0, 10, (2,)))
]

device = None

ARGS = {
    'args': args,
    'model': model,
    'criterion': criterion,
    'valid_loader': valid_loader,
    '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 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
LFSI Not yet run
unverified (harvested, no recorded run)
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("25d9b9da400444d3")
How it ran

no invocation recorded.

get_dataset Not yet run
unverified (harvested, no recorded run)
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("afd66aeb8288064b")
How it ran

no invocation recorded.

process_fn Not yet run
unverified (harvested, no recorded run)
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("2223e054c99bf8d0")
How it ran

no invocation recorded.

search_subpolicies Not yet run
unverified (harvested, no recorded run)
nis-research/hfss/hfss/LSI.py
code served (permissive licence) · get_code("36874b7691bd1679")
How it ran

no invocation recorded.

Also present in other papers' code

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

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

Frequency shortcuts refer to specific frequency patterns that models heavily rely on for correct classification. Previous studies have shown that models trained on small image datasets often exploit such shortcuts, potentially impairing their generalization performance. However, existing methods for identifying frequency shortcuts require expensive computations and become impractical for analyzing models trained on large datasets. In this work, we propose the first approach to more efficiently analyze frequency shortcuts at a large scale. We show that both CNN and transformer models learn frequency shortcuts on Im-ageNet. We also expose that frequency shortcut solutions can yield good performance on out-of-distribution (OOD) test sets which largely retain texture information. However, these shortcuts, mostly aligned with texture patterns, hinder model generalization on rendition-based OOD test sets. These observations suggest that current OOD evaluations often overlook the impact of frequency shortcuts on model generalization. Future benchmarks could thus benefit from explicitly assessing and accounting for these shortcuts to build models that generalize across a broader range of OOD scenarios. Codes are available at https: //github.com/nis-research/hfss.

For agents

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

get_harvested_code_for_paper("2503.03519")
get_code_for_paper("2503.03519")
have("2503.03519")

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

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

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

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

Connect an agent — have() is free.