Probabilistic Bisimulation for Parameterized Anonymity and Uniformity Verification

Chih-Duo Hong, Anthony W. Lin, Philipp Rümmer, Rupak MajumdarIEEE Trans. Software Eng 2025

Introduction: The Challenge of Parameterized Systems

In the realm of formal verification, proving the correctness or security of a system is a well-understood task when the state space is finite and fixed—for instance, a protocol involving exactly three participants. However, real-world cryptographic protocols and randomized algorithms are typically parameterized. They are designed to remain secure regardless of the number of users ($n$), which can be arbitrarily large.

This parameterization introduces a fundamental difficulty: because $n$ is unbounded, the system's state space is effectively infinite. Traditional automated verification techniques often struggle or fail entirely in these scenarios, as the general problem of verifying infinite-state systems is undecidable. This paper presents a novel, fully automated framework to bridge this gap, specifically targeting two vital properties: anonymity and uniformity.

Unifying Anonymity and Uniformity via Bisimulation

Anonymity ensures that an external observer cannot distinguish which participant performed a specific action, while uniformity ensures that a randomized algorithm's output is distributed evenly. Historically, these properties were treated as separate verification challenges requiring distinct mathematical tools.

The authors propose a unified approach by framing both as problems of probabilistic bisimulation. In this context, bisimulation is a formal relation proving that two systems—perhaps a complex real-world protocol and a simple, "perfectly secure" reference model—exhibit identical observable behaviors.

Probabilistic state transitions in parameterized systems, illustrating the complexity of infinite-state models.

To handle the infinite nature of parameterized systems, the authors utilize the First-Order Theory of Regular Structures ($FO_{reg}$). By adopting a "minimal deviation assumption"—where all transition probabilities share a common divisor—they can represent probabilities as integer weights. This allows the system's behavior and the required proofs to be encoded into a decidable logic, making automated reasoning possible.

Automating Proof Synthesis with Active Learning

The core innovation of this work is treating the discovery of a bisimulation proof as a machine learning task. The authors employ Active Automata Learning (specifically the L-star algorithm) to synthesize the proof automatically.

The process functions as a dialogue between two components:

  1. The Learner: This component proposes a candidate bisimulation relation, represented as a Deterministic Finite Automaton (DFA).
  2. The Teacher: Powered by the MONA logic solver, the Teacher checks if the candidate DFA constitutes a valid proof. If the candidate is incorrect, the Teacher identifies a counterexample—a specific execution trace where the bisimulation fails—and passes it back to the Learner.
The interaction loop between the Learner and the Teacher in the active automata learning framework.

This iterative loop continues until the Learner produces a DFA that the Teacher accepts as a complete proof. This method exploits "weak finiteness": while the parameterized system is infinite, any single instance (e.g., $n=10$) is finite. The learning algorithm generalizes from these finite instances to infer a proof that holds for all $n$.

Experimental Results and Performance

The framework was evaluated on a diverse suite of classic protocols, including the Dining Cryptographers and Crowds protocols for anonymity, and various random walks and RNGs for uniformity.

The results demonstrate that the tool can fully automatically generate regular proofs for systems that previously required intensive manual effort. Verification times were notably efficient:

  • Crowds Protocol: 4 seconds
  • Grades Protocol: 27 seconds
  • Bertrand’s Ballot Theorem: 78 seconds

The primary performance bottleneck was not the logic itself, but the complexity of the proof (the size of the DFA) and the computational overhead of calculating bisimulations for large finite instances during the learning phase. For highly complex state spaces, such as 3D random walks, verification times reached approximately 70 minutes.

Limitations and Future Directions

While powerful, the framework has limitations. Because the general problem is undecidable, the algorithm is "incomplete"—it may fail to find a proof even if one exists. Furthermore, the current implementation relies on strong bisimulation, requiring exact probability matches. This is ideal for perfect anonymity but does not yet account for "approximate" security common in modern cryptography, where small probabilistic leakages are acceptable.

Future work aims to extend this framework to $\epsilon$-bisimilarity, allowing for slight deviations in probability. Additionally, integrating SMT solvers could allow the system to handle more complex data structures beyond regular languages, further expanding the reach of automated formal verification.

Summary updated

BibTeX
@article{hong2025probabilistic,
  author = {Chih-Duo Hong and Anthony W. Lin and Philipp Rümmer and Rupak Majumdar},
  title = {{Probabilistic Bisimulation for Parameterized Anonymity and Uniformity Verification}},
  journal = {IEEE Trans. Software Eng.},
  year = {2025},
}
Figure