DLM training as weighted regression #
The weighted loss is a least-squares residual: √q-scaling embeds the
training objective into EuclideanSpace ℝ (Fin m × Fin n)
(weightedLoss_eq_norm_sq), identifying the ERM solutions with the
least-squares solutions of the design map (isERMSolution_iff_isLeastSquares).
Existence then follows from the Hilbert projection theorem via
Core.exists_isLeastSquares — the normal-equations solvability of
[GB24]'s appendix, with no invertibility hypothesis.
The √q-scaled design map: the linear embedding of candidate
production maps into Euclidean event-coordinate space whose residual
against scaledTarget is the weighted loss.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The √q-scaled observed forms, as a point of Euclidean
event-coordinate space.
Equations
- Processing.Lexical.Discriminative.scaledTarget data q = WithLp.toLp 2 fun (p : Fin m × Fin n) => √(q p.1) * data.forms p.1 p.2
Instances For
The weighted loss is the squared least-squares residual of the design map against the scaled target.
ERM solutions are exactly the least-squares solutions of the design
map — the DLM training problem, seen through √q-scaling, is weighted
linear regression.
ERM solutions exist for any nonnegative frequency vector, by the
Hilbert projection theorem (Core.exists_isLeastSquares).
Endstate solutions exist.
The trained lexicon is uniquely determined exactly when the
experienced meanings span the whole meaning space — the coordinate-free
form of the papers' full-column-rank condition on the closed-form
solution ([GB24] appendix; [Hei24]). Below that
threshold the ERM map is genuinely underdetermined
(IsERMSolution.exists_apply_ne), though its fitted values never are
(IsERMSolution.apply_meanings_eq).