SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1811.12231 · 2018

ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness

Matthias Bethge, Robert Geirhos, Felix Wichmann, Wieland Brendel, Claudio Michaelis, Patricia Rubisch

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 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 3 have no contract verdict; 0 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/1811.12231.json · badge: /api/ran/1811.12231.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
mbuet2ner/local-global-features-cnn community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
LiYingwei/ShapeTextureDebiasedTraining reimplementation (classifier label)
classifier basis: classifier_2025
0 ran · 3 no recorded run
FunctionStatusWhere it lives
channels_first Ran
ran on a synthesized input
mbuet2ner/local-global-features-cnn/utils/ScrambleImage.py
code served (permissive licence) · get_code("c0af04d826190380")
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 3, dtype family float, shape (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 numpy as np

# Create a sample image array with channels in the last dimension
# Shape: (height, width, channels) = (4, 3, 2)
image_array = np.random.rand(4, 3, 2)

ARGS = {
    "image_array": image_array
}
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 ndarray, ndim 3, dtype family float, shape (2, 4, 3) — shape (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
channels_last Ran
ran on a synthesized input
mbuet2ner/local-global-features-cnn/utils/ScrambleImage.py
code served (permissive licence) · get_code("fab2f87b04e9888a")
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 3, dtype family float, shape (4, 5, 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 numpy as np

# Create a small image array with channels in the first dimension
# Shape: (3, 4, 5) means 3 channels, 4 height, 5 width
image_array = np.random.rand(3, 4, 5)

ARGS = {
    "image_array": image_array
}
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 ndarray, ndim 3, dtype family float, shape (4, 5, 3) — shape (4, 5, 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
plot Ran
ran on a synthesized input
mbuet2ner/local-global-features-cnn/utils/utils.py
code served (permissive licence) · get_code("586aecacc7ce053c")
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 MagicMock. 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 numpy as np
import matplotlib.pyplot as plt
from unittest.mock import MagicMock

# Create a simple 2D data array
data_2d = np.random.randn(10, 12)

# Create a 3D data array
data_3d = np.random.randn(8, 10, 3)

# Create a simple xi (image input) as a 2D array
xi_2d = np.random.rand(15, 18)

# Create a 3D xi array
xi_3d = np.random.rand(15, 18, 3)

# Create a mock axis object with imshow and axis methods
mock_axis = MagicMock()
mock_axis.imshow = MagicMock(return_value=MagicMock())
mock_axis.axis = MagicMock()

ARGS = {
    'data': data_2d,
    'xi': xi_2d,
    'cmap': 'RdBu_r',
    'axis': mock_axis,
    'percentile': 100,
    'dilation': 3.0,
    'alpha': 0.8,
    '_sum': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, skimage — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MagicMock — a MagicMock output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MagicMock output the recorded ndim 1 and dtype family None 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
resnext101 Not yet run
unverified (harvested, no recorded run)
LiYingwei/ShapeTextureDebiasedTraining/models/imagenet/resnext.py
code served (permissive licence) · get_code("ebcb545a49bf2ee2")
How it ran

no invocation recorded.

resnext152 Not yet run
unverified (harvested, no recorded run)
LiYingwei/ShapeTextureDebiasedTraining/models/imagenet/resnext.py
code served (permissive licence) · get_code("fc281a9b16611bd2")
How it ran

no invocation recorded.

resnext50 Not yet run
unverified (harvested, no recorded run)
LiYingwei/ShapeTextureDebiasedTraining/models/imagenet/resnext.py
code served (permissive licence) · get_code("2c55864d4a9f367c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 2 the same month, 3 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
resnext152 4 other papers
1 the same month, 3 later
1811.05850 (2018-11)
Drop-Activation: Implicit Parameter Reduction and Harmonic Regularization
1908.04008 (2019-08)
Instance Enhancement Batch Normalization: an Adaptive Regulator of Batch Noise
2004.11627 (2020-04)
Convolution-Weight-Distribution Assumption: Rethinking the Criteria of Channel Pruning
and 1 more not named here
resnext50 4 other papers
1 the same month, 3 later
1811.05850 (2018-11)
Drop-Activation: Implicit Parameter Reduction and Harmonic Regularization
1908.04008 (2019-08)
Instance Enhancement Batch Normalization: an Adaptive Regulator of Batch Noise
2004.11627 (2020-04)
Convolution-Weight-Distribution Assumption: Rethinking the Criteria of Channel Pruning
and 1 more not named here
resnext101 1 other paper
1 later
2010.05981 (2020-10)
Shape-Texture Debiased Neural Network Training

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

Convolutional Neural Networks (CNNs) are commonly thought to recognise objects by learning increasingly complex representations of object shapes. Some recent studies suggest a more important role of image textures. We here put these conflicting hypotheses to a quantitative test by evaluating CNNs and human observers on images with a texture-shape cue conflict. We show that ImageNettrained CNNs are strongly biased towards recognising textures rather than shapes, which is in stark contrast to human behavioural evidence and reveals fundamentally different classification strategies. We then demonstrate that the same standard architecture (ResNet-50) that learns a texture-based representation on ImageNet is able to learn a shape-based representation instead when trained on 'Stylized-ImageNet', a stylized version of ImageNet. This provides a much better fit for human behavioural performance in our well-controlled psychophysical lab setting (nine experiments totalling 48,560 psychophysical trials across 97 observers) and comes with a number of unexpected emergent benefits such as improved object detection performance and previously unseen robustness towards a wide range of image distortions, highlighting advantages of a shape-based representation.

For agents

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

get_harvested_code_for_paper("1811.12231")
get_code_for_paper("1811.12231")
have("1811.12231")

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

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

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

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

Connect an agent — have() is free.