SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.28743 · 2026

Rethinking Language Model Scaling under Transferable Hypersphere Optimization

Yang Liu, Weizhu Chen, Yelong Shen, Liliang Ren

arXiv · PDF · Open in the Atlas

Code that ran

19 of 20 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, 1 violated it and 0 have no contract verdict; 14 failures of our instrument; 1 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/2603.28743.json · badge: /api/ran/2603.28743.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
microsoft/ArchScale canonical (classifier label)
classifier basis: census
19 ran · 1 no recorded run
FunctionStatusWhere it lives
activation_budget_bce Ran
ran; our contract draft was wrong, not the code
microsoft/ArchScale/lit_gpt/aux_loss.py
code served (permissive licence) · get_code("e3fda579939ce066")
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 torch.nn.functional as F

torch.manual_seed(0)

# Construct valid arguments for activation_budget_bce
# router_out: (B, L, T) tensor with probabilities in (0, 1)
# B=batch=2, L=layers=3, T=tokens=4
router_out = torch.rand(2, 3, 4) * 0.8 + 0.1  # Values in [0.1, 0.9] to avoid extremes

# tau: target fraction
tau = 0.25

# mask: Optional (B, T) boolean/float mask for variable-length sequences
# B=2, T=4
mask = torch.tensor([
    [1.0, 1.0, 1.0, 0.0],
    [1.0, 1.0, 0.0, 0.0]
])

# lambda_budget: multiplier for the auxiliary loss
lambda_budget = 1.0

# eps: numerical stability
eps = 1e-6

# loss: which loss to use ('bce' or 'mse')
loss = 'mse'

# mode: aggregation mode ('per_sequence' or 'per_layer')
mode = 'per_layer'

ARGS = {
    'router_out': router_out,
    'tau': tau,
    'mask': mask,
    'lambda_budget': lambda_budget,
    'eps': eps,
    'loss': loss,
    'mode': mode
}
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 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
calculate_flops Ran
ran, honoured the contract we drafted
microsoft/ArchScale/plot_flops_scaling.py
code served (permissive licence) · get_code("e2e4134ae510653b")
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

t0 = 100000000000.0

def calculate_flops(depth, mult, n0, t0):
    """Calculates estimated FLOPs based on 6NT scaling."""
    if depth <= 0:
        return np.nan
    n_target = mult * depth ** 3
    tokens = t0 * n_target / n0
    flops = 6 * n_target * tokens
    return flops

ARGS = {
    "depth": 10,
    "mult": 2.5,
    "n0": 50000000.0,
    "t0": 100000000000.0
}
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
compress_seq Ran
ran; our contract draft was wrong, not the code
microsoft/ArchScale/lit_gpt/layer_configurator.py
code served (permissive licence) · get_code("51a37b13218b6913")
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, 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)

# Create a small tensor q with shape (batch=2, seq_len=5, dim=4)
# dim=-2 means we're working along the sequence dimension
q = torch.randn(2, 5, 4, dtype=torch.float32)

# Create index_q for scatter_ operation
# It should have the same shape as q but with values that are valid indices
# For scatter_ along dim=-2, indices should be in range [0, max_sl+1)
# Shape: (2, 5, 4), values in range [0, 4) for max_sl=3
index_q = torch.randint(0, 4, (2, 5, 4), dtype=torch.long)

# max_sl parameter - the maximum sequence length
max_sl = 3

# dim parameter - the dimension along which to scatter/compress
dim = -2

