[Paper Review] Direct Optimization through $\arg \max$ for Discrete Variational Auto-Encoder
This paper proposes direct optimization via the direct loss minimization approach to train discrete variational autoencoders (VAEs) with non-differentiable $ ceil\max$ operations, avoiding the bias of Gumbel-Softmax relaxations. It achieves state-of-the-art performance on unstructured and structured discrete VAEs by leveraging gradient estimation through the difference of two maximization operations, enabling efficient training even in high-dimensional structured spaces.
Reparameterization of variational auto-encoders with continuous random variables is an effective method for reducing the variance of their gradient estimates. In the discrete case, one can perform reparametrization using the Gumbel-Max trick, but the resulting objective relies on an $\arg \max$ operation and is non-differentiable. In contrast to previous works which resort to softmax-based relaxations, we propose to optimize it directly by applying the direct loss minimization approach. Our proposal extends naturally to structured discrete latent variable models when evaluating the $\arg \max$ operation is tractable. We demonstrate empirically the effectiveness of the direct loss minimization technique in variational autoencoders with both unstructured and structured discrete latent variables.
Motivation & Objective
- To address the challenge of training discrete VAEs with high-variance gradient estimators in non-differentiable $ ceil\max$ operations.
- To eliminate the bias introduced by Gumbel-Softmax relaxations in discrete VAEs while maintaining training efficiency.
- To extend reparameterization techniques to structured discrete latent spaces where summation-based relaxations are intractable.
- To demonstrate the effectiveness of direct optimization in both unsupervised and semi-supervised settings for discrete VAEs.
- To provide a theoretically grounded, regularity-assumption-free proof of the direct loss minimization estimator for $ ceil\max$ operations.
Proposed method
- Apply the Gumbel-Max trick to reparameterize discrete VAE objectives, resulting in a non-differentiable $ ceil\max$ operation.
- Use the direct loss minimization approach to estimate gradients through the $ ceil\max$ function via the difference between maximization over original and perturbed objectives.
- Replace the standard Gumbel-Softmax relaxation with direct optimization, avoiding softmax normalization and its computational cost.
- Extend the method to structured discrete latent spaces by performing tractable maximization over assignments, even when summation is intractable.
- Integrate the gradient estimator into a VAE framework with shared encoder architectures for mixed continuous-discrete latent spaces.
- Calibrate $ ceil\max$ predictions using a loss function in semi-supervised settings to control discrete semantics in generated images.
Experimental results
Research questions
- RQ1Can direct optimization via the difference of maximization operations provide a low-variance, low-bias gradient estimator for discrete VAEs with $ ceil\max$ operations?
- RQ2Does direct optimization outperform Gumbel-Softmax relaxation in terms of training stability and generation quality on unstructured discrete VAEs?
- RQ3Can the direct optimization method be extended to structured discrete latent variable models where softmax normalization is computationally infeasible?
- RQ4How effective is direct optimization in semi-supervised settings for learning disentangled discrete semantics in image generation?
- RQ5What is the impact of the perturbation parameter $\epsilon$ on the convergence and performance of the direct optimization method?
Key findings
- On MNIST with 1200 labeled examples, the direct optimization method achieved 96.8% accuracy in semi-supervised learning, outperforming Gumbel-Softmax (92.7%).
- On Fashion-MNIST with 1200 labeled examples, direct optimization reached 73.7% accuracy, compared to 73.2% for Gumbel-Softmax, demonstrating consistent superiority.
- The direct optimization method achieved a test bound of 130.921 on MNIST, slightly better than Gumbel-Softmax’s 130.063, indicating improved likelihood estimation.
- In structured VAEs with maxflow-based inference, direct optimization matched CPLEX-based inference in performance but was significantly faster, becoming superior by epoch 85.
- Semi-supervised training with weak supervision enabled the model to generate images with controlled attributes (e.g., glasses, smile, gender) by manipulating discrete latent codes.
- The method enables efficient training in high-dimensional structured spaces by relying on maximization instead of summation, making it scalable where Gumbel-Softmax fails.
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.