Abstract
Nested Weighted Automata (NWA) provide a robust framework for specifying quantitative properties of systems. This paper extends the NWA model by introducing bidirectionality, allowing "slave" automata to process input words both forward and backward. This extension significantly increases expressive power—enabling the description of properties like "average workload"—while maintaining the same computational complexity as traditional forward-only models.
Introduction
In the field of formal verification, quantitative specifications are essential for measuring system performance metrics, such as energy consumption or response times, rather than simple boolean correctness. Nested Weighted Automata (NWA) were designed for this purpose, consisting of a "master" automaton that runs over an infinite word and "slave" automata invoked at specific steps to calculate values over finite subwords.
However, original NWAs were strictly forward-only. This limitation created a significant gap: they could not easily express properties dependent on the past, such as the distance to a preceding event. To address this, the authors introduce bidirectionality, allowing slave automata to "walk" backward toward the beginning of a word to gather necessary context for modeling real-world scenarios like data consistency and energy levels.
Methodology
The authors extend the NWA framework by defining Bidirectional Slave Automata. In this architecture:
- The Master: Continues to run forward over an infinite sequence of events.
- The Slaves: When triggered by the master, a slave can be designated as "forward-walking" (moving toward the future) or "backward-walking" (moving toward the past).
- Value Aggregation: The slave returns a value (e.g., a sum of weights) to the master, which then aggregates these values using functions like "limit average" to produce a final score for the infinite run.
To prove the model's decidability, the authors developed reduction techniques including configuration graphs and the concept of "barriers." For finite-width cases—where only a limited number of slaves are active at once—they prove the existence of specific points in a word where all active slaves must terminate, allowing infinite words to be decomposed for analysis.
Key Insights and Theoretical Results
A primary finding of this research is the "free lunch" of complexity. Usually, adding features to a model increases the difficulty of solving it. Surprisingly, for NWAs, bidirectionality adds significant expressive power without increasing the computational complexity of fundamental problems like "emptiness" (checking if any word has a value below a threshold).
As shown in the figure above, bidirectionality allows for more natural modeling of complex properties. While Average Response Time (ART) can be handled by forward-walking slaves, Average Workload (AW)—defined as the average number of pending requests at any given time—is trivial to express with backward-walking slaves but mathematically impossible for forward-only models. The authors formally prove that forward-only and backward-only NWAs have incomparable expressive power.
The paper establishes a comprehensive complexity landscape:
- General Case: For standard value functions like Min, Max, or Bounded Sum, the emptiness problem is PSpace-complete, matching the forward-only case.
- Positive Sum: If slave automata use positive sums, the problem is ExpSpace-decidable for finite-width automata.
- Bounded Width: If the number of active slaves is strictly bounded, the complexity drops to PTime (for binary weights) or NLogSpace (for unary weights).
Conclusion and Future Work
This work demonstrates that bidirectionality is a powerful and computationally efficient addition to the quantitative verification toolkit. While the authors have covered major value functions and established complexity bounds, future work remains in exploring alternative functions like "discounted sums" and developing a corresponding quantitative logic that matches the power of bidirectional NWAs. Additionally, exploring models without the "finite-width" restriction presents a significant theoretical challenge for future exploration.
Summary updated