SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.14018 · 2026

Transforming Rank: How Architecture Navigates the Spectral Pathologies of Depth

Katie Everett

arXiv · PDF

Code that ran

11 of 13 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2607.14018.json · badge: /api/ran/2607.14018.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
everettk/transforming-rank-paper canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
FunctionStatusWhere it lives
act_derivative Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
everettk/transforming-rank-paper/width_model.py
code served (permissive licence) · get_code("3da80da6181d87bb")
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 ArrayImpl, ndim 2, dtype family float, 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 jax
import jax.numpy as jnp

# Test act_derivative with different activation functions and input arrays
ARGS = {
    'name': 'relu',
    'z': jnp.array([[-1.0, 0.0, 1.0, 2.5],
                    [0.5, -2.0, 3.0, -0.5]])
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, 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
build_network Ran
ran; our contract draft was wrong, not the code
everettk/transforming-rank-paper/norm_model.py
code served (permissive licence) · get_code("e663da71a75b4ef9")
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 jax
import jax.numpy as jnp
import jax.random as jr

# Set seed for reproducibility
jr.PRNGKey(42)

ARGS = {
    'skel': 'sq1',
    'depth': 3,
    'norm_p': 'layernorm',
    'norm_b': 'rmsnorm',
    'norm_r': 'none',
    'd': 4,
    'init_scale': 1.0,
    'beta': '1',
    'act': 'relu',
    'rng_key': jr.PRNGKey(42),
    'alpha_skip': 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — 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
download_cifar10 Ran
ran; our contract draft was wrong, not the code
everettk/transforming-rank-paper/data_gen/cifar_train.py
code served (permissive licence) · get_code("2729f733fbf261a7")
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 os
import pickle
import tempfile
import shutil
import numpy as np

# Create a temporary directory for the test
test_data_dir = tempfile.mkdtemp()

# Create the cifar-10-batches-py directory structure with mock data
batch_dir = os.path.join(test_data_dir, 'cifar-10-batches-py')
os.makedirs(batch_dir, exist_ok=True)

# Create mock data batches
# Each batch should have 'data' and 'labels' keys
# CIFAR-10 data is 32x32 RGB images flattened to 3072 bytes per image
for i in range(1, 6):
    batch_data = {
        b'data': np.random.randint(0, 256, (10, 3072), dtype=np.uint8),
        b'labels': [i % 10 for i in range(10)]
    }
    batch_path = os.path.join(batch_dir, f'data_batch_{i}')
    with open(batch_path, 'wb') as f:
        pickle.dump(batch_data, f)

# Create test batch
test_batch_data = {
    b'data': np.random.randint(0, 256, (10, 3072), dtype=np.uint8),
    b'labels': [i % 10 for i in range(10)]
}
test_batch_path = os.path.join(batch_dir, 'test_batch')
with open(test_batch_path, 'wb') as f:
    pickle.dump(test_batch_data, f)

ARGS = {
    'data_dir': test_data_dir
}
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 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
effective_rank Ran
ran, honoured the contract we drafted
everettk/transforming-rank-paper/width_model.py
code served (permissive licence) · get_code("f2c1202f997e67f8")
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 takes singular values (1-D array)
# We'll create a small set of singular values from an SVD
# Create a small matrix and compute its SVD to get realistic singular values
M = torch.randn(4, 3)
U, S, Vh = torch.svd(M)

# S is already the singular values in descending order
# Convert to numpy for the function (it uses jax.numpy internally but we pass numpy)
S_numpy = S.numpy()

ARGS = {
    "S": S_numpy
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, 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
erank Ran
ran, honoured the contract we drafted
everettk/transforming-rank-paper/coherence_model.py
code served (permissive licence) · get_code("0339b8622c35a739")
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 jax.numpy as jnp
import numpy as np

torch.manual_seed(0)

# The function erank takes a matrix M and computes its effective rank
# based on singular values. M should be a 2D array-like that jax.numpy.linalg.svd can handle.

# Create a small matrix with distinct dimensions
M = jnp.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0]
], dtype=jnp.float32)

