SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1805.07925 · 2018

Batch-Instance Normalization for Adaptively Style-Invariant Neural Networks

arXiv · PDF · Open in the Atlas

Code that ran

4 of 7 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 2 have no contract verdict; 2 failures of our instrument; 3 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/1805.07925.json · badge: /api/ran/1805.07925.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
hyeonseob-nam/Batch-Instance-Normalization canonical (classifier label)
classifier basis: census
4 ran · 2 no recorded run
taki0112/Batch_Instance_Normalization-Tensorflow community (classifier label)
classifier basis not recorded on the link
0 ran · 1 no recorded run
FunctionStatusWhere it lives
colorize Ran
ran; our contract draft was wrong, not the code
hyeonseob-nam/Batch-Instance-Normalization/utils/visualize.py
code served (permissive licence) · get_code("c87e7665fde6cdfc")
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, 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 colorize takes a single parameter x which should be a tensor
# Looking at the function body:
# - x can be 2D, 3D, or 4D
# - For 3D: x.size(1) and x.size(2) are used (height, width)
# - For 4D: x.size(0) is batch, x.size(2) and x.size(3) are height/width
# The function applies gaussian operations on x values, so it should contain
# grayscale image data (values roughly in [0,1] or similar range)

# Create a small 3D tensor (1 channel, 4 height, 3 width)
x_3d = torch.rand(1, 4, 3)

ARGS = {
    "x": x_3d
}
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, 3) — shape (3, 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
hyeonseob-nam/Batch-Instance-Normalization/models/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.

gauss Ran
ran on a synthesized input
hyeonseob-nam/Batch-Instance-Normalization/utils/visualize.py
code served (permissive licence) · get_code("d66f0a3cbb86204c")
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, 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

torch.manual_seed(0)

# The gauss function performs Gaussian operations on tensors
# Parameters x, a, b, c are all used in arithmetic operations
# They should all be tensors (or scalar-like values that torch operations can handle)

x = torch.randn(2, 4)
a = torch.randn(2, 4)
b = torch.randn(2, 4)
c = torch.randn(2, 4)

ARGS = {
    'x': x,
    'a': a,
    'b': b,
    'c': c
}
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, 4) — shape (2, 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
make_image Ran
ran on a synthesized input
hyeonseob-nam/Batch-Instance-Normalization/utils/visualize.py
code served (permissive licence) · get_code("1394422d51c4b126")
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 torch
import numpy as np

torch.manual_seed(0)

# Create a small tensor with shape (3, 4, 5) - 3 channels, 4x5 spatial dimensions
# This tensor will be modified in-place and needs to support .numpy()
img = torch.randn(3, 4, 5)

# Define mean and std tuples
mean = (0.5, 0.3, 0.2)
std = (0.1, 0.2, 0.15)

ARGS = {
    "img": img,
    "mean": mean,
    "std": std,
}
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 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
batch_instance_norm Not yet run
unverified (harvested, no recorded run)
taki0112/Batch_Instance_Normalization-Tensorflow/batch_instance_norm.py
code served (permissive licence) · get_code("c2e5dc526105d379")
How it ran

no invocation recorded.

get_mean_and_std Not yet run
unverified (harvested, no recorded run)
hyeonseob-nam/Batch-Instance-Normalization/utils/misc.py
pointer only (licence: MIT); the stored copy get_code serves, from LeeHyuck/CDMAD, is pointer only (licence: NONE) · get_code("1d6e2edb8832d7b0")
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 LeeHyuck/CDMAD, 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.

plot_overlap Not yet run
unverified (harvested, no recorded run)
hyeonseob-nam/Batch-Instance-Normalization/utils/logger.py
code served (permissive licence) · get_code("165303fa79b2fe9b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 6 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 6 later) and 1 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
48 dated earlier, 6 the same month, 632 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
plot_overlap 31 other papers
1 dated earlier, 30 later
1612.06321 (2016-12)
Large-Scale Image Retrieval with Attentive Deep Local Features
1806.04606 (2018-06)
Knowledge Distillation by On-the-Fly Native Ensemble
1807.09951 (2018-07)
Learning to Forecast and Refine Residual Motion for Image-to-Video Generation
and 28 more not named here
get_mean_and_std 21 other papers
21 later
1806.04606 (2018-06)
Knowledge Distillation by On-the-Fly Native Ensemble
1811.05850 (2018-11)
Drop-Activation: Implicit Parameter Reduction and Harmonic Regularization
1812.10025 (2018-12)
Attention Branch Network: Learning of Attention Mechanism for Visual Explanation
and 18 more not named here
colorize 11 other papers
11 later
1806.04606 (2018-06)
Knowledge Distillation by On-the-Fly Native Ensemble
1811.05850 (2018-11)
Drop-Activation: Implicit Parameter Reduction and Harmonic Regularization
1812.10025 (2018-12)
Attention Branch Network: Learning of Attention Mechanism for Visual Explanation
and 8 more not named here
gauss 11 other papers
11 later
1806.04606 (2018-06)
Knowledge Distillation by On-the-Fly Native Ensemble
1811.05850 (2018-11)
Drop-Activation: Implicit Parameter Reduction and Harmonic Regularization
1812.10025 (2018-12)
Attention Branch Network: Learning of Attention Mechanism for Visual Explanation
and 8 more not named here
make_image 11 other papers
11 later
1806.04606 (2018-06)
Knowledge Distillation by On-the-Fly Native Ensemble
1811.05850 (2018-11)
Drop-Activation: Implicit Parameter Reduction and Harmonic Regularization
1812.10025 (2018-12)
Attention Branch Network: Learning of Attention Mechanism for Visual Explanation
and 8 more not named here

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

Real-world image recognition is often challenged by the variability of visual styles including object textures, lighting conditions, filter effects, etc. Although these variations have been deemed to be implicitly handled by more training data and deeper networks, recent advances in image style transfer suggest that it is also possible to explicitly manipulate the style information. Extending this idea to general visual recognition problems, we present Batch-Instance Normalization (BIN) to explicitly normalize unnecessary styles from images. Considering certain style features play an essential role in discriminative tasks, BIN learns to selectively normalize only disturbing styles while preserving useful styles. The proposed normalization module is easily incorporated into existing network architectures such as Residual Networks, and surprisingly improves the recognition performance in various scenarios. Furthermore, experiments verify that BIN effectively adapts to completely different tasks like object classification and style transfer, by controlling the trade-off between preserving and removing style variations. BIN can be implemented with only a few lines of code using popular deep learning frameworks.

For agents

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

get_harvested_code_for_paper("1805.07925")
get_code_for_paper("1805.07925")
have("1805.07925")

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

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

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

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

Connect an agent — have() is free.