Efficient Marginalization of Discrete and Structured Latent Variables via Sparsity
Not on the map. Why?
Abstract (arXiv)
Training neural network models with discrete (categorical or structured) latent variables can be computationally challenging, due to the need for marginalization over large or combinatorial sets. To circumvent this issue, one typically resorts to sampling-based approximations of the true marginal, requiring noisy gradient estimators (e.g., score function estimator) or continuous relaxations with lower-variance reparameterized gradients (e.g., Gumbel-Softmax). In this paper, we propose a new training strategy which replaces these estimators by an exact yet efficient marginalization. To achieve this, we parameterize discrete distributions over latent assignments using differentiable sparse mappings: sparsemax and its structured counterparts. In effect, the support of these distributions is greatly reduced, which enables efficient marginalization. We report successful results in three tasks covering a range of latent variable modeling applications: a semisupervised deep generative model, a latent communication game, and a generative model with a bit-vector latent representation. In all cases, we obtain good performance while still achieving the practicality of sampling-based approximations.
Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Jul 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 10; 2022: 4; 2023: 4; 2024: 1; 2025: 2.
21 papers.
Sort:
- 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 97
- 2022SIMPLE: A Gradient Estimator for k-Subset Samplingcited by 34
- 2022Sparsity-Constrained Optimal Transportcited by 32
- 2022Sparse Graph Learning from Spatiotemporal Time Seriescited by 22
- 2021Sparse Continuous Distributions and Fenchel-Young Lossescited by 13
- 2021Storchastic: A Framework for General Stochastic Automatic Differentiationcited by 11
- 2021Exploring Social Posterior Collapse in Variational Autoencoder for Interaction Modelingcited by 11
- 2023Constraint-Free Structure Learning with Smooth Acyclic Orientationscited by 10
- 2023DAG Learning on the Permutahedroncited by 9
- 2021Learning from Executions for Semantic Parsingcited by 7
- 2021Evidential Softmax for Sparse Multimodal Distributions in Deep Generative Modelscited by 6
- 2021On Finding the K-best Non-projective Dependency Treescited by 4
9 more
- 2024Reranking Laws for Language Generation: A Communication-Theoretic Perspectivecited by 3
- 2021Sparse Communication via Mixed Distributionscited by 2
- 2021Scaling Structured Inference with Randomizationcited by 2
- 2022Learning Discrete Structured Variational Auto-Encoder using Natural Evolution Strategiescited by 2
- 2023Efficient Learning of Discrete-Continuous Computation Graphscited by 2
- 2021Reconciling the Discrete-Continuous Divide: Towards a Mathematical Theory of Sparse Communicationcited by 1
- 2023SLM: End-to-end Feature Selection via Sparse Learnable Maskscited by 1
- 2025NeuralPDR: Neural Differential Equations as surrogate models for Photodissociation Regionscited by 1
- 2025Distillation of a tractable model from the VQ-VAEcited by 0
- 2025Distillation of a tractable model from the VQ-VAE1 Sep 2025
- 2025NeuralPDR: Neural Differential Equations as surrogate models for Photodissociation Regions17 Jun 2025
- 2024Reranking Laws for Language Generation: A Communication-Theoretic Perspective11 Sep 2024
- 2023Constraint-Free Structure Learning with Smooth Acyclic Orientations15 Sep 2023
- 2023Efficient Learning of Discrete-Continuous Computation Graphs26 Jul 2023
- 2023SLM: End-to-end Feature Selection via Sparse Learnable Masks6 Apr 2023
- 2023DAG Learning on the Permutahedron27 Jan 2023
- 2022SIMPLE: A Gradient Estimator for k-Subset Sampling4 Oct 2022
- 2022Sparsity-Constrained Optimal Transport30 Sep 2022
- 2022Sparse Graph Learning from Spatiotemporal Time Series26 May 2022
- 2022Learning Discrete Structured Variational Auto-Encoder using Natural Evolution Strategies3 May 2022
- 2021Scaling Structured Inference with Randomization7 Dec 2021
9 more
- 2021Exploring Social Posterior Collapse in Variational Autoencoder for Interaction Modeling1 Dec 2021
- 2021Evidential Softmax for Sparse Multimodal Distributions in Deep Generative Models27 Oct 2021
- 2021Sparse Communication via Mixed Distributions5 Aug 2021
- 2021Sparse Continuous Distributions and Fenchel-Young Losses4 Aug 2021
- 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributions3 Jun 2021
- 2021On Finding the K-best Non-projective Dependency Trees1 Jun 2021
- 2021Learning from Executions for Semantic Parsing12 Apr 2021
- 2021Reconciling the Discrete-Continuous Divide: Towards a Mathematical Theory of Sparse Communication1 Apr 2021
- 2021Storchastic: A Framework for General Stochastic Automatic Differentiation1 Apr 2021
- 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 97
- 2022SIMPLE: A Gradient Estimator for k-Subset Samplingcited by 34
- 2022Sparsity-Constrained Optimal Transportcited by 32
- 2022Sparse Graph Learning from Spatiotemporal Time Seriescited by 22
- 2021Sparse Continuous Distributions and Fenchel-Young Lossescited by 13
- 2021Storchastic: A Framework for General Stochastic Automatic Differentiationcited by 11
- 2021Exploring Social Posterior Collapse in Variational Autoencoder for Interaction Modelingcited by 11
- 2023Constraint-Free Structure Learning with Smooth Acyclic Orientationscited by 10
- 2023DAG Learning on the Permutahedroncited by 9
- 2021Learning from Executions for Semantic Parsingcited by 7
- 2021Evidential Softmax for Sparse Multimodal Distributions in Deep Generative Modelscited by 6
- 2021On Finding the K-best Non-projective Dependency Treescited by 4
12 most cited of 21 All 21 (JSON)
- 2025Distillation of a tractable model from the VQ-VAE1 Sep 2025
- 2025NeuralPDR: Neural Differential Equations as surrogate models for Photodissociation Regions17 Jun 2025
- 2024Reranking Laws for Language Generation: A Communication-Theoretic Perspective11 Sep 2024
- 2023Constraint-Free Structure Learning with Smooth Acyclic Orientations15 Sep 2023
- 2023Efficient Learning of Discrete-Continuous Computation Graphs26 Jul 2023
- 2023SLM: End-to-end Feature Selection via Sparse Learnable Masks6 Apr 2023
- 2023DAG Learning on the Permutahedron27 Jan 2023
- 2022SIMPLE: A Gradient Estimator for k-Subset Sampling4 Oct 2022
- 2022Sparsity-Constrained Optimal Transport30 Sep 2022
- 2022Sparse Graph Learning from Spatiotemporal Time Series26 May 2022
- 2022Learning Discrete Structured Variational Auto-Encoder using Natural Evolution Strategies3 May 2022
- 2021Scaling Structured Inference with Randomization7 Dec 2021
12 newest of 21 All 21 (JSON)