ARGS = {
    "M": M
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, 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
rcrit Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
everettk/transforming-rank-paper/data_gen/diag_law_slopes_width.py
code served (permissive licence) · get_code("c642f696dc78fddf")
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 numpy as np

# Analyze the function rcrit(e, thr):
# - e: appears to be a numpy array (calls .min(), .max(), uses in np.argsort, np.interp, indexing)
# - thr: a scalar threshold value to interpolate at
# - The function checks if e.min() < thr < e.max()
# - It sorts e, interpolates log(AL^2) against sorted e at threshold thr

# Create a valid e array with enough variation
e = np.array([0.1, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0])

# Create a threshold that falls strictly between e.min() and e.max()
thr = 2.5

ARGS = {
    "e": e,
    "thr": thr
}
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 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
scaled_add Ran
ran; our contract draft was wrong, not the code
everettk/transforming-rank-paper/path_decomposition.py
code served (permissive licence) · get_code("a0ae3224d5eb7e2a")
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 numpy as np

# Create two scaled matrices A and B
# Each is a tuple of (matrix, log_scale)

# A = (Ahat, a)
Ahat = np.array([[1.0, 0.5, 0.2], [0.3, 0.8, 0.1]])
a = 0.5

# B = (Bhat, b)
Bhat = np.array([[0.2, 0.9, 0.4], [0.6, 0.3, 0.7]])
b = 1.2

A = (Ahat, a)
B = (Bhat, b)

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
numpy — 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
scaled_matmul_left Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
everettk/transforming-rank-paper/path_decomposition.py
code served (permissive licence) · get_code("67903a73d514d9c3")
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 numpy as np

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

# Create a small ordinary matrix Jbr (2x3)
Jbr = np.random.randn(2, 3)

# Create a scale-aware matrix A = (Ahat, a)
# Ahat should be a matrix (3x4) that will be multiplied by Jbr (2x3)
Ahat = np.random.randn(3, 4)
a = 0.5  # scalar log-scale factor

A = (Ahat, a)

ARGS = {
    "Jbr": Jbr,
    "A": A,
}
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 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
stable_rank Ran
ran, honoured the contract we drafted
everettk/transforming-rank-paper/coherence_model.py
code served (permissive licence) · get_code("e0e617ccbd55e472")
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 jax.numpy as jnp
import numpy as np

torch_seed = 0

# Create a small matrix for testing stable_rank
# The function expects a matrix M that can be passed to jnp.linalg.svd
# We'll create a simple 4x3 matrix with distinct dimensions
M = jnp.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0]
], dtype=jnp.float32)

ARGS = {
    "M": M
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — 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
survival_rate Ran
ran, honoured the contract we drafted
everettk/transforming-rank-paper/width_model.py
code served (permissive licence) · get_code("506ded6ec2e02fa9")
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 jax
import jax.numpy as jnp
import jax.random as jr

SURVIVAL_RATE = {'relu': 0.5, 'gelu': 0.4559, 'silu': 0.3795, 'abs': 1.0}

def _act_fn(name):
    """The pointwise activation sigma, by name ('relu'/'gelu'/'silu'/'abs')."""
    return {'relu': jax.nn.relu, 'gelu': jax.nn.gelu, 'silu': jax.nn.silu, 'abs': jnp.abs}[name]

def act_derivative(name, z):
    """The activation derivative sigma'(z), evaluated elementwise on z."""
    z = jnp.asarray(z)
    if name == 'relu':
        return (z > 0).astype(z.dtype)
    if name == 'abs':
        return jnp.sign(z)
    fn = _act_fn(name)
    return jax.vmap(jax.grad(lambda t: fn(t)))(z)

def survival_rate(name, n=4000000, seed=0):
    """The survival rate p = E[sigma'(z)^2] under z ~ N(0,1)."""
    if name in ('relu', 'abs'):
        return SURVIVAL_RATE[name]
    z = jr.normal(jr.PRNGKey(seed), (n,))
    return float(jnp.mean(act_derivative(name, z) ** 2))

ARGS = {
    'name': 'relu',
    'n': 1000,
    'seed': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — 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
to_scaled Ran
ran; our contract draft was wrong, not the code
everettk/transforming-rank-paper/path_decomposition.py
code served (permissive licence) · get_code("8fc255e3bfb4fed6")
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 numpy as np

# Create a small test matrix with distinct dimensions
M = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0]
], dtype=np.float64)

ARGS = {
    "M": M
}
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 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
build_network Not yet run
unverified (harvested, no recorded run)
everettk/transforming-rank-paper/coherence_model.py
code served (permissive licence) · get_code("90cc0b9e90bf4298")
How it ran

no invocation recorded.

composed_erank Not yet run
unverified (harvested, no recorded run)
everettk/transforming-rank-paper/norm_model.py
code served (permissive licence) · get_code("fedbaafedc485c30")
How it ran

no invocation recorded.

Also present in other papers' code

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

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 investigate how each component of the Transformer feedforward block architecture design determines how much rank survives across depth at initialization. We reinterpret skip connections and normalization, long understood as controlling magnitude, as mechanisms for preserving gradient rank across depth, since the very matrix multiplications and nonlinear activations that make the network expressive also reduce the rank. We show that skip connections trade off rank collapse against ensemble-like behavior, controlled by the relative scales of the branch and the skip: skip connections route the gradient around the residual branch, where rank is lost, rather than along the long gradient paths that encourage the layers to compose. The placement of the normalization layer controls this same tradeoff by setting the branch-to-skip ratio across depth, unifying much of the normalization placement and depth scaling literature, in particular why rank collapses for Post-Norm but plateaus for Pre-Norm. Other aspects of the architecture, like the two-matrix structure that expands and contracts the width, use additional parameters to preserve the representation or branch Jacobian rank. The second matrix decorrelates a coherent mean spike that would grow across blocks with a single matrix and uncentered activation, preventing the residual representation from collapsing. The width expansion between the two matrices keeps the branch Jacobian full rank: applying the rank-reducing activation in this expanded space leaves enough directions to span the original, at a width that follows a Marchenko-Pastur law. The initialization rank of the input-output Jacobian predicts which networks train on CIFAR-10. Taken together, we recast architecture design for deep networks as navigating an intrinsic tradeoff among rank collapse, ensemble-like behavior, and parameter count. Code is available at https://github.com/everettk/transforming-rank-paper.

For agents

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

get_harvested_code_for_paper("2607.14018")
get_code_for_paper("2607.14018")
have("2607.14018")

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

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

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

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

Connect an agent — have() is free.