- Year of appearance
- 2017
- Researchers
- Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, Alexander Lerchner
- Organisation
- DeepMind
- Architecture type
- Variational autoencoder with weighted KL
- Learning mechanism
- unsupervised
- Tasks
- Disentangled representation learning, Image generation
A simple modification of VAE that multiplies the KL term by β > 1, pushing the model towards disentangled latent representations in which each dimension represents an independent factor of variation.
Architecture diagram
Displayed configuration: β-VAE (β = 4) with the same VAE architecture (illustrative) — The architecture is identical to VAE; the difference is only in the KL weight.
Layer table (11 nodes)
| Layer | Type | Input | Output | Repetition | Parameters | Formula | MACs |
|---|---|---|---|---|---|---|---|
| Flattened MNIST image | input | 784 | 1 | 0 | — | ||
| Encoder: FC 500 + tanh | fc | 784 | 500 | 1 | 392,500 | 784·500 + 500 | 392,000 |
| μ: FC 20 | fc | 500 | 20 | 1 | 10,020 | 500·20 + 20 | 10,000 |
| log σ²: FC 20 | fc | 500 | 20 | 1 | 10,020 | 500·20 + 20 | 10,000 |
| ε ∼ N(0, I) | noise | 20 | 1 | 0 | — | ||
| z = μ + σ ⊙ ε | sampling | 20, 20 | 20 | 1 | 0 | — | |
| Decoder: FC 500 + tanh | fc | 20 | 500 | 1 | 10,500 | 20·500 + 500 | 10,000 |
| FC 784 + sigmoid (Bernoulli) | fc | 500 | 784 | 1 | 392,784 | 500·784 + 784 | 392,000 |
| Reconstruction x̂ | output | 784 | 784 | 1 | 0 | — | |
| Reconstruction term −log p(x|z) | loss | x, x̂ | L_rec | 1 | 0 | — | |
| β × KL term | loss | μ, log σ² | L_KL | 1 | 0 | — |
Configuration figures: β-VAE (β = 4) with the same VAE architecture (illustrative)
- Input shape
- 784
- Output shape
- 784
- Depth
- One hidden layer per network
- Complexity
- Identical to VAE.
- MACs note
- Identical to VAE.
MAC = a multiplication followed by an addition. The figures are for one forward pass of one sample with the stated dimensions; they are an analytical calculation, not a measurement of run time.
Scientific explanation
Historical background
Published at ICLR 2017 with a metric for evaluating disentanglement, and launched extensive research on disentangled representations.
The problem it addresses
The latent representations in VAE are entangled: a single dimension mixes several factors (shape, position and colour).
Core idea
Increasing the weight of KL imposes a stronger information bottleneck on z, so the model learns the most economical and independent encodings.
Architecture description
The same VAE architecture (convolutional in the paper); only the loss function changes.
Data flow
As in VAE.
Inputs
Images (in the original paper: dSprites, CelebA, 3D Chairs and 3D Faces).
Outputs
A reconstruction and a disentangled latent representation.
Training procedure
Like VAE, with β chosen by search (for example β = 4 for dSprites).
Loss functions
−E[log p(x|z)] + β·KL(q(z|x) ‖ p(z)).
Computational complexity
Like VAE.
Computational requirements
Low to medium.
Advantages
- More interpretable representations
- A very simple modification
- Control over the trade-off between compression and reconstruction
Limitations
- Lower reconstruction quality with large β
- β is a sensitive hyperparameter
- Disentanglement is not guaranteed without inductive biases
Equations
β-VAE objective β-VAE objective
\mathcal{L} = \mathbb{E}_{q_\phi(\mathbf{z}\mid\mathbf{x})}\left[\log p_\theta(\mathbf{x}\mid\mathbf{z})\right] - \beta\, D_{KL}\big(q_\phi(\mathbf{z}\mid\mathbf{x}) \,\Vert\, p(\mathbf{z})\big)β = 1 recovers the ordinary VAE.
Symbols: β: KL weight
KL divergence of two normal distributions KL divergence (Gaussian)
D_{KL}\big(\mathcal{N}(\boldsymbol\mu, \boldsymbol\sigma^2) \,\Vert\, \mathcal{N}(0, I)\big) = -\frac{1}{2} \sum_{j=1}^{J} \left(1 + \log \sigma_j^2 - \mu_j^2 - \sigma_j^2\right)A closed form computed without sampling (Appendix B of the VAE paper).
Symbols: J: latent-space dimension
Reparameterisation trick Reparameterization trick
\mathbf{z} = \boldsymbol\mu + \boldsymbol\sigma \odot \boldsymbol\epsilon,\quad \boldsymbol\epsilon \sim \mathcal{N}(0, I)Makes sampling differentiable with respect to μ and σ.
Symbols: ε: standard noise
Evidence lower bound Evidence lower bound (ELBO)
\mathcal{L}(\theta, \phi; \mathbf{x}) = \mathbb{E}_{q_\phi(\mathbf{z}\mid\mathbf{x})}\left[\log p_\theta(\mathbf{x} \mid \mathbf{z})\right] - D_{KL}\big(q_\phi(\mathbf{z}\mid\mathbf{x}) \,\Vert\, p(\mathbf{z})\big)The reconstruction term minus the regularisation term; it is maximised during training.
Symbols: q_φ: encoder, p_θ: decoder
Applications
Related models
- Built on Variational Autoencoder — A VAE with a KL weight. Compare
- Deep Autoencoder — From the autoencoder family. Compare
References
- Original paper Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, Alexander Lerchner. (2017). β-VAE: Learning basic visual concepts with a constrained variational framework. ICLR 2017. Link Needs review
- Related reference Diederik P. Kingma, Max Welling. (2014). Auto-encoding variational Bayes. ICLR 2014. arXiv:1312.6114 Verified
Version 1 — last updated 2026-11-15.
