| Candidate scoring and projection | |
|---|---|
| candidate design column vector over training pools (distinct from pool covariate coordinates in Note 1) | |
| current design matrix, fitted coefficients, and quadratic prior precision matrix | |
| vectors of pool centered scores , effective information , and score variance | |
| penalized working information and score covariance | |
| cross-information and refit projection | |
| residualized candidate information and refit-adjusted score variance | |
| bias-corrected candidate score and standardized score | |
| Empirical-null gate | |
| degree-6 Poisson polynomial density fitted to a 72-bin linearly binned histogram of the round's -scores | |
| empirical null center, scale, and null share read from central matching on (the code writes for ) | |
| local false discovery rate and running-mean admission threshold | |
| EM depth shrinkage | |
| set of gate-admitted free vertices at depth | |
| fitted surplus and working-posterior variance of admitted vertex | |
| depth- prior surplus variance (precision ) and variance floor logit () | |
Context. Once a mesh geometry and an overdispersed binomial estimator are fixed, each refinement round confronts dozens to hundreds of candidate splits across the domain. Picking the largest raw score overfits noise, double-counts slopes the existing mesh can already fit, and chases residuals left behind solely by prior shrinkage. The interactive walkthrough traces one coin-flip run through the gate. This note derives the refit-adjusted score and shrinkage-bias cancellation, explains how Lindsey's empirical null and EM depth shrinkage act as an implicit spike-and-slab prior, and documents six failure modes that bit production fits.
Selecting where to refine requires four linked safeguards. Project out what existing coefficients can absorb, subtract propagated shrinkage bias, calibrate the round's score family against its own empirical null, and estimate depth variance without letting shrinkage collapse into its variance floor.
Refit-adjusted candidate score and shrinkage-bias cancellation. A candidate vertex introduces a realized design column candidate basis column evaluated at every training pool, computed through all active welds and constraints over the training pools. Using the current fit's penalized information penalized working information of the active design and prior precision and score covariance score covariance matrix built from per-pool centered-score variances , compute the cross-information and the first-order refit projection the change in existing coefficients needed to absorb as much of candidate column as the current mesh and prior allow. The candidate's residualized information and refit-adjusted score variance are
Evaluating the raw score at a shrunk fit still misleads the gate. Because the prior pulls existing coefficients toward zero, the fitted surface understates genuine structure where the data insist, leaving structured residuals in that nearby candidates pick up even when no new vertex is needed. First-order expansion shows that the propagated shrinkage bias in equals . Because the converged surface satisfies the stationarity equation of the centered-mode estimator from the second note of this section. Reading note: Mean-neutral pool effects and the centered-mode estimator, subtracting that bias collapses algebraically into scoring the residualized column directly:Dividing by the refit-adjusted standard deviation gives the standardized score . At admission, the local quadratic proposal sets with predicted gain . Selected candidates enter one at a time, best first, and each is re-profiled against the surface updated by earlier admissions in the same round.
Calibrating a round with Lindsey's empirical null. Even after refit projection and bias cancellation, a round's candidate scores need not follow a textbook null. Overlapping tents correlate across the plane, and an unfinished coarse surface shifts or widens the bulk of scores. The gate therefore estimates the round's own empirical nullEfron's (2004) empirical null estimated from the center of a round's observed -score distribution via Lindsey's method. The engine bins all scoreable candidates on into 72 bins using linear binningsplitting each score's unit weight linearly between its two nearest bin centers so histogram counts move continuously with the scores (splitting each score between its two nearest bin centers). A degree-6 Poisson polynomial regression on those bin counts gives a smooth log-density , and a quadratic fitted on performs central matching.
That central parabola reads off the empirical null center , scale , and null proportion . The engine clamps , , and in the rectangular engine ( in the triangular engine). Each candidate receives a local false discovery ratewhere is the normal density. Sorting candidates by from smallest to largest, the gate admits the longest prefix whose running mean stays at or below (raised from in September 2026). Rounds with fewer than 50 candidates or invalid central curvature fall back to Benjamini-Hochberg; numerical nonconvergence defers admission. Refinement stops once the cell budget is reached, no candidate is scoreable, or three consecutive rounds admit nothing.
EM depth variance and the spike-and-slab reframing. Between rounds, the prior variance at each depth is updated from the set the set of gate-admitted free vertices at depth ; structurally welded vertices never vote in of gate-admitted free vertices at that depth. For every depth with , EM setswhere is the fitted surplus, working-posterior variance of surplus , read from the diagonal of (or in nodal coordinates). Reading note: Adaptive mesh geometries: triangles, rectangles, and 3-D boxes is its working-posterior variance from , and logit (). Depths with fewer than 3 admissions borrow from the nearest depth that has them; structurally welded vertices never vote.
Estimating from gate winners alone looks biased at first glance: in a simulation against a pure Gaussian truth, winners-only EM overestimates the true variance by roughly . Yet four selection-aware and marginal alternatives tested on the rectangular engine all tied or lost on the single-issuer year battery. Truncated conditional likelihood gave (SE ) with 4 failed fits; a single log-linear depth curve gave (SE ) with a flat profile (1.88 to 1.93 logits). Plain marginal likelihood over every scored candidate lost (SE ) with erratic depth scales, and an explicit two-component null/slab mixture lost (SE ). Together, the gate and EM act as an implicit spike-and-slab priora two-component prior placing point mass at zero (the spike, enforced by the gate) and a diffuse Gaussian over active surpluses (the slab, whose variance is estimated by EM on the admitted winners): the gate enforces the spike and winners-only EM estimates the slab variance. Fitting one Gaussian over mostly-null candidates compromises both components, and independent-draw mixtures misread spatially correlated candidate scores.
Six failure modes that bit production runs. Every design choice above came from diagnosing concrete breakdowns on the 2020 Ginnie Mae disclosure panel. The first two live inside the variance and binning updates.
1. The wholesale-weld freeze (self-measuring shrunk surpluses). An earlier update estimated by matching a DerSimonian-Laird moment to already-shrunk surpluses without adding back. Because shrinkage shifts mass out of into posterior variance , lowering shrunk further until hit the floor and froze entire depths (reaching under an earlier -logit floor, and collapsing to under the -logit floor). Adding via EM removed that absorbing state and improved 2020 single-issuer held-out deviance by (SE ).
2. Hard histogram binning instability. Before linear binning, a float32-sized rounding perturbation nudged a single candidate score across a histogram bin edge in Lindsey's method, shifting by and changing pooled admissions in 4 of 6 perturbed runs. Splitting each score linearly between its two adjacent bin centers cut perturbed admission changes to 0 of 6.
3. Extrapolation blow-up hidden by random splits. Starting with a free depth-2 backbone beat the depth-1 backbone on Ginnie () and on random splits, so it was briefly adopted. Holding out the newest 20% of issue months exposed the trap: free quarter-scale heights at the data boundary extrapolated steeply into unseen young ages, losing against the triangular engine over the year (worst month ). Even with a depth-1 backbone, unpenalized rectangular roots let the bilinear surface's twist swing an empty old-age corner to logits (against for triangular planes), costing versus triangles on cohort extrapolation. Adding a prior on the four rectangular roots cut cohort-split deviance by (SE , better in 9 of 12 months) relative to flat rectangular roots while staying neutral on the single-issuer random-split battery (, SE ).
4. High-signal null absorption. On round 0 of the rectangular SMM benchmark (seed 1), nearly every candidate carried genuine signal. Lindsey's central quadratic fit interpreted that dense signal as a wide null (), admitted zero candidates for three rounds, and halted with only the 9 starting coefficients. Capping cut rectangular SMM seed 1 deviance from to and also improved 3 of 36 triangular pooled fits by up to with none worse.
5. One-knob-two-rooms and 6. Row-cache line-search stalls. Welded descendants carry a free vertex's influence well beyond its immediate one-ring star. Reading only local star support misdiagnosed its footprint, so all scoring, support audits, and retirement must read the full realized column through welds. Finally, linearizing rows within logits of their cached base introduced a small discontinuity when a row crossed during Newton backtracking, stalling 1 of 72 battery fits at . Rebasing the cache and falling back to exact moments eliminates the stall.
Terms
- Bias-corrected score
- because ; standardize by .
- Empirical null
- Degree-6 Poisson fit to 72 linearly binned histogram bins on , central match on , cap (rect), admit prefix with mean .
- EM depth variance
- ( logit); adding stops the absorbing floor freeze.
- Implicit spike-and-slab
- Winners-only EM estimates the slab variance while the gate enforces the spike; four selection-aware/marginal fixes all tied or lost on held-out deviance.
- Extrapolation guard
- Keep depth-1 starting backbone and put a prior on the four rectangular roots to stop bilinear corner twist on held-out cohorts.
Sources
- Sam Babichenko. triangular-decision-mesh: adaptive right-triangle mesh regression with a false-discovery gate. GitHub repository (docs/MODEL.md, docs/WRITEUP_2026-09-23.md, core/estimator/score.cpp, core/fit/gate.cpp), 2026.
- Sam Babichenko. rectangular-decision-mesh: anisotropic dyadic rectangular mesh regression. GitHub repository (docs/RECT_ESTIMATOR.md), 2026.
- Bradley Efron. Large-Scale Simultaneous Hypothesis Testing: The Choice of a Null Hypothesis. Journal of the American Statistical Association 99(465), 96-104, 2004.
- Bradley Efron. Size, Power and False Discovery Rates. Annals of Statistics 35(4), 1351-1377, 2007.
Connected notes
- Stein's paradox and the James-Stein estimatorBenign overfitting · Shrinkage toward a common point
Because exceeds by about on average, the best factor is about , and the James-Stein version beats the raw observation at every once .
- Learned KV-cache evictionEfficient sequence models · Comparing noisy runs is an estimation problem
By the note's rough estimate the difference between two average pass@1 scores, over about 120 problems with 16 samples each, has a standard deviation of at most about 0.016 before any training-seed variation, so gaps of 0.01 to 0.02 between eviction methods are not resolved.
- Transformers Learn In-Context by Gradient DescentIn-context learning · Shrinkage toward a common point
A trained linear-attention layer keeps the fraction of the signal in eigendirection , a ridge-like shrinkage fixed at training time that does not weaken as the prompt grows; and because the layer applies a fixed matrix where least squares would invert the prompt's sample covariance, its error keeps a term even on noiseless prompts.
- The NanoGPT speedrunNanoGPT speedrun · Comparing noisy runs is an estimation problem
A speedrun record must show that its mean validation loss over several runs is at most 3.28 at one-sided , with the token streams fixed, and changes that only touch systems performance are exempt from the test, since they compute the same updates up to rounding.