Optimal Approximate Minimization of One-Letter Weighted Finite Automata

Clara Lacroce, Borja Balle, Prakash Panangaden, Guillaume Rabusseau · DOI

Abstract

Weighted Finite Automata (WFAs) are fundamental models for sequence processing, yet finding optimal low-rank approximations remains a significant challenge. This paper introduces the first application of Adamyan-Arov-Krein (AAK) theory to the domain of WFAs. By restricting the scope to one-letter (unary) alphabets, the authors provide a polynomial-time algorithm, AAKapproximation, which computes the mathematically optimal smaller approximation of a given WFA with respect to the spectral norm. This work bridges the gap between automata theory and functional analysis, offering a robust framework for model compression and noise reduction in spectral learning.

Introduction

Weighted Finite Automata (WFAs) serve as a versatile framework for representing functions over strings, with applications ranging from natural language processing to formal verification. While algorithms for finding the minimal WFA that exactly represents a function are well-established, the problem of approximate minimization is more complex. In many practical scenarios—such as deploying models on resource-constrained hardware or preventing overfitting in spectral learning—it is desirable to find a WFA with a fixed number of states $k$ that is as close as possible to a larger original WFA with $n$ states.

Historically, researchers have attempted to use standard matrix approximation techniques like Singular Value Decomposition (SVD) truncation. However, these methods often fail because they do not preserve the structural properties required for a matrix to represent a valid WFA. This paper addresses this gap by leveraging AAK theory to ensure that the resulting approximation remains a valid Hankel operator, and thus a valid WFA.

The Structural Challenge: Preserving the Hankel Property

The behavior of a WFA can be represented by a Hankel matrix, where the entry at row $u$ and column $v$ corresponds to the weight assigned to the string $uv$. A critical constraint in automata theory is that any matrix representing a WFA must be a Hankel matrix.

Standard SVD truncation provides the best low-rank approximation of a matrix in terms of the spectral norm, but the resulting matrix is generally not a Hankel matrix. Consequently, it does not correspond to any physical WFA. Previous attempts at approximate minimization either sacrificed optimality or failed to maintain this necessary structural integrity. The core contribution of this paper is a method that finds the best low-rank approximation within the space of Hankel operators.

Methodology: AAK Theory and Unary Alphabets

To solve the preservation problem, the authors turn to Adamyan-Arov-Krein (AAK) theory, a celebrated result in functional analysis and control theory. AAK theory provides a closed-form solution for the best low-rank approximation of a Hankel operator that is itself a Hankel operator.

The Unary Constraint

The application of AAK theory requires a specific mathematical context: functions on a unit circle. To map WFAs to this context, the authors restrict their study to one-letter (unary) alphabets. In the unary case, string concatenation is commutative (e.g., $a^i a^j = a^j a^i$), allowing the WFA’s behavior to be treated as a power series. This allows the WFA to be viewed as a discrete-time Single-Input-Single-Output (SISO) dynamical system, where the transition matrix's properties dictate the system's behavior.

The AAKapproximation Algorithm

The proposed algorithm, AAKapproximation, follows a four-step process:

  1. SVA Transformation: The input WFA is converted into Singular Value Automaton (SVA) form.
  2. Symbol Computation: The algorithm computes a "symbol"—a complex function on the unit circle—that represents the WFA’s behavior.
  3. Optimal Approximation: Using AAK theory, the algorithm finds the optimal approximating symbol of rank $k$.
  4. WFA Extraction: The rational component of this symbol is extracted to reconstruct the final, minimized WFA.

Key Results and Complexity

The authors prove that for any irredundant unary WFA, the algorithm is guaranteed to return the unique optimal spectral-norm approximation.

  • Optimality: The approximation error in the spectral norm is exactly equal to the $(k+1)$-th singular value ($\sigma_{k+1}$) of the original Hankel matrix.
  • Efficiency: The algorithm is computationally efficient, with a time complexity of $O(n^3)$, where $n$ is the number of states in the original WFA.
  • Error Bounds: Beyond the spectral norm, the authors provide theoretical bounds showing that the $\ell^2$ norm of the difference between the original and approximate functions is strictly controlled by the spectral norm of the error.

Discussion and Future Work

While the restriction to a one-letter alphabet is a significant limitation, this paper provides a vital proof-of-concept for applying harmonic analysis to automata. The unary case demonstrates that optimal approximate minimization is possible when the underlying algebraic structure is commutative.

Future research directions include extending these results to multi-letter alphabets using non-commutative AAK theory. Additionally, the authors suggest that these techniques could be applied to Recurrent Neural Networks (RNNs) for knowledge distillation, potentially allowing for the extraction of highly compressed, provably accurate WFA representations from complex neural models.

Summary updated

BibTeX
@article{lacroce2024optimal,
  author = {Clara Lacroce and Borja Balle and Prakash Panangaden and Guillaume Rabusseau},
  title = {{Optimal Approximate Minimization of One-Letter Weighted Finite Automata}},
  journal = {Math. Struct. Comput. Sci.},
  year = {2024},
  doi = {10.1017/s0960129524000276},
}
Figure