Given vectors , we want to fit a linear regression model for noisy labels . The ridge estimator is a classical solution to this problem. However, when labels are expensive, we are forced to select only a small subset of vectors for which we obtain the labels . We propose a new procedure for selecting the subset of vectors, such that the ridge estimator obtained from that subset offers strong statistical guarantees in terms of the mean squared prediction error over the entire dataset of labeled vectors. The number of labels needed is proportional to the statistical dimension of the problem which is often much smaller than . Our method is an extension of a joint subsampling procedure called volume sampling. A second major contribution is that we speed up volume sampling so that it is essentially as efficient as leverage scores, which is the main i.i.d. subsampling procedure for this task. Finally, we show theoretically and experimentally that volume sampling has a clear advantage over any i.i.d. sampling in the sparse label case.
Subsampling for Ridge Regression via Regularized Volume Sampling
Given a matrix , we consider the
task of fitting a linear model
In many settings, obtaining labels is expensive and we are forced to select a subset of label indices. Let be the sub vector of labels indexed by and be the columns of indexed by . We will show that if is sampled with a new variant of volume sampling  on the columns of , then the ridge estimator for the subproblem
has strong generalization properties with respect to the full problem .
Volume sampling is a sampling technique which has received a lot of attention recently [3, 5, 6, 7, 16]. For a fixed size , the original variant samples of size proportional to the squared volume of the parallelepiped spanned by the rows of :
A simple approach for implementing volume sampling (just introduced in ) is to start with the full set of column indices and then (in reverse order) select an index in each iteration to be eliminated from set with probability proportional to the change in matrix volume caused by removing the th column:
Note that when , then all matrices are singular, and so the distribution becomes undefined. Motivated by this limitation, we propose a regularized variant, called -regularized volume sampling:
Note that in the special case of no regularization (i.e. ), then (3) sums to (see equality (2)). However when , then the sum of (3) depends on all columns of and not just the size of . This makes regularized volume sampling more complicated and certain equalities proven in  for become inequalities.
Nevertheless, we were able to show that the proposed -regularized distribution exhibits a fundamental connection to ridge regression, and introduce an efficient algorithm to sample from it in time . In particular, we prove that when is sampled according to -regularized volume sampling with , then the mean squared prediction error (MSPE) of estimator over the entire dataset is bounded:
is the statistical dimension. If are the eigenvalues of , then . Note that is decreasing with and . If the spectrum of the matrix decreases quickly then does so as well with increasing . When is properly tuned then is the effective degrees of freedom of . Our new lower bounds will show that the above upper bound for regularized volume sampling is essentially optimal with respect to the choice of a subsampling procedure.
Volume sampling can be viewed as a non-i.i.d. extension of leverage score sampling , a widely used method where columns are sampled independently according to their leverage scores. Volume sampling has been shown to return better column subsets than its i.i.d. counterpart in many applications like experimental design, linear regression and graph theory [3, 5]. In this paper we additionally show that any i.i.d. subsampling with respect to any fixed distribution such as leverage score sampling can require labels to achieve good generalization for ridge regression, compared to for regularized volume sampling. We reinforce this claim experimentally in Section 4.
The main obstacle against using volume sampling in practice has been high computational cost. Only recently, the first polynomial time algorithms have been proposed for exact  and approximate  volume sampling (see Table 1 for comparison).
In particular, the fastest algorithm for exact volume
1.1 Related work
Many variants of probability distributions based on the matrix determinant have been studied in the literature, including Determinantal Point Processes (DPP) , k-DPP’s  and volume sampling [3, 5, 6, 16], with applications to matrix approximation , clustering , recommender systems , etc. More recently, further theoretical results suggesting applications of volume sampling in linear regression were given by , where an expected loss bound for the unregularized least squares estimator was given under volume sampling of size . Moreover, Reverse Iterative Volume Sampling – a technique enhanced in this paper with a regularization – was first proposed in .
Subset selection techniques for regression have long been studied in the field of experimental design . More recently, computationally tractable techniques have been explored . Statistical guarantees under i.i.d. subsampling in kernel ridge regression have been analyzed for uniform sampling  and leverage score sampling . In this paper, we propose the first tractable non-i.i.d. subsampling procedure with strong statistical guarantees for the ridge estimator and show its benefits over using i.i.d. sampling approaches.
For the special case of volume sampling size , a polynomial time algorithm was developed by , and slightly improved by , with runtime . An exact sampling algorithm for arbitrary was given by , with time complexity which is when . Also,  proposed a Markov-chain procedure which generates -approximate volume samples in time . The algorithm proposed in this paper, running in time , enjoys a direct asymptotic speed-up over all of the above methods. Moreover, the procedure suffers only a small constant factor overhead over computing exact leverage scores of matrix .
1.2 Main results
The main contributions of this paper are two-fold:
Statistical: We define a regularized variant of volume sampling and show that it offers strong generalization guarantees for ridge regression in terms of mean squared error (MSE) and mean squared prediction error (MSPE).
Algorithmic: We propose a simple implementation of volume sampling, which not only extends the procedure to its regularized variant, but also offers a significant runtime improvement over the existing methods when .
The key technical result shown in this paper, needed to obtain statistical guarantees for ridge regression, is the following property of regularized volume sampling (where is defined as in (4)):
For any , and , let be sampled according to -regularized size volume sampling from . Then,
where denotes a positive semi-definite inequality between matrices.
As a consequence of Theorem 1, we show that ridge estimators computed from volume sampled subproblems offer statistical guarantees with respect to the full regression problem , despite observing only a small portion of the labels.
Let and , and suppose that , where is a mean zero vector with . Let be sampled according to -regularized size volume sampling from and be the -ridge estimator of computed from subproblem . Then, if , we have
Next, we present two lower-bounds for MSPE of a subsampled ridge estimator which show that the statistical guaranties achieved by regularized volume sampling are nearly optimal for and better than standard approaches for . In particular, we show that non-i.i.d. nature of volume sampling is essential if we want to achieve good generalization when the number of labels is close to . Namely, for certain data matrices, any subsampling procedure which selects examples in an i.i.d. fashion (e.g., leverage score sampling), requires more than labels to achieve MSPE below , whereas volume sampling obtains that bound for any matrix with labels.
For any and , there is such that for any sufficiently large divisible by there exists a matrix such that
and for each of the following two statements there is a vector for which the corresponding regression problem with satisfies that statement:
For any subset of size ,
For multiset of size , sampled i.i.d. from any distribution over ,
Finally, we propose an algorithm for regularized volume sampling which runs in time . For the previously studied case of , this algorithm offers a significant asymptotic speed-up over existing volume sampling algorithms (both exact and approximate).
For any , there is an algorithm sampling according to
-regularized size volume sampling, that with probability at least
runs in time
When the time complexity of our proposed algoirthm is not deterministic, but its dependence on the failure probability is very small – even for the time complexity is still .
The remainder of this paper is arranged as follows: in Section 2 we present statistical analysis of regularized volume sampling in the context of ridge regression, in particular proving Theorems 1, 2 and 3; in Section 3 we present two algorithms for regularized volume sampling and use them to prove Theorem 4; in Section 4 we evaluate the runtime of our algorithms on several standard linear regression datasets, and compare the prediction performance of the subsampled ridge estimator under volume sampling versus leverage score sampling; in Section 5 we summarize the results and suggest future research directions.
2 Statistical guarantees
In this section, we show upper and lower bounds for the generalization performance of subsampled ridge estimators, starting with an important property of regularized volume sampling which connects it with ridge regression. We will use as a shorthand in the proofs.
2.1 Proof of Theorem 1
To obtain this result, we will show how the expectation of matrix changes when iteratively removing a column in -Regularized Volume Sampling (see (3)):
Let and .
If we sample w.p. , then
Proof We write the unnormalized probability of as:
where follows from Sylvester’s theorem. Next, letting , we compute unnormalized expectation by applying the Sherman-Morrison formula to :
Finally, we compute the normalization factor:
where we used the fact that can we rewritten as Putting the bounds together, we obtain the result.
To prove Theorem 1 it remains to chain the conditional expectations along the sequence of subsets obtained by -Regularized Volume Sampling:
2.2 Proof of Theorem 2
Standard analysis for the ridge regression estimator follows by performing bias-variance decomposition of the error, and then selecting so that bias can be appropriately bounded. We will recall this calculation for a fixed subproblem . First, we compute the bias of the ridge estimator for a fixed set :
Similarly, the covariance matrix of is given by:
Mean squared error of the ridge estimator for a fixed subset can now be bounded by:
Next, we bound the mean squared prediction error. As before, we start with the standard bias-variance decomposition for fixed set :
Once again, taking expectation over subset , we have
The key part of proving both bounds is the application of Theorem 1. For MSE, we only used the trace version of the inequality (see (7)), however to obtain the bound on MSPE we used the more general positive semi-definite inequality in (8).
2.3 Proof of Theorem 3
Let and be divisible by . We define
for some . For any , the -statistical dimension of is
Let be any set of size , and for let
The prediction variance of estimator is equal to
The prediction bias of estimator is equal to
Thus, MSPE of estimator is equal to:
Next, we find the that minimizes this expression. Taking the derivative with respect to we get:
Thus, since at least one has to be greater than , for any set the derivative is negative for and positive for , and the unique minimum of MSPE is achieved at , regardless of which subset is chosen. So, as we are seeking a lower bound, we can focus on the case of .
Proof of Part 1
Let . As shown above, we can assume that . In this case the formula simplifies to:
where follows by applying Jensen’s inequality to convex function .
Proof of Part 2
Let . As shown above, we can assume that . Suppose that set is sampled i.i.d. from some distribution over set . Using standard analysis for the Coupon Collector’s problem, it can be shown that if , then with probability at least there is such that (ie, one of the unit vectors was never selected). Thus, MSPE can be lower-bounded as follows:
In this section, we present two algorithms that implement -regularized volume sampling (3). The first one, RegVol (Algorithm 1), simply adds regularization to the algorithm proposed in  for Reverse Iterative Volume Sampling (2). Note that in this algorithm the conditional distribution is updated at every iteration, which leads to time complexity. The second algorithm, FastRegVol (Algorithm 2), is our new algorithm which avoids recomputing the conditional distribution at every step, making it essentially as fast as exact leverage score sampling.
For any matrix , set and two distinct indices , we have
We propose a new volume sampling algorithm, which runs in time , significantly faster than RegVol when . Our key observation is that updating the full conditional distribution is wasteful, since the distribution changes very slowly throughout the procedure. Moreover, the unnormalized weights , which are computed in the process are all bounded by 1. Thus, to sample from the correct distribution at any given iteration, we can employ rejection sampling as follows:
Sample uniformly from set ,
Accept with probability ,
Otherwise, draw another sample.
Note that this rejection sampling can be employed locally, within each iteration of the algorithm. Thus, one rejection does not revert us back to the beginning of the algorithm. Moreover, if the probability of acceptance is high, then this strategy requires computing only a small number of weights per iteration of the algorithm, as opposed to updating all of them. This turns out to be the case, as shown below. The full pseudo-code of the sampling procedure is given in Algorithm 2, called FastRegVol.
3.1 Proof of Theorem 4
To simplify the analysis, we combine RegVol and FastRegVol, by running FastRegVol while subset has size at least