Fast computation of von Neumann entropy for large-scale graphs via quadratic approximations

Hayoung Choi, Jinglian He, Hang Hu, Yuanming Shi

TL;DR

Calculating the von Neumann graph entropy (VNGE) usually requires an expensive $O(n^3)$ eigendecomposition, making it impossible to analyze massive networks. This paper introduces novel quadratic approximations that slash this complexity to linear time ($O(n)$), allowing researchers to measure the complexity and similarity of large-scale graphs with high precision and minimal computational cost.

What Problem Does This Paper Address?

In the world of network science, understanding the "complexity" of a graph is vital for tasks like anomaly detection, graph clustering, and measuring how much two networks differ (information divergence). The von Neumann graph entropy (VNGE) is a powerful tool for this, acting as a structural fingerprint.

However, there is a massive bottleneck: to calculate the exact VNGE, you need the entire "eigenspectrum" (all the eigenvalues) of the graph's density matrix. For a graph with $n$ nodes, this standard approach scales at $O(n^3)$. If you are dealing with a social network or a biological system with millions of nodes, $O(n^3)$ is effectively an infinite wait time. The authors set out to find a way to approximate this entropy without ever having to decompose the matrix.

Methods

The authors propose several quadratic approximations to the entropy function $f(x) = -x \ln x$. The core "trick" is leveraging a property called purity ($tr(\rho^2)$). Unlike the full eigenspectrum, purity can be calculated in linear time $O(n+m)$—where $m$ is the number of edges—simply by looking at the degrees of the nodes and the weights of the edges.

The paper introduces four primary approximation flavors:

  1. FINGER-H: An incremental improvement on prior work that uses a quadratic polynomial anchored by the maximum eigenvalue ($\lambda_{max}$).
  2. Taylor-T: A standard quadratic Taylor expansion centered around the average eigenvalue ($1/n$).
  3. Modified Taylor-T: A refined version of the Taylor approach that incorporates $\lambda_{max}$ to significantly reduce error as the graph structure becomes more extreme.
  4. Radial Projection-R: Perhaps the most elegant method, it uses a geometric interpretation of the "simplex of positive probability." It finds a simplified point in the probability space that has the same "distance" (purity) as the original graph and calculates the entropy of that point. Crucially, this method does not require calculating $\lambda_{max}$.

Finally, they propose a Mixed Quadratic Approximation, which uses gradient descent to find optimal weights for a combination of these methods, tailored for real-world datasets.

Datasets

The researchers validated their methods using a mix of synthetic and real-world data:

  • Random Graph Models: Erdős-Rényi (ER), Barabási-Albert (BA), and Watts-Strogatz (WS) models were used to test how the approximations handle different topologies (like small-world or scale-free properties).
  • Real-World Networks: A massive suite of 137 unweighted and 48 weighted networks across diverse fields, including:
  • Biological: Brain networks, protein interactions, and ecological webs.
  • Social/Infrastructure: Facebook networks, power grids, road maps, and web-link graphs.

Key Insights and Ideas

  • The Purity Shortcut: The most significant "aha moment" is that the sum of the squares of the eigenvalues (purity) contains enough structural information to approximate the entire entropy sum. Because purity is so cheap to compute for sparse graphs, the $O(n^3)$ wall vanishes.
  • Geometry over Algebra: The Radial Projection method treats entropy as a landscape on a geometric simplex. By realizing that points with the same Euclidean distance from the center have the same purity, they can project a complex graph onto a much simpler "representative" graph whose entropy is trivial to calculate.
  • $\lambda_{max}$ is the Speed Limit: While incorporating the maximum eigenvalue ($\lambda_{max}$) makes approximations more accurate, calculating it still costs $O(n^2)$. The Radial Projection method is the "speed king" because it bypasses $\lambda_{max}$ entirely while maintaining high accuracy.

Key Results

  • Complexity Leap: The authors successfully reduced the computational complexity from cubic ($O(n^3)$) to linear ($O(n+m)$).
  • High Fidelity: In simulations, the Improved Modified Taylor and Improved Radial Projection methods showed near-perfect correlation with the exact VNGE values across various graph models.
  • Superiority over FINGER: The proposed methods consistently outperformed the previous state-of-the-art (FINGER) in terms of error bounds. Specifically, FINGER tends to always under-estimate entropy, while the new methods provide tighter, more balanced approximations.
  • Real-World Performance: On the 185 real-world datasets, the "Mixed Quadratic" approach demonstrated superior performance, proving that these approximations are robust enough for messy, non-synthetic data.

Limitations and Future Work

  • The $\lambda_{max}$ Trade-off: There is still a tension between speed and accuracy. The most accurate methods in the paper still require $\lambda_{max}$, which is $O(n^2)$. While better than $O(n^3)$, it's still a hurdle for truly gargantuan graphs.
  • Theoretical Bounds: While the authors proved that the Modified Taylor method is always an upper bound for the true entropy, they noted that finding a specific, tight error bound for it remains an open mathematical problem.
  • Graph Classes: The authors suggest that further analysis is needed to see how these approximations behave on specific sub-classes of graphs (like planar graphs) where eigenvalue distribution follows very specific laws (like Weyl’s law).

Summary updated

BibTeX
@inproceedings{choi2019fast,
  author = {Hayoung Choi and Jinglian He and Hang Hu and Yuanming Shi},
  title = {{Fast computation of von Neumann entropy for large-scale graphs via quadratic approximations}},
  booktitle = {Linear},
  year = {2019},
  doi = {10.1016/j.laa.2019.09.031},
}
Figure