ARGS = {
    'q': q,
    'index_q': index_q,
    'max_sl': max_sl,
    'dim': dim
}
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, 3, 4) — shape (2, 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
compute_rmsnorm Ran
ran; our contract draft was wrong, not the code
microsoft/ArchScale/lit_gpt/model.py
code served (permissive licence) · get_code("9c8d36bdd9723294")
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

torch.manual_seed(0)

# Create a small tensor for testing
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 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
compute_tokens_per_expert_seq Ran
ran; our contract draft was wrong, not the code
microsoft/ArchScale/lit_gpt/aux_loss.py
code served (permissive licence) · get_code("bdd0edf8ef9c1c49")
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 int, shape (2, 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)

# Create a small expert_indices tensor
# Shape (B, seq_len, top_k) = (2, 4, 3)
# Each value is an expert index from 0 to n_experts-1
expert_indices = torch.randint(0, 5, (2, 4, 3), dtype=torch.long)

# Number of experts
n_experts = 5

# Sequence length
seq_len = 4

ARGS = {
    "expert_indices": expert_indices,
    "n_experts": n_experts,
    "seq_len": seq_len,
}
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 int, shape (2, 5) — shape (2, 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
elu_p1 Ran
ran; our contract draft was wrong, not the code
microsoft/ArchScale/lit_gpt/delta_net.py
code served (permissive licence) · get_code("bc4bddefd7540078")
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 (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 torch

torch.manual_seed(0)

x = torch.randn(2, 4)

ARGS = {
    'x': x
}
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 (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
eval_index Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
microsoft/ArchScale/lit_gpt/layer_configurator.py
code served (permissive licence) · get_code("1143997b3acc55c1")
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, 3, 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)

# Analyze the function:
# - x: needs to have .shape attribute (tensor-like)
# - dim: integer parameter
# The function constructs a string that indexes into x using eval()
# It slices up to dimension `dim` with ':,' then takes [1:] on the last dimension

# Create a tensor with distinct dimensions for probing
x = torch.randn(2, 3, 4, 5)  # 4D tensor with distinct sizes

# Test with positive dim
dim = 2

ARGS = {
    'x': x,
    'dim': dim
}
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, 3, 5) — shape (2, 3, 3, 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
extract Ran
ran; our contract draft was wrong, not the code
microsoft/ArchScale/lit_gpt/layer_configurator.py
code served (permissive licence) · get_code("3b3d3416a93b6405")
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, 5, 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create h tensor: shape (batch=2, seq_len=3, dim=4)
# The function pads it and gathers along dimension -2
h = torch.randn(2, 3, 4)

# Create index_q tensor: shape (batch=2, query_len=5, 1)
# This will be expanded to (batch=2, query_len=5, dim=4)
# Values should be valid indices into seq_len dimension (0-3 after padding)
index_q = torch.randint(0, 4, (2, 5, 1))

ARGS = {
    "h": h,
    "index_q": index_q,
}
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, 5, 4) — shape (2, 5, 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
fit_optimal_loss Ran
ran; our contract draft was wrong, not the code
microsoft/ArchScale/plots/plot_loss_npoints_sensitivity.py
code served (permissive licence) · get_code("4a60331c60ddcae3")
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 float64, ndim 0, 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 numpy as np

# fit_optimal_loss takes two parameters:
# - lrs: array of learning rates
# - losses: array of corresponding losses
# The function fits a quadratic in log-LR space and returns predicted optimal loss

# Create small but realistic data
np.random.seed(0)

# Generate learning rates (should be positive for log)
lrs = np.array([1e-5, 1e-4, 1e-3, 1e-2, 1e-1])

# Generate corresponding losses (create a parabola-like pattern in log space)
# to ensure coeffs[0] > 0 for a valid quadratic minimum
losses = np.array([0.8, 0.5, 0.3, 0.4, 0.7])

ARGS = {
    "lrs": lrs,
    "losses": losses,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
get_grad_norm Ran
ran; our contract draft was wrong, not the code
microsoft/ArchScale/logging_utils.py
code served (permissive licence) · get_code("6ac53a7ef2435384")
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 torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.linear2(self.linear1(x))

# Create model instance
model = SimpleModel()

# Create a simple batch to compute gradients
x = torch.randn(2, 4)
y = torch.randn(2, 2)

# Forward pass and compute loss
output = model(x)
loss = nn.MSELoss()(output, y)

# Backward pass to populate gradients
loss.backward()

ARGS = {
    "model": model
}
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 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
iceildiv Ran
ran, honoured the contract we drafted
microsoft/ArchScale/eval_phonebook.py
pointer only (licence: MIT); the stored copy get_code serves, from yangjianxin1/longqlora, is pointer only (licence: NONE) · get_code("51ee91de5e3fdcaa")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from yangjianxin1/longqlora, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_balance_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
microsoft/ArchScale/lit_gpt/aux_loss.py
code served (permissive licence) · get_code("af6ecca19cb81a1c")
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

torch.manual_seed(0)

# Define arguments for load_balance_loss function
# B=batch_size, seq_len=sequence_length, E=num_experts, T=total_tokens

B = 2
seq_len = 4
E = 3
T = B * seq_len

# expert_weights: (T, E) tensor of router weights (post-softmax, sparse)
# Shape: (8, 3) - total_tokens x num_experts
expert_weights = torch.rand(T, E)
expert_weights = expert_weights / expert_weights.sum(dim=-1, keepdim=True)  # normalize to be post-softmax

# tokens_per_expert: (E,) for global styles, or (B, E) for "switch_seq" style
# For flexibility, we'll use (B, E) which works for switch_seq
tokens_per_expert = torch.randint(1, 5, (B, E)).float()

# mask: Optional (B, T) boolean/float mask for variable-length sequences
# 1/True for valid tokens, 0/False for pad
mask = torch.ones(B, seq_len, dtype=torch.float32)

# gamma: coefficient to scale the loss
gamma = 1.0

# eps: numerical stability for log computation
eps = 1e-30

# style: Loss style - "entropy", "switch", "switch_seq"
style = 'switch_seq'

# global_stats: Whether to all-reduce across ranks for global statistics
global_stats = False

# seq_len: Sequence length, required for "switch_seq" style
seq_len_param = seq_len

ARGS = {
    'expert_weights': expert_weights,
    'tokens_per_expert': tokens_per_expert,
    'mask': mask,
    'gamma': gamma,
    'eps': eps,
    'style': style,
    'global_stats': global_stats,
    'seq_len': seq_len_param,
}
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 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
maxvio_batch Ran
ran; our contract draft was wrong, not the code
microsoft/ArchScale/logging_utils.py
code served (permissive licence) · get_code("0df6477d542f5cd7")
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

torch.manual_seed(0)

# Construct a small tokens_per_expert tensor
# Shape (E,) where E is number of experts
tokens_per_expert = torch.tensor([120, 100, 80, 100], dtype=torch.float32)

ARGS = {
    "tokens_per_expert": tokens_per_expert,
}
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 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
parse_name Ran
ran, honoured the contract we drafted
microsoft/ArchScale/plots/plot_loss_npoints_sensitivity.py
code served (permissive licence) · get_code("79e61238be70ea1e")
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 re
import torch

torch.manual_seed(0)

def parse_name(name):
    lr_match = re.search('_lr([\\d.e\\-]+)x', name)
    tok_match = re.search('_tok([\\d.e]+)', name)
    if lr_match and tok_match:
        lr = float(lr_match.group(1))
        tok = float(tok_match.group(1))
        return (lr, tok)
    return (None, None)

# Test with a string that matches both patterns
ARGS = {
    'name': 'model_lr0.001x_tok2.5_checkpoint'
}
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 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
power_law Ran
ran, honoured the contract we drafted
microsoft/ArchScale/plots/plot_loss_npoints_sensitivity.py
code served (permissive licence) · get_code("88dcd7b69208a798")
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)

# Construct arguments for power_law(T, a, b)
# The function computes: a * T ** b
# T should be a numeric value (tensor or scalar)
# a should be a numeric value (coefficient)
# b should be a numeric value (exponent)

T = torch.tensor(2.5)
a = torch.tensor(3.0)
b = torch.tensor(2.0)

ARGS = {
    "T": T,
    "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, 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
power_law_with_offset Ran
ran, violated the contract we drafted
microsoft/ArchScale/plot_data_scaling.py
code served (permissive licence) · get_code("da1aea3415038667")
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 1, dtype family float, shape (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
import numpy as np

torch.manual_seed(0)

# Construct arguments for power_law_with_offset(D, A, b, C)
# The function computes: A * D ** (-b) + C
# All parameters are used in arithmetic operations, so they should be numeric tensors or scalars

D = torch.tensor([1.0, 2.0, 3.0, 4.0])
A = torch.tensor(5.0)
b = torch.tensor(2.0)
C = torch.tensor(1.0)

ARGS = {
    "D": D,
    "A": A,
    "b": b,
    "C": C
}
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 1, dtype family float, shape (4,) — shape (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
simple_norm Ran
ran; our contract draft was wrong, not the code
microsoft/ArchScale/lit_gpt/delta_net.py
code served (permissive licence) · get_code("66273c2be13e01a5")
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, 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
import torch.nn as nn

torch.manual_seed(0)

# simple_norm takes a single parameter: x
# The function calls:
# - F.normalize(x, dim=-1): normalizes along last dimension
# - x.shape[-1]: gets last dimension size
# - .to(x): converts result to same device/dtype as x
# So x must be a tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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, 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
sum_norm Ran
ran; our contract draft was wrong, not the code
microsoft/ArchScale/lit_gpt/delta_net.py
code served (permissive licence) · get_code("e544fdb6373b9f42")
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 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 torch

torch.manual_seed(0)

# Create a small tensor with shape (2, 4)
# The function divides by sum along the last dimension (-1)
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 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
truncated_normal_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
microsoft/ArchScale/lit_gpt/model.py
code served (permissive licence) · get_code("1e4e234055203901")
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, 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)

# Create a small tensor to be initialized
tensor = torch.empty(2, 4)

ARGS = {
    "tensor": tensor,
    "mean": 0.0,
    "std": 0.02
}
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, 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
register_logging_hook Not yet run
unverified (harvested, no recorded run)
microsoft/ArchScale/logging_utils.py
code served (permissive licence) · get_code("4dc7add0be5af66a")
How it ran

no invocation recorded.

Also present in other papers' code

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

FunctionAlso present inEarliest-datedOthers named
elu_p1 4 other papers
4 dated earlier
2402.18668 (2024-02)
Simple linear attention language models balance the recall-throughput tradeoff
2406.06484 (2024-06)
Parallelizing Linear Transformers with the Delta Rule over Sequence Length
2502.10297 (2025-02)
DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Products
and 1 more not named here
iceildiv 3 other papers
3 dated earlier
2306.15595 (2023-06)
Extending Context Window of Large Language Models via Positional Interpolation
2311.04879 (2023-11)
LongQLoRA: Efficient and Effective Method to Extend Context Length of Large Language Models
2409.12181 (2024-09)
A Controlled Study on Long Context Extension and Generalization in LLMs
sum_norm 3 other papers
3 dated earlier
2402.18668 (2024-02)
Simple linear attention language models balance the recall-throughput tradeoff
2502.10297 (2025-02)
DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Products
2503.02130 (2025-03)
Forgetting Transformer: Softmax Attention with a Forget Gate
eval_index 1 other paper
1 dated earlier
2306.11197 (2023-06)
Sparse Modular Activation for Efficient Sequence Modeling

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

Scaling laws for large language models depend critically on the optimizer and parameterization. Existing hyperparameter transfer laws are mainly developed for first-order optimizers, and they do not structurally prevent training instability at scale. Recent hypersphere optimization methods constrain weight matrices to a fixed-norm hypersphere, offering a promising alternative for more stable scaling. We introduce HyperP (Hypersphere Parameterization), the first framework for transferring optimal learning rates across model width, depth, training tokens, and Mixture-of-Experts (MoE) granularity under the Frobenius-sphere constraint with the Muon optimizer. We prove that weight decay is a first-order no-op on the Frobenius sphere, show that Depth-µP remains necessary, and find that the optimal learning rate follows the same data-scaling power law with the "magic exponent" 0.32 previously observed for AdamW. A single base learning rate tuned at the smallest scale transfers across all compute budgets under HyperP, yielding 1.58× compute efficiency over a strong Muon baseline at 6 × 10 21 FLOPs. Moreover, Hy-perP delivers transferable stability: all monitored instability indicators, including Z-values, output RMS, and activation outliers, remain bounded and non-increasing under training FLOPs scaling. We also propose SqrtGate, an MoE gating mechanism derived from the hypersphere constraint that preserves output RMS across MoE granularities for improved granularity scaling, and show that hypersphere optimization enables substantially larger auxiliary load-balancing weights, yielding both strong performance and good expert balance. We release our training codebase at https://github.com/microsoft/ArchScale.

For agents

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

get_harvested_code_for_paper("2603.28743")
get_code_for_paper("2603.28743")
have("2603.28743")

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

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

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

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

Connect an agent — have() is free.