SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1603.05279 · 2016

XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks

arXiv · PDF · Open in the Atlas

Code that ran

16 of 18 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 9 have no contract verdict; 7 failures of our instrument; 2 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/1603.05279.json · badge: /api/ran/1603.05279.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
ryuz/BinaryBrain community (classifier label)
classifier basis not recorded on the link
9 ran · 0 no recorded run
kai-liu001/bimacosr extension (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
lzj994/Binary-Quantization reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
1adrianb/binary-networks-pytorch reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
gaochang-bjtu/1-bit-fqt extension (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
HORQ_grad Ran
ran; our contract draft was wrong, not the code
kai-liu001/bimacosr/models/quant_modules/binary_modules/xnor.py
code served (permissive licence) · get_code("ccf218a262d1f6ec")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 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

torch.manual_seed(0)

# The function expects real_weights as a tensor that can be either 2D or 4D
# Let's test with a 4D tensor (typical for convolutional weights)
# Shape: (out_channels, in_channels, height, width)
real_weights_4d = torch.randn(2, 3, 4, 5, requires_grad=True)

# N is the number of iterations, default is 1
N = 2

ARGS = {
    'real_weights': real_weights_4d,
    'N': N
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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, 3, 4, 5) — shape (2, 3, 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
HORQ_grad_activation Ran
ran; our contract draft was wrong, not the code
kai-liu001/bimacosr/models/quant_modules/binary_modules/xnor.py
code served (permissive licence) · get_code("c8ade230286737dc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 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)

class SignSTE_clip_Func(torch.autograd.Function):

    @staticmethod
    def forward(ctx, input):
        ctx.save_for_backward(input)
        out = torch.sign(input)
        return out

    @staticmethod
    def backward(ctx, grad_output):
        input = ctx.saved_tensors
        grad_input = grad_output
        grad_input[input[0].gt(1)] = 0
        grad_input[input[0].lt(-1)] = 0
        return grad_input

class SignSTE_clip(nn.Module):

    def forward(self, input):
        return SignSTE_clip_Func.apply(input)

# Create test activations for different dimensions
# Test with 4D tensor (typical for conv layers: batch, channels, height, width)
activations_4d = torch.randn(2, 3, 4, 5)

# Create the sign function instance
oursign_instance = SignSTE_clip()

# Number of iterations
N = 2

ARGS = {
    'activations': activations_4d,
    'N': N,
    'oursign': oursign_instance
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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, 3, 4, 5) — shape (2, 3, 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
bool_to_bytes Ran
ran on a synthesized input
ryuz/BinaryBrain/python/binarybrain/object.py
code served (permissive licence) · get_code("055f72c94f40a239")
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 bytes. 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.

# The function expects a bool value, but bool doesn't have a to_bytes method.
# We need to pass an integer instead, since int.to_bytes() is the actual method.
# However, reading the function literally, it expects a "bool" type.
# Let's check: in Python, bool is a subclass of int, so True/False are integers.
# But bool instances don't have to_bytes(). This appears to be a bug in the function.
# 
# To make valid setup code that would work if the function were corrected,
# we'd pass an int. But to follow the function signature literally as written,
# we need to understand what the author likely intended.
#
# The safest approach: pass an int value (since bool inherits from int in Python)
# that represents a boolean (0 or 1).

ARGS = {
    "value": 1
}
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 bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
lzj994/Binary-Quantization/EnResNet.py
pointer only (licence: NONE) · get_code("03a0be4fb7381bd2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lzj994/Binary-Quantization 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.

get_latest_path Ran
ran on a synthesized input
ryuz/BinaryBrain/python/binarybrain/storage.py
code served (permissive licence) · get_code("49193f567326cfa9")
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 str. 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 os
import tempfile
import shutil

# Create a temporary directory structure with date-formatted subdirectories
temp_base = tempfile.mkdtemp()

# Create some date-formatted directories
date_dirs = [
    "20230101_120000",
    "20230115_150030",
    "20230220_090500"
]

for date_dir in date_dirs:
    os.makedirs(os.path.join(temp_base, date_dir), exist_ok=True)

# Also create a non-date directory to test filtering
os.makedirs(os.path.join(temp_base, "not_a_date"), exist_ok=True)

ARGS = {
    "path": temp_base
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_model2 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lzj994/Binary-Quantization/EnResNet.py
pointer only (licence: NONE) · get_code("c9385e42b40d1dea")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lzj994/Binary-Quantization 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.

get_model_list Ran
ran on a synthesized input
ryuz/BinaryBrain/python/binarybrain/models.py
code served (permissive licence) · get_code("d0ee817cb142aaab")
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 torch.nn as nn

torch.manual_seed(0)

# Create a simple model that doesn't have get_model_list method
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create a model that has get_model_list method for flattening test
class NestedModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.sub1 = SimpleModel()
        self.sub2 = SimpleModel()
    
    def get_model_list(self):
        return [self.sub1, self.sub2]
    
    def forward(self, x):
        x = self.sub1(x)
        x = self.sub2(x)
        return x

# Test case 1: Single model without flatten
simple_net = SimpleModel()

# Test case 2: List of models
model_list = [SimpleModel(), SimpleModel()]

# Test case 3: Nested model with flatten capability
nested_net = NestedModel()

ARGS = {
    "net": simple_net,
    "flatten": 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 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_unique_devices_ Ran
ran; our contract draft was wrong, not the code
1adrianb/binary-networks-pytorch/bnn/binarize.py
code served (permissive licence) · get_code("8d4d977813bb8ec8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned set. 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.nn as nn

torch.manual_seed(0)

# Create a simple module with parameters and buffers on different devices
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
        # Register a buffer
        self.register_buffer('buffer1', torch.randn(2, 4))

module = SimpleModule()

ARGS = {
    'module': module
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
init_BinaryConv2d_XNOR_from_conv Ran
ran; our contract draft was wrong, not the code
kai-liu001/bimacosr/models/quant_modules/binary_modules/xnor.py
code served (permissive licence) · get_code("96f39115fb9a3ff1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned BinaryConv2d_XNOR. 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.nn as nn

torch.manual_seed(0)

# Create a small Conv2d layer to pass to init_BinaryConv2d_XNOR_from_conv
# The function reads: in_channels, out_channels, kernel_size[0], stride[0], padding[0], and bias
conv = nn.Conv2d(
    in_channels=3,
    out_channels=5,
    kernel_size=3,
    stride=2,
    padding=1,
    bias=True
)

# Initialize the weights and bias with small random values
conv.weight.data = torch.randn(5, 3, 3, 3) * 0.1
conv.bias.data = torch.randn(5) * 0.1

ARGS = {
    'conv': conv
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BinaryConv2d_XNOR — a BinaryConv2d_XNOR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BinaryConv2d_XNOR 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
int_from_bytes Ran
ran on a synthesized input
ryuz/BinaryBrain/python/binarybrain/object.py
code served (permissive licence) · get_code("1557967fbeeaf682")
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 numpy as np

torch.manual_seed(0)

# Construct a bytes object with at least 8 bytes
# The function reads the first 8 bytes as an integer and returns the rest
data = b'\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c'

ARGS = {
    'data': data
}
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 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
int_to_bytes Ran
ran on a synthesized input
ryuz/BinaryBrain/python/binarybrain/object.py
code served (permissive licence) · get_code("6b773115058355ce")
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 bytes. 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

def int_to_bytes(value: int):
    return value.to_bytes(8, 'little')

ARGS = {
    'value': 42
}
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 bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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
is_date_string Ran
ran on a synthesized input
ryuz/BinaryBrain/python/binarybrain/storage.py
code served (permissive licence) · get_code("7feff3e3b9076ac3")
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 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 re

def is_date_string(text: str):
    """ Check if the string is a date
        データ保存パス用の日付文字列かどうか判定
    
        Args:
            text (str): 判定する文字列
        
        Returns:
            Boolean.
    """
    if re.fullmatch('[12][0-9]{3}[01][0-9][0-3][0-9]_[0-2][0-9][0-5][0-9][0-5][0-9]', text):
        return True
    return False


# Valid date string: YYYYMMDD_HHMMSS format
valid_date_string = "20231225_143022"

# Invalid date strings for testing
invalid_date_string_1 = "2023-12-25_14:30:22"
invalid_date_string_2 = "not_a_date"

ARGS = {
    "text": valid_date_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 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
make_hls_lut_layer Ran
ran on a synthesized input
ryuz/BinaryBrain/python/binarybrain/hls.py
code served (permissive licence) · get_code("f01a0f48df8e93a7")
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 str. 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 io

class MockLUTModel:
    """Mock LUT model that implements the interface used by make_hls_lut_layer"""
    
    def __init__(self):
        # 3 input nodes, 2 output nodes
        self.input_size = 3
        self.output_size = 2
        
        # For each output node, store:
        # - connection_size: number of inputs connected to this node
        # - connection_indices: which input indices are connected
        # - lut_table_size: size of the lookup table
        # - lut_table: the lookup table values
        
        self.nodes = {
            0: {
                'connection_size': 2,
                'connection_indices': [0, 1],
                'lut_table_size': 4,
                'lut_table': [0, 1, 1, 0]
            },
            1: {
                'connection_size': 3,
                'connection_indices': [0, 1, 2],
                'lut_table_size': 8,
                'lut_table': [1, 0, 0, 1, 0, 1, 1, 0]
            }
        }
    
    def get_input_node_size(self):
        return self.input_size
    
    def get_output_node_size(self):
        return self.output_size
    
    def get_node_connection_size(self, node):
        return self.nodes[node]['connection_size']
    
    def get_node_connection_index(self, node, index):
        return self.nodes[node]['connection_indices'][index]
    
    def get_lut_table_size(self, node):
        return self.nodes[node]['lut_table_size']
    
    def get_lut_table(self, node, index):
        return self.nodes[node]['lut_table'][index]


ARGS = {
    'name': 'my_lut_layer',
    'lut': MockLUTModel()
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
make_lut_func_name Ran
ran on a synthesized input
ryuz/BinaryBrain/python/binarybrain/hls.py
code served (permissive licence) · get_code("23b196ab377b76e3")
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 str. 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

torch.manual_seed(0)

ARGS = {
    'name': 'test_func',
    'node': 42
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
model_creator Ran
ran on a synthesized input
ryuz/BinaryBrain/python/binarybrain/models.py
code served (permissive licence) · get_code("1d32d47a37a7c627")
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 torch.nn as nn

torch.manual_seed(0)

# Define a simple model class
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Set up the model creator registry
_model_creator_list = {}

def dummy_creator(data):
    return (data, SimpleModel())

_model_creator_list['test_model'] = dummy_creator

# Create test data
test_data = torch.randn(2, 4)

# Define arguments for model_creator function
ARGS = {
    'data': test_data,
    'name': 'test_model',
    'dtypes': [torch.float32, torch.int64]
}
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
quantize_bw Ran
ran; our contract draft was wrong, not the code
lzj994/Binary-Quantization/EnResNet.py
pointer only (licence: NONE) · get_code("cff17e6f91a48ebd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lzj994/Binary-Quantization 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.

validate Not yet run
unverified (harvested, no recorded run)
gaochang-bjtu/1-bit-fqt/imagenet.py
code served (permissive licence) · get_code("cda3783cdf085eef")
How it ran

no invocation recorded.

validate Not yet run
unverified (harvested, no recorded run)
1adrianb/binary-networks-pytorch/examples/imagenet.py
code served (permissive licence) · get_code("69c03990f136c8a5")
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, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 4 later) and 14 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
7 dated earlier, 2 the same month, 677 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
get_model2 2 other papers
1 dated earlier, 1 later
1511.00363 (2015-11)
BinaryConnect: Training Deep Neural Networks with binary weights during propagations
1801.06313 (2018-01)
BinaryRelax: A Relaxation Approach For Training Deep Neural Networks With Quantized Weights
quantize_bw 2 other papers
1 dated earlier, 1 later
1511.00363 (2015-11)
BinaryConnect: Training Deep Neural Networks with binary weights during propagations
1801.06313 (2018-01)
BinaryRelax: A Relaxation Approach For Training Deep Neural Networks With Quantized Weights
validate 1 other paper
1 later
2010.14298 (2020-10)
A Statistical Framework for Low-bitwidth Training of Deep Neural Networks

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

We propose two efficient approximations to standard convolutional neural networks: Binary-Weight-Networks and XNOR-Networks. In Binary-Weight-Networks, the filters are approximated with binary values resulting in 32x memory saving. In XNOR-Networks, both the filters and the input to convolutional layers are binary. XNOR-Networks approximate convolutions using primarily binary operations. This results in 58x faster convolutional operations and 32x memory savings. XNOR-Nets offer the possibility of running state-of-the-art networks on CPUs (rather than GPUs) in real-time. Our binary networks are simple, accurate, efficient, and work on challenging visual tasks. We evaluate our approach on the ImageNet classification task. The classification accuracy with a Binary-Weight-Network version of AlexNet is only 2.9% less than the full-precision AlexNet (in top-1 measure). We compare our method with recent network binarization methods, BinaryConnect and BinaryNets, and outperform these methods by large margins on ImageNet, more than 16% in top-1 accuracy.

For agents

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

get_harvested_code_for_paper("1603.05279")
get_code_for_paper("1603.05279")
have("1603.05279")

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

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

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

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

Connect an agent — have() is free.