A shrinkage-thresholding Metropolis adjusted Langevin algorithm for Bayesian variable selection
Amandine Schreck, Gersende Fort, Sylvain Le Corff, Eric Moulines
Introduction
We focus on variable selection in regression problems: the objective is to explain a response variable with a (possibly very) large number of explanatory variables, which can be either discrete or continuous. In many applications, it is known that only a small fraction of explanatory variables explains a large fraction of the observations, and using this information is crucial for inference. Variable selection is particularly challenging in high dimensional settings.
A variety of algorithms to explore the collection of models and criteria for selecting among competing models has been proposed. In the Bayesian framework, the variable selection problem is transformed into posterior inference: rather than searching a highly hypothetical ”best” model, Bayesian analysis attempts to estimate the joint posterior distribution of the collection of all subsets of parameters. In high dimension, this aim is often overly ambitious: estimating the marginal posterior probability that a variable should be included in the model is already challenging.
In the last three decades, Markov Chain Monte Carlo (MCMC) methods have been the most commonly used computational procedures to sample posterior distributions . An early attempt to perform variable selection is the Reversible Jump MCMC (RJMCMC) introduced in . RJMCMC is a trans-dimensional sampler which produces a Markov chain evolving between spaces of different dimensions. The dimension of the sample varies at each iteration as active (nonzero) parameters are added or discarded from the model. Each new sample is accepted or rejected using a Metropolis-Hastings step where the acceptance probability is adjusted to the trans-dimensional moves. RJMCMC requires ingenuity in designing appropriate jumping rules to produce computationally efficient and theoretically effective methods. Despite many attempts , this algorithm is prone to fail when the dimension of the parameter space is large (as illustrated in our numerical section).
considers another setting that encompasses all the models jointly: at each iteration, pseudo-prior distributions are used to jointly sample regression parameters associated with all models. For high dimensional statistical problems, sampling jointly all models is of course out of reach. A more efficient algorithm, the Metropolized Carlin and Chib (MCC), simultaneously proposed by and later improved by , does not require to sample from the whole collection of models and therefore can be implemented in practice. The mixing of this algorithm depends critically on the specification of pseudo-priors, which requires also a fair amount of tuning.
Other MCMC approaches for Bayesian variable selection define a posterior distribution on the model space, where a model is a binary vector locating the active (nonzero) components of the regression vector. The objective is to estimate probabilities of activation for each regression parameter. In for example, this exploration is performed with a Gibbs sampler. Variants and adaptive versions of the Gibbs sampler for this problem have been proposed in . Samples from the posterior distribution of the models are obtained in and in with particle filters.
In this paper, we introduce a novel algorithm, the Shrinkage-Thresholding Metropolis-Adjusted Langevin Algorithm (STMALA) to perform sparse regression in high dimensional models. This algorithm might be seen as a trans-dimensional MCMC method relying on the MALA algorithm (see ). The proposal distribution in the STMALA algorithm goes as follows:
compute a noisy gradient step of the logarithm of the smooth part of the target distribution;
apply a shrinkage-thresholding operator to ensure sparsity and to shrink values of the regression parameters toward zero;
use an accept-reject step to guarantee the convergence to the correct target distribution.
Each iteration of the STMALA algorithm may be seen as a randomized version of the Shrinkage-Thresholding algorithm (see ) to guide variable selection. The Shrinkage-Thresholding algorithm (and its accelerated version FISTA) is one of the most effective method to solve sparse inverse problems. Our intuition is that a single iteration of the Shrinkage-Thresholding algorithm (with some additional noise added to ensure irreducibility) is a sensible way to visit collection of models. This intuition is supported both by very promising experimental results obtained in a variety of challenging situations and by some theoretical results. In particular, we have established the geometric ergodicity of the STMALA algorithm for a large class of target distributions. To our best knowledge, it is the first result providing a rate of convergence for a trans-dimensional MCMC algorithm (like RJMCMC and MCC); usually, only Harris recurrence is proved, see .
Our algorithm is closely related to the proximal MCMC algorithm of ; the main difference stems from the fact that our algorithm is designed to sample jointly the models and their parameters, whereas is a method to sample from high-dimensional posterior distributions with sparsity inducing priors.
This paper is organized as follows. STMALA and its application to Bayesian variable selection is described in Section 2. The geometric ergodicity of the STMALA algorithm is addressed in Section 3. Numerical experiments on simulated and real data sets to assess the performance of STMALA are given in Section 4. All the proofs are postponed to Section 6.
The Shrinkage-Thresholding MALA algorithm
Lemma 2.1 shows that the soft thresholding operator with vanishing shrinkage , known as the empirical Wiener operator (see ), compromises between minimizing a (non-convex) function and being close to .
For any , consists in
sampling each component of a new model as independent -Bernoulli random variable with success parameter , ;
The proposal (6) is then accepted and with probability given by
otherwise, . In high dimensional settings, STMALA may encounter some difficulties to accept the proposed moves. Following , we introduce a variant of the algorithm in which only a fixed number of components of is updated at each iteration . This is achieved by combining STMALA and a Gibbs sampler in a STMALA-within-Gibbs algorithm.
In this section, we address the -geometric ergodicity of the STMALA chain under the following assumptions: for any ,
and on .
when .
Let and . For any and , define
is the cone of with apex and aperture . We will prove (see Lemma 6.6) that AA3 guarantees that, the probability to accept a move from to any point of converges to one as goes to infinity.
There exist and such that for any , for any , for all : .
When for any , is differentiable on , AA2 and AA3 are satisfied if (see for details), for all ,
(see [20, Section 4 and the proof of Theorem 4.3] for details).
Let denote the transition kernel associated to the Hastings-Metropolis move with proposal (6) and acceptance-rejection ratio (10).
Numerical illustrations
In the examples below, is the posterior distribution of a regression vector in a logistic regression model; is the conditional distribution of the regression vector conditionally to the observations and to the model .
Let be a known design matrix. We have independent observations such that for all , is a Bernoulli random variable with parameter . Conditionally to a model , the prior on the nonzero components of the regression vector is , where is a known scaling parameter, and denotes the matrix with columns . The prior on the models is equal to for . In this experiment, we choose and to assess the performance of STMALA in a simple framework; the components of are i.i.d. and . The algorithm is run with , and . The choice of the threshold in is crucial (if is too large, few nonzero samples are proposed and the algorithm converges slowly and if is too small, the algorithm proposes non-sparse solutions that are not likely to be accepted): is set to to get a mean acceptance rate of around .
STMALA is used to estimate the posterior probabilities of activation of the components of , defined for all as the conditional probability of the event given the observations . The estimation is given by where is the number of iterations of the algorithm and denotes the number of iterations discarded as a burn-in period. We choose and . Figure 2 (top) provides the true regression vector, the posterior mean of the regression vector given by STMALA and the estimated activation probabilities over independent Monte Carlo runs. This experiment highlights the ability of STMALA to choose the good model (the nonzero components of are recovered) and to get high posterior probabilities of activation for the selected components of .
2 Linear regression
where is a (known) design matrix, is a Gaussian random vector with i.i.d. standard entries and is the (known) precision. The prior on the models is for some (known) . The conditional distribution of given the observations and the model is given by
Such a posterior distribution can be obtained from the following hierarchical model: (i) given and positive precisions , the entries are independent with distribution
The standard deviation of the RJMCMC proposal is chosen so that STMALA and RJMCMC have similar acceptance rates (between and ).
Figure 3 shows the true regression vector and its estimates obtained by STMALA and RJMCMC; these estimates are defined as the posterior mean along a trajectory of length (the first samples are discarded). It shows that STMALA provides a sparse estimation while RJMCMC needs a lot of components to explain the observations. This is probably because RJMCMC is more or less equivalent to test each model in turn, which yields slow convergence in high dimensional settings. This slow convergence is also illustrated in Figure 4. independent trajectories of length are run; Figure 4 (top) shows the evolution of the mean number (over the runs) of active components . RJMCMC has not converged after the iterations while the mean number of active components of STMALA is stable after few iterations. Figure 4 (bottom) displays the boxplots of the estimation of the first component estimated by STMALA and RJMCMC as a function of the number of iterations.
The evolution of the mean test error over 100 independent runs, is displayed in Figure 5 (bottom). Both figures show that RJMCMC is subject to some over fitting, which is not the case of STMALA.
3 Regression for spectroscopy data
We use the biscuits data set composed of near infrared absorbance spectra of 70 cookies with different water, fat, flour and sugar contents studied in and . The data are divided into a training data set containing measurements for cookies, and a test data set containing measurements for cookies. The observation model is given by
where is the design matrix, is the unknown regression vector and is the measurement noise. Each row of the design matrix consists of absorbance measurements for different wavelengths from nm to nm with gaps of nm. We compare the results obtained by STMALA with those obtained by RJMCMC for the prediction of fat content. To improve the stability of the algorithm, the columns of the matrix containing the measurements are centered and a column with each entry being equal to one is added.
The parameters of the algorithms are given by , , for STMALA. The computations are made over independent trajectories of iterations, with a burn-in . The design parameters of STMALA and RJMCMC are chosen so that the two algorithms have similar acceptance-rejection ratios (the final ratios are about for STMALA and for RJMCMC). Figure 6 shows the regression vectors obtained by STMALA and RJMCMC, and computed as the posterior mean along one trajectory (left) and the mean regression vector estimated by STMALA and RJMCMC over independent trajectories (right).
The regression vector estimated by STMALA has a spike around nm, which is known to be in a fat absorbance region (see ), in almost all the trajectories.
Figure 7 displays the boxplots of the independent values of the components of the regression vectors estimated by STMALA and RJMCMC associated to wavelengths close to nm. It illustrates that the location of the spike retrieved by RJMCMC is not stable, while STMALA retrieves a spike centered at nm in almost every trajectory.
Figure 8 (top) shows the estimated emitted signal obtained by STMALA and RJMCMC as a function of the observations . In this numerical experiment, STMALA provides better results than RJMCMC for both the training set and the test set. This is confirmed by Figure 8 (bottom) which displays the evolution of the mean square error (MSE) on the test dataset, defined by
as a function of the number of iterations (mean over 100 independent trajectories). The mean MSE after iterations is about for STMALA and about times greater for RJMCMC.
Conclusions
In this paper, we propose a new trans-dimensional MCMC algorithm to perform Bayesian variable selection in a high-dimensional regression setting. This algorithm is closely related to but is adapted to sample models which are exactly sparse in the sense that a certain number of components are equal to zero. In addition, under fairly weak assumptions, the STMALA algorithm is shown to be geometrically ergodic. In the high-dimensional setting, the STMALA algorithm outperforms the RJMCMC algorithm which is considered as the state of the art. The performance of the STMALA algorithm depends on the tuning of a set of parameters: an adaptive version is currently under investigation. Also, the algorithm has still to be adapted to the ultra large scale framework, which likely requires additional specific procedures.
Proofs
Consider first the case . We first compute the derivative of on (note that is symmetric). For any ,
Using straightforward computations, we get
2 Proof of Lemma 2.2
It is sufficient to compute integrals of the form
This concludes the proof for . The proof for follows the same lines as the proof of Lemma 2.2, with the function replaced by .
3 Proof of Theorem 3.1
For ease of notations, we denote by the proposal distribution. Lemma 2.2 shows that for any and
where and are given by Lemma 2.2 and is given by (8). We start with a preliminary lemma which will be fundamental for the proofs since it allows to compare the proposal distribution to Gaussian proposals. Denote by the one-dimensional centered Gaussian density with standard deviation .
which implies . Similarly, .
The proof of Theorem 3.1 also requires a lower bound on the probability that a component of the proposed point will be set to zero. Such a bound is given in Lemma 6.3.
Let and be given by Lemma 2.2 and (8). It holds
For , by (8), . Hence, there exists a constant such that
The Markov kernel is psi-irreducible and aperiodic.
so that it is enough to establish a minorization on the kernel for any whatever . Let . By definition of , (see (13)) and
where, for any and , we have
where the last inequality follows from Lemma 6.1. For any and , we have
For any , .
The proof is adapted from and . Let be fixed. Define
Moreover, by definition of , for any it holds
This yields there exists such that for any ,
Let . By AA1(ii), is continuous, and by definition of , for any . Since (we assumed that ), this implies that i.e. . Then,
If , we obtain similarly that . Hence, we established that
As a conclusion, there exists and for any , there exists such that .
Following the same lines as for the control of , it can be shown that there exists and for any , there exists such that . ∎
Let be given by AA3 and be defined by (11). There exists such that for any and , .
The proof is adapted from . Let and such that for some to be fixed later (the constant is given by AA3). We first prove that there exists a positive constant such that
By (13), Lemma 6.1 and Lemma 6.3, there exist - independent of - such that
By AA2, we can choose large enough so that for all , . This yields (18). Let . Then, so that . Hence, by (18), . In addition,
where in the last inequality we used AA3. Hence,
and thus showing the lemma. ∎
By Lemma 6.6, for any large enough,
so that the integrals in (19) depend on only through . Since is finite, there exists a constant independent of such that for any and ,
The result follows from (15) and Lemmas 6.5 and 6.7. ∎