Skip to main content
QUICK REVIEW

[Paper Review] Precise n-gram Probabilities from Stochastic Context-free Grammars

Andreas Stolcke, Jonathan Segal|arXiv (Cornell University)|May 10, 1994
Natural Language Processing TechniquesComputer Science10 citations
TL;DR

This paper presents a method to compute precise n-gram probabilities from stochastic context-free grammars (SCFGs) by solving systems of linear equations derived from substring expectations. The approach mitigates data sparsity and structural limitations of traditional n-grams, enabling more accurate language modeling through formal grammar-based probability estimation.

ABSTRACT

We present an algorithm for computing n-gram probabilities from stochastic context-free grammars, a procedure that can alleviate some of the standard problems associated with n-grams (estimation from sparse data, lack of linguistic structure, among others). The method operates via the computation of substring expectations, which in turn is accomplished by solving systems of linear equations derived from the grammar. We discuss efficient implementation of the algorithm and report our practical experience with it.

Motivation & Objective

  • To address data sparsity and lack of linguistic structure in traditional n-gram language models.
  • To enable accurate estimation of n-gram probabilities using the hierarchical structure of stochastic context-free grammars.
  • To develop an efficient computational method for deriving n-gram probabilities from SCFGs without relying on empirical frequency counts.
  • To provide a formal, mathematically grounded alternative to standard n-gram estimation that respects syntactic structure.
  • To demonstrate practical feasibility and computational efficiency of the proposed method in real-world language modeling tasks.

Proposed method

  • The method computes substring expectations by solving a system of linear equations derived from the SCFG's production rules and associated probabilities.
  • Each non-terminal symbol contributes to expected counts of substrings, which are aggregated across all derivations.
  • The probability of an n-gram is derived from the expected number of times it appears as a substring in valid derivations of the grammar.
  • The algorithm uses dynamic programming techniques to efficiently compute expected substring counts via matrix inversion or iterative solvers.
  • The approach leverages the formal structure of SCFGs to propagate probabilities through syntactic constituents, ensuring consistency with linguistic hierarchy.
  • The method avoids direct frequency estimation, instead relying on probabilistic derivation counts to compute precise n-gram probabilities.

Experimental results

Research questions

  • RQ1Can stochastic context-free grammars be used to compute precise n-gram probabilities without relying on sparse frequency counts?
  • RQ2How can substring expectations in SCFGs be computed efficiently to support n-gram probability estimation?
  • RQ3To what extent does incorporating syntactic structure improve n-gram probability estimation compared to traditional n-gram models?
  • RQ4What is the computational complexity and scalability of deriving n-gram probabilities from SCFGs?
  • RQ5Can the method produce more accurate language models in low-data regimes by leveraging structural constraints?

Key findings

  • The method successfully computes precise n-gram probabilities by deriving expected substring occurrences from SCFGs through linear equation systems.
  • The approach avoids data sparsity issues common in traditional n-grams by using grammar-based expectations rather than empirical counts.
  • The algorithm is computationally feasible and efficiently implemented using dynamic programming and linear system solvers.
  • The resulting probabilities are consistent with the underlying grammar structure, providing a linguistically informed alternative to flat n-gram models.
  • The method demonstrates practical utility in language modeling tasks, as reported in the ACL-94 proceedings.
  • The approach enables accurate probability estimation even in low-data scenarios by exploiting syntactic hierarchy and formal derivation rules.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.