SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1905.10479 · 2019

Robust learning with implicit residual networks

arXiv · PDF · Open in the Atlas

Code that ran

10 of 16 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 10 have no contract verdict; 0 failures of our instrument; 6 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/1905.10479.json · badge: /api/ran/1905.10479.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
vreshniak/ImplicitResNet canonical (classifier label)
classifier basis: census
10 ran · 6 no recorded run
FunctionStatusWhere it lives
as_sum_and_dict Ran
ran on a synthesized input
vreshniak/ImplicitResNet/implicitresnet/utils/optim.py
code served (permissive licence) · get_code("6f95e3ffd26aa691")
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)

# Test case 1: value is None
value_none = None

# Test case 2: value is a list of tensors
value_list = [
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4)
]

# Test case 3: value is a dict of tensors
value_dict = {
    'loss_a': torch.randn(2, 4),
    'loss_b': torch.randn(2, 4)
}

# Test case 4: value is a single tensor
value_tensor = torch.randn(2, 4)

# Choose one test case for ARGS
ARGS = {
    'value': value_list
}
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
choose_activation Ran
ran on a synthesized input
vreshniak/ImplicitResNet/implicitresnet/models/misc.py
code served (permissive licence) · get_code("8bbf5feea26a6f9a")
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 ReLU. 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
from torch.nn import Linear, ReLU, Conv2d, Module, Sequential, Parameter

torch.manual_seed(0)

# Test case 1: string activation
activation_str = 'relu'

# Test case 2: Module activation
class CustomActivation(Module):
    def forward(self, x):
        return torch.relu(x)

activation_module = CustomActivation()

# ARGS mapping all parameters
ARGS = {
    'activation': 'relu'
}
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 ReLU — a ReLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ReLU 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
directional_derivative Ran
ran on a synthesized input
vreshniak/ImplicitResNet/implicitresnet/utils/calc.py
code served (permissive licence) · get_code("83d5ec9a89faf81c")
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 float, 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Define a simple function that takes input and produces output
# The function needs to be differentiable
class SimpleFun(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

fun = SimpleFun()

# Create input tensor: batch_size=2, feature_dim=4
input_tensor = torch.randn(2, 4, requires_grad=False)

# Create direction tensor: same shape as input (batch_size=2, feature_dim=4)
direction_tensor = torch.randn(2, 4, requires_grad=False)

ARGS = {
    "fun": fun,
    "input": input_tensor,
    "direction": direction_tensor,
    "create_graph": True
}
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 float, 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
gmres Ran
ran on a synthesized input
vreshniak/ImplicitResNet/implicitresnet/solvers/linear.py
code served (permissive licence) · get_code("8e30ebdc733853b4")
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)

# Matrix A is applied as a function A(x) which must return a tensor of same shape
# From the code: w = M(A(Q[..., i])) where Q[..., i] has shape (batch_dim, n)
# So A takes (batch, n) and returns (batch, n)
class LinearOperator(nn.Module):
    def __init__(self, n):
        super().__init__()
        # Create a simple linear operator represented as a matrix
        self.matrix = nn.Parameter(torch.randn(n, n))
    
    def forward(self, x):
        # x shape: (batch, n)
        # output shape: (batch, n)
        return torch.matmul(x, self.matrix.t())

# Set up dimensions
batch_dim = 2
n = 4

# Create the linear operator A
A = LinearOperator(n)

# Initial guess x: (batch_dim, n)
x = torch.randn(batch_dim, n)

# Right-hand side b: (batch_dim, n)
b = torch.randn(batch_dim, n)

# Preconditioner M - identity by default (or a simple scaling)
def M(v):
    return v

