In traditional formal verification, we ask binary questions: Does this program crash? Does the controller eventually reach the goal state? These are qualitative properties—they are either true or false. However, modern systems require quantitative answers. We don't just want to know if a robot reaches its destination; we want to know if it does so while minimizing battery consumption, or if its average latency stays below a specific threshold.
This shift from "yes/no" to "how much" introduces a significant computational hurdle. Comparing the performance of two systems—known as the quantitative inclusion problem—traditionally requires complex numerical analysis that is difficult to scale. Suguman Bansal, Swarat Chaudhuri, and Moshe Y. Vardi have addressed this by introducing Comparator Automata, a framework that translates numerical comparisons into the language of finite-state machines.
The Problem of Discounted Sums
A central metric in quantitative verification is the discounted sum. In this model, rewards or costs incurred in the future are worth less than those incurred now, weighted by a discount factor $\lambda$. For an infinite sequence of weights $w_0, w_1, w_2, \dots$, the value is calculated as:
$$V = \sum_{i=0}^{\infty} \frac{w_i}{\lambda^i}$$
This model is ubiquitous in reinforcement learning, economics, and robotics. The challenge arises when we want to compare two such sequences produced by different system behaviors. If system $A$ produces sequence $w$ and system $B$ produces sequence $w'$, we need to determine if the discounted sum of $w$ is always less than or equal to the discounted sum of $w'$.
Turning Numbers into Languages
The core intuition behind Comparator Automata in Quantitative Verification is to treat the comparison of two infinite sequences as a language recognition problem.
Imagine you are comparing two numbers digit-by-digit. In standard base-10 arithmetic, you can often decide which number is larger by looking at the most significant digits. Comparator automata apply a similar logic to infinite sequences. A comparator automaton is an $\omega$-automaton that accepts a pair of sequences $(w, w')$ if and only if the discounted sum of $w$ relates to $w'$ in a specific way (e.g., $\leq$ or $\geq$).
By representing this relationship as an automaton, the researchers effectively "compiled away" the arithmetic. Verification then becomes a standard automata-theoretic operation, such as checking for language inclusion or emptiness. This unification allows for orders-of-magnitude speedups because it avoids the bottleneck of separating structural system analysis from numerical cost analysis.
The Power of Integer Discount Factors
A striking discovery in this field is the "phase transition" that occurs based on the value of the discount factor $\lambda$.
As shown in Comparator automata in quantitative verification (2022), a comparator for discounted-sum functions is finite-state if and only if the discount factor is an integer.
When $\lambda$ is an integer, the comparison relation is $\omega$-regular. This is because integer bases allow for a finite "carry" or state to track the difference between two sequences as they are processed. This regularity collapses the complexity of the quantitative inclusion problem from previously known exponential-time (EXPTIME) bounds down to PSPACE-complete. This puts quantitative verification on the same complexity footing as standard qualitative verification.
The Rational Frontier
While the integer case is well-understood, many real-world applications—particularly in economics and reinforcement learning—rely on rational discount factors (like $\lambda = 1.5$ or $\lambda = 0.9$). Here, the mathematical landscape becomes much more treacherous.
Research by Thomas A. Henzinger, Udi Boker, and Jan Otop in The Target Discounted-Sum Problem highlights that for non-integer rational factors, the comparison relation is generally not $\omega$-regular. This is a deep problem in number theory: representations in non-integral bases do not follow the same positional arithmetic rules we use for integers.
Currently, the decidability of reachability and inclusion for arbitrary rational discount factors remains an open question. While we can solve these problems for "eventually-periodic" sequences in PSPACE, a universal solution for all infinite sequences under rational discounting is still out of reach.
From Optimization to Satisficing
The efficiency of comparator automata has also enabled a shift in how we design systems. Instead of obsessing over finding the absolute optimal strategy—which is often computationally prohibitive—researchers like Krishnendu Chatterjee suggest focusing on satisficing.
In On Satisficing in Quantitative Games, the goal is to find a strategy that ensures a value is "good enough" (e.g., energy use $\leq K$). By using comparator automata to model these "good enough" thresholds, researchers can synthesize strategies for multi-agent systems that balance individual goals with cooperative stability, as explored in Multi-Agent Systems with Quantitative Satisficing Goals.
By treating numbers as strings and comparisons as transitions, comparator automata have turned a difficult numerical problem into a manageable structural one, providing a rigorous foundation for the next generation of resource-aware autonomous systems.