Definition
The auxiliary variable sampler (Damien-Wakefield-Walker, DWW, 1999) is a Gibbs sampling technique for drawing from a target density f(x)∝π(x)∏i=1Nℓi(x) that cannot be sampled directly. For each factor ℓi, a uniform latent variable Ui∼Uniform(0,ℓi(x)) is introduced. The resulting Gibbs scheme cycles: (a) Ui∣x∼Uniform(0,ℓi(x)) — trivial draw; (b) x∣u∼π(⋅) restricted to the truncation set Au={x:ℓi(x)>ui,∀i} — a draw from the prior truncated to a computable interval. The marginal distribution for x is exactly f.
Key Ideas
Theorem 1 (general form): If each ℓi is invertible, the set Au is analytically computable as an intersection of intervals. All full conditionals except the last are uniform; the final conditional is a truncated version of π.
Always-moves property: The auxiliary Gibbs dominates an independence Metropolis-Hastings (M-H) chain that uses π as the proposal. The M-H chain accepts with probability min(1,ℓ(x~)/ℓ(x)) and sometimes stays; the auxiliary Gibbs, by sampling u before x, always samples from within the acceptance region — equivalent to always accepting. This holds exactly for the independence chain and yields improved mixing in practice.
Non-uniqueness of decomposition: The factorization f(x)∝ℓ(x)π(x) is not unique. Choosing different ℓ and π changes the shape and size of Au. Strategic decomposition — e.g., absorbing some terms into π or splitting ℓ=ℓ1⋅ℓ2 — makes truncation sets tractable at the cost of extra auxiliary variables.
Multivariate extension: When x is multivariate and Au is intractable jointly, the sampler iterates through components xk∣x−k,u — each a truncated draw from π(xk∣x−k). This requires only that ℓi(xk,x−k) be invertible in xk for fixed x−k.
How It Works
Non-Conjugate Models
For f(x)∝ℓ(x)π(x), introduce U∼Uniform(0,ℓ(x)). The joint density p(x,u)∝π(x)1[u<ℓ(x)] has marginal f(x).
Examples:
| Model |
ℓ(x) |
π(x) |
Full conditional for x∣u |
| Poisson–log-normal |
exp(rx−ex) |
N(0,1) |
Truncated normal |
| Bernoulli–logistic |
∏ihi(x)wibi(x)1−wi |
N(0,1) |
Truncated normal on interval Au |
| Weibull hazards |
∏iexp(−uitiaeziβ) |
N(μ,Σ) |
Truncated normal |
Generalized Linear Mixed Models (GLMM)
For the random-effects Poisson model yi∣θi∼Poisson(eθi), θi=wiβ+bi:
- Introduce Ui∼Uniform(0,exp(−yiθi)) and Vi∼Exp(1) restricted to (eθi,∞).
- Full conditional for each βk∣β−k,b,Λ,u,v is a truncated normal.
- Full conditional for bi∣β,Λ,u,v is a truncated normal.
- Full conditional for precision Λ is unchanged (Wishart or inverse-gamma).
Non-Linear Mixed Effects
For individual random effects θi with non-log-concave conditional f(θi)∝∏jexp(−2σ21[yij−g(θi)]2)⋅π(θi):
Introduce gamma latent effects uij∼Gamma(3/2,1/2) restricted to (g(θi)2,∞). Each component θik∣θi,−k,u becomes a draw from π(θik∣θi,−k) truncated to an analytically computable interval — no ratio-of-uniforms tuning required.
Numerical example (Lindstrom-Bates 1990 orange trees, n=7, T=5 obs each):
| Algorithm |
Lag-1 autocorrelation (ACF) |
ACF at lag 40 |
| Auxiliary Gibbs |
0.75 |
~0 (by lag 9) |
| Random-walk M-H |
0.79 |
0.39 |
Why It Matters
- No tuning: Unlike random-walk M-H, the auxiliary variable sampler requires no proposal covariance or acceptance-rate calibration. Once the decomposition ℓi is chosen, the sampler is automatic.
- Non-log-concave posteriors: Adaptive rejection sampling (Gilks-Wild 1992) requires log-concavity; the auxiliary Gibbs does not. This makes it applicable to non-linear mixed models with arbitrary mean functions g(θi).
- Precursor to slice sampling: Neal (2003) formalized the "slice sampler" as a uniform-auxiliary Gibbs scheme; DWW (1999) contains the same core idea applied to structured Bayesian models.
- Complements data augmentation: Data augmentation (Tanner-Wong 1987) introduces latent variables to make p(θ∣z,y) conjugate. The auxiliary variable sampler introduces uniform U to make the full conditional a truncated standard distribution — both are latent-variable Gibbs tricks, but the auxiliary approach is more explicit about the truncation geometry.
Open Questions
- The efficiency advantage over M-H holds exactly for the independence chain with π as proposal; for well-tuned random-walk M-H, the comparison is problem-specific.
- Optimal decomposition choice (which terms to absorb into π vs. ℓ) remains heuristic; no general theory for minimizing autocorrelation.
- High-dimensional x with dependent components requires coordinate-wise sampling, losing the joint-update efficiency of blocking strategies.
Related