Estimation in Exponential Families with Unknown Normalizing Constant

Total Page:16

File Type:pdf, Size:1020Kb

Estimation in Exponential Families with Unknown Normalizing Constant ESTIMATION IN EXPONENTIAL FAMILIES WITH UNKNOWN NORMALIZING CONSTANT A DISSERTATION SUBMITTED TO THE DEPARTMENT OF STATISTICS AND THE COMMITTEE ON GRADUATE STUDIES OF STANFORD UNIVERSITY IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF DOCTOR OF PHILOSOPHY Sumit Mukherjee May 2014 © 2014 by Sumit Mukherjee. All Rights Reserved. Re-distributed by Stanford University under license with the author. This work is licensed under a Creative Commons Attribution- Noncommercial 3.0 United States License. http://creativecommons.org/licenses/by-nc/3.0/us/ This dissertation is online at: http://purl.stanford.edu/cf854qf4476 ii I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Persi Diaconis, Primary Adviser I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Sourav Chatterjee I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Amir Dembo Approved for the Stanford University Committee on Graduate Studies. Patricia J. Gumport, Vice Provost for Graduate Education This signature page was generated electronically upon submission of this dissertation in electronic format. An original signed hard copy of the signature page is on file in University Archives. iii Abstract Exponential families of probability measures has been a subject of considerable in- terest in Statistics, both in theoretical and applied areas. One of the problems that frequently arise in such models is that the normalizing constant is not known in closed form. Also numerical computation of the normalizing constant is infeasible because the size of the underlying space is huge. As such, carrying out inferential procedures becomes challenging. In this thesis, the main object of study is some specific examples of exponential families on graphs and permutations, where the normalizing constant is hard to com- pute. Using large deviation results asymptotic estimates of the normalizing constant is obtained, and methods to estimate the normalizing constant are developed. In the case of graphs, this analysis gives some insight into the phenomenon of \degeneracy" observed in empirical studies in social science literature. In the case of permutations, this analysis is used to show the consistency of pseudo-likelihood. iv Acknowledgments One of the best things that happened to me at Stanford was the chance to inter- act with Persi. Working with Persi was a thoroughly enjoyable experience, more so because the process of learning never stopped being fun. Persi's approach to any problem fascinates me. He has been a constant source of knowledge, support and encouragement throughout my Ph.d. I had the opportunity to work with Amir during my five years at Stanford, and I learnt a lot from him. His door was always open to students, and it is possible I may have over used the privilege. He was always willing to answer any question that I might have, no matter how easy they might be. I had the chance to interact a lot with Sourav regarding my research, more so when he joined Stanford. He always had useful comments and suggestions regarding my research, and for that I'm grateful to him. I thank Susan and David for helpful comments and suggestions during my Ph.d. proposal. I would also like to thank Guenther for writing me a teaching recommen- dation. During my time at Stanford I have had the privilege to take courses under Amir Dembo, Persi Diaconis, Iain Johnstone, Andrea Montanari, Art Owen, Joe Romano, David Siegmund and Jonathan Taylor. v During my Ph.d I collaborated with A. Basak and B. Bhattacharya, and my thesis benefitted a lot from the resulting interactions. I would like to thank Caroline, Cindy, Ellen, Heather, Helen, Nora, Regina for all their help, and for making it very easy to concentrate on the academic side of things. As far as the environment of the department goes, this is a great department to be in. My batch-mates Anirban, Alex, Max, Matan, Michael and Yong have been extremely helpful and were there for me whenever I needed them. My fellow gradu- ate students have been wonderful to be around, especially Amir, Austen, Bhaswar, Dennis, Gourab, Josh, Kinjal, Murat, Nike, Qingyuan, Rahul, Shilin, Stefan, Will and Zhen. I would like to thank the entire Stanford Statistics community for making the last five years special. The single most important reason for my interest in the areas of Statistics and Probability is the Indian Statistical Institute, where I earned both my under graduate and masters degrees in Statistics. I'm grateful to my professors at ISI for introducing me to this field. I also benefitted a lot from my discussions with my friends at ISI, and I'm thankful to them for all their help and co-operation over the years. None of this would have been possible without my parents, and this place is not enough to mention all the things they have done for me. And last, but by no means least, I would like to thank my wife Kaustari for always staying by my side, and being the wonderful person that she is. vi Contents Abstract iv Acknowledgmentsv 1 Introduction1 2 Tools required8 2.1 Graph Limits...............................8 2.2 Permutation Limits............................ 10 2.3 Understanding permutation limits.................... 14 2.4 Large deviations theory.......................... 16 3 Previous work 22 3.1 Methods.................................. 22 3.2 Theoretical work............................. 25 4 Exponential family on sparse graphs 32 4.1 Introduction................................ 32 4.2 Statement of main results........................ 38 4.3 The large deviation principle....................... 43 4.4 Proofs of main results.......................... 49 4.5 A particular example........................... 53 4.6 Fitting the model............................. 58 4.7 Proof of the large deviation principle.................. 64 vii 5 Exponential family on permutations 74 5.1 Introduction................................ 74 5.2 Statement of main results........................ 77 5.3 The large deviation principle....................... 86 5.4 Proofs of main results.......................... 87 5.5 Approximations for small θ ........................ 97 5.6 A particular example........................... 99 5.7 Analysis of the 1970 draft lottery data................. 104 5.8 Proof of the large deviation principle.................. 108 6 Conclusion 119 References 122 viii Chapter 1 Introduction Exponential families of probability measures has been a topic of considerable re- search in statistics, both in theoretical and applied areas. The concept of exponential families is credited to J. Pitman, G. Darmois, and B. Koopman in 1935-36. The large literature on exponential families is developed in the book length treatments of Barndorff-Nielson ([2]) and Brown ([48]). More recent literature can be found in Jordan-Wainwright ([65]). This thesis will consider exponential families on finite spaces. The definition of exponential family considered in this thesis is given below: Definition 1.1. Let X be a finite space, and let T : X 7! Rd be a real vector valued statistic on X . Then for any θ 2 Rd one has X 0 eθ T (x) < 1; x2X and so the function Z(:): Rd 7! R defined by h X 0 i Z(θ) := log eθ T (x) x2X is finite for all θ. d θ0T (x)−Z(θ) P For x 2 X ; θ 2 R define pθ(x) = e . Then for every θ the sum pθ(x) x2X 1 CHAPTER 1. INTRODUCTION 2 equals 1, and so pθ(:) is a probability measure on X . This is defined to be an expo- nential family on X , with natural parameter θ and sufficient statistic T . The function Z(θ) plays a very important role in the analysis of exponential families. It is commonly referred to as the log normalizing constant in statistics literature. One of the most important properties of Z(θ) is the following: @Z(θ) @2Z(θ) E(Ti) = ; Cov(Ti;Tj) = ; @θi @θi@θj where the mean and covariance of T is computed under pθ. Another interesting property pertaining to statistical inference is the following: Suppose one observes X ∼ pθ for some θ, and it is required to estimate θ by the Maximum Likelihood Estimate (MLE), defined by 0 θ^ := arg max eθ T (X)−Z(θ) = arg maxfθ0T (X) − Z(θ)g: θ2Rd θ2Rd It readily follows that in this setting the MLE θ^ML solves the equation T (X) = rZ(θ). Thus for such models the MLE is easy to compute, provided one has some control on Z(θ). Thus the analysis of the model pθ becomes a lot simpler when the quantity Z(θ) is available in closed form, and is readily amenable to algebraic calculations. However, there are a lot of examples of exponential families where the function Z(θ) is not ex- pressible in closed form. Moreover, if the underlying space X has a large cardinality, it is not usually feasible to compute Z(θ) numerically. Without the knowledge of the normalizing constant, Bayesian methods can be difficult to implement an analyze. For example, the usual definition of the conjugate prior for θ involves the unknown normalizing constant. As such, the analysis of such models become challenging. Some examples of spaces where such exponential families arise naturally are given CHAPTER 1. INTRODUCTION 3 below: (a) Graphs Suppose there are n researchers in a field of active research, denoted by fs1; ··· ; sng, and given any pair of researchers (si; sj) it is known whether they collaborate or not. A very convenient way to encode this data is through a graph on n vertices labelled by [n] := f1; 2; ··· ; ng, with node i representing researcher si.
Recommended publications
  • 2 Probability Theory and Classical Statistics
    2 Probability Theory and Classical Statistics Statistical inference rests on probability theory, and so an in-depth under- standing of the basics of probability theory is necessary for acquiring a con- ceptual foundation for mathematical statistics. First courses in statistics for social scientists, however, often divorce statistics and probability early with the emphasis placed on basic statistical modeling (e.g., linear regression) in the absence of a grounding of these models in probability theory and prob- ability distributions. Thus, in the first part of this chapter, I review some basic concepts and build statistical modeling from probability theory. In the second part of the chapter, I review the classical approach to statistics as it is commonly applied in social science research. 2.1 Rules of probability Defining “probability” is a difficult challenge, and there are several approaches for doing so. One approach to defining probability concerns itself with the frequency of events in a long, perhaps infinite, series of trials. From that per- spective, the reason that the probability of achieving a heads on a coin flip is 1/2 is that, in an infinite series of trials, we would see heads 50% of the time. This perspective grounds the classical approach to statistical theory and mod- eling. Another perspective on probability defines probability as a subjective representation of uncertainty about events. When we say that the probability of observing heads on a single coin flip is 1 /2, we are really making a series of assumptions, including that the coin is fair (i.e., heads and tails are in fact equally likely), and that in prior experience or learning we recognize that heads occurs 50% of the time.
    [Show full text]
  • Importance Sampling
    Chapter 6 Importance sampling 6.1 The basics To movtivate our discussion consider the following situation. We want to use Monte Carlo to compute µ = E[X]. There is an event E such that P (E) is small but X is small outside of E. When we run the usual Monte Carlo algorithm the vast majority of our samples of X will be outside E. But outside of E, X is close to zero. Only rarely will we get a sample in E where X is not small. Most of the time we think of our problem as trying to compute the mean of some random variable X. For importance sampling we need a little more structure. We assume that the random variable we want to compute the mean of is of the form f(X~ ) where X~ is a random vector. We will assume that the joint distribution of X~ is absolutely continous and let p(~x) be the density. (Everything we will do also works for the case where the random vector X~ is discrete.) So we focus on computing Ef(X~ )= f(~x)p(~x)dx (6.1) Z Sometimes people restrict the region of integration to some subset D of Rd. (Owen does this.) We can (and will) instead just take p(x) = 0 outside of D and take the region of integration to be Rd. The idea of importance sampling is to rewrite the mean as follows. Let q(x) be another probability density on Rd such that q(x) = 0 implies f(x)p(x) = 0.
    [Show full text]
  • Probability Distributions and Related Mathematical Constructs
    Appendix B More probability distributions and related mathematical constructs This chapter covers probability distributions and related mathematical constructs that are referenced elsewhere in the book but aren’t covered in detail. One of the best places for more detailed information about these and many other important probability distributions is Wikipedia. B.1 The gamma and beta functions The gamma function Γ(x), defined for x> 0, can be thought of as a generalization of the factorial x!. It is defined as ∞ x 1 u Γ(x)= u − e− du Z0 and is available as a function in most statistical software packages such as R. The behavior of the gamma function is simpler than its form may suggest: Γ(1) = 1, and if x > 1, Γ(x)=(x 1)Γ(x 1). This means that if x is a positive integer, then Γ(x)=(x 1)!. − − − The beta function B(α1,α2) is defined as a combination of gamma functions: Γ(α1)Γ(α2) B(α ,α ) def= 1 2 Γ(α1+ α2) The beta function comes up as a normalizing constant for beta distributions (Section 4.4.2). It’s often useful to recognize the following identity: 1 α1 1 α2 1 B(α ,α )= x − (1 x) − dx 1 2 − Z0 239 B.2 The Poisson distribution The Poisson distribution is a generalization of the binomial distribution in which the number of trials n grows arbitrarily large while the mean number of successes πn is held constant. It is traditional to write the mean number of successes as λ; the Poisson probability density function is λy P (y; λ)= eλ (y =0, 1,..
    [Show full text]
  • Lecture 17: Bivariate Normal Distribution F (X, Y) Is Given By
    Section 5.3 Bivariate Unit Normal Bivariate Unit Normal If X and Y have independent unit normal distributions then their joint Lecture 17: Bivariate Normal distribution f (x; y) is given by 2 − 1 (x2+y 2) f (x; y) = φ(x)φ(y) = c e 2 Sta230 / Mth230 Colin Rundel April 2, 2014 Sta230 / Mth230 (Colin Rundel) Lecture 17 April 2, 2014 1 / 20 Section 5.3 Bivariate Unit Normal Section 5.3 Bivariate Unit Normal Bivariate Unit Normal, cont. Bivariate Unit Normal - Normalizing Constant We can rewrite the joint distribution in terms of the distance r from the First, rewriting the joint distribution in this way also makes it possible to origin evaluate the constant of integration, c. From our previous discussions of the normal distribution we know that p 2 2 r = x + y c = p1 , but we never saw how to derive it explicitly. 2π 2 − 1 (x2+y 2) 2 − 1 r 2 f (x; y) = c e 2 = c e 2 This tells us something useful about this special case of the bivariate normal distributions: it is rotationally symmetric about the origin. r r + eps This particular fact is incredibly powerful and helps us solve a variety of Y problems. Sta230 / Mth230 (Colin Rundel) Lecture 17 April 2, 2014 2 / 20 Sta230 / Mth230 (Colin Rundel)X Lecture 17 April 2, 2014 3 / 20 Section 5.3 Bivariate Unit Normal Section 5.3 Bivariate Unit Normal Bivariate Unit Normal - Normalizing Constant Rayleigh Distribution The distance from the origin of a point (x; y) derived from X ; Y ∼ N (0; 1) is called the Rayleigh distribution.
    [Show full text]
  • Bridgesampling: an R Package for Estimating Normalizing Constants
    bridgesampling: An R Package for Estimating Normalizing Constants Quentin F. Gronau Henrik Singmann Eric-Jan Wagenmakers University of Amsterdam University of Zurich University of Amsterdam Abstract Statistical procedures such as Bayes factor model selection and Bayesian model averaging require the computation of normalizing constants (e.g., marginal likelihoods). These normalizing constants are notoriously difficult to obtain, as they usually involve high- dimensional integrals that cannot be solved analytically. Here we introduce an R package that uses bridge sampling (Meng and Wong 1996; Meng and Schilling 2002) to estimate normalizing constants in a generic and easy-to-use fashion. For models implemented in Stan, the estimation procedure is automatic. We illustrate the functionality of the package with three examples. Keywords: bridge sampling, marginal likelihood, model selection, Bayes factor, Warp-III. 1. Introduction In many statistical applications, it is essential to obtain normalizing constants of the form Z Z = q(θ) dθ; (1) Θ where p(θ) = q(θ)=Z denotes a probability density function (pdf) defined on the domain p Θ ⊆ R . For instance, the estimation of normalizing constants plays a crucial role in free energy estimation in physics, missing data analyses in likelihood-based approaches, Bayes factor model comparisons, and Bayesian model averaging (e.g., Gelman and Meng 1998). In this article, we focus on the role of the normalizing constant in Bayesian inference; however, the bridgesampling package can be used in any context where
    [Show full text]
  • Bayesian Inference
    Chapter 12 Bayesian Inference This chapter covers the following topics: Concepts and methods of Bayesian inference. • Bayesian hypothesis testing and model comparison. • Derivation of the Bayesian information criterion (BIC). • Simulation methods and Markov chain Monte Carlo (MCMC). • Bayesian computation via variational inference. • Some subtle issues related to Bayesian inference. • 12.1 What is Bayesian Inference? There are two main approaches to statistical machine learning: frequentist (or classical) methods and Bayesian methods. Most of the methods we have discussed so far are fre- quentist. It is important to understand both approaches. At the risk of oversimplifying, the difference is this: Frequentist versus Bayesian Methods In frequentist inference, probabilities are interpreted as long run frequencies. • The goal is to create procedures with long run frequency guarantees. In Bayesian inference, probabilities are interpreted as subjective degrees of be- • lief. The goal is to state and analyze your beliefs. 299 Statistical Machine Learning CHAPTER 12. BAYESIAN INFERENCE Some differences between the frequentist and Bayesian approaches are as follows: Frequentist Bayesian Probability is: limiting relative frequency degree of belief Parameter ✓ is a: fixed constant random variable Probability statements are about: procedures parameters Frequency guarantees? yes no To illustrate the difference, consider the following example. Suppose that X1,...,Xn N(✓, 1). We want to provide some sort of interval estimate C for ✓. ⇠ Frequentist Approach. Construct the confidence interval 1.96 1.96 C = X , X + . n − pn n pn Then P✓(✓ C)=0.95 for all ✓ R. 2 2 The probability statement is about the random interval C. The interval is random because it is a function of the data.
    [Show full text]
  • 9 Importance Sampling 3 9.1 Basic Importance Sampling
    Contents 9 Importance sampling 3 9.1 Basic importance sampling . 4 9.2 Self-normalized importance sampling . 8 9.3 Importance sampling diagnostics . 11 9.4 Example: PERT . 13 9.5 Importance sampling versus acceptance-rejection . 17 9.6 Exponential tilting . 18 9.7 Modes and Hessians . 19 9.8 General variables and stochastic processes . 21 9.9 Example: exit probabilities . 23 9.10 Control variates in importance sampling . 25 9.11 Mixture importance sampling . 27 9.12 Multiple importance sampling . 31 9.13 Positivisation . 33 9.14 What-if simulations . 35 End notes . 37 Exercises . 40 1 2 Contents © Art Owen 2009{2013,2018 do not distribute or post electronically without author's permission 9 Importance sampling In many applications we want to compute µ = E(f(X)) where f(x) is nearly zero outside a region A for which P(X 2 A) is small. The set A may have small volume, or it may be in the tail of the X distribution. A plain Monte Carlo sample from the distribution of X could fail to have even one point inside the region A. Problems of this type arise in high energy physics, Bayesian inference, rare event simulation for finance and insurance, and rendering in computer graphics among other areas. It is clear intuitively that we must get some samples from the interesting or important region. We do this by sampling from a distribution that over- weights the important region, hence the name importance sampling. Having oversampled the important region, we have to adjust our estimate somehow to account for having sampled from this other distribution.
    [Show full text]
  • Derivations of the Univariate and Multivariate Normal Density
    Derivations of the Univariate and Multivariate Normal Density Alex Francis & Noah Golmant Berkeley, California, United States Contents 1 The Univariate Normal Distribution 1 1.1 The Continuous Approximation of the Binomial Distribution . .1 1.2 The Central Limit Theorem . .4 1.3 The Noisy Process . .8 2 The Multivariate Normal Distribution 11 2.1 The Basic Case: Independent Univariate Normals . 11 2.2 Affine Transformations of a Random Vector . 11 2.3 PDF of a Transformed Random Vector . 12 2.4 The Multivariate Normal PDF . 12 1. The Univariate Normal Distribution It is first useful to visit the single variable case; that is, the well-known continuous proba- bility distribution that depends only on a single random variable X. The normal distribution formula is a function of the mean µ and variance σ2 of the random variable, and is shown below. ! 1 1 x − µ2 f(x) = p exp − σ 2π 2 σ This model is ubiquitous in applications ranging from Biology, Chemistry, Physics, Computer Science, and the Social Sciences. It's discovery is dated as early as 1738 (perhaps ironically, the name of the distribution is not attributed to it's founder; that is credited, instead, to Abraham de Moivre). But why is this model still so popular, and why has it seemed to gain relevance over time? Why do we use it as a paradigm for cat images and email data? The next section addresses three applications of the normal distribution, and in the process, derives it's formula using elementary techniques. 1.1. The Continuous Approximation of the Binomial Distribution Any introductory course in probability introduces counting arguments as a way to discuss probability; fundamentally, probability deals in subsets of larger supersets, so being able to count the cardinality of the subset and superset allows us to build a framework for think- ing about probability.
    [Show full text]
  • Exact Formulas for the Normalizing Constants of Wishart Distributions for Graphical Models
    EXACT FORMULAS FOR THE NORMALIZING CONSTANTS OF WISHART DISTRIBUTIONS FOR GRAPHICAL MODELS By Caroline Uhler∗, Alex Lenkoskiy, and Donald Richardsz Massachusetts Institute of Technology∗, Norwegian Computing Centery, and Penn State Universityz Gaussian graphical models have received considerable attention during the past four decades from the statistical and machine learning communities. In Bayesian treatments of this model, the G-Wishart distribution serves as the conjugate prior for inverse covariance ma- trices satisfying graphical constraints. While it is straightforward to posit the unnormalized densities, the normalizing constants of these distributions have been known only for graphs that are chordal, or decomposable. Up until now, it was unknown whether the normaliz- ing constant for a general graph could be represented explicitly, and a considerable body of computational literature emerged that at- tempted to avoid this apparent intractability. We close this question by providing an explicit representation of the G-Wishart normalizing constant for general graphs. 1. Introduction. Let G = (V; E) be an undirected graph with vertex p set V = f1; : : : ; pg and edge set E. Let S be the set of symmetric p × p p p matrices and S0 the cone of positive definite matrices in S . Let p p (1.1) S0(G) = fM = (Mij) 2 S0 j Mij = 0 for all (i; j) 2= Eg p denote the cone in S of positive definite matrices with zeros in all entries not corresponding to edges in the graph. Note that the positivity of all diagonal entries Mii follows from the positive-definiteness of the matrices M. p A random vector X 2 R is said to satisfy the Gaussian graphical model (GGM) with graph G if X has a multivariate normal distribution with mean −1 p µ and covariance matrix Σ, denoted X ∼ Np(µ, Σ), where Σ 2 S0(G).
    [Show full text]
  • Orthogonal Polynomials in Stein's Method
    Orthogonal Polynomials in Steins Metho d Wim Schoutens KatholiekeUniversiteit Leuven Department of Mathematics Celestijnenlaan B B Leuven Belgium Abstract We discuss Steins metho d for Pearsons and Ords family of distributions We giveasys tematic treatment including the Stein equation its solution and smo othness conditions Akey role in the analysis is played by the classical orthogonal p olynomials AMS Subject Classication J H Keywords Steins Method Orthogonal Polynomials Pearsons Class Ords Class Approximation Distributions Markov Processes Postdo ctoral Researcher of the Fund for Scientic Research Flanders Belgium Running Head Steins Method Orthogonal Polynomials Mailing Address Wim Schoutens Katholieke Universiteit Leuven Department of Math ematics Celestijnenlaan B B Leuven Belgium Email WimSchoutenswiskuleuvenacbe Intro duction Steins Metho d provides a way of nding approximations to the distribution say of a random variable which at the same time gives estimates of the approximation error involved The strenghts of the metho d are that it can b e applied in many circumstances in which dep endence plays a part In essence the metho d is based on a dening equation or equivalently an op erator of the distribution and a related Stein equation Up to now is was not clear which equation to take One could think at a lot of equations We show how for a broad class of distributions there is one equation who has a sp ecial role We give a systematic treatment including the Stein equation its solution and smo othness conditions A
    [Show full text]
  • Beta Distribution
    Beta Distribution Paul Johnson <[email protected]> and Matt Beverlin <[email protected]> June 10, 2013 1 Description How likely is it that the Communist Party will win the next elections in Russia? In my view, the probability is 0.33. You may think the chance is 0.22. Your brother thinks the chances are 0.6 and his sister-in-law thinks the chances are 0.1. People disagree and we would like a way to summarize the chances that a person will say 0.4 or 0.5 or whatnot. The Beta density function is a very versatile way to represent outcomes like proportions or probabilities. It is defined on the continuum between 0 and 1. There are two parameters which work together to determine if the distribution has a mode in the interior of the unit interval and whether it is symmetrical. The Beta can be used to describe not only the variety observed across people, but it can also describe your subjective degree of belief (in a Bayesian sense). If you are not entirely sure that the probability is 0.22, but rather you think that is the most likely value but that there is some chance that the value is higher or lower, then maybe your personal beliefs can be described as a Beta distribution. 2 Mathematical Definition The standard Beta distribution gives the probability density of a value x on the interval (0,1): xα−1(1 − x)β−1 Beta(α,β): prob(x|α,β) = (1) B(α,β) where B is the beta function Z 1 B(α,β) = tα−1(1 − t)β−1dt 0 2.1 Don’t let all of those betas confuse you.
    [Show full text]
  • The Continuous Bernoulli: Fixing a Pervasive Error in Variational
    The continuous Bernoulli: fixing a pervasive error in variational autoencoders Gabriel Loaiza-Ganem John P. Cunningham Department of Statistics Department of Statistics Columbia University Columbia University [email protected] [email protected] Abstract Variational autoencoders (VAE) have quickly become a central tool in machine learning, applicable to a broad range of data types and latent variable models. By far the most common first step, taken by seminal papers and by core software libraries alike, is to model MNIST data using a deep network parameterizing a Bernoulli likelihood. This practice contains what appears to be and what is often set aside as a minor inconvenience: the pixel data is [0; 1] valued, not f0; 1g as supported by the Bernoulli likelihood. Here we show that, far from being a triviality or nuisance that is convenient to ignore, this error has profound importance to VAE, both qualitative and quantitative. We introduce and fully characterize a new [0; 1]-supported, single parameter distribution: the continuous Bernoulli, which patches this pervasive bug in VAE. This distribution is not nitpicking; it produces meaningful performance improvements across a range of metrics and datasets, including sharper image samples, and suggests a broader class of performant VAE.1 1 Introduction Variational autoencoders (VAE) have become a central tool for probabilistic modeling of complex, high dimensional data, and have been applied across image generation [10], text generation [14], neuroscience [8], chemistry [9], and more. One critical choice in the design of any VAE is the choice of likelihood (decoder) distribution, which stipulates the stochastic relationship between latents and observables.
    [Show full text]