Formal Verification of Parameterised Neural-symbolic Multi-agent Systems

Panagiotis Kouvaros, Elena Botoeva, Cosmo De Bonis-Campbell, Lin Li, Xin Zhao, Ah-Hwee Tan

TL;DR

This paper introduces PANoS, the first formal framework capable of verifying multi-agent systems (MAS) that feature both an unbounded number of agents and neural network-based perception. By using a novel "zero-one" abstraction, the authors reduce the impossible task of checking infinite agent configurations to a finite, solvable problem, allowing researchers to mathematically guarantee safety and identify the exact "emergence thresholds" required for collective behaviors to succeed.

What Problem Does This Paper Address?

As multi-agent systems move from labs to the real world—think robot swarms, autonomous traffic, or IoT networks—two major challenges for safety verification have emerged:

  1. Parameterisation: We often don't know exactly how many agents will be in a system at runtime. Traditional verification requires a fixed number (e.g., "verify 5 drones"), but we need to know the system works for any number of drones.
  2. Neural-Symbolic Integration: Modern agents often use "black-box" neural networks for perception (seeing the world) paired with symbolic logic for decision-making. Verifying these hybrid systems is notoriously difficult because neural networks operate in a continuous, high-dimensional space that doesn't play well with discrete logic.

Existing methods could handle one or the other, but not both. This paper bridges that gap, providing a way to verify systems that are both "unbounded" and "neural-symbolic."

Methods

The authors propose a framework called Parameterised Neural-symbOlic interpreted Systems (PANoS). Their approach relies on several key technical innovations:

  • The PANoS Model: Agents are defined by a template consisting of a neural network perception unit and a traditional protocol for action selection.
  • bICTL (Bounded Indexed Computation Tree Logic): A specialized logic used to write specifications. It allows researchers to ask questions like, "Is there a path where at least two agents remain 'alive' after $k$ steps?"
  • Zero-One Abstraction: This is the "secret sauce." To avoid checking an infinite number of agents, the authors construct an abstract model. This model contains a small number of concrete agents plus a single "zero-one agent" that represents the collective behavior of an arbitrary number of other agents.
  • Simulation Relations: The authors mathematically prove that if a safety property holds in this small, abstract model, it is guaranteed to hold in the real system with any number of agents (soundness), and vice versa (completeness).

Datasets

The framework was evaluated using a custom-built Guarding Game, a classic social dilemma (Collective Risk Dilemma).

  • The Scenario: A colony of agents must be guarded. Guarding costs health; resting restores it. If no one guards, everyone loses health.
  • Training: The agents' perception units were trained using Deep Q-Learning (RL) to decide whether to "guard" or "rest" based on their health levels.
  • Tools: The verification was implemented using the VENMAS toolkit and the Gurobi optimization solver to handle the underlying Mixed-Integer Linear Programming (MILP) problems.

Key Insights and Ideas

  • The Power of Abstraction: You don't need to simulate a thousand robots to prove they won't collide. By abstracting the "rest of the swarm" into a single representative entity, the complexity of the proof becomes independent of the total population size.
  • Emergence Thresholds: One of the most practical outputs of this method is the "emergence threshold." The system can automatically calculate the minimum number of agents needed for a property to emerge. For example, it might prove that a colony cannot survive with 2 agents, but is guaranteed to survive with 3 or more.
  • Symmetry is Key: The method exploits the fact that agents are "homogeneous" (built from the same template). This symmetry allows the verifier to check properties for a few representative agents and generalize the results to the entire group.

Key Results

  • Verification of Survival: The authors successfully verified existential properties (e.g., "Can the colony survive for $k$ steps?") and universal properties (e.g., "Will the colony always survive?").
  • Threshold Identification: In the Guarding Game, the verifier identified that $n=3$ was the emergence threshold for survival over longer time horizons. With only 2 agents, the "social dilemma" led to colony collapse; with 3, a stable guarding rotation became possible.
  • Scalability: While verifying concrete models became exponentially slower as more agents were added (e.g., jumping from 0.09s for 2 agents to 61s for 5 agents), the abstraction method provided a path to verify the system for any $n$ without that exponential blowup.

Limitations and Future Work

  • Temporal Depth: The logic (bICTL) is currently "bounded," meaning it can only verify properties up to a fixed number of time steps ($k$). It cannot yet prove properties that must hold for an infinite duration.
  • Negation Support: The current implementation (using VENMAS) has limited support for negation in formulas, which can restrict the complexity of the properties being checked.
  • Strategic Reasoning: The authors aim to extend this to "strategic" verification—not just asking if a state is reachable, but if a group of agents has a strategy to reach a goal regardless of what others do.

Summary updated

BibTeX
@inproceedings{kouvaros2024formal,
  author = {Panagiotis Kouvaros and Elena Botoeva and Cosmo De Bonis-Campbell and Lin Li and Xin Zhao and Ah-Hwee Tan},
  title = {{Formal Verification of Parameterised Neural-symbolic Multi-agent Systems}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=SpItES43X4},
}
Figure