English

Algorithms for Weighted Pushdown Automata

Computation and Language 2025-03-25 v4

Abstract

Weighted pushdown automata (WPDAs) are at the core of many natural language processing tasks, like syntax-based statistical machine translation and transition-based dependency parsing. As most existing dynamic programming algorithms are designed for context-free grammars (CFGs), algorithms for PDAs often resort to a PDA-to-CFG conversion. In this paper, we develop novel algorithms that operate directly on WPDAs. Our algorithms are inspired by Lang's algorithm, but use a more general definition of pushdown automaton and either reduce the space requirements by a factor of Γ|\Gamma| (the size of the stack alphabet) or reduce the runtime by a factor of more than Q|Q| (the number of states). When run on the same class of PDAs as Lang's algorithm, our algorithm is both more space-efficient by a factor of Γ|\Gamma| and more time-efficient by a factor of QΓ|Q| \cdot |\Gamma|.

Keywords

Cite

@article{arxiv.2210.06884,
  title  = {Algorithms for Weighted Pushdown Automata},
  author = {Alexandra Butoi and Brian DuSell and Tim Vieira and Ryan Cotterell and David Chiang},
  journal= {arXiv preprint arXiv:2210.06884},
  year   = {2025}
}

Comments

12 pages, 7 figures. Accepted at EMNLP 2022

R2 v1 2026-06-28T03:32:10.826Z