[Paper Review] Augment and Reduce: Stochastic Inference for Large Categorical Distributions
This paper proposes Augment and Reduce (a&r), a general stochastic variational inference method for large categorical distributions that reduces computational cost by introducing latent variables and optimizing a lower bound on marginal likelihood. It achieves tighter bounds and better predictive performance than existing methods like OVE and exact softmax, especially on large-scale classification tasks with up to 13,000 classes.
Categorical distributions are ubiquitous in machine learning, e.g., in classification, language models, and recommendation systems. However, when the number of possible outcomes is very large, using categorical distributions becomes computationally expensive, as the complexity scales linearly with the number of outcomes. To address this problem, we propose augment and reduce (A&R), a method to alleviate the computational complexity. A&R uses two ideas: latent variable augmentation and stochastic variational inference. It maximizes a lower bound on the marginal likelihood of the data. Unlike existing methods which are specific to softmax, A&R is more general and is amenable to other categorical models, such as multinomial probit. On several large-scale classification problems, we show that A&R provides a tighter bound on the marginal likelihood and has better predictive performance than existing approaches.
Motivation & Objective
- Address the high computational cost of fitting large categorical distributions, which scale linearly with the number of classes K.
- Develop a general-purpose method applicable beyond softmax, including to multinomial probit and logistic models.
- Provide a tight lower bound on marginal likelihood that enables integration into stochastic variational EM and other optimization frameworks.
- Improve predictive performance on large-scale classification tasks while maintaining low computational overhead.
- Enable scalable training for models with very large output spaces, such as image classification with many classes or recommendation systems with vast item sets.
Proposed method
- Introduce a latent variable ε to reparameterize the categorical distribution as p(y|ψ) = ∫ p(y,ε|ψ) dε, enabling variational inference.
- Use stochastic variational inference to maximize a lower bound on the marginal likelihood, avoiding direct computation of the partition function.
- Apply a two-step inference procedure: a local step to optimize the variational approximation over ε, and a global step to update ψ.
- Leverage reuse of exponential functions in the local step to maintain efficiency, keeping computational cost close to OVE (one-vs-all estimation).
- Formulate the evidence lower bound (ELBO) for both softmax and multinomial probit models, with the latter using importance sampling to approximate the integral.
- Embed the method within a stochastic variational EM framework to enable scalable training on large datasets.
Experimental results
Research questions
- RQ1Can a general-purpose method be developed to scale inference for large categorical distributions beyond the softmax model?
- RQ2Does the proposed a&r method provide a tighter lower bound on the marginal likelihood compared to existing approaches like OVE?
- RQ3Can a&r achieve better predictive performance (in terms of log-likelihood and accuracy) than exact softmax and OVE on large-scale classification tasks?
- RQ4How does a&r perform across different models, such as multinomial probit and multinomial logistic, on datasets with up to 13,000 classes?
- RQ5What is the computational efficiency of a&r relative to OVE and exact softmax, particularly in terms of wall-clock time per epoch?
Key findings
- Softmax a&r achieves a tighter evidence lower bound (ELBO) than OVE on all datasets except Bibtex, where it is nearly as tight as the exact softmax.
- On MNIST and Bibtex, the ELBO of a&r is nearly indistinguishable from the exact marginal likelihood obtained via maximum likelihood estimation.
- Softmax a&r outperforms OVE in both test log-likelihood and accuracy on all datasets except EURLex-4K, where OVE performs slightly better.
- For multinomial probit and logistic models, a&r achieves superior predictive performance compared to OVE on Omniglot and Bibtex, with multinomial probit a&r outperforming all methods on EURLex-4K and AmazonCat-13K.
- Wall-clock time per epoch for a&r is nearly identical to OVE for softmax, and only slightly higher for multinomial models, demonstrating strong computational efficiency.
- The method maintains high predictive accuracy even when the number of classes reaches 13,000, as in AmazonCat-13K, confirming its scalability to real-world large-vocabulary tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.