Skip to main content
QUICK REVIEW

[Paper Review] Straight-Through Estimator as Projected Wasserstein Gradient Flow

Pengyu Cheng, Chang Liu|arXiv (Cornell University)|Oct 5, 2019
Advanced Neuroimaging Techniques and ApplicationsMedicine25 references6 citations
TL;DR

This paper establishes a theoretical foundation for the Straight-Through (ST) estimator by interpreting it as the projected Wasserstein gradient flow (pWGF) on discrete distributions. It proposes a novel pWGF-based optimization scheme that improves convergence for infinite-support distributions like Poisson, outperforming existing methods on Bernoulli and Poisson latent variable models while matching ST's performance.

ABSTRACT

The Straight-Through (ST) estimator is a widely used technique for back-propagating gradients through discrete random variables. However, this effective method lacks theoretical justification. In this paper, we show that ST can be interpreted as the simulation of the projected Wasserstein gradient flow (pWGF). Based on this understanding, a theoretical foundation is established to justify the convergence properties of ST. Further, another pWGF estimator variant is proposed, which exhibits superior performance on distributions with infinite support,e.g., Poisson distributions. Empirically, we show that ST and our proposed estimator, while applied to different types of discrete structures (including both Bernoulli and Poisson latent variables), exhibit comparable or even better performances relative to other state-of-the-art methods. Our results uncover the origin of the widespread adoption of the ST estimator and represent a helpful step towards exploring alternative gradient estimators for discrete variables.

Motivation & Objective

  • To provide a theoretical justification for the widely used but poorly understood Straight-Through (ST) gradient estimator in discrete variational inference.
  • To formalize the connection between ST and the projected Wasserstein gradient flow (pWGF) in the context of minimizing expected cost over discrete distributions.
  • To develop a new gradient estimator based on pWGF that achieves faster convergence for distributions with infinite support, such as Poisson.
  • To empirically validate the proposed method on both Bernoulli and Poisson latent variable models, comparing performance against state-of-the-art baselines.

Proposed method

  • The method interprets ST as simulating the projected Wasserstein gradient flow (pWGF) in a 2-Wasserstein space, where gradients are computed in a relaxed, continuous space before projection back to the discrete distribution family.
  • In each iteration, the algorithm first updates samples via Wasserstein gradient flow: $\tilde{\bm{z}}_n = \bm{z}_n + \varepsilon \nabla f(\bm{z}_n)$, generating a temporary distribution $\tilde{\mu}_k$.
  • The distribution $\tilde{\mu}_k$ is then projected back to the discrete family $\mathcal{M}$ by minimizing the 2-Wasserstein distance $W^2(\mu, \tilde{\mu}_k)$.
  • Under the assumption of factorized distributions, the Wasserstein distance minimization reduces to minimizing marginal distances across each dimension, enabling efficient computation.
  • For Bernoulli distributions, the optimal projection is derived analytically using a threshold-based rule based on cumulative distribution functions.
  • The method is extended to infinite-support distributions like Poisson by adapting the projection step to handle unbounded supports, leading to faster convergence.

Experimental results

Research questions

  • RQ1Can the Straight-Through estimator be theoretically justified through a continuous optimization framework?
  • RQ2Is the projected Wasserstein gradient flow (pWGF) a valid and generalizable interpretation of the ST estimator?
  • RQ3Does a pWGF-based estimator outperform existing gradient estimators for discrete latent variables, especially on infinite-support distributions?
  • RQ4How does the performance of the proposed pWGF estimator compare to ST and other state-of-the-art methods on Bernoulli and Poisson latent variable models?

Key findings

  • The Straight-Through estimator is theoretically justified as a simulation of the projected Wasserstein gradient flow (pWGF), providing a rigorous foundation for its empirical success.
  • The proposed pWGF-based estimator achieves comparable or better performance than ST on Bernoulli latent variable models, with a test ELBO of 104.6 on MNIST using a nonlinear architecture.
  • On Poisson latent variable models, the proposed pWGF variant exhibits faster convergence than ST and other baselines, particularly due to its design for infinite-support distributions.
  • The pWGF method outperforms Gumbel-Softmax, RELAX, and REBAR across all tested architectures on MNIST, with a test ELBO of 129.2 on the linear architecture.
  • Theoretical analysis proves that for factorized distributions, the 2-Wasserstein distance between two distributions equals the sum of squared marginal distances across dimensions.
  • For Bernoulli distributions, the optimal projection under pWGF is shown to be equivalent to a threshold-based rule involving the cumulative distribution function, with $W^2(\text{Bern}(p), \text{Bern}(q)) = |p - q|$.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.