SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2208.08569 · 2022

ObfuNAS: A Neural Architecture Search-based DNN Obfuscation Approach

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 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 0 have no contract verdict; 4 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/2208.08569.json · badge: /api/ran/2208.08569.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
tongzhou0101/obfunas canonical (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
FunctionStatusWhere it lives
ComputeVertexChannels Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tongzhou0101/obfunas/network.py
code served (permissive licence) · get_code("3122aea73ebb5edf")
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 list, ndim 1, dtype family int; 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 numpy as np

# Create a simple directed acyclic graph (DAG) represented as an adjacency matrix
# The matrix represents connections between vertices in a neural network architecture
# matrix[i, j] = 1 means there's an edge from vertex i to vertex j

# Example: 5 vertices (input, 3 interior, output)
# Vertex 0: input
# Vertices 1, 2, 3: interior vertices
# Vertex 4: output
num_vertices = 5

# Create adjacency matrix
matrix = np.zeros((num_vertices, num_vertices), dtype=np.int32)

# Connect input (0) to some interior vertices (1, 2)
matrix[0, 1] = 1
matrix[0, 2] = 1

# Connect interior vertices to other interior vertices
matrix[1, 3] = 1
matrix[2, 3] = 1

# Connect some interior vertices directly to output (4)
matrix[1, 4] = 1
matrix[2, 4] = 1
matrix[3, 4] = 1

in_channels = 16
out_channels = 32

ARGS = {
    'in_channels': in_channels,
    'out_channels': out_channels,
    'matrix': matrix
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy — 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 int — 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
Projection Ran
ran; our contract draft was wrong, not the code
tongzhou0101/obfunas/network.py
code served (permissive licence) · get_code("9afb0e6e8cb492f3")
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 ConvBnRelu. 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)

ARGS = {
    'in_channels': 3,
    'out_channels': 64,
}
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 ConvBnRelu — a ConvBnRelu output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ConvBnRelu 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
Truncate Ran
ran; our contract draft was wrong, not the code
tongzhou0101/obfunas/network.py
code served (permissive licence) · get_code("77137d76f02e37fe")
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, 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 torch

torch.manual_seed(0)

# The function expects inputs with shape [batch, channels, height, width]
# and a channels parameter to truncate to.
# From the function body:
# - It checks input_channels = inputs.size()[1] (channel dimension)
# - If input_channels > channels, it asserts input_channels - channels == 1
# - Returns inputs[:, :channels, :, :]

# Create a 4D tensor with batch=2, input_channels=5, height=3, width=4
# We'll truncate to channels=4, so input_channels - channels = 1 (satisfies assertion)
inputs = torch.randn(2, 5, 3, 4)
channels = 4

ARGS = {
    'inputs': inputs,
    'channels': channels
}
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, 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
random_combination Ran
ran; our contract draft was wrong, not the code
tongzhou0101/obfunas/mutation.py
code served (permissive licence) · get_code("5956f11bf3503e93")
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 random

def random_combination(iterable, sample_size):
    """Random selection from itertools.combinations(iterable, r)."""
    pool = tuple(iterable)
    n = len(pool)
    indices = sorted(random.sample(range(n), sample_size))
    return tuple((pool[i] for i in indices))


# Set random seed for reproducibility
random.seed(42)

# Create test data
iterable = ['a', 'b', 'c', 'd', 'e']
sample_size = 3

ARGS = {
    'iterable': iterable,
    'sample_size': sample_size
}
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 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
acc_avg Not yet run
unverified (harvested, no recorded run)
tongzhou0101/obfunas/utils.py
code served (permissive licence) · get_code("9ee42e24f14050d4")
How it ran

no invocation recorded.

mutate_spec Not yet run
unverified (harvested, no recorded run)
tongzhou0101/obfunas/mutation.py
code served (permissive licence) · get_code("4b38f1e0a14733fe")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 1 later) and 2 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
ComputeVertexChannels 1 other paper
1 dated earlier
1905.13214 (2019-05)
On Network Design Spaces for Visual Recognition
Projection 1 other paper
1 dated earlier
1905.13214 (2019-05)
On Network Design Spaces for Visual Recognition
Truncate 1 other paper
1 dated earlier
1905.13214 (2019-05)
On Network Design Spaces for Visual Recognition
random_combination 1 other paper
1 later
2408.11330 (2024-08)
Design Principle Transfer in Neural Architecture Search via Large Language Models

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

Malicious architecture extraction has been emerging as a crucial concern for deep neural network (DNN) security. As a defense, architecture obfuscation is proposed to remap the victim DNN to a different architecture. Nonetheless, we observe that, with only extracting an obfuscated DNN architecture, the adversary can still retrain a substitute model with high performance (e.g., accuracy), rendering the obfuscation techniques ineffective. To mitigate this under-explored vulnerability, we propose ObfuNAS, which converts the DNN architecture obfuscation into a neural architecture search (NAS) problem. Using a combination of function-preserving obfuscation strategies, ObfuNAS ensures that the obfuscated DNN architecture can only achieve lower accuracy than the victim. We validate the performance of ObfuNAS with open-source architecture datasets like NAS-Bench-101 and NAS-Bench-301. The experimental results demonstrate that ObfuNAS can successfully find the optimal mask for a victim model within a given FLOPs constraint, leading up to 2.6% inference accuracy degradation for attackers with only 0.14x FLOPs overhead. The code is available at: https://github.com/Tongzhou0101/ObfuNAS.

For agents

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

get_harvested_code_for_paper("2208.08569")
get_code_for_paper("2208.08569")
have("2208.08569")

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

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

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

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

Connect an agent — have() is free.