Skip to main content
QUICK REVIEW

[Paper Review] Bidirectional Nested Weighted Automata

Krishnendu Chatterjee, Thomas A. Henzinger|arXiv (Cornell University)|Jan 1, 2017
Formal Methods in VerificationComputer Science8 references2 citations
TL;DR

This paper introduces bidirectional nested weighted automata (NWA), extending forward-only NWA to allow slave automata to process input in both forward and backward directions. The framework enables expressive specification of quantitative properties—such as average energy levels and data freshness—unreachable with unidirectional NWA, while preserving decidability and complexity bounds matching the original NWA model.

ABSTRACT

Nested weighted automata (NWA) present a robust and convenient automata-theoretic formalism for quantitative specifications. Previous works have considered NWA that processed input words only in the forward direction. It is natural to allow the automata to process input words backwards as well, for example, to measure the maximal or average time between a response and the preceding request. We therefore introduce and study bidirectional NWA that can process input words in both directions. First, we show that bidirectional NWA can express interesting quantitative properties that are not expressible by forward-only NWA. Second, for the fundamental decision problems of emptiness and universality, we establish decidability and complexity results for the new framework which match the best-known results for the special case of forward-only NWA. Thus, for NWA, the increased expressiveness of bidirectionality is achieved at no additional computational complexity. This is in stark contrast to the unweighted case, where bidirectional finite automata are no more expressive but exponentially more succinct than their forward-only counterparts.

Motivation & Objective

  • To extend nested weighted automata (NWA) to support bidirectional processing of input words in both forward and backward directions.
  • To demonstrate that bidirectional NWA can express natural quantitative properties—like average energy level and data-consistency—that are not expressible by forward-only NWA.
  • To establish the decidability and complexity of fundamental problems (emptiness and universality) for bidirectional NWA.
  • To show that the computational complexity of these problems remains within the same complexity classes as for forward-only NWA, despite increased expressiveness.

Proposed method

  • Proposes bidirectional NWA as an extension of standard NWA, allowing slave automata to run in both forward and backward directions on finite subwords.
  • Defines a master automaton that invokes slave automata at transitions, with each slave computing a value over a finite subword using a finite-word value function (e.g., sum, min, max).
  • Introduces a successor relation R on k-configurations to model consistent transitions between master and slave automata states, accounting for both forward and backward walks.
  • Uses weighted reachability over the k-configuration graph to check conditions for emptiness and universality, with complexity depending on weight representation (unary vs. binary) and k (constant vs. unary).
  • Applies Dijkstra’s algorithm for polynomial-time computation when weights are in binary and large, and logarithmic-space reachability when weights fit in logarithmic space.
  • Defines a presuccessor relation R to characterize valid state transitions, ensuring consistency between master and slave automata behavior, including termination and acceptance conditions.

Experimental results

Research questions

  • RQ1Can bidirectional NWA express quantitative properties that are not expressible by forward-only NWA?
  • RQ2Is the increased expressiveness of bidirectional NWA accompanied by a blow-up in computational complexity for fundamental decision problems?
  • RQ3What is the complexity of the emptiness and universality problems for bidirectional NWA with limit-average master and finite-word value functions for slaves?
  • RQ4How does the complexity depend on the representation of weights (unary vs. binary) and the width k of the automaton?
  • RQ5Can the framework be used to naturally specify properties like average energy level and data freshness in concurrent systems?

Key findings

  • Bidirectional NWA can express the average energy level property, which is not expressible by forward-only NWA, by using backward-walking slave automata with sum value functions.
  • The data-consistency property (DCP), measuring average freshness of reads and writes relative to commits, is expressible only with bidirectional NWA and not with unidirectional NWA in either direction.
  • The emptiness problem for (LimAvg; Sum)-automata with bidirectional slave automata is NLogSpace-complete for constant k and unary weights, PTime for constant k and binary weights, and PSpace-complete when k is given in unary.
  • The complexity of emptiness and universality remains within the same complexity classes as for forward-only NWA, indicating no additional computational cost for increased expressiveness.
  • The framework achieves strict generalization over both forward-only and backward-only NWA, with incomparable expressiveness between the two unidirectional subclasses.
  • The successor relation over k-configurations, derived from a presuccessor relation R, enables efficient verification via reachability analysis, with logarithmic-space or polynomial-time computation depending on input size and weight encoding.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.