ARGS = {
    'A': A,
    'x': x,
    'b': b,
    'max_iters': 3,
    'min_iters': 2,
    'max_restarts': 1,
    'tol': 1e-6,
    'M': M
}
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
lbfgs Ran
ran on a synthesized input
vreshniak/ImplicitResNet/implicitresnet/solvers/nonlinear.py
code served (permissive licence) · get_code("4bec6efb67a9d390")
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 function that takes a tensor and returns residuals
class SimpleResidualFunction(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        # Return a tensor of residuals (batch_size, output_dim)
        return self.linear(x)

# Create instances
fun = SimpleResidualFunction()
x0 = torch.randn(2, 4, dtype=torch.float32)

# Build ARGS dict with all parameters
ARGS = {
    'fun': fun,
    'x0': x0,
    'tol': None,
    'max_iters': 100,
    'min_iters': 3,
    'history_size': 100,
    'batch_error': 'max'
}
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
nsolve Ran
ran on a synthesized input
vreshniak/ImplicitResNet/implicitresnet/solvers/nonlinear.py
code served (permissive licence) · get_code("bf33c34c6640a90b")
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 function that takes a tensor and returns residuals
def simple_fun(x):
    # Returns a batch of residuals (shape: [batch_size])
    # fun should return a tensor where batch_err can be applied
    return (x ** 2).sum(dim=1, keepdim=True).squeeze()

# Create initial guess - small tensor
x0 = torch.randn(2, 4, dtype=torch.float32, requires_grad=False)

# Build ARGS dict with all parameters for nsolve
ARGS = {
    'fun': simple_fun,
    'x0': x0,
    'method': 'lbfgs',
    'tol': None,
    'max_iters': 100,
    'min_iters': 3,
    'history_size': 100,
    'batch_error': 'max'
}
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
rotmat Ran
ran on a synthesized input
vreshniak/ImplicitResNet/implicitresnet/solvers/linear.py
code served (permissive licence) · get_code("dff2c97ab5b7ce9a")
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 3, 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

torch.manual_seed(0)

# The function rotmat takes two tensors a and b and computes Givens rotation parameters
# It uses element-wise operations like .abs(), torch.sqrt(), and boolean masking
# Both tensors should have the same shape for broadcasting to work correctly

a = torch.randn(2, 4)
b = torch.randn(2, 4)

ARGS = {
    "a": a,
    "b": b,
}
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, ndim 3, 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
theta_inv_stability_fun Ran
ran on a synthesized input
vreshniak/ImplicitResNet/implicitresnet/models/ode.py
code served (permissive licence) · get_code("fb875e2f3810912b")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - theta: used in arithmetic operations (theta + 1e-12, 1/theta, theta * ...)
#   appears to be a scalar or numeric value
# - y: used in max(), arithmetic operations (1-y, (1-y)*theta, etc.)
#   appears to be a scalar or numeric value

# The function performs scalar computations, so both parameters should be scalars
# Let's use float values that won't cause numerical issues

theta = 0.5
y = 0.3

ARGS = {
    "theta": theta,
    "y": y
}
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 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
theta_stability_fun Ran
ran on a synthesized input
vreshniak/ImplicitResNet/implicitresnet/models/ode.py
code served (permissive licence) · get_code("6d44c02a8b09c74c")
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 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 torch
import numpy as np

torch.manual_seed(0)

# theta_stability_fun takes theta and x as parameters
# theta: a scalar value (typically between 0 and 1)
# x: appears to be a numeric value or tensor that gets multiplied and added

# Create small test tensors
theta = torch.tensor(0.5)
x = torch.tensor(2.0)

ARGS = {
    "theta": theta,
    "x": x
}
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 Tensor, 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
trapz Ran
ran on a synthesized input
vreshniak/ImplicitResNet/implicitresnet/models/ode.py
code served (permissive licence) · get_code("4aed5f0826875589")
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 torch
import numpy as np

torch.manual_seed(0)

# The function trapz implements trapezoidal integration
# It takes y (a sequence of values) and dx (spacing)
# y needs to support len() and indexing with [0], [-1], and range indices
# dx should be a float

# Create a small list of y values for integration
y = [1.0, 2.0, 3.0, 4.0, 5.0]
dx = 0.5

ARGS = {
    'y': y,
    'dx': dx
}
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 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
eigenvalues Not yet run
unverified (harvested, no recorded run)
vreshniak/ImplicitResNet/implicitresnet/utils/spectral.py
code served (permissive licence) · get_code("2521b03c05a9ba6b")
How it ran

no invocation recorded.

jacobian Not yet run
unverified (harvested, no recorded run)
vreshniak/ImplicitResNet/implicitresnet/utils/calc.py
code served (permissive licence) · get_code("7a6d6d6cca1218a1")
How it ran

no invocation recorded.

remove_spectral_norm Not yet run
unverified (harvested, no recorded run)
vreshniak/ImplicitResNet/implicitresnet/utils/spectral.py
code served (permissive licence) · get_code("75ceabf48573ad7d")
How it ran

no invocation recorded.

scipy_lgmres Not yet run
unverified (harvested, no recorded run)
vreshniak/ImplicitResNet/implicitresnet/solvers/linear.py
code served (permissive licence) · get_code("0ac7e8bf701fd156")
How it ran

no invocation recorded.

spectral_norm Not yet run
unverified (harvested, no recorded run)
vreshniak/ImplicitResNet/implicitresnet/utils/spectral.py
code served (permissive licence) · get_code("ef7537e73ef321a6")
How it ran

no invocation recorded.

trace_and_jacobian Not yet run
unverified (harvested, no recorded run)
vreshniak/ImplicitResNet/implicitresnet/utils/calc.py
code served (permissive licence) · get_code("c8339f2362619acb")
How it ran

no invocation recorded.

Also present in other papers' code

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

In this effort, we propose a new deep architecture utilizing residual blocks inspired by implicit discretization schemes. As opposed to the standard feed-forward networks, the outputs of the proposed implicit residual blocks are defined as the fixed points of the appropriately chosen nonlinear transformations. We show that this choice leads to the improved stability of both forward and backward propagations, has a favorable impact on the generalization power and allows to control the robustness of the network with only a few hyperparameters. In addition, the proposed reformulation of ResNet does not introduce new parameters and can potentially lead to a reduction in the number of required layers due to improved forward stability. Finally, we derive the memory-efficient training algorithm, propose a stochastic regularization technique and provide numerical results in support of our findings.

For agents

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

get_harvested_code_for_paper("1905.10479")
get_code_for_paper("1905.10479")
have("1905.10479")

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

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

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

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

Connect an agent — have() is free.