Anomaly Detection in Dynamic Networks of Varying Size

Timothy La Fond, Jennifer Neville, Brian GallagherarXiv 2014

Abstract

Dynamic networks, such as communication or social networks, naturally fluctuate in edge density over time. Traditional network statistics are often "Density-Dependent," meaning their values change with the number of edges even if the underlying structural patterns remain constant. This leads to high false-positive rates during high-activity periods and missed detections during low-activity periods. We propose a framework of "Density-Consistent" statistics—Probability Mass Shift, Probabilistic Degree Shift, and Triangle Probability—that provide stable measures of network structure regardless of volume. Our methods achieve a 20% to 400% improvement in anomaly recall across synthetic and real-world benchmarks, including the Enron email corpus.

Introduction

In real-world dynamic networks, the volume of activity is rarely constant. An email network might see spikes on Monday mornings and lulls on weekends. Standard network analysis tools, such as the clustering coefficient or graph edit distance, are fundamentally sensitive to these changes in density. When the number of connections increases, these metrics shift, often causing anomaly detection systems to flag normal volume spikes as structural changes.

To address this, we introduce the concept of Density-Consistency. A statistic is density-consistent if it converges to a stable value representing the underlying structural properties of the network as the number of edges increases, effectively filtering out the noise caused by varying activity levels.

Methodology: Density-Consistent Statistics

We model a network as a sample from an underlying probability matrix $P$. While $P$ is unobservable, we can estimate its properties using three novel, density-consistent alternatives to classic measures:

  1. Probability Mass Shift (MS): Replaces Graph Edit Distance by measuring shifts in the underlying probability of connections rather than raw edge changes.
  2. Probabilistic Degree Shift (DS): Replaces Degree Distribution Difference by focusing on the functional "roles" of nodes based on their connection probabilities.
  3. Triangle Probability (TP): Replaces the Clustering Coefficient by measuring network transitivity in a way that is statistically unbiased by total edge count.
Comparison of theoretical properties between traditional density-dependent metrics and the proposed density-consistent metrics.

As shown in the table above, traditional metrics like Graph Edit Distance and Degree Distribution are density-dependent, whereas our proposed measures achieve consistency. Notably, Triangle Probability is both consistent and unbiased, making it a uniquely powerful tool for dynamic analysis.

Experimental Evaluation

We validated these statistics using synthetic benchmarks (Stochastic Blockmodels and Chung-Lu graphs) and several real-world datasets, including the Enron Email Corpus and university social networks.

Key Results

Our density-consistent statistics demonstrated significant performance gains over traditional methods. On synthetic data, we observed a 20% to 400% improvement in recall, as the new metrics were far better at distinguishing between a change in volume and a change in distribution.

Performance comparison (mean ± std) of traditional vs. proposed metrics across different network densities (edge counts).

The empirical results highlight that as edge density increases, the performance gap between traditional metrics (e.g., Edit Distance) and our proposed shifts (e.g., Mass Shift, Triangle Prob) becomes even more pronounced. In the Enron dataset, our methods successfully flagged the "Death Star" price manipulation strategy and key executive transitions that traditional metrics missed because they did not involve massive spikes in total email volume.

Discussion and Conclusion

The "Density Trap" is a fundamental flaw in many standard network metrics. By shifting the focus from raw counts to probabilistic estimators, we can distinguish between changes in activity volume and changes in underlying behavior. Furthermore, because these statistics are summations over nodes or edges, they can be decomposed to identify the specific subgraphs responsible for an anomaly, providing interpretability for human analysts. Future work will address the challenges of networks with rapidly changing node sets and the computational complexity of calculating higher-order statistics on massive scales.

Summary updated

BibTeX
@misc{fond2014anomaly,
  author = {Timothy La Fond and Jennifer Neville and Brian Gallagher},
  title = {{Anomaly Detection in Dynamic Networks of Varying Size}},
  year = {2014},
  eprint = {1411.3749},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1411.3749},
}
Figure