SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.02898 · NeurIPS · 2021

Dynamic Resolution Network

Kai Han, Yunhe Wang, Enhua Wu, Qiulin Zhang, Mingjian Zhu, Ying Nie, Zhenzhong Lan

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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 3 have no contract verdict; 2 failures of our instrument; 0 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/2106.02898.json · badge: /api/ran/2106.02898.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
LKLQQ/DRNet community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
FunctionStatusWhere it lives
calculate_gain Ran
ran on a synthesized input
LKLQQ/DRNet/src/classifier.py
code served (permissive licence) · get_code("82c48515ddda4614")
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 float, 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 math
import torch
import torch.nn as nn

torch.manual_seed(0)

# Test case 1: linear nonlinearity
ARGS_1 = {
    'nonlinearity': 'linear',
    'param': None
}

# Test case 2: tanh nonlinearity
ARGS_2 = {
    'nonlinearity': 'tanh',
    'param': None
}

# Test case 3: relu nonlinearity
ARGS_3 = {
    'nonlinearity': 'relu',
    'param': None
}

# Test case 4: leaky_relu with default param
ARGS_4 = {
    'nonlinearity': 'leaky_relu',
    'param': None
}

# Test case 5: leaky_relu with float param
ARGS_5 = {
    'nonlinearity': 'leaky_relu',
    'param': 0.2
}

# Test case 6: conv1d
ARGS_6 = {
    'nonlinearity': 'conv1d',
    'param': None
}

# Test case 7: sigmoid
ARGS_7 = {
    'nonlinearity': 'sigmoid',
    'param': None
}

# Use the simplest test case as the main ARGS
ARGS = {
    'nonlinearity': 'relu',
    'param': None
}
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 float, 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
kaiming_normal Ran
ran on a synthesized input
LKLQQ/DRNet/src/classifier.py
code served (permissive licence) · get_code("f0a6216664197738")
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 4, dtype family float, shape (4, 3, 2, 2) 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 math
import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Define ARGS dict with all parameters for kaiming_normal
ARGS = {
    'inputs_shape': (4, 3, 2, 2),  # [out_channels, in_channels, height, width] for conv2d
    'a': 0.01,                      # negative slope for leaky_relu
    'mode': 'fan_in',               # fan calculation mode
    'nonlinearity': 'leaky_relu'    # activation function type
}
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 4, dtype family float, shape (4, 3, 2, 2) — shape (4, 3, 2, 2) 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
merge Ran
ran; our contract draft was wrong, not the code
LKLQQ/DRNet/src/model_utils/config.py
code served (permissive licence) · get_code("b9e24c3e3e0e88a7")
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) and returned dict. 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 argparse

torch.manual_seed(0)

# Create a mock args object with some attributes
args = argparse.Namespace(
    learning_rate=0.001,
    batch_size=32,
    epochs=10,
    model_name="test_model",
    debug=True,
    seed=42
)

# Create a base configuration dictionary
cfg = {
    "default_lr": 0.0001,
    "default_batch": 16,
    "dataset": "cifar10"
}

ARGS = {
    "args": args,
    "cfg": cfg
}
Setup block drafted by
a language model, Claude Haiku 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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
parse_cli_to_yaml Ran
ran on a synthesized input
LKLQQ/DRNet/src/model_utils/config.py
code served (permissive licence) · get_code("f0b391cf1db2ea47")
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 Namespace. 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
import ast

# Create a minimal parent parser
parent_parser = argparse.ArgumentParser(add_help=False)

# Create a base configuration dictionary with various types
base_cfg = {
    'learning_rate': 0.001,
    'batch_size': 32,
    'epochs': 100,
    'use_cuda': False,
    'model_name': 'resnet50',
    'dropout': 0.5,
    'weight_decay': 1e-4,
}

# Create helper descriptions for some keys
helper_dict = {
    'learning_rate': 'Learning rate for optimization',
    'batch_size': 'Batch size for training',
    'epochs': 'Number of training epochs',
    'use_cuda': 'Whether to use CUDA',
    'model_name': 'Name of the model architecture',
}

# Create choices for some parameters
choices_dict = {
    'model_name': ['resnet50', 'resnet101', 'vgg16'],
}

