Resolving Nondeterminism with Randomness

Thomas A. Henzinger, Aditya Prakash, K. S. Thejaswini

TL;DR

This paper introduces a new framework for bridging the gap between deterministic and nondeterministic automata by using randomness to resolve nondeterministic choices. The authors define new classes of automata—Stochastically Resolvable (SR) and Memoryless-Adversarially Resolvable (MA)—showing that adding a simple "coin flip" allows for much more succinct representations of infinite-word languages without the massive state-space blowup of full determinization.

What Problem Does This Paper Address?

In the world of computer science theory, we often work with automata—mathematical machines that read strings of symbols. For infinite strings (like the execution trace of a software system), Nondeterministic Büchi Automata (NBA) are incredibly powerful and succinct, but they have a major flaw: they are "hard" to use for reactive synthesis or verification. Because they can make nondeterministic "guesses" about the future, an algorithm using them must account for every possible future path.

The standard solution is determinization, but this can cause an exponential explosion in the number of states (e.g., a 10-state NBA might become a 1,000-state deterministic one). A middle ground exists called History-Deterministic (HD) automata, which can resolve nondeterminism "on-the-fly" based only on the past. However, HD automata are still defined against a highly adversarial environment. This paper asks: What if we allow the machine to use randomness (stochasticity) to make its choices? And what if the environment isn't actively trying to "trick" our resolver?

Methods

The authors define several new classes of automata based on how they resolve nondeterminism:

  • Adversarial Resolvability: The input is given by an adversary who sees the resolver's choices and tries to prevent acceptance. The authors prove this is equivalent to the existing class of HD automata.
  • Stochastic Resolvability (SR): The adversary "pre-commits" to an infinite word. The resolver must produce an accepting run with probability 1 (almost-surely) using memory and randomness.
  • Memoryless Resolvers (MA and MR): These are "weaker" versions where the resolver cannot use memory—it must decide its next transition based only on the current state and the current input letter, potentially using a probability distribution (a coin flip).

To analyze these, the authors use game theory (specifically 2-token games) and Markov Decision Processes (MDPs). They prove complexity bounds by reducing these problems to solving MDPs with complex "Muller" winning conditions.

Datasets

Not discussed in the paper. As a theoretical study in formal languages and automata theory, the work relies on mathematical proofs and specific "gadget" language families (like the Kuperberg-Skrzypczak languages) rather than empirical datasets.

Key Insights and Ideas

  • Randomness as a Substitute for Memory: One of the most striking insights is that randomness can sometimes replace complex memory. For coBüchi automata, any stochastically resolvable machine can be converted into a memoryless-adversarial one (MA) without adding any new states.
  • The Power of the Adversary: There is a fundamental "gap" between an adversary who reacts to your moves (Adversarial) and one who picks a word at the start (Stochastic). This gap allows SR automata to be exponentially more succinct than HD ones.
  • The Landscape of Nondeterminism: The paper provides a "fine gradation" between deterministic and nondeterministic machines. For simple "Safety" automata, all these new classes collapse into one. But for more complex "Büchi" or "Parity" conditions, they form a distinct hierarchy (see Figure 2 in the paper).
  • Checking "Almost-Sure" is Hard: While we might want to verify if a specific random strategy always works, the authors show that for Büchi conditions, checking if a resolver is "almost-sure" is actually undecidable.

Key Results

  • Succinctness: They prove that SR Büchi automata can be exponentially more succinct ($2^n$ states smaller) than HD automata for certain languages.
  • Expressivity: Despite their succinctness, SR parity automata are exactly as expressive as deterministic ones—they don't recognize "more" languages, they just do it more efficiently.
  • Complexity of Recognition:
    • Deciding if an automaton is MA (Memoryless Adversarial) is NP-complete.
  • Deciding if a Safety automaton is SR is in P (polynomial time).
  • Deciding if a Reachability automaton is SR is PSPACE-complete.

Limitations and Future Work

The biggest hurdle identified is undecidability. Because it's impossible to algorithmically check if a general resolver is "almost-sure" for Büchi conditions, building automated tools for these classes is tricky.

The authors suggest several open questions for future research:

  1. Is it decidable to check if a general Büchi automaton belongs to the SR class at all?
  2. Can we always trade the exponential memory required for HD parity automata for simple randomness (MA) without increasing the state count?
  3. How do these classes perform in practical "Good-for-MDP" scenarios, such as reinforcement learning?

Summary updated

Abstract

In automata theory, while determinisation provides a standard route to solving many common problems in automata theory, some weak forms of nondeterminism can be dealt with in some problems without costly determinisation. For example, the handling of specifications given by nondeterministic automata over infinite words for the problems of reactive synthesis or runtime verification requires resolving nondeterministic choices without knowing the future of the input word. We define and study classes of $\omega$-regular automata for which the nondeterminism can be resolved by a policy that uses a combination of memory and randomness on any input word, based solely on the prefix read so far. We examine two settings for providing the input word to an automaton. In the first setting, called adversarial resolvability, the input word is constructed letter-by-letter by an adversary, dependent on the resolver's previous decisions. In the second setting, called stochastic resolvability, the adversary pre-commits to an infinite word and reveals it letter-by-letter. In each setting, we require the existence of an almost-sure resolver, i.e., a policy that ensures that as long as the adversary provides a word in the language of the underlying nondeterministic automaton, the run constructed by the policy is accepting with probability 1. The class of automata that are adversarially resolvable is the well-studied class of history-deterministic automata. The case of stochastically resolvable automata, on the other hand, defines a novel class. Restricting the class of resolvers in both settings to stochastic policies without memory introduces two additional new classes of automata. We show that the new automaton classes offer interesting trade-offs between succinctness, expressivity, and computational complexity, providing a fine gradation between deterministic automata and nondeterministic automata.
BibTeX
@inproceedings{henzinger2025resolving,
  author = {Thomas A. Henzinger and Aditya Prakash and K. S. Thejaswini},
  title = {{Resolving Nondeterminism with Randomness}},
  booktitle = {MFCS},
  year = {2025},
  doi = {10.4230/lipics.mfcs.2025.57},
}

Loading related content...

Figure