The active regression problem is a variant of the standard linear regression problem.
Most of the algorithms presented in Chapter 4 on linear regression require reading the entire vector . However, in the active regression problem, we measure cost by the number of entries of that get observed, so such methods are off the table.
This section outlines basic sampling-based approaches to the active regression problem that aim to use a small number of entry evaluations.
Leverage score sampling¶
Recall is the distribution that corresponds to sampling an index from proportional to the Leverage-scores of .
One can apply Algorithm 4.3 (sketch-and-solve) using the Leverage-score Sketch. Theorem 2.9 guarantees that the leverage-score sketch is a subspace embedding for . However, we cannot immediately apply the analysis techniques used in the analysis of Sketch and Solve, because these require that the sketch is a subspace embedding for . The standard approach to the analysis is to make use of the approximate matrix multiplication guarantee; see for example Raphael’s wiki.
Here, we describe and analyze a slight modification of this algorithm, which admits a simple analysis of the mean squared error.
Note that the rejection step does not require any additional evaluations of , since it only requires access to . Hence, it does not impact the number of entries of that are observed. In many applications, an orthonormal basis is known a priori, so the rejection step can be performed with very little overhead.
Proof
Let be an orthonormal basis for and let be the optimal residual, which is orthogonal to .
Since ranges over as ranges over , we may write the fitted-value error of the sketched solution as . Because , the first-order optimality condition for the sketched least-squares problem gives
Since , the Pythagorean theorem gives
so it suffices to show that .
Observe that
where we have used that, is a subspace embedding for with constant distortion and Theorem 2.1.
Let be a leverage-score sketching matrix, and let be the event that is a subspace embedding for with distortion . Then, since rejection sampling outputs a sketch that is distributed as conditioned on , we have
At first glance, it seems that it may be hard to analyze this conditional expectation, since the distribution of is probably super complicated. Fortunately, there is a simple trick to get around this.[1] Note that for any random variable and event , , and hence
where the inequality follows from the fact that .
This implies that
The numerator is the error of the approximate matrix multiplication estimator (note ). Specifically, leverage score sampling uses probabilities , so the variance bound Theorem 7.1 gives
The denominator can be analyzed using the matrix Bernstein inequality, which yields provided . For a proof, see Rapahel’s wiki. This also implies that the number of rejections is a geometric random variable with mean at most 2.
I learned this trick from a related proof generated by Claude. I was super happy to learn about it, because I always found the typical subspace embedding + approximate matrix multiplication analysis for the sketch-and-solve algorithm unsatisfying, because of the union bound. In particular, in this book, almost all the bounds are expectation bounds, but I only had a probability bound for active regression.