Easy Variational Inference for Categorical Models via an Independent Binary Approximation

Michael T. Wojnowicz, Shuchin Aeron, Eric L. Miller, Michael C. Hughes
5/31/2022
stat.MLcs.LGstat.CO
bayesian

Official code: tufts-ml/categorical-from-binary (4 stars, Python, MIT, last commit 2023-09-27).

Abstract

We pursue tractable Bayesian analysis of generalized linear models (GLMs) for categorical data. Thus far, GLMs are difficult to scale to more than a few dozen categories due to non-conjugacy or strong posterior dependencies when using conjugate auxiliary variable methods.

Show full abstract

We define a new class of GLMs for categorical data called categorical-from-binary (CB) models. Each CB model has a likelihood that is bounded by the product of binary likelihoods, suggesting a natural posterior approximation. This approximation makes inference straightforward and fast; using well-known auxiliary variables for probit or logistic regression, the product of binary models admits conjugate closed-form variational inference that is embarrassingly parallel across categories and invariant to category ordering. Moreover, an independent binary model simultaneously approximates multiple CB models. Bayesian model averaging over these can improve the quality of the approximation for any given dataset. We show that our approach scales to thousands of categories, outperforming posterior estimation competitors like Automatic Differentiation Variational Inference (ADVI) and No U-Turn Sampling (NUTS) in the time required to achieve fixed prediction quality.

View on arXivView PDF

Code Implementations(1)

MIT

Code for the paper "Easy Variational Inference for Categorical Models via an Independent Binary Approximation"

40Python, ShellMay 5, 20223 years agoMIT

Similar Papers

Cite this paper

@article{wojnowicz2022easy,
  title  = {Easy Variational Inference for Categorical Models via an Independent Binary Approximation},
  author = {Michael T. Wojnowicz and Shuchin Aeron and Eric L. Miller and Michael C. Hughes},
  year   = {2022},
  eprint = {2206.00093},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.00093}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.00093.svg)](https://codeofpaper.com/paper/2206.00093)

Discussion