SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.06857 · NeurIPS · 2025

Gemstones: A Model Suite for Multi-Faceted Scaling Laws

Micah Goldblum, Tom Goldstein, David Miller, John Kirchenbauer, Ashwinee Panda, Sean Mcleish, Siddharth Singh, Abhinav Bhatele

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 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/2502.06857.json · badge: /api/ran/2502.06857.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
mcleish7/gemstone-scaling-laws canonical (classifier label)
classifier basis: classifier_2025
6 ran · 1 no recorded run
FunctionStatusWhere it lives
get_bucket_minimizers Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mcleish7/gemstone-scaling-laws/plotters/approach_1.py
code served (permissive licence) · get_code("cebb926b740c77a3")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a sample DataFrame with loss and resource columns
np.random.seed(0)

n_rows = 100
data = {
    'loss': np.random.uniform(0.1, 10.0, n_rows),
    'resource': np.random.uniform(0.0, 1000.0, n_rows),
    'other_col': np.random.randint(0, 5, n_rows)
}

# Make sure some rows have resource > 0
data['resource'][data['resource'] == 0] = 1.0

df = pd.DataFrame(data)

ARGS = {
    'df': df,
    'loss_key': 'loss',
    'resource_key': 'resource',
    'n_buckets': 20
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
get_resource_hull Ran
ran; our contract draft was wrong, not the code
mcleish7/gemstone-scaling-laws/plotters/approach_1.py
code served (permissive licence) · get_code("deade5da77dad0be")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a sample dataframe with resource and loss columns
data = {
    'resource': [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 0.5, 0.0],
    'loss': [10.0, 8.0, 7.0, 6.5, 6.0, 5.8, 12.0, 15.0],
    'other_col': ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']
}

df = pd.DataFrame(data)

ARGS = {
    'df': df,
    'loss_key': 'loss',
    'resource_key': 'resource'
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, pandas, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
huber_loss_objective Ran
ran; our contract draft was wrong, not the code
mcleish7/gemstone-scaling-laws/depth_width.py
code served (permissive licence) · get_code("0d6bdb92627ee4ba")
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 float64, 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

np.random.seed(0)

# Set up dimensions
num_parameters = 3
num_data_points = 5

# Create data: 2D array where each row is a data point with multiple features
# Shape: (num_data_points, num_parameters)
data = np.random.rand(num_data_points, num_parameters) * 10 + 1  # values between 1 and 11

# Create losses: 1D array of observed loss values
# Shape: (num_data_points,)
losses = np.random.rand(num_data_points) * 2 + 0.5  # values between 0.5 and 2.5

# Create params array containing exponents, coefficients, and irreducible error e
# params = [exp1, exp2, exp3, coef1, coef2, coef3, e]
# Total length: 2 * num_parameters + 1
exps = np.array([0.5, 0.6, 0.7])
coefs = np.array([2.0, 2.5, 3.0])
e = 0.1
params = np.concatenate([exps, coefs, [e]])

# Delta parameter for Huber loss
delta = 1.0

# Weights: can be scalar or array
weights = np.ones(num_data_points)

ARGS = {
    'params': params,
    'data': data,
    'losses': losses,
    'num_parameters': num_parameters,
    'delta': delta,
    'weights': weights
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, scipy — 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, 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
optimize_params Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mcleish7/gemstone-scaling-laws/depth_width.py
code served (permissive licence) · get_code("4debd1716c9dd4ce")
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 OptimizeResult. 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

np.random.seed(0)

# Set up dimensions
num_parameters = 3  # number of power law components
num_data_points = 5

# Create data: shape (num_data_points, num_parameters)
# Each column represents a different variable (e.g., model size, dataset size, compute)
data = np.random.uniform(1, 100, size=(num_data_points, num_parameters))

# Create losses: shape (num_data_points,)
losses = np.random.uniform(0.1, 10.0, size=num_data_points)

# Initial parameters:
# - exps: num_parameters exponents
# - coefs: num_parameters coefficients
# - e: 1 irreducible error term
# Total: 2 * num_parameters + 1
initial_params = np.random.randn(2 * num_parameters + 1)

# Delta for Huber loss
delta = 1.0

ARGS = {
    'initial_params': initial_params,
    'data': data,
    'losses': losses,
    'num_parameters': num_parameters,
    'delta': delta
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type OptimizeResult — a OptimizeResult output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OptimizeResult 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
plot_line_of_best_fit Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mcleish7/gemstone-scaling-laws/plotters/approach_1.py
code served (permissive licence) · get_code("9735dca15dccf3d4")
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 numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.axes import Axes

# Create a small DataFrame with the required columns
np.random.seed(0)
n_samples = 5
x_data = np.exp(np.linspace(0, 2, n_samples))
y_data = 2.5 * (x_data ** 1.3) + np.random.normal(0, 0.1, n_samples)

minimizers = pd.DataFrame({
    'param_count': x_data,
    'loss': y_data,
    'tokens_per_param': np.random.uniform(1, 10, n_samples)
})

# Create a matplotlib axis
fig, ax = plt.subplots()

# Create x_points for prediction (log scale)
x_points = np.linspace(np.log(x_data.min()), np.log(x_data.max()), 10).reshape(-1, 1)

ARGS = {
    'minimizers': minimizers,
    'x_axis_key': 'param_count',
    'y_axis_key': 'loss',
    'ax': ax,
    'x_points': x_points,
    'save_name': None,
    'label': 'Ours',
    'color': '#1f77b4'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
matplotlib, numpy, pandas, sklearn — 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
round_sig Ran
ran, honoured the contract we drafted
mcleish7/gemstone-scaling-laws/benchmarks/fineweb_loss_plot.py
code served (permissive licence) · get_code("5918a3644522e837")
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 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

# The function round_sig takes two parameters:
# - x: a number to round
# - sig: number of significant figures (default=1)

# The function uses:
# - abs(x) to get absolute value
# - np.log10(abs(x)) to compute log base 10
# - np.floor() to floor the result
# - round() built-in function
# - checks if x != 0

# Let's provide a valid non-zero number for x and a sig value
ARGS = {
    'x': 123.456,
    'sig': 3
}
Setup block drafted by
a language model, Claude Sonnet 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 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
log_pred Not yet run
unverified (harvested, no recorded run)
mcleish7/gemstone-scaling-laws/depth_width.py
code served (permissive licence) · get_code("841cecfa49f3e52a")
How it ran

no invocation recorded.

Also present in other papers' code

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

Scaling laws are typically fit using a family of models with a narrow range of frozen hyperparameter choices. In this work we study scaling laws using multiple architectural shapes and hyperparameter choices, highlighting their impact on resulting prescriptions. As a primary artifact of our research, we release the Gemstones: an open-source scaling law dataset, consisting of over 4000 checkpoints from transformers with up to 2 billion parameters and diverse architectural shapes; including ablations over learning rate and cooldown. Our checkpoints enable more complex studies of scaling, such as analyzing the relationship between width and depth. By examining our model suite, we find that the prescriptions of scaling laws can be highly sensitive to the experimental design process and the specific model checkpoints used during fitting. Code: github.com/mcleish7/gemstone-scaling-laws

For agents

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

get_harvested_code_for_paper("2502.06857")
get_code_for_paper("2502.06857")
have("2502.06857")

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

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

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

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

Connect an agent — have() is free.