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

Hayoung Choi, Jinglian He, Hang Hu, Yuanming Shi · DOI

Abstract

The von Neumann graph entropy (VNGE) is a robust measure of graph complexity and information divergence. However, its computation typically requires a full eigendecomposition of the graph's density matrix, leading to a prohibitive $O(n^3)$ complexity for large-scale networks. We propose a suite of quadratic approximations that reduce this complexity to linear time ($O(n+m)$). By leveraging the graph's purity—computable from node degrees—and anchoring approximations at key spectral points like the average and maximum eigenvalues, we achieve high-fidelity entropy estimation. Simulations on synthetic models and 185 real-world datasets demonstrate that our methods significantly outperform existing state-of-the-art approximations in both speed and accuracy.

The $O(n^3)$ Bottleneck in Network Science

In network analysis, quantifying structural complexity is essential for tasks ranging from anomaly detection to measuring network similarity. The von Neumann graph entropy (VNGE) serves as a powerful structural fingerprint. Defined as $H(G) = -\sum \lambda_i \ln \lambda_i$, where $\lambda_i$ are the eigenvalues of the normalized Laplacian (or density matrix), its exact calculation is computationally expensive. For a graph with $n$ nodes, the required eigendecomposition scales at $O(n^3)$, rendering it impractical for modern massive datasets.

Quadratic Approximations: The Purity Shortcut

To bypass the eigendecomposition, we propose approximating the entropy function $f(x) = -x \ln x$ with quadratic polynomials. The key insight is that the sum of the squares of the eigenvalues, known as purity ($tr(\rho^2)$), can be calculated in $O(n+m)$ time (where $m$ is the number of edges) using only the node degrees and edge weights.

Quadratic approximations of the entropy function $f(x) = -x \ln x$ for various $\lambda_{max}$ values.

As shown in Figure 1, quadratic curves can be fitted to the entropy function. The accuracy of these fits depends heavily on the range of the eigenvalues, particularly the maximum eigenvalue $\lambda_{max}$.

Anchoring for Accuracy: Taylor and $\lambda_{max}$ Methods

We introduce several strategies to anchor these quadratic approximations:

  1. Taylor-T: A quadratic Taylor expansion centered at the average eigenvalue $1/n$. This method is extremely fast but can lose accuracy for graphs with highly skewed spectra.
  2. Modified Taylor-T: This approach refines the Taylor expansion by incorporating the maximum eigenvalue $\lambda_{max}$, significantly reducing error for extreme graph structures.
  3. Radial Projection-R: A geometric method that projects the graph's density matrix onto a simplified point in the probability simplex with the same purity. This method is unique because it achieves high accuracy without requiring the $O(n^2)$ calculation of $\lambda_{max}$.
Geometric anchoring of approximations using the average eigenvalue $1/n$ and the maximum eigenvalue $\lambda_{max}$.

Figure 2 illustrates the anchoring points. By centering the approximation at $(1/n, f(1/n))$ and considering the boundary at $\lambda_{max}$, the quadratic fit becomes much tighter to the true entropy curve.

Experimental Validation

The proposed methods were tested against the previous state-of-the-art (FINGER) using synthetic models and 185 real-world networks. The results show that the Improved Modified Taylor and Improved Radial Projection methods maintain near-perfect correlation with exact VNGE values while operating in linear time. On real-world datasets, a "Mixed Quadratic" approach—combining these methods via gradient descent—provided the most robust performance, consistently outperforming FINGER by providing tighter error bounds.

Conclusion

By transforming the $O(n^3)$ eigendecomposition problem into a linear-time quadratic approximation, we enable the application of von Neumann entropy to massive, real-world networks. The Radial Projection method, in particular, offers a compelling balance of speed and accuracy by bypassing the need for $\lambda_{max}$. Future work will explore theoretical error bounds for specific graph classes and the application of these fast entropy measures to dynamic graph streams.

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