The Big-O Problem for Labelled Markov Chains and Weighted Automata

Dmitry Chistikov, Stefan Kiefer, Andrzej S. Murawski, David Purser

TL;DR

Can one probabilistic system or weighted automaton be bounded by a constant multiple of another across all possible executions? This paper introduces and analyzes the big-$O$ problem for weighted automata and labelled Markov chains, proving it is undecidable in general—along with the task of checking or approximating $\epsilon$-differential privacy. However, the authors establish sharp boundaries of decidability: the problem is solvable in polynomial time for unambiguous automata, $\text{coNP}$-complete for single-letter alphabets, and decidable for bounded languages subject to a famous open problem in number theory (Schanuel’s conjecture).

What Problem Does This Paper Address?

Weighted automata (WA) and labelled Markov chains (LMCs) are standard formalisms used in verification, natural language processing, and probabilistic modeling. While deciding whether two rational-weighted automata are exactly equal ($f_A(w) = f_B(w)$ for all words $w$) can be done in polynomial time, checking point-wise inequality ($f_A(w) \le f_B(w)$) is notoriously undecidable.

The authors investigate a natural relaxation: the big-$O$ problem. Given two automata $A$ and $B$, does there exist a constant $C > 0$ such that: $$f_A(w) \le C \cdot f_B(w) \quad \text{for all } w \in \Sigma^*?$$

In the context of LMCs, this is equivalent to asking whether the ratio total variation distance is finite. It is intimately tied to $\epsilon$-differential privacy: two system configurations remain $\epsilon$-differentially private across all trace observations if and only if one is big-$O$ of the other, where the optimal constant is $C = \exp(\epsilon)$.

Methods

The authors tackle the problem across general automata and several structural subclasses:

  • General Automata (Hardness & Undecidability): The authors design a reduction from the emptiness problem for Rabin probabilistic automata. By pitting an automaton simulating the probabilistic transitions against a uniform branch, acceptance probabilities strictly exceeding $1/2$ can be pumped repeatedly, blowing up the ratio to infinity.
  • Unambiguous Automata: When every word has at most one accepting run, the authors construct a synchronous product automaton whose edge weights represent the ratio of transition weights. Detecting ratio blowups reduces to finding cycles with product weight $> 1$ via a modified Bellman-Ford algorithm in polynomial time.
  • Unary Automata ($\Sigma = \{a\}$): Because powers of non-negative matrices can exhibit periodic fluctuations, standard smoothed asymptotic growth bounds fail. The authors develop a non-smoothed analysis assigning each path a $(\rho, k)$-pair—representing the dominant spectral radius $\rho$ of strongly connected components (SCCs) and the SCC chain length $k$. They construct an annotated automaton $W^\dagger$ and reduce the asymptotic domination check to an eventual language inclusion problem on unary NFAs in $\text{coNP}$.
  • Bounded Languages ($L \subseteq w_1^* \dots w_m^*$): The authors reduce general bounded languages down to plus-letter-bounded languages ($a_1^+ \dots a_m^+$). Using Parikh’s theorem and semi-linear sets, word lengths are mapped to vector spaces. The condition that ratios stay bounded is translated into sentences in the first-order theory of the real numbers with exponentiation ($\text{Th}(\mathbb{R}_{\exp})$), which is decidable under Schanuel's conjecture.

Datasets

Not discussed in the paper. (This is a purely theoretical paper; no empirical datasets or experimental benchmarks were used.)

Key Insights and Ideas

  • Limits on Verifying Differential Privacy: Deciding whether a system provides any degree of differential privacy (finite $\epsilon$), or approximating the privacy parameter $\epsilon$ within additive or multiplicative tolerances, is fundamentally undecidable.
  • Ratio Distance vs. Additive Total Variation: While standard total variation distance admits additive approximations, ratio distance does not. Even under the promise that the ratio distance is finite, comparing it against a threshold remains undecidable.
  • Periodicity Matters in Unary Systems: Looking only at average matrix growth rates misses corner cases where ratios explode along specific periodic arithmetic progressions (e.g., odd vs. even lengths).
  • Connections to Transcendental Number Theory: Comparing growth rates across bounded words ($a_1^{n_1} \dots a_m^{n_m}$) requires checking inequalities between algebraic numbers raised to independent powers. This forces comparisons between terms like $\log \rho_1 / \log \rho_2$, directly connecting the boundary of verification decidability to the four exponentials conjecture and Schanuel's conjecture.

Key Results

  • General Case: The big-$O$ problem, threshold comparisons ($r(s, s') \le \theta$), and additive/multiplicative approximations are undecidable, even when restricted to LMCs.
  • Unambiguous Automata: Decidable in polynomial time (in $\text{P}$).
  • Unary Automata: $\text{coNP}$-complete (upper bound via eventual NFA inclusion; lower bound via a reduction from unary NFA universality).
  • Bounded Languages: Decidable, conditional on the truth of Schanuel's conjecture in transcendental number theory.

Limitations and Future Work

  • Conjecture Dependence: Decidability for bounded languages is not unconditional; it relies on Schanuel's conjecture to decide sentences in $\text{Th}(\mathbb{R}_{\exp})$.
  • Negative Weights: The positive decidability results are restricted to non-negative weighted automata and Markov chains; automata with negative transition weights are not handled.
  • Open Questions: The authors propose extending the big-$O$ formulation to infinite words, establishing whether $k$-ambiguous automata (where each word has at most $k$ paths) are decidable, and fully pinning down the decidability frontier for bounded languages without number-theoretic conjectures.

Summary updated

Abstract

Given two weighted automata, we consider the problem of whether one is big-O of the other, i.e., if the weight of every finite word in the first is not greater than some constant multiple of the weight in the second. We show that the problem is undecidable, even for the instantiation of weighted automata as labelled Markov chains. Moreover, even when it is known that one weighted automaton is big-O of another, the problem of finding or approximating the associated constant is also undecidable. Our positive results show that the big-O problem is polynomial-time solvable for unambiguous automata, coNP-complete for unlabelled weighted automata (i.e., when the alphabet is a single character) and decidable, subject to Schanuel’s conjecture, when the language is bounded (i.e., a subset of w_1^* … w_m^* for some finite words w_1,… ,w_m). On labelled Markov chains, the problem can be restated as a ratio total variation distance, which, instead of finding the maximum difference between the probabilities of any two events, finds the maximum ratio between the probabilities of any two events. The problem is related to ε-differential privacy, for which the optimal constant of the big-O notation is exactly exp(ε).
BibTeX
@article{chistikov2022big,
  author = {Dmitry Chistikov and Stefan Kiefer and Andrzej S. Murawski and David Purser},
  title = {{The Big-O Problem for Labelled Markov Chains and Weighted Automata}},
  journal = {Log. Methods Comput. Sci.},
  year = {2022},
  doi = {10.46298/lmcs-18(1:40)2022},
}

Loading related content...

Figure