SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.09739 · 2019

Switchable Whitening for Deep Representation Learning

arXiv · PDF · Open in the Atlas

Code that ran

2 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, 1 violated it and 0 have no contract verdict; 1 failure of our instrument; 8 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/1904.09739.json · badge: /api/ran/1904.09739.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
XingangPan/Switchable-Whitening canonical (classifier label)
classifier basis: census
2 ran · 8 no recorded run
FunctionStatusWhere it lives
conv3x3 Ran
ran; our contract draft was wrong, not the code
XingangPan/Switchable-Whitening/models/backbones/resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from lixiaotong97/DSU, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

str2bool Ran
ran, violated the contract we drafted
XingangPan/Switchable-Whitening/imagenet.py
code served (permissive licence) · get_code("f017532fc389cbfe")
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 bool, 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 argparse

def str2bool(v):
    if v.lower() in ('yes', 'true', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'false', 'f', 'n', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# Setup code to construct valid arguments
ARGS = {
    'v': 'true'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 bool, 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
accuracy Not yet run
unverified (harvested, no recorded run)
XingangPan/Switchable-Whitening/utils/common_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from kkonstantinidis/ByzShield, is pointer only (licence: NONE) · get_code("4d3faaaa1c706b0b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kkonstantinidis/ByzShield, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

densenet121 Not yet run
unverified (harvested, no recorded run)
XingangPan/Switchable-Whitening/models/backbones/densenet.py
code served (permissive licence) · get_code("8b1cc983e181dcff")
How it ran

no invocation recorded.

densenet169 Not yet run
unverified (harvested, no recorded run)
XingangPan/Switchable-Whitening/models/backbones/densenet.py
code served (permissive licence) · get_code("5ea48f2ca6d1fa45")
How it ran

no invocation recorded.

densenet201 Not yet run
unverified (harvested, no recorded run)
XingangPan/Switchable-Whitening/models/backbones/densenet.py
code served (permissive licence) · get_code("9a4ab984f0c89842")
How it ran

no invocation recorded.

dist_init Not yet run
unverified (harvested, no recorded run)
XingangPan/Switchable-Whitening/utils/distributed_utils.py
code served (permissive licence) · get_code("10acaf274853ee5d")
How it ran

no invocation recorded.

load_state Not yet run
unverified (harvested, no recorded run)
XingangPan/Switchable-Whitening/utils/common_utils.py
code served (permissive licence) · get_code("3189ae3bf8df668c")
How it ran

no invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
XingangPan/Switchable-Whitening/models/backbones/resnet.py
code served (permissive licence) · get_code("b25d4629e9a5918e")
How it ran

no invocation recorded.

resnet34 Not yet run
unverified (harvested, no recorded run)
XingangPan/Switchable-Whitening/models/backbones/resnet.py
code served (permissive licence) · get_code("67db28aa5fbd8878")
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, 7 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 3 the same month, 6 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
conv3x3 686 other papers
102 dated earlier, 16 the same month, 568 later · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
str2bool 82 other papers
9 dated earlier, 4 the same month, 69 later
1510.03055 (2015-10)
A Diversity-Promoting Objective Function for Neural Conversation Models
1703.06490 (2017-03)
Generating Multi-label Discrete Patient Records using Generative Adversarial Networks
1710.10467 (2017-10)
Generalized End-to-End Loss for Speaker Verification
and 79 more not named here
accuracy 23 other papers
8 dated earlier, 1 the same month, 14 later
1603.07285 (2016-03)
A guide to convolution arithmetic for deep learning
1608.07017 (2016-08)
Ambient Sound Provides Supervision for Visual Learning
1608.08710 (2016-08)
Pruning Filters for Efficient ConvNets
and 20 more not named here
resnet18 3 other papers
3 later
1912.04799 (2019-12)
Learning Depth-Guided Convolutions for Monocular 3D Object Detection
2103.16470 (2021-03)
Depth-conditioned Dynamic Message Propagation for Monocular 3D Object Detection
2403.06098 (2024-03)
A Million-scale Real Prompt-Gallery Dataset for Text-to-Video Diffusion Models
resnet34 3 other papers
3 later
1912.04799 (2019-12)
Learning Depth-Guided Convolutions for Monocular 3D Object Detection
aaai_6622 (2020 (year only))
Learning Deep Relations to Promote Saliency Detection
2103.16470 (2021-03)
Depth-conditioned Dynamic Message Propagation for Monocular 3D Object Detection
densenet169 1 other paper
1 dated earlier
1712.06957 (2017-12)
MURA: Large Dataset for Abnormality Detection in Musculoskeletal Radiographs
dist_init 1 other paper
1 later
2003.13659 (2020-03)
Exploiting Deep Generative Prior for Versatile Image Restoration and Manipulation

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

Normalization methods are essential components in convolutional neural networks (CNNs). They either standardize or whiten data using statistics estimated in predefined sets of pixels. Unlike existing works that design normalization techniques for specific tasks, we propose Switchable Whitening (SW), which provides a general form unifying different whitening methods as well as standardization methods. SW learns to switch among these operations in an end-to-end manner. It has several advantages. First, SW adaptively selects appropriate whitening or standardization statistics for different tasks (see Fig.1), making it well suited for a wide range of tasks without manual design. Second, by integrating benefits of different normalizers, SW shows consistent improvements over its counterparts in various challenging benchmarks. Third, SW serves as a useful tool for understanding the characteristics of whitening and standardization techniques. We show that SW outperforms other alternatives on image classification (CIFAR-10/100, ImageNet), semantic segmentation (ADE20K, Cityscapes), domain adaptation (GTA5, Cityscapes), and image style transfer (COCO). For example, without bells and whistles, we achieve state-of-the-art performance with 45.33% mIoU on the ADE20K dataset. Code is available at https://github.com/XingangPan/Switchable-Whitening.

For agents

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

get_harvested_code_for_paper("1904.09739")
get_code_for_paper("1904.09739")
have("1904.09739")

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

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

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

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

Connect an agent — have() is free.