Learning rational stochastic languages

François Denis, Yann Esposito, Amaury Habrard

Abstract

Traditional approaches to sequence modeling often rely on Probabilistic Automata (PA) or Hidden Markov Models (HMMs), which face significant challenges in representational efficiency and learnability. This paper explores the class of rational stochastic languages, a broader and more concise framework represented by Multiplicity Automata (MA). We detail the DEES algorithm, a novel inference method that leverages linear algebra to identify these complex distributions in the limit. By allowing intermediate models to exist outside the strict probability simplex, DEES achieves efficient convergence and provides a more compact representation of stochastic processes than traditional methods.

Introduction

In machine learning for sequences, the goal is often to learn a stochastic language—a probability distribution over a set of all possible strings. While Probabilistic Automata (PA) are the standard tool for this task, they suffer from two primary drawbacks. First, there is no known efficient algorithm capable of learning the entire class of languages generated by PA. Second, PA are often representationally inefficient, requiring a large number of states to describe distributions that could be captured more simply using general mathematical frameworks.

This research shifts the focus toward Multiplicity Automata (MA). Unlike PA, where transitions are strictly bounded between 0 and 1, MA allow transitions to be any rational or real number. This flexibility allows for significantly more concise models, though it introduces the risk of "instability"—where a model might assign negative values to strings or fail to sum to unity. This paper demonstrates that this instability can be managed and even leveraged to create more powerful learning algorithms.

The Representational Advantage of Multiplicity Automata

A key insight of this work is the inherent conciseness of rational stochastic languages. The authors prove that certain distributions requiring $N$ states in a standard PA can be represented by an MA with as few as 3 states. This suggests that learning within the MA space is fundamentally more efficient from a representational standpoint.

Furthermore, rational stochastic languages possess a unique "minimal normal representation." Unlike the often ambiguous structures of PA, this provides a clear, non-ambiguous target for inference algorithms, simplifying the search space for the underlying model.

The DEES Algorithm

The core contribution of the paper is the DEES algorithm, which approaches grammatical inference through the lens of linear algebra rather than simple transition counting.

State-Merging and Basis Discovery

DEES treats "residual languages"—the distribution of suffixes following a specific prefix—as vectors within a vector space. The algorithm attempts to identify a minimal set of prefixes whose residual languages form a basis for all others. It utilizes a system of linear inequations, denoted as $I(Q, v, S, \epsilon)$, to determine if the distribution of a new prefix can be expressed as a linear combination of the existing basis.

Identification in the Limit

The paper provides a formal proof that DEES achieves "identification in the limit." As the sample size of the input data grows, the algorithm eventually converges to the exact minimal representation of the target rational stochastic language.

Handling Non-Stochastic Models

One of the primary challenges of using MA is that intermediate models produced during the learning process may not be "stochastic" (i.e., they may produce negative values). The authors address this by providing a mathematical framework to transform these "pseudo-distributions" into valid stochastic languages. While these transformed models may no longer be rational, they serve as accurate estimators of the target distribution during the convergence process.

Theoretical Results

The paper establishes several rigorous benchmarks for the DEES algorithm:

  • Strong Identification: The class of rational stochastic languages over the rationals ($S^{rat}_{\mathbb{Q}}(\Sigma)$) is shown to be strongly identifiable in the limit.
  • Convergence Rates: The parameters of the learned model converge to the true parameters at a statistical rate of $O(k^{-1/3})$, where $k$ is the sample size.
  • Absolute Convergence: Even before full convergence, the intermediate models define absolutely convergent series, ensuring they remain mathematically well-behaved for estimation purposes.

Limitations and Future Work

Despite its theoretical strengths, the approach faces several hurdles. There is no recursively enumerable subset of Multiplicity Automata that exactly matches the class of rational stochastic languages, meaning researchers must rely on approximation rather than simple listing. Additionally, the transformation of intermediate MA into valid distributions results in models that are no longer "rational," potentially complicating their use in specific downstream applications.

Future research will focus on the practical scaling of DEES. While theoretical results are promising, testing the algorithm against large-scale natural language or biological sequence datasets will be essential to determine if the conciseness of MA translates into superior performance compared to modern architectures like Recurrent Neural Networks (RNNs) or Transformers.

Summary updated

BibTeX
@inproceedings{denis2006learning,
  author = {François Denis and Yann Esposito and Amaury Habrard},
  title = {{Learning rational stochastic languages}},
  booktitle = {Conference on Learning Theory},
  year = {2006},
  url = {https://openreview.net/forum?id=V-hvO2ETQi},
}
Figure