Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Dynamic Programming in Rank Space: Scaling Structured Inference with Low-Rank HMMs and PCFGs

About

Hidden Markov Models (HMMs) and Probabilistic Context-Free Grammars (PCFGs) are widely used structured models, both of which can be represented as factor graph grammars (FGGs), a powerful formalism capable of describing a wide range of models. Recent research found it beneficial to use large state spaces for HMMs and PCFGs. However, inference with large state spaces is computationally demanding, especially for PCFGs. To tackle this challenge, we leverage tensor rank decomposition (aka.\ CPD) to decrease inference computational complexities for a subset of FGGs subsuming HMMs and PCFGs. We apply CPD on the factors of an FGG and then construct a new FGG defined in the rank space. Inference with the new FGG produces the same result but has a lower time complexity when the rank size is smaller than the state size. We conduct experiments on HMM language modeling and unsupervised PCFG parsing, showing better performance than previous work. Our code is publicly available at \url{https://github.com/VPeterV/RankSpace-Models}.

Songlin Yang, Wei Liu, Kewei Tu• 2022

Related benchmarks

TaskDatasetResultRank
Language ModelingPenn Treebank (PTB) (test)
Perplexity126.4
120
Unsupervised ParsingPTB (test)
F1 Score64.1
75
Language ModelingPenn Treebank (PTB) (val)
Perplexity135.6
70
Unsupervised Constituency ParsingChinese Treebank (CTB) (test)
Unlabeled Sentence F1 (Mean)32.4
36
Unsupervised Constituency ParsingPenn TreeBank English (test)
Mean S-F164.1
16
Unsupervised Constituency ParsingEnglish SPMRL (test)
S-F159.6
15
Unsupervised Constituency ParsingGerman SPMRL (test)
S-F148
11
Unsupervised Constituency ParsingSPMRL French (test)
S-F143.9
11
Unsupervised Constituency ParsingBasque SPMRL (test)
S-F138.4
5
Unsupervised Constituency ParsingHebrew SPMRL (test)
S-F146.2
5
Showing 10 of 14 rows

Other info

Code

Follow for update