Some improvements of the spectral learning approach for probabilistic grammatical inference

Mattias Gybels, François Denis, Amaury HabrardICGI 2014

Abstract

Spectral methods propose new and elegant solutions in probabilistic grammatical inference. We propose two ways to improve them. We show how a linear representation, or equivalently a weighted automaton, can be used as a high-quality starting point for the Baum-Welch algorithm. Additionally, we explore Structured Low-Rank Approximation (SLRA) to ensure the learned model respects the underlying algebraic structure of the language, specifically the Hankel matrix structure.

Introduction

Probabilistic Grammatical Inference (PGI) is the task of learning probability distributions over strings from a given dataset. Traditionally, this has been dominated by iterative methods like the Baum-Welch (BW) algorithm, an Expectation-Maximization approach. While effective, BW is prone to local optima, making its performance highly dependent on initialization.

Spectral learning has emerged as a powerful alternative. By applying linear algebra techniques—specifically Singular Value Decomposition (SVD)—to a Hankel matrix of string probabilities, these methods can learn models in a single, consistent step. However, spectral methods often produce models that are not strictly probabilistic and do not maximize data likelihood.

The Challenges of Spectral Learning

Despite their theoretical elegance, spectral methods face two primary hurdles. First, they often yield "illegal" models. The resulting weighted automata may contain negative coefficients or fail to sum to unity, meaning they do not define a valid probability distribution.

A weighted automaton with negative coefficients, illustrating the non-probabilistic output often produced by spectral methods.

Second, spectral methods minimize an algebraic distance (the Frobenius norm) rather than maximizing the likelihood of the observed data. This discrepancy can lead to suboptimal performance in practical applications where likelihood is the primary metric of interest.

Proposed Improvements

1. Spectral Initialization for Baum-Welch

The authors propose using the output of a spectral algorithm as an initial point for the Baum-Welch algorithm. To bridge the gap between a non-probabilistic spectral model and a valid Probabilistic Finite Automaton (PFA), they developed a transformation process. This involves converting the model into a normalized prefix representation and iteratively adjusting coefficients to eliminate negative values.

A Probabilistic Finite Automaton and its equivalent linear representation matrices.

By starting BW from this "spectral base camp," the algorithm is much more likely to converge to a high-quality global optimum compared to random initialization.

2. Structured Low-Rank Approximation (SLRA)

Standard spectral learning uses SVD to find a low-rank approximation of the Hankel matrix. However, SVD does not preserve the "Hankel structure," where specific entries must be identical because they correspond to the same string prefixes and suffixes. The authors propose using Structured Low-Rank Approximation (SLRA) to find the closest low-rank matrix that maintains this essential algebraic structure. While SLRA is a more complex, non-convex optimization problem, it is theoretically more consistent with the underlying grammar.

Experimental Evaluation and Results

The proposed methods were tested on 10 problems from the PAutomaC challenge, using datasets of up to 100,000 strings.

  • Hybrid Success: The Spectral + Baum-Welch approach significantly improved model quality in 6 out of 10 cases, achieving top-3 rankings in the competition for three problems.
  • SLRA Gains: SLRA improved the Frobenius norm distance in 9 out of 10 cases and enhanced model perplexity in half of the problems. On smaller "toy" problems, SLRA demonstrated clear statistical superiority over standard spectral methods.

Conclusion and Future Work

This research demonstrates that spectral methods, while not perfect on their own, provide a robust foundation for probabilistic modeling. The main limitation remains the computational cost of SLRA, which currently restricts its use to smaller matrices. Future work will focus on scaling these structured approximations to handle the large-scale datasets typical of modern natural language processing.

Summary updated

BibTeX
@inproceedings{gybels2014some,
  author = {Mattias Gybels and François Denis and Amaury Habrard},
  title = {{Some improvements of the spectral learning approach for probabilistic grammatical inference}},
  booktitle = {ICGI},
  year = {2014},
  url = {https://openreview.net/forum?id=pTXttpzx26},
}
Figure