Discrepancies and replication report
Investigate discrepancies and prepare a reproducible replication report.
After this lesson you can
- Design and run targeted experiments explaining observed discrepancies.
- Write a report with methods, results, intervals and preregistration deviations.
- Prepare a reproducible package that regenerates figures from raw results.
- Review the report against reproducibility and peer-review checklists.
Before you start
A replication that does not give the paper’s number
After seven lessons, the project has a clean result. In p14-l05 isoFLOP profiles, a perceptron trained on an artificial Zipf source, with five budgets from to FLOPs, seven widths per budget and three seeds, gives allocation exponent in , with 5th and 95th percentiles . All five parabolas have interior minima and none of 1000 bootstrap replicates is invalid. Hoffmann and colleagues, using the same approach 2 and accounting (total and ), publish with 10th and 90th percentiles . The intervals do not overlap.
There are two bad ways to close the project. The first is to write “we did not replicate Chinchilla,” as if a 10 000-parameter perceptron could refute a measurement made with billion-parameter transformers. The second is to write “our result differs because the task differs” and move on: probably true, but a hypothesis, not a conclusion, and other candidates remain unruled out. The rate rule was fixed from two pilots; the grid spans a factor 16 of compute; parameter count has several possible conventions. Any could move an exponent by a tenth.
This lesson turns that difference into experimental work. First inventory discrepancies and write what each explanation predicts. Then run three targeted experiments on saved runs: one on parameter convention, reproducing at small scale the mechanism separating Kaplan from Chinchilla and calculable with a theorem; one on learning rate, with existing paired runs; and one on scale range. Use what survives to write the report, package it so a single command regenerates every table and figure from raw results, and subject it to our own peer review. The result will be more precise than “confirmed” or “refuted”: which part of the difference an experiment explains, which part it does not, and which run would decide it.
Inventory of discrepancies and possible causes
The definition has an uncomfortable consequence: an explanation predicting nothing different from its rivals cannot be supported with data, however plausible. “The task is different” is like that until it says what would change if the task changed. A second consequence is that explanations can act together. An experiment showing a factor moves an exponent does not show it explains the observed difference: it must move it in the right direction and magnitude, under the comparison’s conditions.
These are the project’s discrepancies and their numbers:
| Discrepancy | Observation | Candidate hypotheses |
|---|---|---|
| D1. Our exponent versus Hoffmann | versus , both total | H1 source and architecture; H2 rate rule; H3 scale range; H4 schedule |
| D2. Envelope versus profiles | versus on the same runs | grid discretization (explained in p14-l05) |
| D3. Local exponent drift | slopes between consecutive budgets , , and | H2 rate rule; H3 genuine frontier curvature |
| D4. Kaplan versus Chinchilla | versus | parameter convention (Pearce and Song); schedule, warmup and final-layer cost (Porian and colleagues) |
The table deliberately mixes external discrepancies (D1 and D4) and internal ones (D2 and D3). Internal discrepancies are cheaper to investigate because every factor is under our control, and often explain part of external ones. D2 already has an explanation: the envelope can choose only discrete grid sizes, while the profile interpolates between them. Such an explanation is accepted because it predicts something testable (that the difference disappears on a finer grid), not because it sounds reasonable.
Each hypothesis has a prediction. H2 says rate rule , interpolated between two pilots, deviates from optimal rate at some extreme and pushes those budget optima toward small models, whose learning is less rate-sensitive; if true, tuning rate per size shifts vertices and changes . H3 says the frontier is not a power law in this range; if true, D3’s drift persists with each size’s optimal rate. H1 says is a property of source and model; it predicts that no optimization intervention brings the exponent near , but another family (a transformer on text) would. Parameter convention does not appear in D1 because Hoffmann and we count alike, but it appears in D4, and checking it on our runs calibrates how much an accounting change can move an exponent.
The inventory also needs a time column. A hypothesis formulated before seeing data and recorded with date evidence is a prediction; one formulated afterward is an exploratory explanation. Here almost everything is exploratory, except a directional prediction p14-l01’s preregistration took from Pearce and Song: repeating the fit with without embeddings yields a larger exponent. That record has no external timestamp. The report will say so and treat the directional test as confirmatory but without protection from verifiable registration.
Replication verdicts
Before experimenting, define what report words mean. Saying two intervals “overlap” does not establish equivalence, and saying they “do not overlap” does not establish that the difference matters: both depend on interval levels and methods. Define in advance an agreement region for each quantity and classify your interval against it.
The rule is deliberately asymmetric. A wide interval never confirms: if covers and , replication is inconclusive even though it contains the published value. A narrow interval near an edge can also be inconclusive with its central estimate outside. This is our situation with p14-l01’s illustrative rule, for : our estimate is , below the edge, but interval crosses it, so the verdict is inconclusive. Against Hoffmann’s interval, however, ours lies entirely below . Both statements are true and answer different questions: the first tests our registered hypothesis, the second compares two estimates. The report gives both and does not choose the flashier one.
The verdict concerns the claim as registered. Widening after looking, changing the interval from 90 % to 80 % or rounding an endpoint to make it fit are rule changes, and a rule changed with data in view is not a test. If the region was poorly chosen (for example because demanding of a Zipf source made no sense), declare the deviation and propose another for the next replication.
What the sources say
Hoffmann and colleagues estimate with three approaches: using the envelope, using isoFLOP profiles and using the parametric surface, with complementary token exponents , and . They count all parameters and use . Kaplan and colleagues obtained using parameters without embeddings, training curves read midway through a common schedule and smaller models.
Pearce and Song attribute most of that difference to convention. Their argument is first analytical: starting with Chinchilla’s surface, they rewrite loss in terms of and , minimize under that constraint in simulated models with 790 to 1580 million non-embedding parameters, and obtain with Chinchilla’s surface and with the surface refitted by Besiroglu and colleagues. They then check with five models of 0.8 to 4.6 million total parameters trained on BookCorpus using the GPT-2 tokenizer: with approach 1 and , fitting total parameters gives and , while excluding embeddings gives and . At that scale the embedding table of a 50 257-symbol vocabulary is an enormous model fraction, exactly what makes the effect large.
The same work compares four optimization schemes with total parameters: one rate without decay gives ; best rate per model without decay, ; best rate with a cosine, ; and best rate with a cosine per budget, . A common rate without size tuning moves the exponent almost a tenth; the schedule about three hundredths. Porian and colleagues reach a complementary list by another route: final-layer accounting cost, warmup duration and scale-dependent hyperparameter tuning; correcting those three recovers Chinchilla’s law, and careful rate decay is not essential. They are not contradictory: these are two D4 decompositions with different designs, and both show an exponent’s sensitivity to decisions a paper describes in one line.
Besiroglu and colleagues reconstructed about 240 points from a Hoffmann figure and refitted the third approach. They found published estimates for it inconsistent with the other two and intervals so narrow they would require hundreds of thousands of experiments; their refit gives , consistent with approaches 1 and 2. They retrained nothing: their evidence is a reanalysis of data extracted from figures, with accompanying reading errors. Cite it exactly that way.
Experiment 1: parameter convention
In p14-l05’s perceptron, with 14 input bits, two hidden layers of width and 32 output symbols, all with bias, the total count is
The analog of Kaplan’s convention excludes layers whose size scales with the input and output alphabet rather than depth: input layer plays the embedding table’s role, and output the final projection’s, which in a tied-weight GPT is the same matrix. This leaves . This is our choice and the report declares it tensor by tensor: “without embeddings” has no unique meaning outside a specific implementation. At width 33, the smallest grid point, and , ratio 2.41; at width 325, the largest, and , ratio 1.14.
The experiment asks what exponent we would have published had we counted this way from the start. Relabeling axes is insufficient: runs were designed at constant compute under , and under the other convention points in one profile no longer have equal compute. We must reoptimize under the new constraint, requiring a loss surface. We use the parametric fit, , fitted to 105 losses, and calculate both frontiers. First, the analytical result predicting what to expect.
Proof
Let and . The constraint is , so and the problem reduces to minimizing in (constant has no effect). Its derivative is
and at the minimum ; call that common value . Differentiating again and using ,
The minimum is nondegenerate, , so the parenthesis is positive and, by the implicit function theorem applied to , is differentiable in . Taking logarithms of the first-order condition, . Differentiate with respect to along the frontier, with and :
Since and , the exponent is ; dividing numerator and denominator by gives the stated formula. ∎
∎The theorem separates two effects. The first is elasticity: if grows faster than (, because the excluded part grows linearly and the remainder quadratically), one change in optimal size reads as a larger change in , raising the exponent. Second is conversion curvature, : since elasticity decreases toward 1 as model size grows, , and the term subtracts from the denominator, raising the exponent further. Merely relabeling total-convention optima without reoptimizing gives , the formula without curvature: the guided proof in the exercises derives it. Both effects vanish when the model is so large that the excluded part is negligible, and . That is why Pearce and Song find the effect in million-parameter models rather than Chinchilla’s.
With the surface the lab fits to our runs, and , the theorem already predicts the magnitude. The next cell calculates both frontiers by direct width optimization and compares them with the formula; it takes less than a second.
import numpy as np
from scipy.optimize import minimize_scalar
A, B, alpha, beta = 10.476, 15.018, 0.5586, 0.3681 # superficie ajustada en el laboratorio
n_total = lambda w: w * w + 48 * w + 32
n_hidden = lambda w: w * w + w
def optimal_width(c, count):
"""Minimiza A N^-alfa + B D^-beta con 6 * count(w) * D = c."""
f = lambda lw: A * n_total(np.exp(lw)) ** -alpha + B * (c / (6 * count(np.exp(lw)))) ** -beta
return np.exp(minimize_scalar(f, bounds=(np.log(5), np.log(2000)), method="bounded",
options={"xatol": 1e-11}).x)
def elasticity(w):
return ((2 * w + 1) / n_hidden(w)) / ((2 * w + 48) / n_total(w))
def local_exponent(c, count, size):
up, down = optimal_width(c * 1.001, count), optimal_width(c / 1.001, count)
return (np.log(size(up)) - np.log(size(down))) / (2 * np.log(1.001))
print("a total (teoría beta/(alfa+beta)):", round(beta / (alpha + beta), 4))
for c in (3e10, 1e11, 6e11):
w = optimal_width(c, n_hidden)
h = 1e-5
deps = (elasticity(w + h) - elasticity(w - h)) / (2 * h) * n_total(w) / (2 * w + 48)
e = elasticity(w)
theory = e / (e + alpha / beta + deps / (beta * e))
relabel = e / (e + alpha / beta)
print(f"C' = {c:.0e}: anchura {w:6.1f} elasticidad {e:.4f} derivada {deps:+.4f} "
f"a' numérico {local_exponent(c, n_hidden, n_hidden):.4f} teorema {theory:.4f} sin curvatura {relabel:.4f}")The total exponent is constant, , as it should be for a pure power law. Without input and output layers, the local exponent goes from at the small end to at the large; the theorem’s formula matches the numerical derivative to four decimal places, and omitting curvature underestimates the exponent by three to five hundredths.
In the lab, the same comparison with uncertainty gives the experiment’s result. Over 105 losses the total frontier has with 5th and 95th percentiles (200 seed-bootstrap replicates); the reoptimized frontier without input and output layers has with ; and the paired difference is with . The difference is far more precise than either exponent because both come from the same surface in each replicate and share noise. Relabeling total optima without reoptimization would give : half the effect is in curvature.
Thus p14-l01’s directional prediction is confirmed: counting without input and output layers increases the exponent, and the difference interval comfortably excludes zero. The experiment reproduces Pearce and Song’s mechanism in our family, with an effect of eight hundredths rather than twenty-five because our excluded portion is smaller. It also teaches something about D1: under Kaplan’s convention our would have landed inside Hoffmann’s interval and we would have written “we replicated Chinchilla.” That agreement would have been coincidence between different conventions. A legitimate comparison uses the paper’s accounting, and D1 remains: convention explains D4 at small scale, not D1.
Experiment 2: learning rate and schedule
The second hypothesis has an experiment already done, although not designed as such. The first version of p14-l05 profiles (v1) used fixed rate 0.04 at all budgets; the second (v2), registered rule . They share grid and seeds, and each run’s key derives initialization and data stream from width, budget and seeds, not rate. Therefore v1 and v2 runs in the same cell see the same initial weights and examples: only rate changes. At FLOPs, where both rates are 0.04, results match exactly, checking pairing.
With fixed rate, the profile has no interior minimum (two runs diverged), so comparison is limited to the four smaller budgets. There the exponent moves from at fixed rate to under the rule, a difference of with 5th and 95th percentiles over 1000 paired replicates (each resamples the same seeds in both versions). The direction is H2’s prediction: an excessively high rate for large budgets hurts large models more, profiles shift left and exponent falls. Magnitude matches Pearce and Song’s common versus best-per-model rate, versus , although there the common rate raised the exponent: sign depends on which sizes’ rates deviate from optimum.
Does this explain D1? Not yet. The experiment shows rate can move our exponent by a tenth, on the order of D1, but observed change goes from fixed rate to the rule, and the rule is the published version. For H2 to explain D1 the rule itself must be far from each size’s optimum in the direction lowering . The rule came from two pilots with three widths each, interpolates from to and extrapolates to ; no data validate it size by size. The decisive experiment is next in the inventory: repeat the two largest profiles with a preregistered three-rate sweep per width and take each size’s best. H2 predicts large vertices shift right and rises; H1 predicts little movement.
Schedule, the other part of H4, has its own paired p14-l02 experiment: with rate 0.03 and three seeds, a cosine-matched run at 800 or 1200 steps ends below an intermediate reading of a 3600-step run by 0.032 and 0.036 nats on average, while at 400 steps the reverse occurs by 0.038. Our profiles do not read intermediate points: each run has cosine matched to duration, and p14-l05’s envelope checks this because no intermediate point of a longer run wins at any budget. H4 therefore cannot produce D1 in approach 2, although it would bias an envelope of common-schedule curves, Kaplan’s design.
Experiment 3: scale range
The parametric surface imposes a constant exponent. Approach 2’s vertices do not: slopes between consecutive budgets are , , and . To see whether drift is real, repeat the fit in two overlapping subranges with the same procedure and bootstrap: the four smaller budgets give and the four larger , with difference and 5th and 95th percentiles . Drift is not seed noise.
We do not yet know its cause, and the report says so. Two hypotheses explain it and predict different things. First is H2 again: if the rate rule deviates from optimum precisely at larger budgets, local exponent falls there. Second is H3, a genuinely curved frontier: the source has contexts, and when a model is large enough to represent nearly all frequent ones, the capacity term stops behaving like a power. The first predicts drift disappears with optimal per-size rates; the second predicts it persists and increases as the upper range extends. Experiment 2’s proposed rate sweep also serves here: one experiment addresses two discrepancies, so it is first on the work list.
Drift matters practically for the report. Global exponent is the average slope of a relationship that is not a line over the measured range; extrapolating it to ten times more compute, as the preregistered extrapolation requested, assumes curvature stops, which data do not support. This is another reason, besides missing timestamp, not to present any tenfold-compute prediction as a project result.
Structure of the replication report
The report’s minimum unit is not a figure but a chain: claim, configuration, run, raw datum, transformation, table or figure, and sentence. Every link has identity and version. A paper’s writing process applies here with a difference: in replication, the main result can be a difference, and the discrepancies section matters as much as results. This project’s section order is:
- Question and original claim. Quantity ( in ), published value, method, interval level (Hoffmann’s 10th and 90th percentiles) and convention.
- Data and method. Zipf source, perceptron, grid, seeds, rate rule, schedule and accounting, with tensors included in each count.
- Preregistration and deviations. What was registered, with what date evidence, and what changed.
- Results by approach, with interval, resampling method, valid replicate count and verdict.
- Targeted experiments, each with hypothesis tested, prediction and result.
- Conclusion in one sentence not exceeding evidence, and remaining work ordered by what it decides.
- Traceability: package location and regeneration command.
This project’s deviations table has four rows, and omitting any is a substantive error. The p14-l01 record lacks an external timestamp. The rate rule was fixed after observing v1 profiles, which are preserved. The project planned a GPT on text and used a perceptron on an artificial source, changing architecture, task and scale. And prospective validation at ten times compute was not run. Each deviation also identifies affected analysis: the third limits all conclusions’ scope; the second makes the rate experiment exploratory.
The claims hierarchy organizes the conclusion. “Counting changes ratio from 2.41 to 1.14 across the grid” is an arithmetic property of the model. “Convention raises the exponent by on these runs” is a measurement with an interval. “Convention explains the Kaplan–Chinchilla difference” is a claim about other studies that our data only illustrate. Each sentence carries evidence at its own level, and citing a paper does not substitute for our own evidence.
A conclusion respecting the hierarchy is: “For a perceptron on a Zipf source, between and FLOPs and with total parameters, approaches 2 and 3 give , below Hoffmann’s . On the same runs, excluding input and output layers raises the exponent by , as Pearce and Song’s mechanism predicts, and a common rate rather than the rule lowers it by about . Neither explains the difference from Hoffmann, compared under the same convention; rate-rule effects remain to be separated from family effects.” The executive summary repeats the essential condition: prospective validation was not run.
Lab: the reproducible package
A reproducible package separates inputs from products. Its only input here is the p14-l05 SQLite database, containing 70 configurations (35 v1 and 35 v2) with three final losses and training curves each. The first cell exports sorted JSON, portable with a stable hash, and stores its SHA-256 in the manifest alongside the source database hash. It looks for the database under resultados/p14-l05 in the working directory or repository, and where the lesson checker leaves it; if absent it stops: there are no substitute data.
import hashlib, json, sqlite3
from pathlib import Path
project = next((p for p in (Path.cwd(), *Path.cwd().parents)
if (p / "src/content/modules/p14-replicar-leyes-escalado.json").is_file()), None)
candidates = [Path.cwd() / "resultados/p14-l05/isoflop.sqlite3"]
if project is not None:
candidates += [project / "resultados/p14-l05/isoflop.sqlite3"]
source = next((p for p in candidates if p.is_file()), None)
if source is None:
raise FileNotFoundError("No está la base de p14-l05; ejecuta antes su laboratorio")
pkg = Path.cwd() / "resultados/p14-l08/paquete"
pkg.mkdir(parents=True, exist_ok=True)
db = sqlite3.connect(f"file:{source.as_posix()}?mode=ro", uri=True) # solo lectura
rows = []
for cfg, state, result in db.execute("SELECT cfg, state, result FROM runs ORDER BY id"):
if state != "done":
raise RuntimeError(f"Configuración sin terminar en la base: {cfg}")
cfg, result = json.loads(cfg), json.loads(result)
rows.append(dict(version=cfg["version"], lr=cfg["lr"], batch=cfg["batch"], **result))
db.close()
rows.sort(key=lambda r: (r["version"], r["budget"], r["width"]))
payload = json.dumps(rows, indent=1).encode("utf-8")
digest = hashlib.sha256(payload).hexdigest()
manifest_path = pkg / "manifest.json"
if manifest_path.exists():
old = json.loads(manifest_path.read_text(encoding="utf-8"))["sha256"]["resultados.json"]
if old != digest:
raise ValueError("Las entradas cambiaron respecto del manifiesto: revisa el motivo y "
"borra el paquete a propósito antes de regenerarlo")
(pkg / "resultados.json").write_bytes(payload)
manifest = {"sha256": {"resultados.json": digest},
"origen": {"base": source.name, "sha256_base": hashlib.sha256(source.read_bytes()).hexdigest(),
"descripcion": "ejecuciones de p14-l05: versiones v1 (tasa fija) y v2 (regla de tasas)"}}
manifest_path.write_text(json.dumps(manifest, ensure_ascii=False, indent=2), encoding="utf-8")
print("Configuraciones:", len(rows), "| versiones:", sorted({r["version"] for r in rows}))
print("Huella de resultados.json:", digest[:16], "...")npm run lab and open the connection link.The second cell writes regenerar.py, the package’s only program, and runs it in a separate process. The program checks the hash before reading anything and validates each row: count matches , FLOPs are exactly and do not exceed budget, there are three finite losses and seven widths per profile. It then calculates three approaches (profiles with 1000 seed-bootstrap replicates, curve envelope and parametric surface with Huber loss on log residuals, 32 starts, active-bound check and 200 replicates), three targeted experiments and verdict, and writes four tables, four figures, report and regeneration-environment description. Bootstrap uses fixed-seed generators, so two runs yield identical bytes. It takes about twenty seconds.
import os, subprocess, sys
import matplotlib.pyplot as plt
SCRIPT = r'''
"""Regenera tablas, figuras e informe desde resultados.json (ejecuciones de p14-l05)."""
import csv, hashlib, json, platform
from pathlib import Path
import numpy as np
import scipy
from scipy.optimize import minimize, minimize_scalar
from scipy.special import logsumexp
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
root = Path(__file__).resolve().parent
manifest = json.loads((root / "manifest.json").read_text(encoding="utf-8"))
for name, expected in manifest["sha256"].items():
if hashlib.sha256((root / name).read_bytes()).hexdigest() != expected:
raise SystemExit("Huella incorrecta: " + name + "; no se regenera nada")
runs = json.loads((root / "resultados.json").read_text(encoding="utf-8"))
BUDGETS = [5e10, 1e11, 2e11, 4e11, 8e11]
SEEDS = [11, 22, 33]
VERSIONS = {"isoflop-zipf-v1": "tasa fija 0.04", "isoflop-zipf-v2": "regla de tasas"}
CHINCHILLA = (0.49, 0.462, 0.534) # enfoque 2 de Hoffmann et al.: a y percentiles 10 y 90
REGION = (0.4, 0.6) # regla ilustrativa de p14-l01
def n_total(w): return w * w + 48 * w + 32 # 14 -> w -> w -> 32 con sesgos
def n_hidden(w): return w * w + w # sin capas de entrada (14w + w) ni de salida (32w + 32)
# 1. Validación de esquema y de contabilidad
cells = {}
for r in runs:
w, c = r["width"], r["budget"]
ok = (r["version"] in VERSIONS and c in BUDGETS and r["seeds"] == SEEDS
and r["n"] == n_total(w) and r["flops"] == 6 * r["n"] * r["tokens"] <= c
and len(r["losses"]) == 3 and all(np.isfinite(r["losses"])))
if not ok:
raise SystemExit(f"Fila inválida: {r['version']} w={w} C={c:g}")
cells[(r["version"], c, w)] = r
for v in VERSIONS:
for c in BUDGETS:
if len([k for k in cells if k[:2] == (v, c)]) != 7:
raise SystemExit(f"Perfil incompleto: {v} C={c:g}")
def save_csv(name, rows):
with (root / name).open("w", encoding="utf-8", newline="") as f:
writer = csv.DictWriter(f, fieldnames=list(rows[0]))
writer.writeheader()
writer.writerows(rows)
def fmt(x, d=4): return "" if x is None else round(float(x), d)
def slope(cs, ns): return float(np.polyfit(np.log(cs), np.log(ns), 1)[0])
# 2. Enfoque 2: perfiles con la regla de vértice interior de p14-l05
def widths(v, c): return sorted(w for (vv, cc, w) in cells if (vv, cc) == (v, c))
def vertex(v, c, idx):
ws = widths(v, c)
x = np.log([n_total(w) for w in ws])
y = np.array([np.mean(np.array(cells[(v, c, w)]["losses"])[idx[j]]) for j, w in enumerate(ws)])
z = x - x.mean()
c2, c1, _ = np.polyfit(z, y, 2)
if c2 <= 0:
return None
xs = x.mean() - c1 / (2 * c2)
return float(np.exp(xs)) if x.min() < xs < x.max() else None
rng = np.random.default_rng(2026)
REPS = 1000
base = [np.arange(3)] * 7
point = {v: [vertex(v, c, base) for c in BUDGETS] for v in VERSIONS}
boot = {v: [] for v in VERSIONS}
for _ in range(REPS):
draws = {c: [rng.integers(0, 3, 3) for _ in range(7)] for c in BUDGETS} # mismas semillas en v1 y v2
for v in VERSIONS:
boot[v].append([vertex(v, c, draws[c]) for c in BUDGETS])
boot = {v: np.array([[np.nan if x is None else x for x in rep] for rep in boot[v]]) for v in VERSIONS}
def law(v, sel):
"""Exponente en los presupuestos sel: estimación, réplicas válidas y percentiles 5, 10, 90, 95."""
cs = [BUDGETS[i] for i in sel]
if any(point[v][i] is None for i in sel):
return None, None, None
est = slope(cs, [point[v][i] for i in sel])
good = ~np.isnan(boot[v][:, sel]).any(axis=1)
reps = np.array([slope(cs, row) for row in boot[v][good][:, sel]])
return est, reps, good
V1, V2 = "isoflop-zipf-v1", "isoflop-zipf-v2"
a2, a2_reps, a2_good = law(V2, [0, 1, 2, 3, 4])
q2 = np.percentile(a2_reps, [5, 10, 90, 95])
locals_ = [float(np.log(point[V2][i + 1] / point[V2][i]) / np.log(2)) for i in range(4)]
# 3. Enfoque 1: envolvente de las curvas de entrenamiento de v2
def envelope(c):
best = None
for (v, cc, w), r in cells.items():
if v != V2:
continue
fl = np.log([p[0] for p in r["curve"]])
loss = np.array([np.mean(p[1]) for p in r["curve"]])
fl[-1] = max(fl[-1], np.log(cc))
if fl[0] <= np.log(c) <= fl[-1]:
value = float(np.interp(np.log(c), fl, loss))
if best is None or value < best[0]:
best = (value, r["n"], cc)
return best
env = [envelope(c) for c in BUDGETS]
a1 = slope(BUDGETS, [e[1] for e in env])
# 4. Enfoque 3: superficie E + A N^-alfa + B D^-beta sobre las 105 pérdidas de v2
rows2 = [(r["n"], r["tokens"], l) for (v, c, w), r in sorted(cells.items()) if v == V2 for l in r["losses"]]
X = np.log([[n, d] for n, d, _ in rows2]); T = np.log([l for *_, l in rows2])
BOUNDS = [(-5, 2), (-5, 15), (-5, 15), (0.05, 2), (0.05, 2)]
DELTA = 1e-3
def objective(p, x, t):
e, a, b, al, be = p
u1, u2 = a - al * x[:, 0], b - be * x[:, 1]
m = np.maximum(np.maximum(u1, u2), e) # log-suma-exp estable, a mano por velocidad
w0, w1, w2 = np.exp(e - m), np.exp(u1 - m), np.exp(u2 - m)
s = w0 + w1 + w2
r = m + np.log(s) - t
ar = np.abs(r)
h = np.where(ar <= DELTA, 0.5 * r * r, DELTA * (ar - DELTA / 2))
g = np.clip(r, -DELTA, DELTA) / s
gw1, gw2 = g @ w1, g @ w2
grad = np.array([g @ w0, gw1, gw2, -(g * w1) @ x[:, 0], -(g * w2) @ x[:, 1]])
return float(h.sum()), grad
def fit(x, t, starts):
out = [minimize(objective, s, args=(x, t), jac=True, method="L-BFGS-B", bounds=BOUNDS,
options={"maxiter": 5000, "ftol": 1e-13, "gtol": 1e-9}) for s in starts]
out = [r for r in out if r.success and np.isfinite(r.fun)]
return min(out, key=lambda r: r.fun) if out else None
grid = [[e, a, b, al, be] for e in (0.5, 0.9) for a in (1, 5) for b in (1, 5)
for al in (0.2, 0.6) for be in (0.2, 0.6)]
best = fit(X, T, grid)
if best is None:
raise SystemExit("El ajuste paramétrico no converge desde ningún inicio")
active = [i for i, (v, (lo, hi)) in enumerate(zip(best.x, BOUNDS)) if min(v - lo, hi - v) < 1e-3]
E, A, B, alpha, beta = np.exp(best.x[0]), np.exp(best.x[1]), np.exp(best.x[2]), best.x[3], best.x[4]
a3 = beta / (alpha + beta)
rms = float(np.sqrt(np.mean((logsumexp(np.stack([np.full(len(T), best.x[0]), best.x[1] - alpha * X[:, 0],
best.x[2] - beta * X[:, 1]], 1), 1) - T) ** 2)))
# 5. Experimento de convención: dos fronteras de la misma superficie
def frontier_w(p, c, count):
e, a, b, al, be = p
def f(lw):
w = np.exp(lw); n = n_total(w)
return np.exp(a) * n ** -al + np.exp(b) * (c / (6 * count(w))) ** -be
return float(np.exp(minimize_scalar(f, bounds=(np.log(5), np.log(2000)), method="bounded",
options={"xatol": 1e-10}).x))
def conventions(p):
wt = [frontier_w(p, c, n_total) for c in BUDGETS]
ce = [c * n_hidden(w) / n_total(w) for c, w in zip(BUDGETS, wt)] # mismo rango, en C sin capas
we = [frontier_w(p, c, n_hidden) for c in ce]
return (slope(BUDGETS, [n_total(w) for w in wt]), slope(ce, [n_hidden(w) for w in we]),
slope(ce, [n_hidden(w) for w in wt]), wt, we, ce)
aT, aE, a_relabel, wt, we, ce = conventions(best.x)
def eps(w): return ((2 * w + 1) / n_hidden(w)) / ((2 * w + 48) / n_total(w))
def theorem(w, al, be):
h = 1e-5
deps = (eps(w + h) - eps(w - h)) / (2 * h) * n_total(w) / (2 * w + 48)
return eps(w) / (eps(w) + al / be + deps / (be * eps(w))), deps
local_E = [theorem(w, alpha, beta) for w in (we[0], we[-1])]
PREPS = 200
prng = np.random.default_rng(7)
pboot = []
for _ in range(PREPS):
rows = []
for (v, c, w), r in sorted(cells.items()):
if v == V2:
rows += [(r["n"], r["tokens"], r["losses"][j]) for j in prng.integers(0, 3, 3)]
xb = np.log([[n, d] for n, d, _ in rows]); tb = np.log([l for *_, l in rows])
rb = fit(xb, tb, [best.x])
if rb is None:
continue
at, ae, *_ = conventions(rb.x)
pboot.append((rb.x[3], rb.x[4], at, ae, ae - at))
pboot = np.array(pboot)
qp = {k: np.percentile(pboot[:, i], [5, 95]) for i, k in enumerate(["alfa", "beta", "aT", "aE", "dif"])}
# 6. Experimentos de tasa y de rango (enfoque 2, réplicas emparejadas)
lr4 = {v: law(v, [0, 1, 2, 3]) for v in VERSIONS}
both = lr4[V1][2] & lr4[V2][2]
cs4 = BUDGETS[:4]
dlr = np.array([slope(cs4, boot[V2][k, :4]) - slope(cs4, boot[V1][k, :4]) for k in np.where(both)[0]])
lo_hi = {}
for name, sel in (("cuatro menores", [0, 1, 2, 3]), ("cuatro mayores", [1, 2, 3, 4])):
est, reps, _ = law(V2, sel)
lo_hi[name] = (est, np.percentile(reps, [5, 95]))
good = a2_good
drange = np.array([slope(BUDGETS[1:], boot[V2][k, 1:]) - slope(BUDGETS[:4], boot[V2][k, :4])
for k in np.where(good)[0]])
# 7. Veredicto con la regla de p14-l01 (aplicada retrospectivamente)
def verdict(lo, hi, region):
if region[0] <= lo and hi <= region[1]:
return "confirmada"
if hi < region[0] or lo > region[1]:
return "no confirmada"
return "no concluyente"
v_a = verdict(q2[0], q2[3], REGION)
v_dir = "confirmada" if qp["dif"][0] > 0 else ("no confirmada" if qp["dif"][1] < 0 else "no concluyente")
# 8. Tablas
save_csv("cuentas.csv", [{"anchura": w, "N_total": n_total(w), "N_sin_capas": n_hidden(w),
"cociente": fmt(n_total(w) / n_hidden(w)), "elasticidad": fmt(eps(w))}
for w in widths(V2, BUDGETS[2])])
save_csv("perfiles.csv", [{"version": v, "presupuesto": f"{c:.0e}",
"N_optimo": "" if point[v][i] is None else round(point[v][i]),
"estado": "interior" if point[v][i] is not None else "no_identificado",
"replicas_validas": int((~np.isnan(boot[v][:, i])).sum())}
for v in VERSIONS for i, c in enumerate(BUDGETS)])
table = [
{"enfoque": "1 envolvente", "convencion": "total", "datos": "v2, 5 presupuestos", "a": fmt(a1),
"p5": "", "p95": "", "estado": "sin intervalo: tamaños discretos de la rejilla"},
{"enfoque": "2 perfiles", "convencion": "total", "datos": "v2, 5 presupuestos", "a": fmt(a2),
"p5": fmt(q2[0]), "p95": fmt(q2[3]), "estado": f"bootstrap de semillas, {int(a2_good.sum())}/{REPS} válidas"},
{"enfoque": "3 paramétrico", "convencion": "total", "datos": "v2, 105 pérdidas", "a": fmt(a3),
"p5": fmt(qp["aT"][0]), "p95": fmt(qp["aT"][1]),
"estado": ("límite activo" if active else f"sin límites activos, {len(pboot)}/{PREPS} réplicas")},
{"enfoque": "3 paramétrico", "convencion": "sin capas de entrada y salida", "datos": "v2, 105 pérdidas",
"a": fmt(aE), "p5": fmt(qp["aE"][0]), "p95": fmt(qp["aE"][1]), "estado": "frontera reoptimizada"},
]
save_csv("exponentes.csv", table)
experiments = [
{"experimento": "convención", "contraste": "a sin capas - a total", "estimacion": fmt(aE - aT),
"p5": fmt(qp["dif"][0]), "p95": fmt(qp["dif"][1])},
{"experimento": "tasa", "contraste": "a regla - a fija (4 presupuestos)",
"estimacion": fmt(lr4[V2][0] - lr4[V1][0]), "p5": fmt(np.percentile(dlr, 5)), "p95": fmt(np.percentile(dlr, 95))},
{"experimento": "rango", "contraste": "a mayores - a menores",
"estimacion": fmt(lo_hi["cuatro mayores"][0] - lo_hi["cuatro menores"][0]),
"p5": fmt(np.percentile(drange, 5)), "p95": fmt(np.percentile(drange, 95))},
]
save_csv("experimentos.csv", experiments)
# 9. Figuras
cmap = plt.get_cmap("viridis")
from matplotlib.ticker import FuncFormatter, LogLocator, NullFormatter
def finish(fig, ax, name):
for axis, scale in ((ax.xaxis, ax.get_xscale()), (ax.yaxis, ax.get_yscale())):
if scale == "log": # marcas en 1, 2 y 5 por década, sin etiquetas menores solapadas
axis.set_major_locator(LogLocator(base=10, subs=(1.0, 2.0, 5.0)))
axis.set_major_formatter(FuncFormatter(lambda v, _: f"{v:.0e}".replace("e+0", "e").replace("e+", "e")))
axis.set_minor_formatter(NullFormatter())
ax.legend(fontsize=8); fig.tight_layout(); fig.savefig(root / name, dpi=140); plt.close(fig)
fig, ax = plt.subplots(figsize=(6.4, 4))
for i, c in enumerate(BUDGETS):
ws = widths(V2, c); ns = [n_total(w) for w in ws]
ys = [np.mean(cells[(V2, c, w)]["losses"]) for w in ws]
ax.plot(ns, ys, "o", color=cmap(i / 4), label=f"C = {c:.0e}")
ax.axvline(point[V2][i], color=cmap(i / 4), ls=":", lw=1)
ax.set(xscale="log", xlabel="N total", ylabel="Pérdida de evaluación (nats)", title="Perfiles isoFLOP (v2)")
finish(fig, ax, "perfiles.png")
fig, ax = plt.subplots(figsize=(6.4, 4))
cs = np.geomspace(BUDGETS[0], BUDGETS[-1], 50)
ax.plot(BUDGETS, point[V2], "o", label=f"Enfoque 2: a = {a2:.3f}")
ax.plot(cs, point[V2][0] * (cs / cs[0]) ** a2, color="C0")
ax.plot(BUDGETS, [e[1] for e in env], "s", mfc="none", label=f"Enfoque 1: a = {a1:.3f}")
ax.plot(BUDGETS, [n_total(w) for w in wt], "x", color="C2", label=f"Enfoque 3: a = {a3:.3f}")
ax.plot(cs, point[V2][0] * (cs / cs[0]) ** CHINCHILLA[0], "--", color="gray",
label="Pendiente de Hoffmann (0.49), anclada en el primer punto")
ax.set(xscale="log", yscale="log", xlabel="C (FLOPs, 6ND total)", ylabel="N óptimo total",
title="Tres enfoques sobre las mismas ejecuciones")
finish(fig, ax, "asignacion.png")
fig, ax = plt.subplots(figsize=(6.4, 4))
ax.plot(BUDGETS, [n_total(w) for w in wt], "o-", label=f"N total frente a C total: a = {aT:.3f}")
ax.plot(ce, [n_hidden(w) for w in we], "s-", label=f"N sin capas frente a C sin capas: a = {aE:.3f}")
ax.plot(ce, [n_hidden(w) for w in wt], "^:", label=f"Puntos anteriores reetiquetados: {a_relabel:.3f}")
ax.set(xscale="log", yscale="log", xlabel="Cómputo según la convención (FLOPs)", ylabel="N óptimo según la convención",
title="Una superficie, dos convenciones")
finish(fig, ax, "convencion.png")
fig, ax = plt.subplots(figsize=(6.4, 4))
for v, m in ((V1, "s"), (V2, "o")):
ok = [i for i in range(5) if point[v][i] is not None]
ax.plot([BUDGETS[i] for i in ok], [point[v][i] for i in ok], m + "-", label=VERSIONS[v])
ax.set(xscale="log", yscale="log", xlabel="C (FLOPs)", ylabel="N óptimo total",
title="Misma rejilla, semillas y datos; solo cambia la tasa")
if point[V1][4] is None:
ax.annotate("tasa fija a 8e11:\nsin mínimo interior", xy=(BUDGETS[3], point[V1][3]),
xytext=(BUDGETS[3] * 1.15, point[V1][3] * 0.85), fontsize=8)
finish(fig, ax, "tasa.png")
# 10. Entorno e informe
(root / "entorno.json").write_text(json.dumps({
"proposito": "entorno de regeneración, no el de entrenamiento",
"python": platform.python_version(), "sistema": platform.platform(), "numpy": np.__version__,
"scipy": scipy.__version__, "matplotlib": matplotlib.__version__}, indent=2) + "\n", encoding="utf-8")
def iv(q): return f"[{q[0]:.3f}, {q[-1]:.3f}]"
report = f"""# Informe de replicación: asignación óptima en un perceptrón sobre una fuente de Zipf
## Pregunta y afirmación original
¿Cómo crece el tamaño óptimo N* con el cómputo C? Hoffmann et al. (2022, enfoque 2) estiman a = {CHINCHILLA[0]} con percentiles 10 y 90 [{CHINCHILLA[1]}, {CHINCHILLA[2]}], contando parámetros totales y C = 6ND.
## Datos y método
{len(runs)} configuraciones de p14-l05 ({len(runs) * 3} entrenamientos): perceptrón 14 -> w -> w -> 32, fuente artificial de Zipf, cinco presupuestos de 5e10 a 8e11 FLOPs, siete anchuras por presupuesto y semillas 11, 22 y 33. Versión v2 con la regla de tasas registrada; versión v1 con tasa fija 0.04, misma rejilla, inicialización y datos. N total = w² + 48w + 32; C = 6ND con N total salvo donde se indica.
## Registro previo y desviaciones
- No hay evidencia verificable de fecha anterior a las ejecuciones: la regla de p14-l01 se aplica de forma retrospectiva.
- La regla de tasas se fijó tras dos pilotos y tras observar la versión v1; v1 se conserva y se informa.
- El proyecto preveía un GPT sobre texto; se usó un perceptrón sobre una fuente artificial.
- La validación prospectiva a diez veces el cómputo no se ha ejecutado.
## Resultados
- Enfoque 2: a = {a2:.3f}, p5-p95 {iv(q2[[0, 3]])}, p10-p90 {iv(q2[[1, 2]])}; {int(a2_good.sum())}/{REPS} réplicas válidas.
- Enfoque 1: a = {a1:.3f} (sin intervalo; tamaños discretos).
- Enfoque 3: alfa = {alpha:.3f} {iv(qp['alfa'])}, beta = {beta:.3f} {iv(qp['beta'])}, E = {E:.4f}, a = {a3:.3f} {iv(qp['aT'])}; límites activos: {'sí' if active else 'ninguno'}; RMS del residuo logarítmico {rms:.5f}.
- Veredicto con la región [{REGION[0]}, {REGION[1]}] de p14-l01: {v_a}. Frente al intervalo de Hoffmann: los intervalos no se solapan.
## Experimentos dirigidos
- Convención (mismas ejecuciones, misma superficie): a sin capas de entrada y salida = {aE:.3f} {iv(qp['aE'])}; diferencia {aE - aT:+.3f} {iv(qp['dif'])}. Exponente local de {local_E[0][0]:.3f} a {local_E[1][0]:.3f}. Reetiquetar los óptimos totales sin reoptimizar daría {a_relabel:.3f}. Predicción direccional de p14-l01: {v_dir}.
- Tasa (cuatro presupuestos menores, emparejado): regla {lr4[V2][0]:.3f}, tasa fija {lr4[V1][0]:.3f}; diferencia {lr4[V2][0] - lr4[V1][0]:+.3f} [{np.percentile(dlr, 5):.3f}, {np.percentile(dlr, 95):.3f}]. Con tasa fija, el perfil de 8e11 no tiene mínimo interior.
- Rango: cuatro menores {lo_hi['cuatro menores'][0]:.3f} {iv(lo_hi['cuatro menores'][1])}, cuatro mayores {lo_hi['cuatro mayores'][0]:.3f} {iv(lo_hi['cuatro mayores'][1])}; diferencia [{np.percentile(drange, 5):.3f}, {np.percentile(drange, 95):.3f}]. Pendientes locales: {', '.join(f'{s:.3f}' for s in locals_)}.
## Conclusión
En esta familia y este rango, a es claramente menor que el de Hoffmann con la misma contabilidad. Contar sin las capas de entrada y salida sube el exponente de las mismas ejecuciones en {aE - aT:.2f}, en la dirección que Pearce y Song describen para Kaplan frente a Chinchilla; la tasa de aprendizaje mal escalada lo baja. Ninguno de los dos explica la diferencia con Hoffmann, que se compara con su misma convención; la hipótesis restante (la fuente y la arquitectura) no se ha contrastado.
## Trazabilidad
Entradas y huellas: manifest.json. Código: regenerar.py. Entorno: entorno.json. Productos: cuentas.csv, perfiles.csv, exponentes.csv, experimentos.csv, perfiles.png, asignacion.png, convencion.png, tasa.png e informe.md.
"""
(root / "informe.md").write_text(report, encoding="utf-8")
print(f"Enfoques 1, 2 y 3: a = {a1:.3f} | {a2:.3f} p5-p95 {iv(q2[[0, 3]])} p10-p90 {iv(q2[[1, 2]])} | {a3:.3f} {iv(qp['aT'])}")
print(f"Superficie: E = {E:.4f}, A = {A:.3f}, B = {B:.3f}, alfa = {alpha:.4f}, beta = {beta:.4f}, RMS {rms:.5f}, límites activos {active}")
print(f"Convención: a total {aT:.3f}, sin capas {aE:.3f} {iv(qp['aE'])}, diferencia {iv(qp['dif'])}, reetiquetado {a_relabel:.3f}")
print(f" anchuras de la frontera total {[round(w, 1) for w in wt]}, sin capas {[round(w, 1) for w in we]}")
print(f" teorema en los extremos: a local {local_E[0][0]:.4f} (eps' {local_E[0][1]:.4f}) y {local_E[1][0]:.4f}; elasticidad {eps(we[0]):.4f} y {eps(we[-1]):.4f}")
print(f"Tasa: regla {lr4[V2][0]:.3f}, fija {lr4[V1][0]:.3f}, diferencia [{np.percentile(dlr, 5):.3f}, {np.percentile(dlr, 95):.3f}], réplicas {len(dlr)}; v1 a 8e11: {point[V1][4]}")
print(f"Rango: menores {lo_hi['cuatro menores'][0]:.3f}, mayores {lo_hi['cuatro mayores'][0]:.3f}, diferencia [{np.percentile(drange, 5):.3f}, {np.percentile(drange, 95):.3f}]; locales {[round(s, 3) for s in locals_]}")
print(f"Veredictos: región de p14-l01 {v_a}; dirección de la convención {v_dir}; réplicas paramétricas {len(pboot)}/{PREPS}")
'''
(pkg / "regenerar.py").write_text(SCRIPT.lstrip("\n"), encoding="utf-8")
(pkg / "README.md").write_text(
"# Paquete de replicación de p14\n\n"
"Requisitos: Python 3, NumPy, SciPy y Matplotlib.\n"
"Regenerar desde cualquier directorio: python RUTA_DEL_PAQUETE/regenerar.py\n"
"Entrada: resultados.json (huella en manifest.json). Productos: cuentas.csv, perfiles.csv, "
"exponentes.csv, experimentos.csv, perfiles.png, asignacion.png, convencion.png, tasa.png, "
"informe.md y entorno.json.\n"
"Nivel: se regeneran los análisis desde resultados guardados; reentrenar exige el laboratorio de p14-l05.\n",
encoding="utf-8")
done = subprocess.run([sys.executable, str(pkg / "regenerar.py")], capture_output=True, text=True,
encoding="utf-8", env=dict(os.environ, PYTHONUTF8="1"))
if done.returncode:
raise RuntimeError(done.stderr or done.stdout)
print(done.stdout)
fig, axes = plt.subplots(1, 3, figsize=(15, 4))
for ax, name in zip(axes, ["asignacion.png", "convencion.png", "tasa.png"]):
ax.imshow(plt.imread(pkg / name)); ax.axis("off")
fig.tight_layout()
plt.show()npm run lab and open the connection link.Figures in the preceding sections come from this output. The three approaches give , and , and the surface has , and nats, with no parameter on bounds and log root mean squared residual . The last number enables a check few replications can make: here minimum achievable loss is known, the entropy 2.2497 nats printed by p14-l05, and the fitted constant should lie above it. It is 0.049 nats above, meaning the surface in this range does not extrapolate to entropy. Because the surface was fitted to the same 105 losses as profiles, agreement of approaches 2 and 3 is a consistency check, not a second replication.
The third cell tests the package itself. It copies it to a new temporary directory, runs it from another working directory and compares tables and report byte by byte with originals; then changes one loss in another copy and checks that the program refuses to regenerate. This is the minimum check that the command does not depend on private paths or files outside the package.
import hashlib, json, shutil, subprocess, sys, tempfile, os
from pathlib import Path
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
products = ["cuentas.csv", "perfiles.csv", "exponentes.csv", "experimentos.csv", "informe.md"]
inputs = ["resultados.json", "manifest.json", "regenerar.py"]
env = dict(os.environ, PYTHONUTF8="1")
with tempfile.TemporaryDirectory() as tmp:
clean = Path(tmp) / "copia"
clean.mkdir()
for name in inputs:
shutil.copy2(pkg / name, clean / name)
run = subprocess.run([sys.executable, str(clean / "regenerar.py")], cwd=tmp,
capture_output=True, text=True, encoding="utf-8", env=env)
assert run.returncode == 0, run.stderr
same = {name: digest(clean / name) == digest(pkg / name) for name in products}
print("Productos idénticos desde un directorio limpio:", same)
tampered = Path(tmp) / "alterada"
shutil.copytree(clean, tampered)
rows = json.loads((tampered / "resultados.json").read_text(encoding="utf-8"))
rows[0]["losses"][0] += 1e-6
(tampered / "resultados.json").write_text(json.dumps(rows, indent=1), encoding="utf-8")
bad = subprocess.run([sys.executable, str(tampered / "regenerar.py")], cwd=tmp,
capture_output=True, text=True, encoding="utf-8", env=env)
print("Entrada alterada en 1e-6 nats:", "rechazada" if bad.returncode else "ACEPTADA",
"|", (bad.stderr or bad.stdout).strip().splitlines()[-1])npm run lab and open the connection link.The test has limits the report declares. It checks the lowest of three useful reproducibility levels: regenerating analysis from saved results. It does not check whether retraining yields the same losses, the second level requiring p14-l05’s lab with its seed, GPU and versions; nor whether another implementation reaches the same conclusion, the third. It also does not cover other NumPy or SciPy versions: entorno.json records regeneration versions, not training versions, which p14-l05 should have saved per run. The manifest is not a timestamp: it detects changed bytes, not when they existed. Folder structure follows research project organization: immutable inputs, code, regenerable products and a README explaining how to get from one to the other.
What reproducibility initiatives teach
Pineau and colleagues describe NeurIPS 2019’s reproducibility program: a code-submission policy, community reproduction challenge and submission checklist. Of 6743 submissions, about 40 % said they had provided code at submission, and 74.4 % of papers had it in the final version; a year earlier the share was below 50 %. When reviewers were asked whether checklist answers helped them evaluate the paper, 34 % said yes. These describe a program, not causal estimates: they do not say how many results became reproducible because of the checklist.
The Open Science Collaboration attempted to replicate 100 psychology studies published in three journals: 97 % of originals had significant results and 36 % of replications did. This number is often cited as a “reproducibility rate,” but is the proportion under one criterion (replication significance) in a particular study sample. Its lesson here is not the percentage but the method: registered protocols, contact with original authors, the same criterion for every study and several indicators of agreement rather than one.
Both initiatives share something this project has shown on a small scale: available code is necessary and insufficient. A repository can run without errors and measure something else (another parameter convention, another schedule point), and a replication can yield a different number for reasons that are nobody’s mistake. A replication becomes evaluable when its decisions are written before looking and its discrepancies have experiments behind them.
Peer-review self-assessment
Before sharing the report, review it as a reviewer who was not present would, using the research guide’s review criteria. For this project the concrete checklist follows; every negative answer is a task, not a writing nuance.
Accounting validity. Does parameter count match the saved architecture tensor by tensor? Do FLOPs use the convention declared in FLOP accounting, and does code check it? Do all profiles have interior minima under the registered rule? Does the parametric fit converge from multiple starts without active bounds? Our package checks all four in the program and stops regeneration if any fails.
Inference validity. Is the resampling unit independent? In p14-l05 each run has its own initialization and data seed, so resampling seeds within each cell is correct; in the rate experiment v1 and v2 share initialization and data, and the bootstrap must resample the same seeds in both to respect pairing. Are interval levels declared (our 5th and 95th percentiles, Hoffmann’s 10th and 90th)? Are invalid replicates reported?
Causal validity. Does each targeted experiment change only one factor? The rate experiment does; convention does not change training but the optimization constraint and depends on a fitted surface; range compares subsets of the same runs. Are confirmatory and exploratory conclusions separated?
Communication. Does each conclusion state scale, family and convention? Does the abstract say prospective validation was not run? Is “unidentified” distinguished from zero in tables? Does any sentence sound like a general refutation or confirmation?
The failure investigation loop continues after the report. For this project the next iteration is defined: a three-rate sweep per width on the two largest profiles, registered with a timestamp before training, testing H2 against D1 and D3 together; if H2 is ruled out, a profile with a small transformer on text tests H1. A report ending with the next concrete experiment is more useful than one ending with a closed conclusion.
Common errors
Exercises
Step 1 of 3. How does ln C' vary along the total frontier?
import numpy as np
def exponent_table(conn):
passA replication ends not in a number but an inventory: what discrepancies exist, what each explanation predicts and what targeted experiment separates them. In this project, parameter convention raises the same runs’ exponent by 0.084, as a theorem anyone can check predicts, and learning rate moves it by about a tenth. Neither alone explains the difference from Hoffmann measured with the same accounting. The report gives verdicts under the registered rule, declares deviations and travels with a package whose single command regenerates every table and figure from raw results.