NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Complexity of Equivalence and Minimisation for Q-weighted Automata

Stefan Kiefer, Andrzej S. Murawski, Joël Ouaknine, Björn Wachter, James Worrell

Abstract

This paper investigates the computational complexity of equivalence and minimisation for automata with transition weights in the field of rational numbers ($\mathbb{Q}$). By leveraging polynomial identity testing (PIT) and the Isolation Lemma, the authors establish complexity bounds within the class NC—problems solvable in polylogarithmic parallel time. The study provides randomized NC (RNC) procedures for equivalence testing and minimisation, and extends these findings to probabilistic automata with rewards. Furthermore, it demonstrates that the equivalence problem for $\mathbb{Q}$-weighted visibly pushdown automata is logspace-equivalent to the polynomial identity testing problem.

Introduction

Weighted automata serve as a foundational framework for modeling systems with quantitative behaviors, finding applications in automated verification, natural language processing, and machine learning. In these models, transitions are associated with weights—in this instance, rational numbers ($\mathbb{Q}$). Two fundamental challenges in the study of these automata are the equivalence problem (determining if two automata assign the same weight to every input string) and the minimisation problem (finding the smallest equivalent automaton).

While sequential polynomial-time algorithms for these problems have existed for decades, their parallel complexity remained less understood. This research addresses whether these tasks can be efficiently parallelized, specifically targeting the complexity class NC (Nick's Class), which represents problems solvable in polylogarithmic time using a polynomial number of processors.

Methodology: An Algebraic Approach

The authors depart from traditional graph-theoretic methods, instead employing sophisticated algebraic techniques to achieve parallel efficiency.

Polynomial Identity Testing (PIT)

The core strategy involves representing the entire language recognized by a weighted automaton as a single multivariate polynomial. This transformation allows the equivalence problem to be reframed as a check for whether the difference between two such polynomials is identically zero.

Schwartz-Zippel Lemma and Randomization

To avoid the exponential cost of expanding these polynomials, the authors utilize the Schwartz-Zippel Lemma. By evaluating the polynomials at random points, they can determine with high probability if a polynomial is zero. This approach places the equivalence problem in RNC (Randomized NC).

The Isolation Lemma

Generating a concrete counterexample—a specific word where two automata differ—is more complex in a parallel setting than merely deciding equivalence. The authors use the Isolation Lemma to "isolate" a unique minimum-weight word from a set of potential candidates, enabling the parallel construction of a differing word.

Linear Algebra in NC

For minimisation, the authors analyze the Hankel matrix, a classic tool in automata theory. By utilizing parallel algorithms for computing matrix rank and determinants, they demonstrate that deciding if an automaton is already minimal is in deterministic NC.

Key Results and Extensions

Equivalence and Minimisation

The paper establishes that for $\mathbb{Q}$-weighted automata:

  • Equivalence Testing: A randomized parallel algorithm (RNC) can either confirm equivalence or produce a counterexample word.
  • Minimisation: Deciding if an automaton is already minimal is in NC, while the functional task of minimizing an automaton is in RNC.

Probabilistic Reward Automata

The research extends these results to probabilistic automata with rewards, which are closely related to Markov Decision Processes (MDPs). The authors identify two types of equivalence:

  1. Expectation Equivalence: Two automata yield the same expected reward for every input word.
  2. Distribution Equivalence: Every input word induces the same probability distribution on rewards in both automata. Both notions are shown to be reducible to the equivalence of $\mathbb{Q}$-weighted automata, thus inheriting the same parallel complexity bounds.

Visibly Pushdown Automata (VPA)

A significant theoretical contribution is the link established between $\mathbb{Q}$-weighted VPAs—which handle nested structures like XML or function calls—and Arithmetic Circuit Identity Testing (ACIT). The authors prove that the equivalence problem for these automata is logspace-equivalent to ACIT. This places the problem at a major frontier of complexity theory, as a deterministic NC algorithm for ACIT would represent a breakthrough in understanding the power of randomness in computation.

Practical Implications and Case Studies

While primarily theoretical, the authors reference benchmarks where their randomized approach outperformed classical sequential algorithms. They also present a case study involving RSA encryption, where timing attacks are modeled as "costs" or rewards in a probabilistic automaton. This allows for the formal verification of whether different blinding techniques successfully hide private keys by checking for distribution equivalence between different implementations.

Conclusion

This work provides a comprehensive map of the parallel complexity landscape for weighted automata. By bridging the gap between automata theory and algebraic complexity, the authors not only provide efficient parallel algorithms but also highlight the fundamental role of randomness in solving these core computational problems. Future research remains focused on the "derandomization" gap—determining if these RNC procedures can be made deterministic, mirroring the broader "P vs. BPP" question in computer science.

Summary updated

BibTeX
@inproceedings{kiefer2013complexity,
  author = {Stefan Kiefer and Andrzej S. Murawski and Joël Ouaknine and Björn Wachter and James Worrell},
  title = {{On the Complexity of Equivalence and Minimisation for Q-weighted Automata}},
  booktitle = {Log. Methods Comput. Sci},
  year = {2013},
  url = {https://openreview.net/forum?id=M4SdfUXydPc},
}
Figure