SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1805.04980 · 2018

Unifying and Merging Well-trained Deep Neural Networks for Inference Stage

arXiv · PDF · Open in the Atlas

Code that ran

7 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 3 have no contract verdict; 3 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/1805.04980.json · badge: /api/ran/1805.04980.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
ivclab/NeuralMerger canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
FunctionStatusWhere it lives
add_argument_group Ran
ran; our contract draft was wrong, not the code
ivclab/NeuralMerger/Fine-tuning/config.py
code served (permissive licence) · get_code("6d80592fd6d47b2d")
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 _ArgumentGroup. 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 argparse

arg_lists = []
parser = argparse.ArgumentParser()

def add_argument_group(name):
    arg = parser.add_argument_group(name)
    arg_lists.append(arg)
    return arg

ARGS = {
    'name': 'test_group'
}
Setup block drafted by
a language model, Claude Sonnet 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 _ArgumentGroup — a _ArgumentGroup output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _ArgumentGroup 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
conv2d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ivclab/NeuralMerger/Fine-tuning/nets/lenetsound_lenetfashion.py
code served (permissive licence) · get_code("3cd17758f440bd57")
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 EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 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 tensorflow as tf
import numpy as np

# Create input tensor x with shape [batch, height, width, channels]
# Following NHWC format (standard for tf.nn.conv2d)
# batch=2, height=4, width=3, channels=2
x = tf.constant(np.random.randn(2, 4, 3, 2).astype(np.float32))

# Create filter tensor W with shape [filter_height, filter_width, in_channels, out_channels]
# filter_height=3, filter_width=3, in_channels=2, out_channels=4
W = tf.constant(np.random.randn(3, 3, 2, 4).astype(np.float32))

ARGS = {
    'x': x,
    'W': W
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 4) — shape (2, 4, 3, 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
conv2d_2 Ran
ran on a synthesized input
ivclab/NeuralMerger/Fine-tuning/nets/vgg16avg_zfnet.py
code served (permissive licence) · get_code("16bd58f48f48fde7")
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 EagerTensor, ndim 4, dtype family float, shape (2, 2, 1, 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 tensorflow as tf
import numpy as np

# Create input tensor x with shape [batch, height, width, channels]
# Using batch=2, height=4, width=3, channels=2
x = tf.constant(np.random.randn(2, 4, 3, 2).astype(np.float32))

# Create filter tensor W with shape [filter_height, filter_width, in_channels, out_channels]
# Using filter_height=2, filter_width=2, in_channels=2, out_channels=3
W = tf.constant(np.random.randn(2, 2, 2, 3).astype(np.float32))

ARGS = {
    'x': x,
    'W': W
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 2, 1, 3) — shape (2, 2, 1, 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
embedding_idx Ran
ran on a synthesized input
ivclab/NeuralMerger/Fine-tuning/nets/lenetsound_lenetfashion.py
code served (permissive licence) · get_code("2065520bea76bbae")
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 int, 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 function takes an index tensor and a k_num integer
# It modifies index in-place by adding k_num * i to each row i
# index needs to be a 2D tensor (or at least support .shape[0])

index = torch.tensor([[1, 2, 3, 4],
                      [5, 6, 7, 8]], dtype=torch.long)

k_num = 10

ARGS = {
    "index": index,
    "k_num": k_num
}
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 int, 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
embedding_idx Ran
ran on a synthesized input
ivclab/NeuralMerger/Fine-tuning/nets/vgg16avg_zfnet.py
code served (permissive licence) · get_code("88e3c399cd42b50f")
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 2, dtype family int, shape (2, 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

# Analyze the function:
# - index: numpy array that gets copied and modified in-place
# - k_num: integer used as a multiplier
# The function iterates through index.shape[0] (number of rows)
# and adds k_num * i to each row

# Create a small test index array (2D numpy array)
index = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.int32)

# k_num is an integer offset multiplier
k_num = 10

ARGS = {
    "index": index,
    "k_num": k_num
}
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 2, dtype family int, shape (2, 3) — shape (2, 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
max_pool_2x2 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ivclab/NeuralMerger/Fine-tuning/nets/lenetsound_lenetfashion.py
pointer only (licence: MIT); the stored copy get_code serves, from YudeWang/UNet-Satellite-Image-Segmentation, is pointer only (licence: NONE) · get_code("fc52a4f8f0232e03")
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 YudeWang/UNet-Satellite-Image-Segmentation, 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
ivclab/NeuralMerger/Fine-tuning/config.py
pointer only (licence: MIT); the stored copy get_code serves, from haoran0301/amenunet, is pointer only (licence: NONE) · get_code("248284f69adfeaad")
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 haoran0301/amenunet, 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.

get_confirm_token Not yet run
unverified (harvested, no recorded run)
ivclab/NeuralMerger/Fine-tuning/download.py
pointer only (licence: MIT); the stored copy get_code serves, from med-air/FedBN, is pointer only (licence: NONE) · get_code("135b3dc835ffe6ad")
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 med-air/FedBN, 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.

get_split Not yet run
unverified (harvested, no recorded run)
ivclab/NeuralMerger/Fine-tuning/datasets/gender.py
code served (permissive licence) · get_code("35318fc2899ca955")
How it ran

no invocation recorded.

loss_function Not yet run
unverified (harvested, no recorded run)
ivclab/NeuralMerger/Fine-tuning/loss.py
code served (permissive licence) · get_code("3d76bb4c9a231576")
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, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 3 the same month, 5 later) and 5 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
get_confirm_token 38 other papers
8 dated earlier, 3 the same month, 27 later
1409.8230 (2014-09)
RENOIR - A Dataset for Real Low-Light Image Noise Reduction
1503.03832 (2015-03)
FaceNet: A Unified Embedding for Face Recognition and Clustering
1506.03134 (2015-06)
Pointer Networks
and 35 more not named here
str2bool 33 other papers
9 dated earlier, 2 the same month, 22 later
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1506.03134 (2015-06)
Pointer Networks
1611.09940 (2016-11)
Neural Combinatorial Optimization with Reinforcement Learning
and 30 more not named here
add_argument_group 27 other papers
8 dated earlier, 1 the same month, 18 later
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1506.03134 (2015-06)
Pointer Networks
1609.04802 (2016-09)
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
and 24 more not named here
max_pool_2x2 5 other papers
3 dated earlier, 2 later
1412.3128 (2014-12)
Real-Time Grasp Detection Using Convolutional Neural Networks
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
1709.09603 (2017-09)
Riemannian approach to batch normalization
and 2 more not named here
conv2d 2 other papers
1 dated earlier, 1 later
1804.05271 (2018-04)
Adaptive Federated Learning in Resource Constrained Edge Computing Systems
2502.16782 (2025-02)
CipherPrune: Efficient and Scalable Private Transformer Inference

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 a novel method to merge convolutional neural-nets for the inference stage. Given two well-trained networks that may have different architectures that handle different tasks, our method aligns the layers of the original networks and merges them into a unified model by sharing the representative codes of weights. The shared weights are further re-trained to fine-tune the performance of the merged model. The proposed method effectively produces a compact model that may run original tasks simultaneously on resource-limited devices. As it preserves the general architectures and leverages the co-used weights of well-trained networks, a substantial training overhead can be reduced to shorten the system development time. Experimental results demonstrate a satisfactory performance and validate the effectiveness of the method.

For agents

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

get_harvested_code_for_paper("1805.04980")
get_code_for_paper("1805.04980")
have("1805.04980")

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

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

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

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

Connect an agent — have() is free.