Algorithms for Acyclic Weighted Finite-State Automata with Failure Arcs
Not on the map. Why?
Abstract (arXiv)
Weighted finite-state automata (WSFAs) are commonly used in NLP. Failure transitions are a useful extension for compactly representing backoffs or interpolation in n-gram models and CRFs, which are special cases of WFSAs. The pathsum in ordinary acyclic WFSAs is efficiently computed by the backward algorithm in time O(|E|), where E is the set of transitions. However, this does not allow failure transitions, and preprocessing the WFSA to eliminate failure transitions could greatly increase |E|. We extend the backward algorithm to handle failure transitions directly. Our approach is efficient when the average state has outgoing arcs for only a small fraction s ll 1 of the alphabet Sigma. We propose an algorithm for general acyclic WFSAs which runs in Oleft(|E| + s |Sigma| |Q| Tmax log|Sigma|right), where Q is the set of states and Tmax is the size of the largest connected component of failure transitions. When the failure transition topology satisfies a condition exemplified by CRFs, the Tmax factor can be dropped, and when the weight semiring is a ring, the log|Sigma| factor can be dropped. In the latter case (ring-weighted acyclic WFSAs), we also give an alternative algorithm with complexity displaystyle Oleft(|E| + |Sigma| |Q| min(1,sπmax) right), where πmax is the size of the longest failure path.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 8 of its 30 references that are in the map. First posted on arXiv 17 Jan 2023.
Builds on
8 of 30 references.
References · 8
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
- 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 113
- 2018Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networkscited by 101
- 2022Neuro-Symbolic Language Modeling with Automaton-augmented Retrievalcited by 60
- 2020RNNs can generate bounded hierarchical languages with optimal memorycited by 59
- 2018Rational Recurrencescited by 18
- 2021Lexically Aware Semi-Supervised Learning for OCR Post-Correctioncited by 12
- 2018SoPa: Bridging CNNs, RNNs, and Weighted Finite-State Machinescited by 8
Built on by
Citing papers per year: 2024: 1.
1 paper.