A Critical $\beta$-Scale for Posterior Collapse in Dirichlet $\beta$-VAEs

Delphine Doutsas, Bruno FigliuzziNeurIPS 2026

TL;DR

Training a Variational Autoencoder (VAE) is always a tug-of-war between accurately reconstructing your data and keeping your latent space tidy—push the regularization knob ($\beta$) too far, and the model gives up, ignoring the input entirely in a failure mode called "posterior collapse." While we have solid math predicting when this happens for standard Gaussian latents, we’ve been flying blind with Dirichlet VAEs, which model proportions and mixture weights. This paper derives an exact mathematical tipping point ($\beta_c$) for Dirichlet VAEs, giving practitioners a "speedometer" to predict and avoid collapse before wasting compute on doomed hyperparameter sweeps.

What Problem Does This Paper Address?

In a $\beta$-VAE, the hyperparameter $\beta$ scales the Kullback-Leibler (KL) divergence, encouraging the learned posterior distribution to stay close to a chosen prior. Turn $\beta$ up too high, however, and you hit posterior collapse: the encoder decides the regularization penalty isn't worth the trouble, ignores the input data completely, and just outputs the prior for every single sample.

For standard VAEs with Euclidean, bell-curve (Gaussian) latent spaces, posterior collapse is well-theorized—we know how it links to the covariance spectrum of the data and Probabilistic PCA.

However, many real-world phenomena aren't unbounded bell curves; they are proportions that must be positive and sum to 1 (living on a geometric object called a simplex). Think of topic proportions in documents, cell-type percentages in biology, or chemical abundances in satellite imagery. Here, we use Dirichlet VAEs. When a Dirichlet VAE collapses, it silently ruins your science: the model still outputs valid-looking compositional weights, so it looks like it's working, even though those weights have become completely detached from the input. Until now, practitioners lacked a theoretical formula to predict when a Dirichlet latent space becomes locally stable at collapse.

Methods

To get clean, exact math without getting lost in deep-network black boxes, the authors analyze a Dirichlet $\beta$-VAE paired with a linear-Gaussian decoder ($y = Wz + b + \text{noise}$). They assume a symmetric Dirichlet prior $\text{Dir}(a\mathbf{1})$, while allowing the amortized encoder to be flexible (parameterized by its mean composition on the simplex and its concentration).

Instead of trying to map the entire global loss landscape, they perform a local stability analysis:

  1. Define the "Collapsed Manifold": They mathematically characterize what exact collapse looks like—specifically, the encoder outputs the prior regardless of input, and all columns of the decoder weight matrix $W$ become identical, meaning the decoder just outputs the dataset's average $\bar{y}$.
  2. Poke It to See If It Rolls Back: They perturb the model slightly away from this collapsed state along valid directions on the simplex and expand the loss function to the second order (using the Hessian).

If a tiny perturbation lowers the loss, collapse is just a saddle point—gradient descent can escape it! If every valid perturbation increases the loss, collapse is a strict local minimum—a trap. Finding the exact $\beta$ where escape becomes impossible yields their closed-form critical threshold, $\beta_c$:

$$\beta_c = \frac{\lambda_{\max}(\Sigma)}{\sigma^2} \frac{Ka + 1}{Ka^2 \psi_1(a)}$$

(Where $\lambda_{\max}(\Sigma)$ is the largest eigenvalue of the data covariance, $\sigma^2$ is decoder noise variance, $K$ is the number of simplex components, $a$ is prior concentration, and $\psi_1$ is the trigamma function measuring Dirichlet KL curvature).

Table 1: Gaussian and Dirichlet collapse with the same decoder pθ(y | z) = N(Wz + b, σ2ID) and fixed σ2. C is a learned diagonal covariance. At collapse, both models satisfy qϕ = p and predict ¯y.

From this, they build a practical pre-training recipe: estimate $\lambda_{\max}(\Sigma)$ and noise $\sigma^2$ from your data, plug in $K$ and $a$ to get $\hat{\beta}_c$, and treat any $\beta / \hat{\beta}_c \gtrsim 1$ as high collapse risk.

Datasets

The authors stress-test their theoretical threshold across synthetic data and two real-world "linear-mixture" inverse problems (no new benchmark datasets are introduced):

  • Synthetic Linear Mixtures: Controlled $N=8000$ sample datasets to verify how shifting the prior $a$ shifts the collapse boundary.
  • Hyperspectral Unmixing: Samson (156 spectral bands, $K=3$ materials like soil/water/trees) and JasperRidge (in the appendix), where pixels are mixtures of material reflectance spectra.
  • Convex Archetypal Analysis (CAA): Triplets of classes ($0, 1, 7$) from MNIST and SVHN (plus FashionMNIST in the appendix), where images are reconstructed as convex combinations of learned prototype images ("archetypes").

