Four things had to be taught before a single number could be believed: what the metric is, what "different" means on it, how to interrogate a black box for structure, and what a shape constraint actually constrains.
The response is a rate: , claims divided by exposure-years, with the exposure serving as the fitting and scoring weight. Every model on both tracks is driven that way — no per-library offset plumbing anywhere.
Unit Poisson deviance — the per-row loss:
Fold deviance — the exposure-weighted mean across the fold ():
The gap — positive means GBDT is better:
That the exposure-weighted rate form is identical to the textbook offset form is the load-bearing step, so the method card derives it rather than citing it:
Substitute and drop the θ-free terms:
And:
…whose θ-dependent part is:
Hence:
Left: the count likelihood with offset . Right: the exposure-weighted rate deviance.
Both give the same score equation:
For a GBDT the equality holds at the level of the loss and its gradients, so
it propagates into every split gain and every leaf value. This is why
PoissonRegressor, HistGradientBoostingRegressor,
LGBMRegressor(objective="poisson") and CatBoostRegressor(loss_function="Poisson")
can all be handed the identical (y_rate, sample_weight=Exposure) pair and
still be comparing like with like. One caveat worth carrying into a filing memo: the
equivalence is for the fitted function; dispersion-based standard errors differ
unless φ is handled consistently. Irrelevant here — the metric is a deviance,
not a Wald test.
A delta is only evidence if it exceeds the noise of the comparison that produced it. This study measured four distinct floors and they differ by more than a factor of four. Getting this wrong is the single most common way a gap becomes a fiction.
| Floor | Value | What it governs |
|---|---|---|
| glm fit-seed std (k = 5) | exactly 0 | nothing — PoissonRegressor is deterministic. The degenerate value IS a finding: quoting a seed floor for a GLM is meaningless. |
| gbdt fit-seed std (k = 5) | 0.000210 | HGBT re-fit reproducibility only |
| glm paired-bootstrap SE (B = 1000, CRN) | 0.000270 → minimum_delta 0.000539 | within-glm-track comparisons |
| gbdt paired-bootstrap SE (B = 1000, CRN) | 0.000287 → minimum_delta 0.000573 | within-gbdt-track comparisons |
| cross-track paired SE (development) | 0.000963 | the headline GLM↔GBDT gap on development |
| cross-track paired SE (sealed) | 0.001028 | the headline gap on the sealed test |
Why the paired floor is the one that governs. A seed floor asks "if I re-fit this model, how much does its score move?" — which says nothing about whether two different models differ. The paired bootstrap asks the right question: resample the evaluation rows once with common random numbers, score both models on the same resample, and take the standard deviation of the difference across B = 1000 draws. Shared row-level noise cancels; only the disagreement between the models survives. Bootstrapping the two levels separately and differencing their SEs would overstate the comparison noise several-fold.
Note the asymmetry that follows: the cross-track SE (0.000963) is 4.6×
the GBDT seed floor and is the only one of the four that legitimately
bands the headline gap. It is an uncertainty band, not a
minimum_delta — it never gates a keep/discard decision. Track
frontiers are gated by the within-track deltas; the gap is reported against the
cross-track SE.
Three tools, all off-ledger (descriptive analysis, never evidence), all reading artifacts the sanctioned loop already produced.
Knowledge distillation trains a small student on a big teacher's outputs. Here the machinery is repurposed as a measurement instrument, and that changes how you read it:
The GBDT's log-prediction surface is a smooth function of the rating factors. Fit a GLM-shaped surrogate — main effects only, in a basis the real GLM could actually use — to that surface. Whatever the surrogate cannot reproduce is, by construction, the part of the teacher's structure that is not representable as GLM main effects. Correlate that residual against candidate two-way products and the largest correlations name which interactions the GBDT found.
Teacher's log-score (train fold only):
Main-effects surrogate — a per-column cubic basis , fit by weighted least squares:
is the weighted correlation between the standardised product column and the residual. Five numeric factors give C(5,2) = 10 candidate pairs; rank them, promote the top-K into the real GLM as design-matrix columns, and measure development deviance. The instrument and the intervention are the same object — the column that scored highest IS the column you add, so a screening hit is immediately falsifiable by one refit.
Three properties make this a screen rather than a fishing expedition:
y. Derivation lives entirely
inside train; development is spent only on the adopt/reject decision; the sealed fold
confirms.Read it correctly. lives on the log-score surface, not on deviance. It is a diagnostic, not a bound on recoverable deviance. A high value with a stubborn gap would have meant the gap lives in basis/knot curvature the scoped splines do not span — a different, equally reportable answer.
A single instrument that names an interaction is a hypothesis; two instruments agreeing is evidence. The cross-check is model-agnostic and computed by hand on the log scale (GLM additivity is log-scale additivity):
All surfaces mean-centred, on an 8×8 quantile grid, evaluated on .
If a pair is genuinely additive, the 2-D partial-dependence surface equals the sum of the two 1-D curves and the residual surface is flat. Its standard deviation is the pair's non-additivity in log-rate units. A pair is adopted only if the surrogate ranking and the PD signature agree on it.
The weighted deviance is a sum of per-row contributions, so any disjoint partition of the evaluation rows partitions the total exactly — no cross terms, no residual, nothing approximated:
That identity is what converts a leaderboard row into a WHERE answer. "72% of the gap sits in three segments covering 11% of exposure" is a completely different business story from "the gap is spread evenly across the book" — and both produce the same headline number. Discipline: individual may be negative (segments where the GLM wins), so shares can exceed 1; always print each segment's exposure share next to its gap share, or a 1%-exposure segment will look decisive when it is noise.
A monotone constraint is not a post-hoc smoothing. It is enforced inside split finding: every node carries a value band inherited from its ancestors, and a split on the constrained feature is admissible only if
The children's bands are tightened so the ordering can never be undone deeper in the tree.
Additive stagewise composition preserves the property, so the whole ensemble inherits the guarantee scikit-learn states as .
Read that guarantee slowly, because it is the entire finding of RQ7. It is quantified over every value of — i.e. monotonicity is enforced pointwise in every conditioning context, not on the marginal curve. So:
Marginal monotonicity does not imply conditional monotonicity, and it is the conditional version the library enforces.
A factor can be perfectly non-decreasing when you plot mean frequency against it, and the constraint can still be expensive — because it forbids the model from letting that factor's slope vary with another factor. Section 5 shows exactly that happening, for exactly the reason the surrogate screen predicted.
Encoding note: +1 increase, 0 unconstrained, -1
decrease, one entry per input feature. Categorical features cannot be
constrained (categories are unordered), so hgbt_monotone puts 0
on every categorical position and +1 on BonusMalus only — which is why
that config also switches to the native-categorical encoder, and why RQ7 needed a
same-encoding control.