SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1911.00937 · 2019

Preventing Gradient Attenuation in Lipschitz Constrained Convolutional Networks

arXiv · PDF · Open in the Atlas

Code that ran

10 of 14 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 4 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/1911.00937.json · badge: /api/ran/1911.00937.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
ColinQiyangLi/LConvNet canonical (classifier label)
classifier basis: classifier_2025
10 ran · 4 no recorded run
FunctionStatusWhere it lives
bjorck_orthonormalize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("c6d2da76d5fbb78a")
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 Tensor, ndim 3, dtype family float, shape (2, 4, 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

torch.manual_seed(0)

# Create a small matrix w with shape (batch, m, n) where m >= n
# Using distinct sizes: batch=2, m=4, n=3
w = torch.randn(2, 4, 3, dtype=torch.float32)

ARGS = {
    "w": w,
    "beta": 0.5,
    "iters": 20,
    "order": 1,
    "power_iteration_scaling": False,
    "default_scaling": False,
}
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 Tensor, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 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
block_orth Ran
ran; our contract draft was wrong, not the code
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("67faa492a8df483a")
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 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

torch.manual_seed(0)

# Create two symmetric projection matrices of the same size
n = 4

# A symmetric projection matrix P satisfies P = P^T and P^2 = P
# Simple way: create a random symmetric matrix and make it a projection
A = torch.randn(n, n)
A_sym = (A + A.T) / 2

# Create projection matrix p1 using eigendecomposition
eigenvalues, eigenvectors = torch.linalg.eigh(A_sym)
# Take first half of eigenvectors to create a projection
k = n // 2
selected_vecs = eigenvectors[:, :k]
p1 = selected_vecs @ selected_vecs.T

# Create another symmetric projection matrix p2
B = torch.randn(n, n)
B_sym = (B + B.T) / 2
eigenvalues2, eigenvectors2 = torch.linalg.eigh(B_sym)
selected_vecs2 = eigenvectors2[:, :k]
p2 = selected_vecs2 @ selected_vecs2.T

ARGS = {
    'p1': p1,
    'p2': p2
}
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 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
conv2d_cyclic_pad Ran
ran; our contract draft was wrong, not the code
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("0e56ee61b3f7a88d")
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 Tensor, ndim 4, dtype family float, shape (2, 2, 3, 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)

# Create a small input tensor: (batch=2, channels=4, height=3, width=3)
x = torch.randn(2, 4, 3, 3)

# Create a weight tensor for conv2d: (out_channels=2, in_channels=4, kernel_h=3, kernel_w=3)
weight = torch.randn(2, 4, 3, 3)

# Create a bias tensor: (out_channels=2,)
bias = torch.randn(2)

ARGS = {
    "x": x,
    "weight": weight,
    "bias": bias,
}
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 Tensor, ndim 4, dtype family float, shape (2, 2, 3, 3) — shape (2, 2, 3, 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
conv_singular_values_numpy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("8c6d22a2cf2995bc")
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 ndarray, ndim 3, dtype family float, shape (8, 8, 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

# Create a small convolutional kernel
# kernel shape should be (height, width, in_channels, out_channels)
# Using distinct dimensions: 3x4x2x5
kernel = np.random.randn(3, 4, 2, 5).astype(np.float32)

# Create input_shape for FFT
# This should be a tuple of spatial dimensions (height, width)
input_shape = (8, 8)

ARGS = {
    "kernel": kernel,
    "input_shape": input_shape,
}
Setup block drafted by
a language model, Claude Haiku 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 ndarray, ndim 3, dtype family float, shape (8, 8, 3) — shape (8, 8, 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
cyclic_pad_2d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("a03b76e7e8b7145d")
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 Tensor, ndim 4, dtype family float, shape (2, 3, 6, 9) 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)

# Create a small 4D tensor for 2D image input
# Shape: (batch, channels, height, width)
x = torch.randn(2, 3, 4, 5)

# Define padding amounts for height and width
pads = (1, 2)

# Boolean flags for even dimensions
even_h = False
even_w = False

ARGS = {
    "x": x,
    "pads": pads,
    "even_h": even_h,
    "even_w": even_w,
}
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 Tensor, ndim 4, dtype family float, shape (2, 3, 6, 9) — shape (2, 3, 6, 9) 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
dict_to_tensor Ran
ran, honoured the contract we drafted
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("2bdb69b2570e1bd8")
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 3, dtype family float, shape (2, 4, 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

torch.manual_seed(0)

# The function expects:
# - x: a dict-like object that supports indexing with [i, j]
# - k1: an integer for the first dimension range
# - k2: an integer for the second dimension range

# Create a dict where keys are tuples (i, j) and values are tensors
x = {}
k1 = 2
k2 = 4

# Populate the dict with small tensors
for i in range(k1):
    for j in range(k2):
        x[i, j] = torch.randn(3)

ARGS = {
    "x": x,
    "k1": k1,
    "k2": k2,
}
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 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 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
matrix_conv Ran
ran; our contract draft was wrong, not the code
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("20d0aab322225a36")
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 numpy as np

torch.manual_seed(0)

# Create two dictionaries of matrices for matrix convolution
# m1: 2x2 dictionary (k=2), each element is 3x3 matrix
# m2: 2x2 dictionary (l=2), each element is 3x3 matrix

n = 3  # dimension of each matrix

m1 = {
    (0, 0): torch.randn(n, n),
    (0, 1): torch.randn(n, n),
    (1, 0): torch.randn(n, n),
    (1, 1): torch.randn(n, n),
}

m2 = {
    (0, 0): torch.randn(n, n),
    (0, 1): torch.randn(n, n),
    (1, 0): torch.randn(n, n),
    (1, 1): torch.randn(n, n),
}

ARGS = {
    "m1": m1,
    "m2": m2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, 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
orthogonal_matrix Ran
ran, honoured the contract we drafted
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("6e1165eb18d80570")
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 2, dtype family float, shape (5, 5) 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)

n = 5

ARGS = {
    'n': n
}
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 2, dtype family float, shape (5, 5) — shape (5, 5) 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
power_iteration Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("264dacf0aae30538")
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 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

torch.manual_seed(0)

# Construct a small matrix A for power iteration
# Power iteration works on matrices, so we need a 2D tensor
# Let's make it a small square matrix for simplicity
A = torch.randn(4, 4, dtype=torch.float32)

# init_u is optional, but if provided should have shape (..., n, 1)
# where n matches the last dimension of A
init_u = torch.randn(4, 1, dtype=torch.float32)

# n_iters is the number of iterations
n_iters = 10

# return_uv is a boolean flag
return_uv = True

ARGS = {
    "A": A,
    "init_u": init_u,
    "n_iters": n_iters,
    "return_uv": return_uv,
}
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 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
symmetric_projection Ran
ran; our contract draft was wrong, not the code
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("246c26b7c160c814")
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 2, dtype family float, shape (4, 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)

n = 4
ortho_matrix = torch.randn(n, n)
# Make it orthogonal using QR decomposition
ortho_matrix, _ = torch.linalg.qr(ortho_matrix)

mask = torch.randn(n)
mask = (mask > 0).float()

ARGS = {
    'n': n,
    'ortho_matrix': ortho_matrix,
    'mask': mask
}
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 2, dtype family float, shape (4, 4) — shape (4, 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
BCOP Not yet run
unverified (harvested, no recorded run)
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("568d86e4f1f7b544")
How it ran

no invocation recorded.

LipschitzModuleL2 Not yet run
unverified (harvested, no recorded run)
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("b3df67d1d29dafde")
How it ran

no invocation recorded.

StreamlinedModule Not yet run
unverified (harvested, no recorded run)
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("33d734483d94ad69")
How it ran

no invocation recorded.

convolution_orthogonal_generator_projs Not yet run
unverified (harvested, no recorded run)
ColinQiyangLi/LConvNet/lconvnet/layers/bcop.py
code served (permissive licence) · get_code("5a14b8c3f447240f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 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.

FunctionAlso present inEarliest-datedOthers named
bjorck_orthonormalize
brick of this paper's assembly: helper
1 other paper
1 later
2211.08453 (2022-11)
Improved techniques for deterministic l 2 robustness
orthogonal_matrix 1 other paper
1 later
2211.08453 (2022-11)
Improved techniques for deterministic l 2 robustness

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

Lipschitz constraints under L2 norm on deep neural networks are useful for provable adversarial robustness bounds, stable training, and Wasserstein distance estimation. While heuristic approaches such as the gradient penalty have seen much practical success, it is challenging to achieve similar practical performance while provably enforcing a Lipschitz constraint. In principle, one can design Lipschitz constrained architectures using the composition property of Lipschitz functions, but Anil et al. recently identified a key obstacle to this approach: gradient norm attenuation. They showed how to circumvent this problem in the case of fully connected networks by designing each layer to be gradient norm preserving. We extend their approach to train scalable, expressive, provably Lipschitz convolutional networks. In particular, we present the Block Convolution Orthogonal Parameterization (BCOP), an expressive parameterization of orthogonal convolution operations. We show that even though the space of orthogonal convolutions is disconnected, the largest connected component of BCOP with 2n channels can represent arbitrary BCOP convolutions over n channels. Our BCOP parameterization allows us to train large convolutional networks with provable Lipschitz bounds. Empirically, we find that it is competitive with existing approaches to provable adversarial robustness and Wasserstein distance estimation.

For agents

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

get_harvested_code_for_paper("1911.00937")
get_code_for_paper("1911.00937")
have("1911.00937")

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

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

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

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

Connect an agent — have() is free.