Streaming Multi-Context Systems

Minh Dao-Tran, Thomas Eiter

Introduction

Knowledge Representation often relies on Multi-Context Systems (MCS) to integrate diverse logical frameworks—such as relational databases, fuzzy logic controllers, and Answer Set Programming (ASP) solvers—into a unified reasoning engine. Traditionally, these models assume a static environment where an "equilibrium" state (where all contexts agree) is reached instantaneously. However, modern AI applications, such as autonomous warehouse robotics, operate in dynamic environments where data arrives as continuous streams and communication is inherently asynchronous.

This paper introduces Streaming Multi-Context Systems (sMCS), a formal framework designed to handle the complexities of real-time, distributed reasoning. By accounting for computation and transfer delays, sMCS ensures that heterogeneous agents can maintain "local stability" even when the world moves faster than they can think.

The sMCS Framework

The authors extend the existing Managed Multi-Context Systems (mMCS) by introducing four key innovations to handle temporal and asynchronous data:

  1. Streaming Bridge Rules: These rules incorporate "window atoms" (borrowed from the LARS framework), allowing contexts to reason over temporal segments of a stream. For example, a rule might trigger only if a path has been observed as "blocked" consistently for the last 3 seconds.
  2. Run-based Semantics: Rather than seeking a single global equilibrium, sMCS defines "runs" — sequences of system states that explicitly model transfer time (latency) and computation time (processing duration).
  3. Execution Policies: Contexts can be configured to either ignore incoming data while busy or restart their reasoning process to incorporate the latest information.
  4. Feedback Equilibria: To prevent infinite loops or oscillations in asynchronous communication, this mechanism allows strongly connected components of the system to reach internal stability before propagating results to the rest of the network.
Figure 3: Architecture of an sMCS showing bridge rules and dependencies between planning and monitoring contexts.

Case Study: The Robot Scenario

To demonstrate the framework, the authors utilize a synthetic Robot Scenario. In this benchmark, two robots ($R_1$ and $R_2$) navigate a grid to deliver packages to destinations $D_1$ and $D_2$. The environment is dynamic; paths can become "crowded" based on real-time sensor data, requiring the robots to update their internal maps and coordinate their movements.

Figure 1: The synthetic robot scenario grid, featuring robots R1 and R2 navigating toward destinations D1 and D2.

This scenario highlights the "Asynchrony Challenge": because of transfer delays, one robot's view of the other's position is always slightly outdated. The sMCS framework provides the formal tools to ensure these robots can still coordinate effectively despite this lag, using feedback as a stabilizer for their shared knowledge.

Complexity and Results

The paper provides a rigorous theoretical analysis of reasoning within sMCS:

  • Ad-hoc Query Answering: Determining the truth of a fact at a specific time is NP-complete, which is consistent with other powerful logical frameworks.
  • Prediction: Forecasting future states is PSpace-complete, as it requires accounting for all possible trajectories of the input streams.
  • Tractability: For deterministic systems with small time windows, reasoning can be performed in Polynomial Time (P), suggesting that sMCS is viable for practical real-time applications.

Conclusion

Streaming Multi-Context Systems bridge the gap between high-level logical reasoning and the low-level reality of asynchronous data streams. While the framework faces challenges regarding undecidability in unrestricted cases and the need for more efficient "constructive" algorithms for feedback equilibria, it establishes a robust foundation for the next generation of distributed, intelligent systems. Future work will focus on full-scale implementation on top of existing distributed MCS platforms.

Summary updated

BibTeX
@inproceedings{daotran2017streaming,
  author = {Minh Dao-Tran and Thomas Eiter},
  title = {{Streaming Multi-Context Systems}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/139},
}
Figure