Robustness and Generalization IV: Robustness of the Lasso on a Compact Sample SpaceResearch Paper
Motivation
The Lasso (Tibshirani 1996, doi:10.1111/j.2517-6161.1996.tb02080.x) is -penalized least squares regression, one of the standard estimators of statistics and machine learning because it selects sparse coefficient vectors. Explaining why a learned Lasso predictor generalizes is less routine than it looks. The two classical routes are uniform convergence over the hypothesis class and algorithmic stability (Bousquet and Elisseeff 2002, JMLR 2:499–526). The stability route is closed for the Lasso: Xu, Caramanis and Mannor (IEEE Trans. Inf. Theory 56(7), 2010, doi:10.1109/TIT.2010.2048503) showed that its uniform stability bound does not decrease with the sample size, a fact reproduced as Theorem 7 of Xu and Mannor (2012).
Xu and Mannor, Robustness and Generalization (Mach Learn 86 (2012) 391–423, doi:10.1007/s10994-011-5268-1), propose a third route, algorithmic robustness: if the sample space can be split into cells such that a test point in the same cell as a training point has nearly the same loss, then the algorithm generalizes (their Theorem 1). Their Example 6 shows that the Lasso is robust in this sense, with a number of cells given by a covering number and a robustness level depending on the training responses. This mission formalizes Example 6 together with the general criterion it rests on (Theorem 6) and the Lipschitz estimate for the Lasso loss (Lemma 3).
Setting
A sample is a point with a response and a feature vector , so the samples live in . The sample space is a compact set, and carries the norm . A training set is .
A learning algorithm maps each training set to a hypothesis ; with a loss , it is -robust (Definition 2, p. 396) if can be partitioned into disjoint sets , fixed independently of the data, such that for every , every training point , every and every ,
For a metric on and , a set is an -cover of if every point of is within distance of a point of ; the covering number is the least cardinality of such a cover (Definition 1, p. 394).
For a coefficient vector let . Given , the Lasso is
a Lasso algorithm returns a minimizer of (5) for each , and the loss is the absolute prediction error . Finally .
Formalization targets
Goal: Example 6 (p. 404)
For every compact , every , every Lasso algorithm and every ,
The statement holds for every selection of a minimizer, since (5) need not have a unique solution.
Milestones
- Optimality bound (proof of Lemma 3, p. 419): every Lasso solution satisfies .
- Lemma 3 (p. 419): for all ,
- Theorem 6 (p. 402): for a metric on and , if whenever and , and , then is -robust.
Significance
Combined with Theorem 1 of the same paper, Example 6 yields a generalization bound for the Lasso of the form with a covering number of the sample space, a bound that uses no stability of the algorithm and no uniqueness of the minimizer. Theorem 6 is the reusable part: it converts any data-dependent local Lipschitz or continuity estimate of the loss into robustness, and the paper derives its examples for the SVM, the Lasso, neural networks and PCA from it. The authors note (p. 404) that the resulting bound is weaker than VC-dimension bounds for linear predictors, since it depends exponentially on the dimension; the value of the example is the method, not the rate.
The results are proved in the paper, with short arguments. No machine-checked version of Theorem 6, Lemma 3 or Example 6 is known to exist. The formal work is to connect Mathlib's covering numbers to partitions of a set, to handle the / pairing on , and to state robustness so that later missions of this series (the generalization bound of Theorem 1, mission I) can consume it.
Difficulty
The constant in the robustness level depends on the training set through , while the partition in Definition 2 must be chosen before the training set is seen. A formalization that lets the cells depend on proves a much weaker, nearly empty statement, so the data dependence has to be carried entirely by and the cells must depend only on and . A cover by balls is not a partition, and the radius of the cover () and the closeness threshold in Theorem 6 () differ by the factor that the diameter of a cell requires. The Lipschitz estimate must bound a Lasso solution without any information beyond optimality, and the pairing between and is the one that makes the constant come out as printed; a Euclidean norm on either side gives a different constant.
Formalization scope
- is
ℝ × (Fin m → ℝ), a point being(z^{(y)}, z^{(x)}). Lean's norm on this product is the maximum of the absolute values of all coordinates, which is exactly . is written out as , since the default norm onFin m → ℝis the sup norm; isdotProduct w x. - The sample space is a set
ZwithIsCompact Z. Robustness (IsRobustOn) asks for cellsC : Fin K → Set αthat lie inZ, coverZand are pairwise disjoint (empty cells allowed), chosen before the universally quantified training set; training sets are mapsFin n → αwith all points inZ. No measurability is involved anywhere in this mission. - The covering number is Mathlib's
Metric.coveringNumberat radiusReal.toNNReal (γ / 2): closed balls, centres inZ(the metric space of Definition 1 is itself), value inℕ∞, converted withtoNat. Theorem 6 assumes its finiteness, as the paper does; without that hypothesistoNatwould return and the statement would be false for nonemptyZ. Example 6 does not assume it: it follows from compactness. - A Lasso algorithm is any function
Awith∀ s, IsLassoSolution c s (A s); it is not defined by a choice of minimizer. The regularization parameter satisfies , which the paper leaves implicit. The factor is a real division; for it is in Lean, the objective reduces to , and all statements remain true. - The robustness level is in Example 6 and in Lemma 3, each in its printed form.
Useful infrastructure beyond this mission: a lemma turning a finite cover of a set into a partition of it with cells of diameter at most twice the radius, and finiteness of Mathlib's internal covering number for compact sets. Contributions of either as separate theorems are welcome.
Selected references
- H. Xu and S. Mannor, Robustness and Generalization, Machine Learning 86 (2012) 391–423. doi:10.1007/s10994-011-5268-1
- R. Tibshirani, Regression Shrinkage and Selection via the Lasso, Journal of the Royal Statistical Society, Series B 58(1) (1996) 267–288. doi:10.1111/j.2517-6161.1996.tb02080.x
- H. Xu, C. Caramanis and S. Mannor, Robust Regression and Lasso, IEEE Transactions on Information Theory 56(7) (2010) 3561–3574. doi:10.1109/TIT.2010.2048503
- O. Bousquet and A. Elisseeff, Stability and Generalization, Journal of Machine Learning Research 2 (2002) 499–526. jmlr.org/papers/v2/bousquet02a