Key Insights and Ideas

  • Gaussian Signal-to-Noise Meets Simplex Geometry: Just like Gaussian VAEs, Dirichlet collapse scales with the data's top signal-to-noise ratio, $\lambda_{\max}(\Sigma)/\sigma^2$. What's brand new is the geometric multiplier $\frac{Ka+1}{Ka^2\psi_1(a)}$, which captures how fiercely the Dirichlet KL divergence resists perturbations on the simplex.
  • Sparse Priors Collapse Easier: The threshold $\beta_c(a)$ strictly increases with $a$. If you use a sparse prior ($a < 1$, pushing weights toward the corners of the simplex), $\beta_c$ drops—meaning your model will collapse at smaller $\beta$ values than if you used a dense prior ($a > 1$). Similarly, adding more components $K$ lowers $\beta_c$, making higher-dimensional simplices touchier and more prone to collapse.
  • Concentration Tweaks Can't Save You: Their Hessian math reveals that wiggling the posterior's concentration (how confident/peaked it is) only ever adds cost near collapse. To escape collapse, the encoder must move the posterior mean along directions aligned with the data's variance.
  • $\beta/\beta_c$ is a Universal Coordinate: Plotting training diagnostics against raw $\beta$ looks chaotic if you change your prior $a$. Plotting against the dimensionless ratio $\beta/\beta_c$ snaps all the collapse curves right on top of each other.

Key Results

Even though $\beta_c$ was derived locally for unconstrained linear decoders, it predicts collapse remarkably well in messy, non-local training regimes (random Xavier initializations, deep MLP encoders, non-negativity constraints, and even shallow nonlinear decoders):

  • Hyperspectral Unmixing (Samson): Calculating $\hat{\beta}_c = 6.91 \times 10^4$ from data SVD residuals, the model learns rich material representations for $\beta/\hat{\beta}_c \le 0.95$. Right at $\beta/\hat{\beta}_c = 1.0$, average KL plunges by two orders of magnitude (from $6.01 \times 10^{-2}$ down to $3.1 \times 10^{-4}$), latent usage vanishes, and unmixing error spikes and flatlines.
  • Visualizing Collapse on MNIST: With $K=3$ on digits $0, 1, 7$, at $\beta/\hat{\beta}_c = 0.2$, digits cluster cleanly near distinct corner archetypes. By $0.95$, the 2D simplex collapses into a 1D line (losing one degree of freedom!). At $\beta/\hat{\beta}_c = 1.0$, KL drops from $0.103$ to $6.58 \times 10^{-4}$: every image maps to the dead center of the triangle, and all three corner prototypes blur into the exact same average digit.
Figure 2: CAA on MNIST classes 0, 1, 7. Top: posterior mean visualization in the K = 3 simplex, with learned decoder archetypes shown at the vertices. Above the threshold β/ bβc = 1, all posterior means contract to the barycenter and vertices become indistinguishable. Bottom: collapse diagnostics. Curves show means over five seeds for the average encoder KL, the tangent decoder norm ∥WPT ∥F , and the posterior-mean usage Um. Shaded bands span the minimum-maximum range across seeds. The dashed vertical line marks the predicted local collapse threshold. Below the threshold, posterior means occupy the simplex in a class-dependent way. Above the threshold β/ bβc = 1, the occupancy contracts to the barycenter.

Limitations and Future Work

The authors are admirably transparent about what their math does not do:

  • Local, Not Global: $\beta_c$ tells you when the collapsed state becomes locally inescapable to second order, not a global guarantee of training dynamics across all possible loss landscapes.
  • Linear Decoder Assumption: While empirical tests show $\beta_c$ still serves as a surprisingly good reference for shallow nonlinear decoders, the exact closed-form theory relies on a linear-Gaussian decoder and a symmetric Dirichlet prior. Deep, expressive decoders aren't covered by the theorem.
  • The Noise Estimation Catch: Computing $\hat{\beta}_c$ requires knowing the decoder noise variance $\sigma^2$. In real data, $\sigma^2$ isn't handed to you—you have to estimate it (e.g., via SVD residuals). A bad noise estimate will shift your predicted boundary.
  • Avoiding Collapse $\neq$ Best Performance: Finally, $\beta_c$ tells you where your model dies ($\beta/\beta_c \ge 1$), not which $\beta < \beta_c$ gives the absolute best downstream accuracy. Still, knowing where the cliff is saves you from driving off it in the dark!

Summary updated

Abstract

Posterior collapse is a common failure mode in variational autoencoders, but existing theory has mostly focused on Gaussian latent variables. Dirichlet VAEs are comparatively less understood, despite their use in settings where latent variables represent proportions, abundances, memberships, or convex mixture weights. We derive a closed-form local stability threshold $\beta_c$ for collapse in symmetric Dirichlet $\beta$-VAEs with linear Gaussian decoders. This threshold shows that collapse in those models depends not only on the data spectrum, but also on the simplex dimension and prior concentration through a trigamma curvature factor induced by the Dirichlet KL. Although $\beta_c$ is derived from a local analysis, we find that it accurately tracks the empirical onset of collapse beyond the local regime. We show its practical relevance in two real-world linear-mixture settings: hyperspectral unmixing and convex archetypal analysis. Across experiments, $\beta/\beta_c$ consistently organizes collapse-related behavior, providing an interpretable coordinate and a practical way to narrow the search over the $\beta$ hyperparameter before training. Taken together, these empirical findings suggest that $\beta_c$ can serve, beyond its local derivation, as a practical reference point for anticipating collapse and guiding $\beta$ selection in Dirichlet $\beta$-VAEs. Code at https://github.com/dldou/dir-vae-collapse.
BibTeX
@inproceedings{doutsas2026critical,
  author = {Delphine Doutsas and Bruno Figliuzzi},
  title = {{A Critical $\textbackslash\{\}beta$-Scale for Posterior Collapse in Dirichlet $\textbackslash\{\}beta$-VAEs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=izJBnbQo5y},
}
Figure