Locality Statistics for Anomaly Detection in Time Series of Graphs

Heng Wang, Minh Tang, Youngser Park, Carey E. PriebeIEEE TSP 2014 · DOI

TL;DR

This paper introduces and analyzes "locality statistics" for detecting anomalies in dynamic networks (time series of graphs). By developing theoretical guarantees for these statistics, the authors provide a robust framework for identifying sudden shifts in network behavior, crucial for applications ranging from cybersecurity to social network analysis.

What Problem Does This Paper Address?

Dynamic networks, where relationships between entities evolve over time, are increasingly common in various fields. Detecting "anomalies" – deviations from normal network patterns – is a critical task. These anomalies often manifest as sudden changes in network structure or activity, known as "change-points." Existing methods for detecting these change-points in graph time series often lack theoretical rigor or are limited to specific types of anomalies. This paper aims to bridge this gap by developing and analyzing a class of "locality-based scan statistics" that can theoretically detect these anomalies.

Methods

The core of this paper lies in the development and analysis of two related "locality statistics," denoted by $\Psi$ and $\Phi$. These statistics quantify local network activity around a specific vertex or a group of vertices within a given time window. The authors then embed these locality statistics into a "scan statistic" framework, which involves scanning over time and space to find the maximum value.

Key methodological contributions include:

  • Generative Model: The authors use a Stochastic Block Model (SBM) to generate time series of graphs, allowing for controlled experiments and theoretical analysis.
  • Locality Statistics ($\Psi$ and $\Phi$): These statistics are designed to capture local network structure and activity. $\Psi$ focuses on the subgraph induced by a vertex's neighborhood at a specific time, while $\Phi$ considers the intersection of neighborhoods across different time points.
  • Scan Statistics: The locality statistics are aggregated into scan statistics, $S_{T,l,k}(t; \cdot)$, which are then normalized (both temporally and vertex-wise) to create test statistics for change-point detection.
  • Theoretical Analysis: A significant portion of the paper is dedicated to deriving the limiting properties of these scan statistics under specific assumptions. This involves using tools from probability theory, such as the Gumbel distribution, to understand the behavior of the statistics in large networks.
  • Admissibility and Dominance Analysis: The authors theoretically compare the performance of the $\Psi$ and $\Phi$ statistics, determining when one is "admissible" (meaning it's not strictly worse than the other) and when one "dominates" the other (meaning it's strictly better in terms of power).

Datasets

  • Synthetic Data: The authors generate synthetic time series of graphs based on the Stochastic Block Model (SBM) and Random Dot Product Model (RDPM) to control experimental conditions and validate theoretical findings.
  • Enron Email Corpus: The proposed methods are evaluated on the Enron email dataset, a real-world network of communication over time. This dataset is used to demonstrate the practical applicability of the anomaly detection framework.

Key Insights and Ideas

  • Locality Matters: The paper strongly emphasizes that focusing on local network structures (neighborhoods of vertices) is crucial for detecting anomalies, especially when global network changes are subtle.
  • Temporal vs. Vertex Normalization: The authors highlight the importance of both temporal and vertex-wise normalization for scan statistics. Vertex normalization helps to account for varying activity levels of individual nodes, while temporal normalization smooths out noise and highlights persistent anomalies.
  • Admissibility is Key: The theoretical analysis reveals that neither the $\Psi$ nor the $\Phi$ locality statistic is universally superior. They are often admissible with respect to each other, meaning the choice depends on the specific characteristics of the anomaly and the network.
  • The Power of $\Phi$ for Certain Anomalies: For specific types of anomalies (e.g., a "chatty" group becoming even more active), the $\Phi$ statistic demonstrates superior detection power, especially when the anomaly involves a significant shift in connectivity probabilities.
  • Computational Trade-offs: While $\Phi$ can offer better detection power in some scenarios, it requires more computational resources (e.g., storing past graph states) compared to $\Psi$.

Key Results

  • Theoretical Guarantees: The paper provides theoretical derivations for the limiting distributions of the proposed scan statistics under proper normalization, showing convergence to the Gumbel distribution.
  • Admissibility of $\Psi$ and $\Phi$: For the simplest case ($T=1, l=0, k=0$), both $\Psi$ and $\Phi$ statistics are found to be admissible.
  • Inadmissibility of $\Psi$: For a slightly more complex scenario ($T=1, l=0, k=1$), the $\Psi$ statistic is shown to be inadmissible, meaning $\Phi$ offers better detection power.
  • Empirical Validation: Experiments on synthetic data and the Enron email corpus demonstrate that the proposed scan statistics can effectively detect anomalies, aligning with theoretical predictions. The Enron data analysis identified several significant events as anomalies, including a sham energy deal and a CEO resignation.

Limitations and Future Work

  • Computational Complexity: The $\Phi$ statistic, while powerful, can be computationally expensive as it requires access to past graph states. The authors suggest that adapting locality statistics for streaming environments is an important future direction.
  • Model Assumptions: The theoretical analysis relies on specific assumptions about the generative model (SBM) and the nature of anomalies. Extending these results to more complex models (e.g., latent process models) and anomaly types is an open area.
  • Parameter Selection: While the paper provides theoretical insights, practical application might still require careful selection of parameters like $T$, $l$, and $k$.
  • Edge Attributes: The current framework primarily focuses on unweighted, undirected graphs. Incorporating edge attributes into the locality statistics and analysis is a natural extension.
  • Further Theoretical Exploration: The paper suggests investigating power estimates for more complex scan statistics and exploring their behavior under the random dot product model setting, where limiting distributions are not yet fully understood.

Summary updated

BibTeX
@article{wang2014locality,
  author = {Heng Wang and Minh Tang and Youngser Park and Carey E. Priebe},
  title = {{Locality Statistics for Anomaly Detection in Time Series of Graphs}},
  journal = {IEEE TSP},
  year = {2014},
  doi = {10.1109/tsp.2013.2294594},
}
Figure