SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1612.07119 · 2016

FINN: A Framework for Fast, Scalable Binarized Neural Network Inference

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 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; 3 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 0 failures of our instrument; 1 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/1612.07119.json · badge: /api/ran/1612.07119.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
Xilinx/BNN-PYNQ community (classifier label)
classifier basis not recorded on the link
8 ran · 1 no recorded run
bnna-project/bnna reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
adjusted_crop Ran
ran on a synthesized input
Xilinx/BNN-PYNQ/bnn/src/training/augmentors.py
code served (permissive licence) · get_code("fed41a96f2a7d638")
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 numpy as np

# Create small test arrays
# X: batch of images with shape (batch, channels, width, height)
# Using distinct dimensions: batch=2, channels=3, width=8, height=6
X = np.random.randn(2, 3, 8, 6).astype(np.float32)

# Y: labels with shape (batch, ...) - function treats it as batch dimension
Y = np.random.randn(2, 4).astype(np.float32)

# offsets: list of (width_offset, height_offset) tuples
offsets = [
    (0, 0),    # top-left
    (2, 1),    # another position
]

# size: (width, height) for the crop
size = (4, 3)

ARGS = {
    "X": X,
    "Y": Y,
    "offsets": offsets,
    "size": size,
}
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 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
get_junk_class Ran
ran on a synthesized input
Xilinx/BNN-PYNQ/bnn/src/training/gtsrb.py
code served (permissive licence) · get_code("d3858d2602a668dc")
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 math
import numpy as np
from glob import glob
from PIL import Image
import tempfile
import os

# Create a temporary directory with some test JPG files
temp_dir = tempfile.mkdtemp()

# Create simple test images (small JPGs)
for i in range(2):
    # Create a simple RGB image using PIL
    img = Image.new('RGB', (8, 6), color=(73, 109, 137))
    img.save(os.path.join(temp_dir, f'test_{i}.jpg'))

