arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.06884cs.CL
收藏

加权下推自动机算法

Algorithms for Weighted Pushdown Automata

ETH Zürich(苏黎世联邦理工学院);University of Notre Dame(圣母大学);Johns Hopkins University(约翰斯·霍普金斯大学)

Alexandra Butoi, Brian DuSell, Tim Vieira, Ryan Cotterell, David Chiang

AI总结:

针对现有PDA算法多依赖PDA转CFG的问题,本文提出直接作用于加权下推自动机的新型算法,相比Lang算法在空间和时间效率上均有显著提升。

摘要:

加权下推自动机(WPDAs)是许多自然语言处理任务的核心,例如基于句法的统计机器翻译和基于转移的依存句法分析。由于现有大多数动态规划算法都是为上下文无关文法(CFGs)设计的,PDA的相关算法通常需要采用PDA到CFG的转换方式。本文提出了可直接在WPDAs上运行的新型算法。该算法受Lang算法启发,但采用了更通用的下推自动机定义,可将空间需求降低$|Γ|$(栈字母表大小)倍,或将运行时间降低超过$|Q|$(状态数量)倍。在与Lang算法相同类别的PDA上运行时,本文算法的空间效率提升$|Γ|$倍,时间效率提升$|Q| \cdot |Γ|$倍。

英文摘要:

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 $|Γ|$ (the size of the stack alphabet) or reduce the runtime by a factor of more than $|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 $|Γ|$ and more time-efficient by a factor of $|Q| \cdot |Γ|$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