The complexity of approximations for epistemic synthesis (extended abstract)

Xiaowei Huang, Ron van der Meyden · DOI

TL;DR

Synthesizing multi-agent protocols based on what agents know (epistemic synthesis) is notoriously difficult due to the circular dependency between knowledge and actions. This paper introduces an ordered approximation framework that breaks this circularity, transforming an intractable synthesis problem into a sequence of efficient, polynomial-time (PTIME) model checking problems.

What Problem Does This Paper Address?

Imagine programming autonomous robots or distributed systems not by telling them exactly what moves to make, but by specifying what they must know before acting (e.g., "Only cross the intersection if you know it is safe"). This paradigm, called Knowledge-Based Programming (KBP), yields highly optimized and environment-independent protocols.

However, automatically generating concrete code from these high-level epistemic specifications is computationally brutal. It suffers from a nasty circularity: an agent's knowledge depends on what actions everyone takes, but those actions are determined by what the agents know. Deciding if a valid implementation even exists is NP-hard in the simplest cases and NEXPTIME-complete in realistic, succinct environments. This paper tackles the challenge of making epistemic protocol synthesis computationally practical.

Figure 1: Knowledge-based program and environment

Methods

The authors build upon a relaxation of KBPs called sound local proposition epistemic specifications. Instead of requiring necessary and sufficient conditions for an action (which causes the intractability), they only require sufficient conditions. This guarantees that a valid implementation always exists, though finding a good (optimal) one is still hard.

To solve this efficiently, the paper introduces two key innovations:

  1. Ordered Semantics: The template variables (the "holes" in the protocol where knowledge guards need to be inserted) are sorted in a specific order. The system synthesizes implementations sequentially rather than all at once.
  2. Iterative Approximations: The final system is approximated as a sequence of increasingly precise interpreted systems ($I_0 \supseteq I_1 \supseteq \dots \supseteq I_k$). The choices made for earlier variables are fed back into the loop to refine the system model, providing better approximations for later variables.

The authors evaluate a spectrum of eight different approximation schemes based on whether they assume perfect or imperfect information, perfect or imperfect recall, and whether they enforce substitution consistency (ensuring the approximation strictly mirrors a valid protocol structure).

Datasets

Not discussed in the paper. As a theoretical paper focused on formal verification and complexity analysis, it evaluates its concepts using abstract mathematical models and illustrative examples (such as robot motion planning and distributed coordination) rather than empirical datasets.

Key Insights and Ideas

  • Breaking the Circularity: By ordering the synthesis of knowledge guards, the authors decouple the simultaneous dependency between knowledge and action, allowing the system to iteratively converge on a solution.
  • The Tractability Frontier: The authors map out exactly which assumptions make approximation easy or hard. Enforcing "substitution consistency" while dealing with imperfect information makes the problem coNP-hard. However, relaxing this consistency requirement or assuming perfect information/recall during the approximation phase drops the complexity down to PTIME.
  • Two Optimal Paths: The paper identifies a clear trade-off and highlights two maximal PTIME approximation schemes:
  • $I^\top$, which over-approximates by relaxing protocol structure constraints.
  • $I^{pi,pr,sc}$, which maintains strict protocol structure but temporarily grants agents perfect information and perfect recall during the synthesis phase.

Key Results

  • Hardness Proofs: The paper proves that standard KBP implementation existence is NP-hard even for a single agent in an explicitly listed environment (Theorem 1).
  • Intractable Approximations: Three approximation schemes that closely mirror standard KBP semantics ($I_{ii,ir,sc}$, $I_{ii,pr,sc}$, and $I_{pi,ir,sc}$) are proven to be coNP-hard (Theorem 4).
  • Tractable Approximations: Six approximation schemes are proven to have PTIME environment complexity (Theorem 5). This means they can be computed efficiently relative to the size of the state space, making automated synthesis practically viable.

Limitations and Future Work

While the paper successfully identifies PTIME approximation schemes, it does so under the assumption of an explicit state representation (listing out every single possible state). In real-world applications, systems are usually represented succinctly (symbolically), where even PTIME algorithms can hit a state-explosion wall.

Additionally, the authors note that it remains an open question how the two best PTIME approximation schemes ($I^\top$ and $I^{pi,pr,sc}$) differ regarding the actual quality or optimality of the code they generate. Future work will focus on implementing these algorithms using symbolic verification techniques (like BDDs) and evaluating them on realistic benchmarks.

Summary updated

BibTeX
@inproceedings{huang2016complexity,
  author = {Xiaowei Huang and Ron van der Meyden},
  title = {{The complexity of approximations for epistemic synthesis (extended abstract)}},
  booktitle = {Electronic},
  year = {2016},
  doi = {10.4204/eptcs.202.9},
}
Figure