Using Pseudo-stochastic Rational Languages in Probabilistic Grammatical Inference

Amaury Habrard, François Denis, Yann Esposito

Abstract

This paper investigates the use of Multiplicity Automata (MA) for learning probability distributions over strings, a task traditionally dominated by Probabilistic Automata (PA). By introducing Pseudo-Stochastic Rational Languages (PSRLs), the authors leverage the unique minimal representation of MAs while ensuring the final models represent valid stochastic languages. Experimental results demonstrate that the DEES algorithm, combined with a novel normalization process, outperforms state-of-the-art methods like ALERGIA and MDI in terms of convergence speed, model conciseness, and accuracy, particularly in data-sparse environments.

Introduction

In the field of probabilistic grammatical inference, the primary objective is to infer an underlying probability distribution from a finite sample of strings. While Probabilistic Automata (PA) are the standard model for this task, they suffer from a significant structural limitation: the lack of a canonical representation. This absence of a unique minimal form makes it computationally difficult for learning algorithms to converge on the most efficient model structure.

Habrard, Denis, and Esposito propose a shift toward Multiplicity Automata (MA). Unlike PAs, MAs possess a unique minimal representation, but they are mathematically "too flexible," as their transitions can involve any real number, potentially assigning negative values to string probabilities. This paper bridges that gap by introducing Pseudo-Stochastic Rational Languages (PSRLs) and a robust framework for their inference and normalization.

Methodology: Pseudo-Stochastic Rational Languages

The authors define Pseudo-Stochastic Rational Languages (PSRLs) as languages generated by MAs where the total sum of all string probabilities equals 1, even if individual strings are temporarily assigned negative values during the learning phase. This allows the algorithm to treat the learning process as a search within the space of MAs, which is mathematically more tractable than the constrained space of PAs.

Key Contributions

  1. Decidability: The authors prove that it is possible to determine whether a given MA defines a PSRL in polynomial time.
  2. The DEES Algorithm: The framework utilizes the DEES algorithm to identify rational stochastic languages in the limit. By allowing "unphysical" intermediate states (negative probabilities), the algorithm finds a unique minimal model faster than traditional state-merging approaches.
  3. Normalization and Pruning: To return to the realm of valid probability distributions, the authors provide a normalization algorithm. This process identifies regions of the model producing negative values, prunes them to zero, and re-normalizes the remaining distribution to ensure a strictly positive stochastic language.
  4. Simulation: The paper details efficient methods for drawing samples from these normalized models, ensuring they are practical for generative tasks.

Experimental Evaluation

The approach was evaluated against state-of-the-art algorithms, including ALERGIA and MDI, using several synthetic benchmarks:

  • PDA-Generated Distributions: Testing the recovery of Probabilistic Deterministic Automata structures.
  • Non-Rational PA Distributions: Evaluating performance on distributions with irrational parameters (e.g., $\alpha = (\sqrt{5} + 1)/2$) that cannot be perfectly represented by rational numbers.
  • Randomly Generated PAs: Testing general robustness across targets ranging from 2 to 25 states.
  • Non-Rational Stochastic Languages: Assessing the limits of approximation when the target distribution lies entirely outside the class of rational languages.

Results and Discussion

Convergence and Efficiency

In experiments involving PDA targets, the DEES algorithm converged to the correct model structure with significantly fewer samples than its competitors. This suggests that the canonicality of MAs allows the algorithm to resolve structural ambiguities that often cause state-merging algorithms like ALERGIA to stall or require massive datasets.

Model Conciseness

The PSRL approach consistently produced smaller models. In one notable test, DEES recovered a 3-state MA equivalent to a 12-state PDA. In contrast, ALERGIA produced significantly larger models that were less accurate representations of the source distribution.

Accuracy and Robustness

Using the $D1$ norm to measure the distance between distributions, DEES outperformed other methods across nearly all sample sizes. It was particularly effective when data was sparse. Furthermore, when dealing with irrational parameters, DEES was the only algorithm that continued to improve its approximation as more data was provided, whereas other methods reached a performance plateau.

Conclusion and Future Work

By embracing the mathematical elegance of Multiplicity Automata and the flexibility of PSRLs, the authors provide a powerful alternative to traditional probabilistic grammatical inference. While the normalization process may occasionally result in a loss of "rationality" (where the final language is no longer perfectly representable by a finite-state machine), the gains in accuracy and efficiency are substantial.

Future research directions include extending this framework to Tree Automata. This would allow these techniques to be applied to hierarchical data structures, such as natural language syntax or XML, where the benefits of canonical representations could prove even more impactful.

Summary updated

BibTeX
@inproceedings{habrard2006using,
  author = {Amaury Habrard and François Denis and Yann Esposito},
  title = {{Using Pseudo-stochastic Rational Languages in Probabilistic Grammatical Inference}},
  booktitle = {ICGI},
  year = {2006},
  url = {https://openreview.net/forum?id=jc7kTJUUYN_},
}
Figure