ARGS = {
    'image_path': temp_dir,
    'width': 4,
    'label': 1,
    'normalise': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — 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
incrementing_payload Ran
ran, honoured the contract we drafted
bnna-project/bnna/sim/popcount/test_popcount.py
pointer only (licence: NONE) · get_code("b37d44e48b97072b")
How it ran

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

linear_rotations Ran
ran on a synthesized input
Xilinx/BNN-PYNQ/bnn/src/training/augmentors.py
code served (permissive licence) · get_code("97194e2069915dc5")
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 numpy as np

# Create small test data
# X should be a 4D array (batch, channels, height, width)
# The function uses ndimg.rotate with axes=(2, 3), so it rotates the last two dims
X = np.random.randn(2, 3, 4, 5).astype(np.float32)
Y = np.random.randn(2, 10).astype(np.float32)

# angles: list of rotation angles in degrees
angles = [0, 45, 90]

# original: boolean flag
original = True

ARGS = {
    "X": X,
    "Y": Y,
    "angles": angles,
    "original": original,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
padTo Ran
ran on a synthesized input
Xilinx/BNN-PYNQ/bnn/src/training/finnthesizer.py
code served (permissive licence) · get_code("3b5692620cc5c473")
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 int, ndim 0, dtype family int, 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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# def padTo(val, pad):
#     rem = val % pad
#     return val if rem == 0 else val + pad - rem
#
# This function takes two parameters:
# - val: a numeric value to be padded
# - pad: the padding modulus
#
# The function computes the remainder of val divided by pad,
# and if non-zero, pads val to the next multiple of pad.

ARGS = {
    "val": 10,
    "pad": 3
}
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 int, ndim 0, dtype family int, 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
pcnt_2p_n Ran
ran, honoured the contract we drafted
bnna-project/bnna/sim/popcount/test_popcount.py
pointer only (licence: NONE) · get_code("803e5d383bb9679a")
How it ran

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

prbs_payload Ran
ran, honoured the contract we drafted
bnna-project/bnna/sim/popcount/test_popcount.py
pointer only (licence: NONE) · get_code("193a5339db937b0a")
How it ran

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

printConvDefines Ran
ran on a synthesized input
Xilinx/BNN-PYNQ/bnn/src/training/finnthesizer.py
code served (permissive licence) · get_code("f2ada274f875ba8b")
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
import numpy as np

# Analyzing the function: printConvDefines takes parameters related to a convolutional layer
# and generates C preprocessor defines. It performs calculations on the parameters but
# doesn't call any methods on them - they're all used as simple values.

# All parameters are integers or strings based on the function usage:
# - prefix: string used in #define statements
# - kernelDim: kernel dimension (integer)
# - ifm_ch: input feature map channels (integer)
# - ifm_dim: input feature map dimension (integer)
# - ofm_ch: output feature map channels (integer)
# - ofm_dim: output feature map dimension (integer)
# - simd: SIMD parallelism (integer)
# - pe: processing elements (integer)
# - wmem: weight memory (integer)
# - tmem: threshold memory (integer)
# - wpi: weight parallelization input (integer)
# - api: activation parallelization input (integer)
# - wpf: weight parallelization factor (integer)
# - apf: activation parallelization factor (integer)

ARGS = {
    'prefix': 'LAYER0',
    'kernelDim': 3,
    'ifm_ch': 16,
    'ifm_dim': 32,
    'ofm_ch': 32,
    'ofm_dim': 16,
    'simd': 8,
    'pe': 4,
    'wmem': 2048,
    'tmem': 512,
    'wpi': 64,
    'api': 32,
    'wpf': 16,
    'apf': 8
}
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 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
printFCDefines Ran
ran on a synthesized input
Xilinx/BNN-PYNQ/bnn/src/training/finnthesizer.py
code served (permissive licence) · get_code("358250508facc715")
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
import numpy as np

# Analyze the function: it takes string and numeric parameters
# prefix: string for naming defines
# simd, pe, wmem, tmem, mw, mh, wpi, api, wpf, apf: all integers used in computations and formatting

ARGS = {
    'prefix': 'FC_LAYER_0',
    'simd': 16,
    'pe': 8,
    'wmem': 2048,
    'tmem': 1024,
    'mw': 64,
    'mh': 128,
    'wpi': 4,
    'api': 2,
    'wpf': 8,
    'apf': 4
}
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 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
random_rotations Ran
ran on a synthesized input
Xilinx/BNN-PYNQ/bnn/src/training/augmentors.py
code served (permissive licence) · get_code("5e3fbdc61268158d")
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 numpy as np
import scipy.ndimage as ndimg

# Create small sample data
# X should have shape (batch, channels, height, width) for 4D rotation on axes (2,3)
batch_size = 2
channels = 3
height = 4
width = 5

X = np.random.randn(batch_size, channels, height, width).astype(np.float32)
Y = np.random.randint(0, 2, size=batch_size)

# Define parameters for random_rotations
rnd_range = (-15, 15)  # range of random angles in degrees
factor = 3  # number of rotations to generate
extend = True  # whether to extend the dataset

ARGS = {
    'X': X,
    'Y': Y,
    'rnd_range': rnd_range,
    'factor': factor,
    'extend': extend
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
square_image Ran
ran on a synthesized input
Xilinx/BNN-PYNQ/bnn/src/training/gtsrb.py
code served (permissive licence) · get_code("f0d565fdaca0c6a1")
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 (3, 8, 8) 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
import math

# Test case 1: width > height (rectangular, wider than tall)
x_wide = np.random.randn(3, 8, 5).astype(np.float32)

# Test case 2: width < height (rectangular, taller than wide)
x_tall = np.random.randn(3, 4, 7).astype(np.float32)

# Test case 3: width == height (already square)
x_square = np.random.randn(3, 6, 6).astype(np.float32)

ARGS = {
    "x": x_wide
}
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 (3, 8, 8) — shape (3, 8, 8) 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
available_params Not yet run
unverified (harvested, no recorded run)
Xilinx/BNN-PYNQ/bnn/bnn.py
code served (permissive licence) · get_code("5759de2fbd7d9890")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 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 12 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

Research has shown that convolutional neural networks contain significant redundancy, and high classification accuracy can be obtained even when weights and activations are reduced from floating point to binary values. In this paper, we present FINN, a framework for building fast and flexible FPGA accelerators using a flexible heterogeneous streaming architecture. By utilizing a novel set of optimizations that enable efficient mapping of binarized neural networks to hardware, we implement fully connected, convolutional and pooling layers, with per-layer compute resources being tailored to user-provided throughput requirements. On a ZC706 embedded FPGA platform drawing less than 25 W total system power, we demonstrate up to 12.3 million image classifications per second with 0.31 μs latency on the MNIST dataset with 95.8% accuracy, and 21906 image classifications per second with 283 μs latency on the CIFAR-10 and SVHN datasets with respectively 80.1% and 94.9% accuracy. To the best of our knowledge, ours are the fastest classification rates reported to date on these benchmarks.

For agents

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

get_harvested_code_for_paper("1612.07119")
get_code_for_paper("1612.07119")
have("1612.07119")

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

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

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

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

Connect an agent — have() is free.