Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.
89,018 characters · 16 sections · 53 citation commands
Quantile Regression Under Memory Constraint
The development of modern technology has enabled data collection of unprecedented size, which leads to large-scale datasets that cannot be fit into memory or are distributed in many machines over limited memory. For example, the memory of a personal computer only has a storage size in GBs while the dataset on the hard disk could have a much larger size. In addition, in a sensor network, each sensor is designed to collect and store a limited amount of data, and computations are performed via communications and aggregations among sensors (see, e.g., Wang17sensor). Other examples include high-speed data streams that are transient and arrive at the processor at a high speed. In online streaming computation, the memory is usually limited as compared to the length of the data stream Gama2013,zhangqi2007. Under memory constraints in all these scenarios, classical statistical methods, which are developed under the assumption that the memory can fit all the data, are no longer applicable; thus, many estimation and inference methods need to be re-investigated. For example, suppose that there are $n$ samples for some very large $n$, a fundamental question in data analysis is as follows:
{5pt}
As one of the most popular interview questions from high-tech companies, this problem has attracted much attention from computer scientists over the last decade; see manku1998, greenwald2004power, zhangqi2007, guha2009 and the references therein. However, this is mainly a computation problem with a fixed dataset, which does not involve any statistical modeling.
Motivated by this sample quantile calculation problem, we study a more general problem of quantile regression (QR) under memory constraints. Quantile regression, which models the conditional quantile of the response variable given covariates, finds a wide range of applications to survival analysis (e.g., Wang:14:Sur,Xu:16:Sur), health care (e.g., Sherwood:13,Luo:13:gap), and economics (e.g., Belloni:17). In the classical QR model, assume that there are $n$ i.i.d. samples $\{(\boldsymbol{X}_i, Y_i)\}$ from the following model
where $\boldsymbol{X}_i'=(1, X_{i1}, \ldots, X_{ip})$ is the random covariate vector with the dimension $p+1$ drawn from a common population $\boldsymbol{X}$. The error $\epsilon_i$ is an unobserved random variable satisfying $\mathbb{P}(\epsilon_i\leq 0|\boldsymbol{X}_i)=\tau$ for some specified $0<\tau<1$ (known as the quantile level). In other words, $\boldsymbol{X}_i'\boldsymbol{\beta}(\tau)$ is the $\tau$-th quantile of $Y_i$ given $\boldsymbol{X}_i$. When all the $n$ samples can be fit into memory, one can estimate $\boldsymbol{\beta}(\tau)$ via the classical QR estimator koenker2005quantile,
where $\rho_{\tau}(x)=x(\tau-I\{x\leq 0\})$ is the asymmetric absolute deviation function (a.k.a. check function) and $I(\cdot)$ is the indicator function. However, when samples are distributed across many machines or the sample size $n$ is extremely large and thus the samples cannot be fit into memory, it is natural to ask the following question:
{5pt}
The divide-and-conquer (DC), as one of the most important algorithms in computer science, has been commonly adopted to deal with this kind of big data challenge. We below describe a general DC algorithm for statistical estimation. Specifically, we split the data indices $\{1,2,...,n\}$ into $N$ subsets $\mathcal{H}_{1},...,\mathcal{H}_{N}$ with equal size $m$ and $N=n/m$. Correspondingly, the entire dataset $\{Y_{i},\boldsymbol{X}_{i},1\leq i\leq n\}$ is divided into $N$ batches $\mathcal{D}_{1},\ldots,\mathcal{D}_{N}$, where $\mathcal{D}_k=\{Y_i,\boldsymbol{X}_i,i\in \mathcal{H}_k\}$ for $1 \leq k \leq N$. By swapping each batch of data $\mathcal{D}_k$ into the memory, one constructs a low dimension statistic $T_{k}=g_k(\mathcal{D}_{k})$ for $\mathcal{D}_k$ with some function $g_k(\cdot)$. Then the estimator $\widehat{\boldsymbol{\beta}}$ is obtained by the aggregation of $\{T_{k}\}_{k=1}^N$ (i.e., $\widehat{\boldsymbol{\beta}}=G(T_{1},\ldots,T_{N})$ for some aggregation function $G(\cdot)$). In recent years, this DC framework has been widely adopted in distributed statistical inference (see, e.g., li2013statistical,chen2014split,battey2015distributed,zhao2016partially,shi2016massive,banerjee2016divide,volgushev2017distributed and Section (ref) for detailed descriptions).
In addition to memory-constrained estimation on a single machine (where the size of the dataset is much larger than memory size), another natural situation for using the DC framework comes from the application of large-scale wireless sensor networks (see, e.g., shrivastava2004medians,greenwald2004power, wain2006, huang2011sampling,Wang17sensor). In a sensor network with $N$ sensors, the data are collected and stored in different sensors. Moreover, due to limited energy carried by sensors, communication cost is one of the main concerns in data aggregation. The samples are not transferred to the base station or neighboring sensors directly. Instead, each sensor first summarizes the samples into a low dimensional statistic $T_{k}$, which can be transferred with a low communication cost. Figure (ref) visualizes a typical sensor network with data flows as a routing tree with the base station as the root. An internal sensor node in the $i$-th layer receives statistics $T_{(\cdot)}$ from its children nodes in $(i+1)$-th layer, and then combines received statistics with its own $T_{(\cdot)}$ and sends the resulting statistic to its parent in the $(i-1)$-th layer. The final estimator in the base station (or central node) can be computed by $\widehat{\boldsymbol{\beta}}=G(T_{1},\ldots,T_{N})$.
A critical problem in statistical DC framework is how to construct local statistics $g_k(\cdot)$ and aggregation function $G(\cdot)$. In many existing studies, a typical choice of $g_k(\cdot)$ is to use the same estimator as the one designed for the estimation from the entire data. For example, in QR, one may choose
and a simple averaging function $G(T_{1},\ldots,T_{N})= \frac{1}{N} \sum_{k=1}^N T_k$, where $T_k=g_k(\mathcal{D}_{k})$ is the local statistic. We call this kind of DC methods the na\"ive-DC algorithm where the estimator is denoted by $\widehat{\boldsymbol{\beta}}_{ndc}=\sum_{k=1}^{N}\widehat{\boldsymbol{\beta}}_{QR,k}/N$. Despite its popularity, the na\"ive-DC algorithm might fail when $n/m$ is large. For example, in a special case of quantile estimation (i.e., $p=0$), it is straightforward to show that $\sqrt{n}|\widehat{\beta}_{ndc}-\beta(\tau)|\rightarrow \infty$ in probability when $n/m^{2}\rightarrow \infty$ (see Theorem (ref) in Appendix). Similar phenomenon occurs for general $p$, see volgushev2017distributed. In fact, the local QR estimators $\widehat{\boldsymbol{\beta}}_{QR,k}$ are biased estimators with the bias $O(1/m)$. Although the averaging aggregation is useful for variance reduction, it is unable to reduce the bias, which makes the na\"ive-DC fail when $n$ is large as compared to $m$. In the DC framework, bias reduction in $T_{k}$ is more critical than the variance reduction. This is a fundamental difference from many classical inference problems that require to balance the variance and bias (cf. nonparametric estimation). Furthermore, in the na\"ive-DC algorithm, we need to solve $N=n/m$ optimization problems, which could be computationally expensive.
The deficiency of the na\"ive-DC approach calls for a new DC scheme to achieve the following two important goals in distributed inference.
This paper develops new constructions of $g_k(\cdot)$ and $G(\cdot)$ with a multi-round aggregation scheme in Algorithm (ref), which simultaneously achieves the two goals referred above. Our method is applicable to both scenarios of small memory on a single machine and large-scale sensor networks. Instead of using the local QR estimation as in (ref), we adopt a smoothing technique in the literature (see, e.g., horowitz1998bootstrap, whang2006smoothed, wang2012corrected, pang2012variance, wu2015smoothed), and propose a new estimator for QR called linear estimator of QR (LEQR), which serves as the cornerstone for our DC approach. Our LEQR has an explicit formula in the form of direct sums of the transformation of $\{Y_{i}, \boldsymbol{X}_i\}$, which is quite different from the optimization-based QR estimator in (ref). It is also worthwhile noting that the linearity is the most desirable property in the DC framework for both theoretical development and computation efficiency.
The high-level description of the proposed multi-round DC approach is provided as follows. Our method only needs to compute an initial QR estimator $\widehat{\boldsymbol{\beta}}_0$ based on a small part of samples (e.g., $\mathcal{D}_{1}$). Based on $\widehat{\boldsymbol{\beta}}_0$, for each batch of data $\mathcal{D}_k$, we compute local statistics $\{T_k\}$ using the proposed LEQR. The local statistics are in a simple form of weighted sums of $\boldsymbol{X}_i$ and $\boldsymbol{X}_i \boldsymbol{X}_i'$. The aggregation function is constructed by adding up the local statistics and then solving a linear system, which gives the first-round estimator $\widehat{\boldsymbol{\beta}}^{(1)}$. Now, we can repeat this DC algorithm using $\widehat{\boldsymbol{\beta}}^{(1)}$ as the initial estimator. After $q$ iterations, we denote our final estimator by $\widehat{\boldsymbol{\beta}}^{(q)}$. Theoretically, under some conditions on the growth rate of $p \rightarrow \infty$ as a function $m$ and $n$, we first establish the Bahadur representation of $\widehat{\boldsymbol{\beta}}^{(q)}$ and show that the Bahadur remainder term achieves a nearly optimal rate (up to a log-factor) when $q$ satisfies some mild conditions (see (ref) and Theorem (ref)). Furthermore, as long as $n=o(m^{A})$ for some constant $A$, the final estimator $\widehat{\boldsymbol{\beta}}^{(q)}$ achieves the same asymptotic efficiency as the QR estimator (ref) computed on the entire data (see Theorem (ref)).
The new DC approach is particularly suitable for QR in sensor networks in which communication cost is one of the major concerns. The proposed procedure only requires $O(p^2)$ bits communication between any two sensors. We also highlight two other important applications of our method:
We will illustrate them in Section (ref) after we provide the detailed description of the method.
The rest of the paper is organized as follows. In Section (ref), we review the related literature on recent works on distributed estimation and inference. Section (ref) describes the proposed inference procedure for QR under memory constraints. Section (ref) presents the theoretical results. In Section (ref), we demonstrate the performance of the proposed inference procedure by simulated experiments, followed by conclusions in Section (ref). The proofs and additional experimental results are provided in Appendix.
In the QR model in (ref), let $F(\cdot|\boldsymbol{x})$ and $f(\cdot|\boldsymbol{x})$ denote the CDF and PDF of $\epsilon$ conditioning on $\boldsymbol{X}=\boldsymbol{x}$, respectively, throughout the paper. Then, for any $\boldsymbol{x}$, we have $F(0|\boldsymbol{x})=\tau$. For two sequences of real numbers $f(n)$ and $g(n)$, let $f(n)=\Omega (g(n))$ denote that $f$ is bounded below by $g$ (up to constant factor) asymptotically. For a set of random variables $X_n$ and a corresponding set of constants $a_n$, $X_n=O_p(a_n)$ means that $X_n/a_n$ is stochastically bounded and $X_n=o_p(a_n)$ means that $X_n/a_n$ converges to zero in probability as $n$ goes to infinity. For a real number $c$, we will use $\lfloor c \rfloor$ to denote largest integer less than or equal to $c$. Finally, denote the Euclidean norm for a vector $\boldsymbol{x}\in\mathbb{R}^p$ by $\|\boldsymbol{x}\|_2$, and denote the spectral norm for a matrix $\boldsymbol{X}$ by $\|\boldsymbol{X}\|$.
The explosive growth of data presents new challenges for many classical statistical problems. In recent years, a large body of literature has emerged on studying estimation and inference problems under memory constraints or in distributed environments (please see the references described below as well as other works such as kleiner2014scalable,wang2013parallelizing,Wang:15:MCMC). Examples include but are not limited to density parameter estimation li2013statistical, generalized linear regression with non-convex penalties chen2014split, kernel ridge regression zhang2015divide, high-dimensional sparse linear regression lee2017communication, high-dimensional generalized linear models battey2015distributed, semi-parametric partial linear models zhao2016partially, QR processes volgushev2017distributed, $M$-estimators with cubic rate shi2016massive, and some non-standard problems where rates of convergence are slower than $n^{1/2}$ and limit distributions are non-Gaussian banerjee2016divide. All these results rely on averaging, where the global estimator is the average of the local estimators computed on each batch of data. For the averaging estimators to achieve the same asymptotic distribution for inference as pooling the data together, it usually requires the number of batches (i.e., the number of machines) to be $o(m)$ (i.e., $n=o(m^2)$). However, in some applications such as sensor networks and streaming data, the number of batches can be large.
To address the challenge, instead of using one-shot aggregation via averaging, recent works by jordan2016communication and wang2016efficient proposed iterative methods with multiple rounds of aggregations, which relaxes the condition $n=o(m^2)$. These methods have been applied to $M$-estimator and Bayesian inference. Their framework is based on an approximate Newton algorithm Shamir:14 and thus requires the twice-differentiability of the loss function. However, the QR loss is non-differentiable and thus their approach cannot be utilized. More detailed discussions on these two works will be provided in Remark (ref). wain2006 proposed a multi-round decentralized quantile estimation algorithm under a restrictive communication-constrained setup. However, their method cannot be applied to solve QR problems.
There is a large body of literature on estimation and inference for QR and its variant (e.g., censored QR). We will not be able to provide a detailed survey here and we refer the readers to koenker2005quantile,quantilehandbook for more background knowledge and recent development of QR. However, it is worth noting that the smoothing idea in QR literature has been adopted for developing our linear estimator for QR (LEQR in Section (ref)), which serves as the cornerstone of our method. The idea of smoothing the non-smooth QR objective goes back to horowitz1998bootstrap, where he studied the bootstrap refinement in inference in quantile models. Since the smoothing idea overcomes the difficulty in higher-order expansion of the scores associated with the QR objective, it plays an important role in solving various QR problems. For example, wang2012corrected and wu2015smoothed proposed different smoothed objectives to determine the corrected scores under the presence of covariate measurement errors for QR and censored QR. Galvao16smooth proposed a fix-effects estimator for the smoothed QR in linear panel data models and derived the corresponding limiting distribution. pang2012variance proposed an induced-smoothing idea for estimating the variance of inverse-censoring-probability weighted estimator in Bang02median. whang2006smoothed considered the problem of inference using the empirical likelihood mehod for QR and demonstrated that the smoothed empirical likelihood can help achieve higher-order refinements (i.e., $O(n^{-1})$ of the coverage error). The smoothing idea can also facilitate the computation, especially for the first-order optimization methods (see, e.g., zheng2011gradient). We also adopt the smoothing idea for constructing our LEQR estimator (see Section (ref)), which heavily relies on the first-order optimality condition of the objective. Instead of using the smoothing technique for computing a one-stage estimator as in existing literature, our use of the smoothing technique enables successive refinement of the LEQR estimator (see Propositions (ref) and (ref)).
In this section, we introduce the proposed method. We start with a new linear type estimator for quantile regression, which serves as an important building block for our inference approach.
We first propose a linear type estimator for quantile regression, which is named as LEQR (Linear Estimator for Quantile Regression). Recall the classical quantile regression estimator from (ref). Note that for the quantile regression, the loss function $\rho_{\tau}(x)=x(\tau-I\{x\leq 0\})=x(I\{x> 0\}+\tau-1)$ is non-differentiable. Using the smoothing idea (see the literature surveyed in Section (ref)), we approximate the indicator factor $I\left\{x>0\right\}$ with a smooth function $H(x/h)$, where $h \rightarrow 0$ is the bandwidth. With this approximation, we replace $\rho_{\tau}(x)$ in quantile regression by $K_h(x)=x(H(x/h)+\tau-1)$ and define
Now the right hand side in ((ref)) is differentiable and we note that $\frac{\mathrm{d} K_h(x)}{\mathrm{d} x}= H(x/h)+\tau-1+(x/h)H'(x/h)$. Here the function $H(u)$ is a smooth approximation of the indicator factor $I\{x>0\}$ satisfying $H(u)=1$ when $u\geq 1$ and $H(u)=0$ when $u\leq -1$ (see more details on the condition of $H(\cdot)$ in Condition (C3) on page (ref)). For example, one may choose $H(u)$ for $u \in[-1,1]$ to be the integral of a smooth kernel function with support on $[-1,1]$, e.g., a biweight (or quartic) kernel (see (ref)). We further note that (ref) is a non-convex optimization and thus it is difficult to compute the minimizer $\widehat{\boldsymbol{\beta}}_h$. However, it is not a concern since (ref) is only introduced for the motivation purpose. The proposed LEQR estimator, which is explicitly defined in (ref) below, does not require to solve (ref).
Since $H(\cdot)$ is a smooth function, by the first-order optimality condition, the solution $\widehat{\boldsymbol{\beta}}_{h}$ in (ref) satisfies (see Theorem 2.6 in Beck:14)
From (ref) we can express $\widehat{\boldsymbol{\beta}}_h$ by {
}
However, there is no closed-form expression of $\widehat{\boldsymbol{\beta}}_{h}$ from this fixed point equation. Instead of using $\widehat{\boldsymbol{\beta}}_{h}$ on the right hand side of ((ref)), we replace $\widehat{\boldsymbol{\beta}}_{h}$ by a consistent initial estimator $\widehat{\boldsymbol{\beta}}_{0}$, which leads to the proposed LEQR:
Allowing the choice of initial estimator $\widehat{\boldsymbol{\beta}}_{0}$ is crucial for our inference procedure under the memory constraint. While it is difficult to solve the fixed point equation in (ref) when all data cannot be loaded into memory, we are still able to compute an initial estimator using only a batch of samples, e.g., $\mathcal{D}_{1}$. Given the initial estimator $\widehat{\boldsymbol{\beta}}_{0}$, the LEQR in (ref) only depends on sums of $\boldsymbol{X}_i$ and $\boldsymbol{X}_i\boldsymbol{X}_i'$, which can be easily implemented via a divide-and-conquer scheme (see Section (ref) for details). Comparing to the na\"ive-DC method that needs to solve $N$ optimization problems on each batch of data, LEQR only needs to solve one optimization, and thus is computationally more efficient. Moreover, our estimator in (ref) is essentially solving a linear equation system, and we do not need to explicitly compute a matrix inversion. There are a number of efficient methods for solving a linear system numerically, such as conjugate gradient method hestenes1952methods and stochastic variance reduced gradient method johnson2013accelerating. In our simulation studies, we use the conjugate gradient method, and due to space limitations, more detailed explanations of this method are provided in Appendix (ref).
Based on LEQR, we now introduce a divide-and-conquer LEQR for estimating $\boldsymbol{\beta}(\tau)$. For each batch of data $\mathcal{D}_k$ for $1\leq k\leq N$, let us define the following quantities. {
\normalfont } The inference procedure is presented in Algorithm (ref). Using our theory in Theorem (ref) and (ref), for the $g$-th iteration, we choose the bandwidth $h=h_g= \max(\sqrt{p/n},(p/m)^{2^{g-2}})$ for $1\leq g\leq q$.
Algorithm (ref) can not only be used under the memory constraint, but also be applied to distributed setting, to reduce computational cost for classical quantile regression, and to deal with streaming data. We illustrate these important applications as follows.
In this section, we provide a Bahadur representation of $\widehat{\boldsymbol{\beta}}^{(q)}$, based on which we derive the asymptotic normality result for DC LEQR $\widehat{\boldsymbol{\beta}}^{(q)}$ and the online LEQR $\widehat{\boldsymbol{\beta}}[j]$. We also discuss adaptive choices of bandwidth and extensions to heterogeneous settings.
We note that (ref) can be equivalently written as:
where
We first state some regularity conditions for our theoretical development and then give Propositions (ref)-(ref) on the expansions of $\boldsymbol{A}_{n,h}$ and $\boldsymbol{D}_{n,h}$. We assume the model (ref) with $n$ i.i.d. samples $\{(\boldsymbol{X}_i, Y_i)\}$ (the non-i.i.d. case will be discussed in the next subsection). Let $f(\cdot|\boldsymbol{X})$ be the conditional density function of the noise $\epsilon$ given $\boldsymbol{X}$. Further, we define $ \boldsymbol{D}=\mathbb{E}(\boldsymbol{X}\boldsymbol{X}'f(0|\boldsymbol{X})). $ {
Condition (C1) contains a standard eigenvalue condition related to covariates $\boldsymbol{X}$ and the smoothness of the conditional density function $f$. Condition (C2) is a mild condition on $H$ for smooth approximation.
Condition (C3) and (C3$^*$) illustrate the relationship between the dimension $p$ and sample size $n$ and the moment condition on covariates $\boldsymbol{X}$. Either one of them leads to our theoretical results in Propositions (ref)-(ref). As compared to Condition (C3$^*$), Condition (C3) is weaker in terms of the relationship of $p$ and $n$, but requires a stronger moment condition on $\boldsymbol{X}$.
Under these conditions, we have the following Proposition (ref) and (ref) for the asymptotic behavior of $\boldsymbol{A}_{n,h}$ and $\boldsymbol{D}_{n,h}$.
Combining Propositions (ref) and (ref) with (ref) and with some algebraic manipulations, we have
with
By choosing the bandwidth $h$ shrinking at an appropriate rate, the dominating term of (ref) is $a_n^2$, which means that one round of aggregation enables a refinement of the estimator with its bias reducing from $a_n$ to $a_n^2$ (note that $\|\hat{\boldsymbol{\beta}}_{0}-\boldsymbol{\beta}(\tau)\|_2=O_{\mathbb{P}}(a_{n})$). Therefore, an iterative refinement of the initial estimator will successively improve the estimation accuracy. The effect of bias reduction is mainly due to the term $\frac{Y_i}{h}H'\Big(\frac{Y_i-\boldsymbol{X}'_i\widehat{\boldsymbol{\beta}}_0}{h}\Big)$ in (ref), which is induced by the smoothing technique (please see more details in the proof of Proposition (ref)).
The previous discussions only involve one round of aggregation. } Now we are ready to present the theoretical results for our DC LEQR $\widehat\boldsymbol{\beta}^{(q)}$ in Algorithm (ref) with multiple rounds of aggregations. By a recursive argument based on (ref), we establish the following Bahadur representation.
The classical initial estimator based on QR in (ref) will satisfy $\|\widehat{\boldsymbol{\beta}}_0-\boldsymbol{\beta}(\tau)\|_2=O_{\mathbb{P}}(\sqrt{p/m})$ under some regularity conditions; see HE2000120. According to our choice of bandwidth, we have $h_1=\sqrt{p/m}$ and thus the convergence rate of the initial estimator is $O(h_1)$, which satisfies the condition in Proposition (ref). Furthermore, we note that any initial estimator $\hat{\boldsymbol{\beta}}_{0}$ with $\|\hat{\boldsymbol{\beta}}_{0}-\boldsymbol{\beta}(\tau)\|_2=O_{\mathbb{P}}(\sqrt{p/m})$ can be used in the first iteration and the same Bahadur representation in Theorem (ref) holds.
The condition $p=O(m/(\log n)^2)$ in Theorem (ref) ensures that $\sqrt{p/m}=o(1)$, which implies the consistency of the initial estimator (and the $1/(\log n)^2$ factor is used for balancing the terms in $\|\boldsymbol{r}_{n}\|_2$ in (ref)). This condition on $p$ cannot be implied by either (C3) or (C3$^{*}$); and we choose to present (C3) (or (C3$^{*}$)) at the beginning since they are the minimum requirements to obtain Propositions (ref)--(ref). On the other hand, the condition $p=o(nh_q/\log n)$ in (C3) will be satisfied if $p=o(n/(\log n)^2)$ since $h_q \geq \sqrt{p/n}$. Therefore, we can simply impose a stronger condition $p=o(m/(\log n)^{2})$ that unifies the condition $p=O(m/(\log n)^2)$ and that in (C3).
Applying the central limit theorem to Theorem (ref), we obtain the asymptotic distribution of $\widehat{\boldsymbol{\beta}}^{(q)}-\boldsymbol{\beta}(\tau)$ as follows.
Note that to establish central limit theorem, we need $p=o(n^{1/3}/(\log n)^{2/3})$ in Theorem (ref), which ensures that $\|\boldsymbol{r}_n\|_2 = o(1/\sqrt{n})$ (see (ref)). Therefore, as the first term in (ref) is an average of $n$ i.i.d. zero-mean random vectors, the reminder term $\boldsymbol{r}_n$ is dominated by each coordinate of the first term in (ref). For the classical QR estimator $\hat{\boldsymbol{\beta}}_{QR}$ in (ref) (assuming all data is pooled together), the corresponding condition should be $p=o(n^{1/3}/(\log n)^{2/3})$, see HE2000120. This is the same with our condition except for the term $m^{\delta}$ which is required for the consistency of the initial estimator in our method. We also note that the conditions $n=O(m^{A})$ and $p=o(m^{\delta})$ ensure that the number of required iterations $q$ from (ref) is a constant (see Remark (ref)). Therefore, we only need to perform a constant number of aggregations as $m,n \rightarrow \infty$.
Theorem (ref) shows that $\widehat{\boldsymbol{\beta}}^{(q)}$ achieves the same asymptotic efficiency as $\widehat{\boldsymbol{\beta}}_{QR}$ in ((ref)) computed directly on all the samples. When $p$ is fixed, as compared to the na\"ive-DC that also achieves (ref) but under the condition $n=o(m^2)$, our approach removes the restriction on the relationship of $m$ and $n$ by applying multiple rounds of aggregations. It is also important to note that the required number of rounds $q$ in (ref) is usually quite small even with a large dimension $p$.
Given (ref), we only need consistent estimators of $\boldsymbol{D}$ and $\mathbb{E} [\boldsymbol{X}\boldsymbol{X}']$ to construct confidence interval of $\boldsymbol{v}'\boldsymbol{\beta}(\tau)$ for any given $\boldsymbol{v}$. It is natural to use $\boldsymbol{D}_{n,h}$ and $\frac{1}{n}\sum_{i=1}^{n}\boldsymbol{X}_{i}\boldsymbol{X}'_{i}$ to estimate $\boldsymbol{D}$ and $\mathbb{E} [\boldsymbol{X}\boldsymbol{X}']$, respectively. These estimators can be easily implemented under memory constraint by averaging the local sample estimators on each batch of data. The proofs of Propositions (ref), (ref) and Theorems (ref), (ref) are provided in Appendix (ref).
The next theorem gives the limiting behavior of the online LEQR in Algorithm (ref).
We note that $m+j$ is the total number of used samples (including the samples for initialization) up to time $j$. From ((ref)), we have $\|\widehat{\boldsymbol{\beta}}[j]-\boldsymbol{\beta}(\tau)\|_2=O_{\mathbb{P}}(\sqrt{p/(m+j)})$ for any $1\leq j\leq m^{A}$ when $\boldsymbol{r}_{m,j}$ is dominated by the first term. By Theorem 1 in siegmund1969, we can further obtain $\|\widehat{\boldsymbol{\beta}}[j]-\boldsymbol{\beta}(\tau)\|_2=O_{\mathbb{P}}\Big{(}\sqrt{\frac{p\log\log m}{m+j}}\Big{)}$ uniformly for $1\leq j\leq m^{A}$. To establish the asymptotic distribution in (ref), we need $p=o(m^{1/4})$, which ensures that $\|\boldsymbol{r}_{m,j}\|_2 = o(1/\sqrt{m+j})$ (see (ref)).
In this section, we provide simulation studies to illustrate the performance of DC LEQR for constructing confidence intervals for QR problems. We generate data from a linear regression model
where $\boldsymbol{X}_i=(1, X_{i1}, \ldots, X_{ip})'\in \mathbb{R}^{p+1}$ is a random covariate vector. Here, $(X_{i1}, \ldots, X_{ip})'$ follows a multivariate uniform distribution $\mathrm{Unif}([0,1]^p)$ with $\text{Corr}(X_{ij},X_{ik})=0.5^{|j-k|}$ for $1\leq j\neq k\leq p$. Please refer to falk1999simple for the construction of such a multivariate uniform distribution. The regression coefficient vector $\boldsymbol{\beta}=\mathbf{1}_{p+1}$. The errors $\epsilon_i$'s are generated independently from the following three distributions:
For each quantile level $\tau$, we compute the corresponding true QR coefficient vector $\boldsymbol{\beta}(\tau)$ in the QR model (ref) by shifting $\epsilon_i$ such that $\mathbb{P}(\epsilon_i\leq 0|\boldsymbol{X}_i)=\tau$:
Here $\Phi$ and $F_{\mathrm{exp}}$ are the cumulative distribution function of standard normal distribution and exponential distribution with parameter $1$. The vector $\boldsymbol{e}_i$ (for $i=1,\ldots, p+1$) is the $(p+1)$-dimensional canonical vector with the $i$-th element being one and all the other elements being zero.
We use the integral of a biweight (or quartic) kernel as the smoothing function $H$:
It is easy to see that it satisfies Condition (C2).
We compute the DC LEQR $\widehat{\boldsymbol{\beta}}^{(q)}$ in (ref) and measure the performance of $\widehat{\boldsymbol{\beta}}^{(q)}$ in terms of the statistical inference. In particular, we report average coverage rates of the confidence interval of $\boldsymbol{v}_0'\boldsymbol{\beta}(\tau)$, where $\boldsymbol{v}_0=(p+1)^{-1/2}\mathbf{1}_{p+1}$. We set the nominal coverage probability $1- \alpha_0$ to $95\%$. From Theorem (ref), an oracle $(1- \alpha_0)$-th confidence interval for $\boldsymbol{v}_0'\boldsymbol{\beta}(\tau)$ is given by
where $z_{\alpha_0/2}$ is the $(1-\alpha_0/2)$-quantile of the standard normal distribution. To construct the confidence interval, we estimate $\boldsymbol{D}$ and $\mathbb{E}\left[\boldsymbol{X}\boldsymbol{X}'\right]$ by $\boldsymbol{D}_{n,h}$ and $\frac{1}{n} \sum_{i=1}^n \boldsymbol{X}_i \boldsymbol{X}_i'$, respectively. There are two major advantages of this approach. First, since $\boldsymbol{D}_{n,h}$ has already been obtained in computing DC LEQR, we estimate $\boldsymbol{D}$ without any extra computation. Second, both $\boldsymbol{D}_{n,h}$ and $\frac{1}{n} \sum_{i=1}^n \boldsymbol{X}_i \boldsymbol{X}_i'$ are in the form of summation over $n$ terms, which can be easily computed in a distributed setting with little communication cost. As we will show in Table (ref), the proposed estimator is very close to the truth. The scaling constant in bandwidth is simply set to one (as in our theorems) and more detailed experiments on the sensitivity analysis of the scaling constant is provided in Section (ref). We report empirical coverage rates as an average of 1000 independent runs of the simulations.
In Tables (ref)--(ref), we present the empirical coverage rates of our DC LEQR estimator, the na\"ive-DC estimator, and the oracle QR estimator in (ref) computed on all data points (denoted as QR All) for three different noise models. More precisely, we generate the error from one of three distributions (i.e., homoscedastic normal for Table (ref), heteroscedastic normal for Table (ref), and exponential for Table (ref)) and consider three different quantile levels $\tau=0.1,0.5,0.9$. In our experiment, we set $m=100$, $p=15$ and vary $n$ form $m^{1.6}$ to $m^3$ (i.e., $\log_m(n)$ from 1.6 to 3). From (ref), it is easy to see that we need number of aggregations $q \geq 4$. Thus, we report the performance of DC LEQR $\widehat{\boldsymbol{\beta}}^{(q)}$ for $q=4$ and $q=5$. We also report the case of $p=3$ in Appendix (ref).
As one can see from Tables (ref)--(ref), for most of the settings, the coverage rates of our DC LEQR are close to the nominal level of $95\%$ after $4$ rounds of aggregations ($q=4$). The coverage performance becomes quite stable for $q=5$ iterations. On the other hand, for the na\"ive-DC estimator, the coverage rates are quite low in most settings, especially when $n$ is larger than $m^2$.
Note that for na\"ive-DC and QR All, we use the same estimator of the limiting variance in (ref) as in our DC LEQR when $q=4$. More precisely, we use $\boldsymbol{D}_{n,h}$ computed in the $4$-th iteration to estimate $\boldsymbol{D}$ in (ref) when constructing the confidence intervals of na\"ive-DC and QR All estimators. We will show in Table (ref) below that the proposed estimator of the limiting variance performs well. In fact, we also use the true limiting variance to construct the confidence interval and the coverage rates for all the methods are almost the same.
In addition, we also report the simulation study with large dimension $(p= 1000)$. The results and analysis are relegated to Appendix (ref). From the results, we can infer that the coverage rates get better as the iterative refinement proceeds. In particular, the coverage rates are close to the nominal level 95% after $4$ iterations when the dimension $p=1000$. In summary, when the dimension $p$ is large, the proposed DC LEQR algorithm still achieves desirable performance with a small number of iterations.
To see the improvement of DC LEQR over na\"ive-DC when $n$ is excessively larger than the subset size $m$, we also report the mean bias and variance of our proposed DC LEQR, na\"ive-DC, and QR All in Tables (ref)--(ref). The mean bias and variance of $\boldsymbol{v}_0'\widehat{\boldsymbol{\beta}}$ are based on 1000 independent runs of simulations.
From Tables (ref)--(ref), the bias of our method is quite small while the na\"ive-DC approach has a much larger bias regardless of the sample size $n$. For the variance, it decays with the rate $1/n$ as $n$ goes large for all methods. For most cases of using na\"ive-DC, as $\log_m(n)$ exceeding $2$, the squared bias becomes comparable or larger than the variance, which explains the reason of the failure of na\"ive-DC when $n$ is large as compared to $m$. On the other hand, the bias of our proposed DC LEQR is similar to that of QR All and much smaller than that of na\"ive-DC.
In this section, we show the empirical performance of the data-adaptive choice of bandwidth in Remark (ref) and the sensitivity of the scaling constant in bandwidth. Due to space limitations, we report $\tau=0.1$, homoscedastic normal noise case as an example. More noise cases (e.g., heteroscedastic normal and exponential cases) are relegated to Appendix (ref), and observations are similar to the homoscedastic normal case.
Table (ref) shows coverage rates of the DC LEQR with $q=1,2,3,4,5$ iterations. Similar to the setting in Tables (ref)--(ref), we choose $m=100$, $p=15$, and $n$ varies from $m^{1.6}$ to $m^3$. We report the performance of DC LEQR using different fixed constants $c=1,3,5,10$ in bandwidth $h_g$ for $1\leq g \leq q$ (using the same constant in all iterations) as well as our data-adaptive choice of bandwidth. For the data-adaptive bandwidth, we choose the best scaling constant from a list of 1000 equally spaced constants from a very small number (0.1) to a large one (100) according to Remark (ref). Note that different scaling constants will be chosen for different iterations. As one can see, for $q=1$ and $q=2$, the adaptive method indeed achieves better coverage than other scaling constants. On the other hand, when $q \geq 3$, all different choices of scaling constants lead to coverage rates close to the nominal level of 95%. This experiment suggests that for our proposed iterative aggregation approach, even when a sub-optimal scaling constant is used, one can still achieve good performance by performing more iterations.
Moreover, to investigate the sensitivity of the scaling constant in terms of variance estimation, we also present the square root of the ratio of the estimated variance of our approach versus the true limiting variance, i.e.,
where $\boldsymbol{D}_{n,h}$ is computed for iterations $q=1,2,3,4,5$ and for each fixed $q$, the bandwidth $h_g=c \max(\sqrt{p/n},(p/m)^{2^{g-2}})$ for $1 \leq g \leq q$. In Table (ref), we report the performance of the variance estimation with different choices of the scaling constant $c$ of the bandwidth $h$ in constructing $\boldsymbol{D}_{n,h}$ .
From Table (ref), the ratio is very close to $1$ when $q=4$ or $5$. Therefore, when $q$ is large, the proposed variance estimator is a reliable one in the distributed setting. Moreover, we notice that the ratio is very stable for different choices of the scaling constant $c$, which illustrates the robustness of the estimator.
We further conduct experiments to illustrate the computation efficiency of our algorithm for different $m$ and $n$ with $\tau=0.1$, $p=15$ and $\epsilon_i \sim N(0,1)$. We compare the computation time of DC LEQR versus that of na\"ive-DC as well as QR All in Table (ref). We report the bias and variance and the coverage rates for reference of the performance of the estimators.
First of all, the computation time of DC LEQR is about as twice faster than that of the QR All, especially when $n$ is large. It is also faster than the na\"ive-DC and with a much better coverage when $n$ is much larger than $m$. Moreover, the time of our algorithm grows almost linearly in both $n$ and $q$, which is consistent with the computation time analysis in Section (ref). In contrast, we observe that the time of QR grows faster than a linear function in the sample size $n$. We also observe that, for each fixed $n$, the value $m$ has little effect on the computation time of DC LEQR. For na\"ive-DC, the squared bias in these cases dominate the variance, so the coverage rates are far below the nominal level. In the meantime, DC LEQR has around $95\%$ coverage in all four cases after $2$ iterations, and shows a similar behavior of bias and variance as in Table (ref).
Recently, researchers have developed new optimization techniques based on alternating direction method of multiplier (ADMM) for solving QR problems (see, e.g., yu2017parallel,gu2017admm). We further conduct comparisons to the ADMM approach and the details are provided in Appendix (ref).
Finally, we also conduct simulation studies for online LEQR and the results are presented in Appendix (ref).
In this paper, we propose a novel inference approach for quantile regression under the memory constraint. The proposed method achieves the same asymptotic efficiency as the quantile regression estimator using all the data. Furthermore, it allows a weak condition on the sample size $n$ as a function of memory size $m$ and is computationally attractive. One key insight from this work is that na\"ively splitting data and averaging local estimators could be sub-optimal. Instead, the iterative refinement idea can lead to much improved performance for some inference problems in distributed environments.
In some applications, one would expect a weaker assumption on the distribution of data where the data could be correlated. It would be an interesting future direction to study the problem of inference for correlated data in distributed settings. Moreover, for the online problem, it is also interesting to consider the case where the model (e.g., $\boldsymbol{\beta}(\tau)$) is evolving over time. In this case, some exponential decaying techniques to down weight historical data might be useful.
In the future, we would also like to further explore this idea to other QR problems under memory constraints or in a distributed setup, e.g., $\ell_1$-penalized high-dimensional quantile regression (see, e.g., belloni2011l1,wang2012quantile,fan2016multitask) and censored quantile regression (see, e.g., wang2009locally,kong2013global,volgushev2014censored,Leng:14,He:17:censored).
The authors are very grateful to three anonymous referees and the associate editor for their detailed and constructive comments that considerably improved the quality of this paper.