Unbiased estimators for random design regression
Michał Dereziński, Manfred K. Warmuth, Daniel Hsu
Introduction
In particular, the properties we want of the estimator are the following.
Throughout the introduction we give some intuition about our results by discussing the one dimensional case. For example, consider the following fixed design problem:
The bias in least squares estimators is present even when each input component is drawn independently from a standard Gaussian. As an example, we let and set:
For this Gaussian setup we evaluate the bias of the least squares estimator produced for this problem by i.i.d. sampling of points. We do this by performing model averaging, i.e., producing many such estimators independently, and looking at the estimation error of the average of those estimators :
Figure 1.1 (red curves) shows the experiment for several values of and a range of values of (each presented data point is an average over 50 runs). The i.i.d. sampled estimator is biased for any sample size (although the bias decreases with ), and therefore the averaged estimator clearly does not converge to the optimum. We next discuss how to construct an unbiased estimator (dashed blue curves), for which the estimation error of the averaged estimator exhibits convergence to zero (regardless of ). This type of convergence appears as a straight line on the log-log plot on Figure 1.1.
Even though i.i.d. sampling typically results in a biased least squares estimator, adding a volume-rescaled sample of size to the i.i.d. sample eliminates that bias altogether:
Perhaps surprisingly, volume-rescaled sampling may not lead to estimators with near-optimal loss guarantees: We show that for any there are distributions for which volume-rescaled sampling of size results in the linear least squares estimator having loss at least twice as large as the optimum loss (with probability at least 0.25). However, we remedy this bad behavior by composing a volume-rescaled sample of size with an i.i.d. leverage score sample of size . This composition achieves the following feat: It does not affect the unbiasedness of the estimator and, and it leads to good approximation properties. Specifically, in Theorem 3.1 we show that points are sufficient to construct an estimator such that:
Note that an analogous loss bound is achievable for vanilla i.i.d. leverage score sampling, but (1) the estimators produced from leverage score sampling are biased, and (2) the expected loss bound holds only if we condition on a certain high-probability event (both of those are significant issues, e.g., in the context of model averaging). To show the expected loss bound that holds without conditioning and for an unbiased estimator, we break the analysis into two cases, depending on whether the high-probability event occurs. When it does not, then our analysis crucially relies on the expectation formulas we develop for volume-rescaled sampling. Note that the only expected loss bound previously developed for a volume-based sampling distribution was limited to fixed design, and required points to obtain an approximation factor of (Dereziński and Warmuth, 2018). To our knowledge, that analysis does not easily extend to , which is why our techniques are radically different.
Our work also leads to sampling algorithms which significantly improve on the state-of-the-art time complexity of volume-rescaled sampling, both in the fixed and random design settings, with further algorithmic implications for the broader class of determinantal point processes (see Section 1.2.3). We achieve this by introducing a new technique called distortion-free intermediate sampling: We first sample a larger pool of points based on approximate i.i.d. leverage scores and then down-sample from that pool to construct the volume-rescaled sample. We use rejection sampling for the down-sampling step to ensure exactness of the resulting overall sampling distribution. Surprisingly, this does not adversely affect the complexity because of the provably high acceptance rate during rejection sampling (see Theorem 5.6).
2 Applications of our results
While studying unbiased estimators for least squares regression is an old and classical problem, our new results have significant implications for modern data science, both from a computational and statistical perspective. We outline these implications below, along with some of the recent related work.
Model averaging is a standard technique for boosting the accuracy of a subsampled estimator by constructing multiple independent copies and then averaging them. This is particularly effective in parallel and distributed environments, where the computational cost of constructing multiple estimators is the same as the cost of computing one estimator. While model averaging has been proposed as a strategy for least squares regression (e.g., see Wang et al., 2017a), the bias which arises for commonly used estimators (e.g., based on i.i.d. sampling) constitutes a significant bottleneck for this approach.
2.2 Experimental design
In a recent follow-up work, Dereziński et al. (2019) used these ideas to develop a general framework for experimental design, which bridges the gap between the statistical perspective (linear response model) and the setting studied here (arbitrary responses), relying on our volume-rescaled sampling tool kit (in particular, Theorem 2.4). Furthermore, our strategy of combining volume-based sampling methods with i.i.d. importance sampling (e.g., leverage scores) has proven instrumental in developing randomized rounding methods for efficiently solving a range of experimental design problems (including A/C/D/V-optimal design, and Bayesian experimental design), drastically reducing their computational cost and improving the approximation quality, both for discrete (Nikolov et al., 2019; Dereziński et al., 2020b) and continuous domains (Poinas and Bardenet, 2020).
2.3 Determinantal point processes
3 Related work
A discrete variant of volume-rescaled sampling of size was introduced to computer science literature by Deshpande et al. (2006) for sampling from a finite set of vectors, with algorithms given later by Deshpande and Rademacher (2010); Guruswami and Sinop (2012). A first extension to samples of size is due to Avron and Boutsidis (2013), with algorithms by Li et al. (2017); Dereziński and Warmuth (2018); Dereziński et al. (2018), and additional applications in experimental design explored by Wang et al. (2017b); Nikolov et al. (2019); Mariet and Sra (2017). Prior to this work, the best known time complexity for this sampling method, called here discrete volume sampling, was , as shown by Dereziński and Warmuth (2018). Here, we give an time algorithm.
As discussed in Section 1.2.3, volume-rescaled sampling of size is also known in the literature as a type of determinantal point process, called Projection DPP (to learn more, see Dereziński and Mahoney, 2021). Projection DPPs arise in many computational tasks outside of linear regression, such as dimensionality reduction (Belhadji et al., 2020), numerical integration (Bardenet and Hardy, 2020) and graph algorithms (Guenoche, 1983), therefore, efficient sampling algorithms for these distributions are of significant interest (Gautier et al., 2017). More broadly, determinantal point processes have found machine learning applications in recommendation systems (e.g., Gartrell et al., 2016), data summarization (e.g., Gong et al., 2014), stochastic optimization (e.g., Zhang et al., 2017; Mutný et al., 2020), and many others (see Kulesza and Taskar, 2012). The algorithmic technique of distortion-free intermediate sampling, introduced in this work, has already been applied beyond Projection DPPs (Dereziński et al., 2019; Calandriello et al., 2020), which makes it relevant to all of these applications.
The unbiasedness of least squares estimators under volume-based distributions was first explored in the context of sampling from finite datasets by Dereziński and Warmuth (2018), drawing on observations of Ben-Tal and Teboulle (1990). Focusing on small sample sizes, Dereziński and Warmuth (2018) proved multiplicative bounds for the expected loss under sample size with discrete volume sampling. Because the produced estimators are unbiased, averaging such estimators results in an unbiased estimator based on a sample of size with expected loss at most times the optimum at a total sampling cost of . In contrast, our new techniques achieve an unbiased estimator with sample size and time complexity . Dereziński and Warmuth (2018) also showed additional variance bounds for discrete volume sampling under the assumption that the responses are linear functions of the input points plus white noise. We extend them here to arbitrary volume-rescaled sampling w.r.t. a distribution.
Our work greatly expands and generalizes the results of two conference papers: Dereziński et al. (2018, 2019). The first paper introduced the leverage score rescaling method in the limited context of discrete volume sampling, developed the new intermediate sampling algorithm, and proved the sample size bound for obtaining an unbiased estimator with a loss bound. Note that the original loss bound was shown to hold with a constant probability, as opposed to in expectation, which is a significant obstacle to using it in the context of model averaging. The second paper showed how to correct the bias of i.i.d. sampling using a small size volume-rescaled sample and refined the analysis of intermediate sampling. The current paper strengthens the loss bound of the first conference paper to the desired in-expectation form (this requires new technical tools such as Lemma 3.4), and generalizes it to the case of an arbitrary data distribution (Theorem 3.1). In the process, we develop new formulas for the expectation of the inverses and pseudoinverses of random matrices under volume-rescaled sampling (Theorems 2.8 and 2.9) and characterize the marginals of this distribution (Theorem 2.7). We also extend the decomposition property of volume-rescaled sampling given in the second conference paper (Theorem 2.4), thereby greatly simplifying our proofs. Finally, we give a new lower bound that complements our main results (Theorem 4.1).
Outline
In Section 6 we compare the performance of the algorithms discussed in this paper on some real datasets. We conclude with an overview and some open problems in Section 7.
Volume-rescaled sampling
In this section, we formally define volume-rescaled sampling and describe its basic properties. We then use it to introduce the central concept of this paper: an unbiased estimator for random design least squares regression.
For , this volume-rescaled sampling is a type of Determinantal Point Process known as Projection DPP (see Section 1.2.3; to learn more, see Dereziński and Mahoney, 2021). The case of can be viewed as an extension of that family of distributions.
Proof First, suppose that , in which case . Recall that by definition the determinant can be written as:
which proves (2.1) for . The case of follows by induction via a standard determinantal formula:
where follows from the Cauchy-Binet formula. Finally, (2.2) can be derived from (2.1):
Proof For a full rank matrix we have and . When is not full rank but psd, then . Thus Lemma 2.3 implies that
where becomes an equality if is full rank with probability 1.
2 Unbiased estimator for random design regression
where is matrix with column replaced by . It follows that:
where we applied Lemma 2.3 to the pair of matrices and . The case of follows by induction based on the following lemma shown by Dereziński and Warmuth (2018):
Proof of Theorem 2.8 The columns of , equal , are exchangeable, so
Loss bound for an unbiased estimator
Let and be distributed as in the theorem. Note that we can write the estimator as follows:
Substituting for , we additionally obtain:
We start by bounding the first term in (3.4), using a standard error decomposition (see Lemma 1 of Drineas et al., 2011):
where we used that , when conditioned on .
We apply Lemma 3.3 to the set and compute the determinant of a matrix:
Let us again use the notation of . To bound the second term in (3.4), we use a somewhat different decomposition of than we did in Part 1:
So, taking expectation, and noting that and are independent of , we have:
To apply Theorem 2.9 again, we must disentangle the trace from , which is addressed in the following lemma proven at the end of the section.
Note that implies , and we can easily use Lemma 3.2 to bound its failure probability. Also, observe that, since the marginal distribution of each vector for is the same, and the event is invariant under permutation of the indices of these vectors, the marginal distributions of conditioned on are the same for each , so:
where we used the fact that is independent of . Putting everything together, we conclude that:
The above result can also be achieved if we replace the exact leverage score sampling distribution with its approximation. As discussed in Section 5, producing samples from such approximation can be more practical in settings where exact leverage scores are too expensive to compute.
Proof of Lemma 3.4 Since the rows of are exchangeable, without loss of generality assume that . By definition of volume-rescaled sampling, we have:
where denotes vector without the th entry and denotes matrix without the th column, follows because and comes from Lemma 2.3. Finally, to compute the trace, we sum up over :
Lower bounds
Here, we use the convention to handle the possibility of .
(Note that this is consistent with the case where .)
Let denote the event that there exists such that no vector is equal to . If holds then the th component of is so, setting ,
Algorithms
For this theorem, given a p.d. matrix , we use to denote the unique lower triangular matrix with positive diagonal entries s.t. .
is matrix variate beta distributed, written as . The following was shown by Mitra (1970):
Now, Theorem 6.3.14 from Gupta and Nagar (1999) states that matrices defined recursively as above can also be written as
In particular, we can construct them as , where
2 Volume-rescaled sampling for arbitrary distributions
In this section, we present a general algorithm for volume-rescaled sampling which uses approximate leverage score sampling to generate a larger pool of points from which the smaller volume-rescaled sample can be drawn. The strategy introduced here, called distortion-free intermediate sampling, has since proven effective for sampling from other determinantal sampling distributions (Dereziński, 2019; Dereziński et al., 2019; Calandriello et al., 2020).
Next, we use the geometric-arithmetic mean inequality for the eigenvalues of matrix to show that the Bernoulli sampling probability is bounded by 1:
Let be distributed as a row vector of as sampled in line 3. The distribution of matrix returned by rejection sampling after exiting the repeat loop changes to:
So, using Lemma 2.3 on the matrix we obtain that:
since , where is the geometric-arithmetic mean inequality and is the Kantorovich inequality (Kantorovich, 1948) with and :
Now setting we obtain the following lower bound for the acceptance probability:
3 Distributions with bounded support
We can lower bound the acceptance probability as follows:
4 Sampling from finite datasets
Experiments
The results confirm that our proposed leveraged volume sampling is as good or better than either of the baselines for any sample size . We can see that, in some of the examples, standard volume sampling exhibits bad behavior for larger sample sizes, as suggested by the lower bound of Theorem 4.2 (especially noticeable on bodyfat and cpusmall datasets). On the other hand, leverage score sampling exhibits poor performance for small sample sizes due to the coupon collector problem, which is most noticeable for abalone dataset, where we can see a very sharp transition after which leverage score sampling becomes effective. Neither of the variants of volume sampling suffers from this issue.
Conclusions
We showed that for any input distribution and , there is a random design consisting of points from which an unbiased estimator can be constructed whose expected square loss over the entire distribution is bounded by times the loss of the optimum. However, two main open problems remain. First, can the sample size bound be reduced to ? This has already been done with a biased estimator by Chen and Price (2019), but finding an unbiased estimator of the smaller size remains open.
Second, the least squares estimator combined with i.i.d. leverage score sampling already achieves loss times the optimum with points. The resulting estimator is biased. However, in our preliminary experiments the bias of exact leverage score sampling is small and decreases rather quickly (unlike for uniform sampling, or even approximate leverage score sampling, where the bias can be significant). Thus, one of the key open problems is to quantify the bias of this method.
Michał Dereziński and Manfred K. Warmuth were supported by the NSF grant IIS-1619271. Michał Dereziński would also like to thank the NSF for funding via the NSF TRIPODS program. Daniel Hsu was supported by the NSF grant CCF-1740833 and a Sloan Research Fellowship. Part of this work was done while Manfred K. Warmuth was visiting Google Inc. in Zürich and Michał Dereziński was visiting the Simons Institute for the Theory of Computing. We would also like to acknowledge Eric Price for valuable discussions regarding this paper.
B Loss bound with approximate leverage scores
We now decompose the expectation into two terms depending on whether the event occurs or not:
and the proof is divided into two parts, for handling the two terms.
We use the upper bound from (B.1). Event implies that . The second term in (B.1) is decomposed similarly as in (3.5), however bounding each of the obtained components will require a bit more care. Denoting , we have
This part follows identically as in the proof of Theorem 3.1, except that when applying Lemma 3.4, we use the fact that , obtaining:
With the remaining steps same as in Theorem 3.1, this concludes the proof.