Low-Rank Constraints for Fast Inference in Structured Models

Justin T. Chiu, Yuntian Deng, Alexander M. Rush
1/8/2022
cs.CL

Official code: justinchiu/low-rank-models (4 stars, Jupyter Notebook, last commit 2021-11-09).

Abstract

Structured distributions, i.e. distributions over combinatorial spaces, are commonly used to learn latent probabilistic representations from observed data. However, scaling these models is bottlenecked by the high computational and memory complexity with respect to the size of the latent representations.

Show full abstract

Common models such as Hidden Markov Models (HMMs) and Probabilistic Context-Free Grammars (PCFGs) require time and space quadratic and cubic in the number of hidden states respectively. This work demonstrates a simple approach to reduce the computational and memory complexity of a large class of structured models. We show that by viewing the central inference step as a matrix-vector product and using a low-rank constraint, we can trade off model expressivity and speed via the rank. Experiments with neural parameterized structured models for language modeling, polyphonic music modeling, unsupervised grammar induction, and video modeling show that our approach matches the accuracy of standard models at large state spaces while providing practical speedups.

View on arXivView PDF

Code Implementations(1)

40Jupyter Notebook, PythonOct 25, 20215 years ago

Similar Papers

Cite this paper

@article{chiu2022lowrank,
  title  = {Low-Rank Constraints for Fast Inference in Structured Models},
  author = {Justin T. Chiu and Yuntian Deng and Alexander M. Rush},
  year   = {2022},
  eprint = {2201.02715},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.02715}
}

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

Discussion