Scaling Structured Inference with Randomization

Yao Fu, John P. Cunningham, Mirella Lapata
12/7/2021
cs.LGcs.CLcs.DS

Official code: FranxYao/RDP (13 stars, Jupyter Notebook, last commit 2022-07-24).

Abstract

Deep discrete structured models have seen considerable progress recently, but traditional inference using dynamic programming (DP) typically works with a small number of states (less than hundreds), which severely limits model capacity. At the same time, across machine learning, there is a recent trend of using randomized truncation techniques to accelerate computations involving large sums.

Show full abstract

Here, we propose a family of randomized dynamic programming (RDP) algorithms for scaling structured models to tens of thousands of latent states. Our method is widely applicable to classical DP-based inference (partition, marginal, reparameterization, entropy) and different graph structures (chains, trees, and more general hypergraphs). It is also compatible with automatic differentiation: it can be integrated with neural networks seamlessly and learned with gradient-based optimizers. Our core technique approximates the sum-product by restricting and reweighting DP on a small subset of nodes, which reduces computation by orders of magnitude. We further achieve low bias and variance via Rao-Blackwellization and importance sampling. Experiments over different graphs demonstrate the accuracy and efficiency of our approach. Furthermore, when using RDP for training a structured variational autoencoder with a scaled inference network, we achieve better test likelihood than baselines and successfully prevent posterior collapse. code at: https://github.com/FranxYao/RDP

View on arXivView PDF

Code Implementations(1)

FranxYao/RDPOfficial100%

Implementation of ICML 22 Paper: Scaling Structured Inference with Randomization

133Jupyter Notebook, PythonNov 9, 20214 years ago
dynamic-programmingefficient-inferencegraphical-modelsrandomized-algorithms

Similar Papers

Cite this paper

@article{fu2021scaling,
  title  = {Scaling Structured Inference with Randomization},
  author = {Yao Fu and John P. Cunningham and Mirella Lapata},
  year   = {2021},
  eprint = {2112.03638},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.03638}
}

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/2112.03638.svg)](https://codeofpaper.com/paper/2112.03638)

Discussion