Quantitative Automata under Probabilistic Semantics

Krishnendu Chatterjee, Thomas A. Henzinger, Jan OtopLogical 2016

Abstract

Automata with monitor counters, where the transitions do not depend on counter values, and nested weighted automata are two expressive automata-theoretic frameworks for quantitative properties. For a well-studied and wide class of quantitative functions, we establish that automata with monitor counters and nested weighted automata are equivalent. We study for the first time such quantitative automata under probabilistic semantics. We show that several problems that are undecidable for the classical questions of emptiness and universality become decidable under the probabilistic semantics. We present a complete picture of decidability for such automata, and even an almost-complete picture of computational complexity, for the probabilistic questions we consider.

Introduction

In the world of formal verification, traditional methods usually ask Boolean, worst-case questions: "Can this system ever fail?" or "Is it always safe?" However, in real-world applications, we often care about numerical performance and averages, such as expected power consumption or average response time.

A recent study by Krishnendu Chatterjee, Thomas A. Henzinger, and Jan Otop explores these questions using powerful mathematical models. Their research reveals a surprising finding: some problems that are mathematically impossible to solve in a "worst-case" scenario become perfectly manageable when analyzed through the lens of the "average case" using probabilistic semantics.

Quantitative Models: NWA and Monitor Counters

Traditional weighted automata are often too simple to express complex properties like the average response time between a request and a grant. To address this, researchers developed more expressive models: Nested Weighted Automata (NWA) and Automata with Monitor Counters.

An example of a quantitative automaton with states q0 through q3 and transitions labeled with counter update tuples.

As shown in Figure 2, these automata utilize states and transitions labeled with tuples that track quantitative metrics. The authors establish a formal equivalence between these two frameworks, proving they represent the same class of quantitative specifications. However, these models are so expressive that basic classical questions—such as whether there exists any sequence of events where the cost is below a threshold—are often undecidable.

The Shift to Probabilistic Semantics

This paper shifts the perspective from looking for the existence of a single "bad" path (classical semantics) to observing a system running in a stochastic environment modeled by a Markov chain. This allows researchers to ask probabilistic questions: "What is the expected value of the metric?" or "What is the probability the metric stays below a threshold?"

The authors employ several key theoretical techniques to bridge this gap:

  • Probabilistic Reduction: For deterministic NWAs, they show that nesting can be "collapsed." By replacing the invocation of a "slave" automaton with its expected value, they reduce a complex nested problem to a simpler, non-nested weighted automaton problem.
  • Limit Analysis: They analyze how long-run averages (LimAvg) and extreme values (LimSup/LimInf) behave over infinite runs in a Markov chain, utilizing the property that in a strongly connected component, almost all paths eventually yield the same value.

Key Insights and Results

The most striking insight is the "Decidability Flip" between classical and probabilistic settings. For many functions where the classical "emptiness" problem is undecidable, the probabilistic "expected value" problem is solvable in Polynomial Time (PTIME).

Complexity Map

The paper provides a comprehensive map of computational complexity for these models:

  • LimAvg, LimInf, and LimSup: For deterministic models, expected value and distribution questions are in PTIME.
  • Inf and Sup Functions: These are slightly harder (#P-hard) but still decidable in Exponential Time.
  • The Determinism Barrier: This "easiness" mostly applies to deterministic automata. For non-deterministic models, the problems remain undecidable because the automaton can effectively "see the future" to make optimal choices, breaking the standard Markov chain analysis.

Conclusion and Future Work

By showing that monitor counters and nested weighted automata are equivalent, the authors demonstrate a robust class of quantitative properties that are expressive enough for real-world use while remaining mathematically structured.

However, challenges remain. The undecidability of non-deterministic models is a significant hurdle for verifying systems where the system itself makes choices alongside a random environment. Additionally, there are still gaps between known lower and upper bounds for certain distribution questions, and the expected value for the specific (Sup; Sum+) model remains an open problem. Future research may focus on optimizing how these algorithms scale with the size of the system model in parametric complexity studies.

Summary updated

BibTeX
@inproceedings{chatterjee2016quantitative,
  author = {Krishnendu Chatterjee and Thomas A. Henzinger and Jan Otop},
  title = {{Quantitative Automata under Probabilistic Semantics}},
  booktitle = {Logical},
  year = {2016},
  url = {https://openreview.net/forum?id=Wu2gJSwAiM},
}
Figure