A Fast Algorithm for Computing Prefix Probabilities
Not on the map. Why?
Abstract (arXiv)
Multiple algorithms are known for efficiently calculating the prefix probability of a string under a probabilistic context-free grammar (PCFG). Good algorithms for the problem have a runtime cubic in the length of the input string. However, some proposed algorithms are suboptimal with respect to the size of the grammar. This paper proposes a novel speed-up of Jelinek and Lafferty's (1991) algorithm, whose original runtime is O(n3 |N|3 + |N|4), where n is the input length and |N| is the number of non-terminals in the grammar. In contrast, our speed-up runs in O(n2 |N|3+n3|N|2).
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). First posted on arXiv 4 Jun 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 1; 2024: 0; 2025: 2; 2026: 1.
4 papers.
- 2025Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlocited by 46
- 2025Mechanistic evaluation of Transformers and state space modelscited by 9
- 2026Understanding Dynamic Compute Allocation in Recurrent Transformerscited by 6
- 2023Efficient Semiring-Weighted Earley Parsingcited by 3
- 2026Understanding Dynamic Compute Allocation in Recurrent Transformers9 Feb 2026
- 2025Mechanistic evaluation of Transformers and state space models21 May 2025
- 2025Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlo17 Apr 2025
- 2023Efficient Semiring-Weighted Earley Parsing6 Jul 2023