# Construct ARGS dictionary with all required parameters
ARGS = {
    'parser': parent_parser,
    'cfg': base_cfg,
    'helper': helper_dict,
    'choices': choices_dict,
    'cfg_path': 'resnet50_cifar10_config.yaml',
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
parse_yaml Ran
ran; our contract draft was wrong, not the code
LKLQQ/DRNet/src/model_utils/config.py
code served (permissive licence) · get_code("aacd1cc8cc1ff2e4")
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 yaml
import tempfile
import os

# Create a temporary YAML file with valid content
yaml_content = """
model: resnet50
batch_size: 32
learning_rate: 0.001
---
model: "The model type to use"
batch_size: "Number of samples per batch"
learning_rate: "Learning rate for optimizer"
---
model:
  - resnet50
  - resnet18
  - vgg16
batch_size:
  - 16
  - 32
  - 64
"""

# Write the YAML file to a temporary location
with tempfile.NamedTemporaryFile(mode='w', suffix='.yaml', delete=False) as f:
    f.write(yaml_content)
    yaml_path = f.name

try:
    # Define ARGS with the yaml_path parameter
    ARGS = {
        'yaml_path': yaml_path
    }
finally:
    # Clean up will happen after the function executes
    pass
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — 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

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 1 later) and 0 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
merge 28 other papers
23 dated earlier, 5 later
1406.1078 (2014-06)
Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation
1409.3215 (2014-09)
Sequence to Sequence Learning with Neural Networks
1512.00567 (2015-12)
Rethinking the Inception Architecture for Computer Vision
and 25 more not named here
parse_yaml 4 other papers
4 dated earlier
1804.06300 (2018-04)
PredRNN++: Towards A Resolution of the Deep-in-Time Dilemma in Spatiotemporal Predictive Learning
1904.01906 (2019-04)
What Is Wrong With Scene Text Recognition Model Comparisons? Dataset and Model Analysis
2006.04388 (2020-06)
Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection
and 1 more not named here
calculate_gain 2 other papers
2 dated earlier
1812.01187 (2018-12)
Bag of Tricks for Image Classification with Convolutional Neural Networks
2104.09124 (2021-04)
DisCo: Remedy Self-supervised Learning on Lightweight Models with Distilled Contrastive Learning
kaiming_normal 2 other papers
2 dated earlier
1812.01187 (2018-12)
Bag of Tricks for Image Classification with Convolutional Neural Networks
2104.09124 (2021-04)
DisCo: Remedy Self-supervised Learning on Lightweight Models with Distilled Contrastive Learning
parse_cli_to_yaml 1 other paper
1 dated earlier
2103.13413 (2021-03)
Vision Transformers for Dense Prediction

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

Deep convolutional neural networks (CNNs) are often of sophisticated design with numerous learnable parameters for the accuracy reason. To alleviate the expensive costs of deploying them on mobile devices, recent works have made huge efforts for excavating redundancy in pre-defined architectures. Nevertheless, the redundancy on the input resolution of modern CNNs has not been fully investigated, i.e., the resolution of input image is fixed. In this paper, we observe that the smallest resolution for accurately predicting the given image is different using the same neural network. To this end, we propose a novel dynamic-resolution network (DRNet) in which the input resolution is determined dynamically based on each input sample. Wherein, a resolution predictor with negligible computational costs is explored and optimized jointly with the desired network. Specifically, the predictor learns the smallest resolution that can retain and even exceed the original recognition accuracy for each image. During the inference, each input image will be resized to its predicted resolution for minimizing the overall computation burden. We then conduct extensive experiments on several benchmark networks and datasets. The results show that our DRNet can be embedded in any off-the-shelf network architecture to obtain a considerable reduction in computational complexity. For instance, DR-ResNet-50 achieves similar performance with an about 34% computation reduction, while gaining 1.4% accuracy increase with 10% computation reduction compared to the original ResNet-50 on ImageNet.

For agents

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

get_harvested_code_for_paper("2106.02898")
get_code_for_paper("2106.02898")
have("2106.02898")

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

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

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

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

Connect an agent — have() is free.