Size-Consistent Statistics for Anomaly Detection in Dynamic Networks

Timothy La Fond, Jennifer Neville, Brian GallagherarXiv 2016

Introduction

In dynamic networks such as email traffic or social media interactions, the number of nodes and edges changes constantly. Traditional anomaly detection relies on hypothesis testing: if a network metric (like the clustering coefficient) deviates significantly from past observations, it is flagged as an anomaly. However, a fundamental challenge in this field is that most network metrics fail to distinguish between a change in underlying behavior and a simple change in network size or volume.

The confounding effect of communication volume on graph statistics.

As illustrated in the process above, both the pattern and the volume of communication feed into the observed graph. Because many standard metrics are sensitive to volume, a detector might flag a "false positive" anomaly simply because activity increased on a busy day, even if the structural properties of the network remained the same.

The Problem of Size Inconsistency

The authors argue that network size is a "confounding factor" that makes it nearly impossible to distinguish between structural shifts and fluctuations in total activity. They formally define Size Consistency: a statistic is consistent if it converges to a fixed value representing the underlying model as the number of observed edges and nodes goes to infinity.

Many classic metrics—such as Graph Edit Distance (GED) and raw Degree Distribution—are size-inconsistent. For example, in a random network, the number of triangles naturally increases as edges are added. If a metric drifts as the network grows, it cannot reliably serve as a baseline for anomaly detection.

Proposed Size-Consistent Metrics

To address this, the paper introduces three novel, provably Size-Consistent alternatives designed to decouple behavior from size:

  1. Mass Shift: A replacement for Graph Edit Distance that measures the rate of change in edge probabilities, normalized so that total volume does not skew the result.
  2. Probabilistic Degree Distance (PDD): Instead of raw neighbor counts, this metric treats node connectivity as a normalized distribution.
  3. Triangle Probability (TP): A replacement for clustering coefficients that measures transitivity in a way that is robust to changes in edge volume.
Comparison of a size-consistent statistic (a) versus a size-inconsistent statistic (b) as network size increases.

The figure above demonstrates the critical difference: the size-consistent statistic in plot (a) converges and remains stable around a mean value as the number of edges increases, whereas the inconsistent statistic in plot (b) exhibits significant drift. By designing statistics that estimate properties of the unobservable underlying probability matrix rather than the specific sampled graph, the authors ensure the metrics remain stable across different scales.

Experimental Evaluation

The proposed methods were evaluated using both synthetic models (Chung-Lu and Erdős-Rényi) and large-scale real-world datasets, including the Enron email corpus and Facebook wall posts.

  • Enron Dataset: The new metrics successfully flagged key historical milestones—such as Jeffrey Skilling’s testimony and the "Death Star" price manipulation strategy—while ignoring the "noise" of holiday breaks and natural traffic lulls that caused traditional methods to fail.
  • Facebook Data: The Mass Shift metric identified a unique social anomaly where two users flooded each other's walls to reach a "2,000 posts" milestone—an event that was structurally anomalous but might have been missed by volume-sensitive metrics.

Conclusion

By introducing size-consistent statistics and bias correction terms, this research provides a robust framework for monitoring dynamic networks. These metrics allow researchers to accurately spot anomalies without being fooled by natural fluctuations in traffic, and their additive nature allows for "unrolling" detections to identify the specific nodes or subgraphs responsible for the anomalous behavior.

Summary updated

BibTeX
@misc{fond2016size,
  author = {Timothy La Fond and Jennifer Neville and Brian Gallagher},
  title = {{Size-Consistent Statistics for Anomaly Detection in Dynamic Networks}},
  year = {2016},
  eprint = {1608.00712},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.00712},
}
Figure