Abstract
Traditional formal methods excel at verifying boolean properties, but modern systems increasingly demand quantitative guarantees regarding energy consumption, latency, and reliability. This paper presents a novel framework based on "comparator automata" that unifies structural and numerical analysis. By reducing numerical cost comparisons to pure automata operations, this approach overcomes the scalability limits of traditional multi-phase solvers. We demonstrate that for the discounted-sum cost model, this framework achieves orders-of-magnitude speedups and resolves long-standing complexity questions.
Introduction
In the verification of safety-critical systems, the industry standard has long focused on boolean functional properties—determining whether a system will or will not reach an undesirable state. However, as we move toward autonomous vehicles, IoT devices, and complex communication protocols, the question is no longer just "does it work?" but "how well does it work?"
Quantitative verification seeks to answer these questions by measuring performance metrics like battery usage or response time. Despite its importance, the field has been hindered by two primary bottlenecks. First, the lack of generalizability: different cost models (such as discounted-sum or limit-average) historically required bespoke, non-transferable algorithms. Second, the "separation-of-techniques" problem: current solvers typically split verification into a structural phase (graph theory) and a numerical phase (linear programming). This separation prevents simultaneous optimization and often leads to exponential state blow-up, rendering large-scale systems unverifiable.
The Comparator Automata Framework
To bridge the gap between structural and numerical reasoning, this research introduces Comparator Automata. The core insight is to treat numerical comparison not as a post-processing calculation, but as a language recognition problem.
Instead of calculating the exact numerical cost of two system runs and comparing them using linear programming (LP), a comparator automaton reads the weight sequences of both runs synchronously. The automaton is designed to accept a pair of sequences if and only if the cost of one satisfies a specific relation (e.g., is less than or equal to) relative to the other. By encoding the numerical logic directly into the automaton's transitions, the entire quantitative verification problem is reduced to a standard qualitative problem, such as language inclusion or emptiness checking. This allows both structural and numerical constraints to be solved in tandem using highly optimized automata-theoretic tools.
Algorithmic Breakthroughs in Discounted-Sum Models
The research focuses specifically on the discounted-sum (DS) cost model, a staple in economics and reinforcement learning. This focus led to two major theoretical and practical breakthroughs:
- Complexity Resolution: A 15-year open question was resolved by proving that the discounted-sum comparator is $\omega$-regular if and only if the discount factor is an integer. This established that DS inclusion for integer discount factors is PSPACE-complete, providing a definitive complexity bound for the field.
- The Safety Pivot: While initial theories suggested using complex Büchi automata, the author discovered that DS comparator languages are actually safety or co-safety languages. This is a critical algorithmic pivot; it allows the use of simple subset construction (on-the-fly) rather than the notoriously expensive Büchi complementation. This avoids the $2^{O(n \log n)}$ state blow-up, reducing it to a more manageable $2^{O(n)}$ complexity.
Empirical Evaluation
To evaluate the framework, the author developed QuIPFly (for quantitative inclusion) and CompSatisfice (for quantitative games). Testing was conducted using both synthetic random graphs and 291 benchmarks derived from real-world temporal specifications in reactive synthesis literature.
Quantitative Inclusion
The optimized comparator tool, QuIPFly, was compared against the traditional DetLP approach (determinization followed by linear programming). The results were definitive: QuIPFly outperformed the traditional approach by 2 to 4 orders of magnitude in runtime. While DetLP failed on over 50% of small input instances due to memory overflow, QuIPFly solved all benchmarks within a fraction of the allocated time.
Quantitative Games
In the context of quantitative games—where the goal is to find a strategy that keeps costs below a certain threshold—the comparator-based approach demonstrated superior scalability. The tool CompSatisfice scaled linearly in practice, successfully processing game graphs with over 50,000 states. In contrast, standard Value Iteration tools, which attempt to find absolute optimal values rather than "satisficing" thresholds, scaled exponentially and timed out on graphs with as few as 200 states.
Conclusion and Future Work
The introduction of comparator automata represents a paradigm shift in quantitative verification. By transforming numerical comparisons into automata membership problems, the framework leverages decades of optimization in qualitative verification to solve previously intractable quantitative problems.
While the current exact method requires integer discount factors, future work aims to extend these techniques to non-integer rational factors through approximation algorithms. Furthermore, the integration of these automata with symbolic methods (like BDDs or SAT solvers) and their application to "white-box" Reinforcement Learning offers a promising path toward providing rigorous safety and performance guarantees for AI-driven controllers in safety-critical environments.
Summary updated