🤖 AI Summary
Computing the exact expected modularity in probabilistic networks is computationally intractable and inefficient due to exponential enumeration of possible worlds. To address this, we propose PWP<sup>EMOD</sup> and APWP<sup>EMOD</sup>, the first scalable algorithms for exact expected modularity computation. Our approach innovatively groups possible worlds by modular structure—leveraging the modularity distribution—thereby avoiding exhaustive enumeration and drastically reducing the number of probability summations. The algorithms integrate probabilistic graphical models, dynamic programming, and combinatorial optimization techniques. Extensive evaluation on diverse real-world and synthetic datasets demonstrates that our methods achieve up to three orders-of-magnitude speedup over state-of-the-art baselines, with absolute error under 0.5%. They scale to networks with tens of thousands of edges and enable real-time probabilistic community assessment—overcoming the long-standing scalability bottleneck in probabilistic community detection evaluation.
📝 Abstract
Modularity maximization is a widely used community detection technique for deterministic networks. However, little research has been performed to develop efficient modularity calculation algorithms for probabilistic networks. Particularly, it is challenging to efficiently calculate expected modularity when all possible worlds are considered. To address this problem, we propose two algorithms, namely $mathrm{PWP}^{mathrm{EMOD}}$ and $mathrm{APWP}^{mathrm{EMOD}}$, partitioning the possible worlds based on their modularities to significantly reduce the number of probability calculations. We evaluate the accuracy and time efficiency of our algorithms through comprehensive experiments.