F-FADE: Frequency Factorization for Anomaly Detection in Edge Streams

Yen-Yu Chang, Pan Li, Rok Sosic, M. H. Afifi, Marco Schweighauser, Jure Leskovec

TL;DR

F-FADE is a novel unsupervised, online framework for detecting anomalies in edge streams by factorizing time-evolving interaction frequencies. By combining structural node embeddings with a probabilistic frequency model, it identifies complex anomalies—such as rapid community shifts or group-level bursts—while maintaining a constant memory footprint.

What Problem Does This Paper Address?

Most real-world networks, from email systems to financial transactions, are best represented as edge streams: a continuous sequence of interactions between nodes. Detecting anomalies in these streams is critical for catching phishing attacks, financial fraud, or system intrusions.

However, doing this effectively is hard for three reasons:

  1. Entanglement: Anomalies are often a mix of structural changes (who you talk to) and temporal changes (how often you talk to them). Detecting a "prompt group change" requires understanding both.
  2. Lack of Labels: Malicious activity is rare, making supervised learning difficult.
  3. Scale and Velocity: Edge streams can be massive. A detection system must be "online" (processing edges as they arrive) and operate with bounded memory.

Existing methods often fall short: snapshot-based approaches introduce lag, while current streaming methods often ignore global community structures or fail to provide statistical guarantees for their anomaly scores.

Methods

F-FADE (Frequency-Factorization for Anomaly DEtection) introduces a few key innovations:

  • Frequency Factorization: Unlike traditional matrix factorization that targets adjacency, F-FADE factorizes the intensity of interaction frequencies. It assumes that the frequency of interactions between two nodes follows a Gamma distribution (specifically an exponential distribution).
  • Latent Intensity Modeling: The intensity parameter $\lambda_{sd}$ for nodes $s$ and $d$ is modeled using node embeddings: $\lambda_{sd} = \exp(h_s^T Q h_d)$. This allows the model to capture global network structures (like communities) in a low-dimensional space.
  • The Network Skeleton: To maintain constant memory, F-FADE uses an Interaction-Temporal-Frequency Map (ITFM). It only tracks the most frequent interactions, effectively maintaining a "skeleton" of the network. Infrequent interactions are allowed to decay and are eventually removed from memory.
  • Online Updates: As new edges arrive, F-FADE updates node embeddings using mini-batch stochastic gradient ascent. This allows the embeddings to "move" in latent space as node behavior evolves.
  • Group-Level Detection: By treating a group of interactions as a merged Poisson process, F-FADE can detect anomalies that only appear when looking at a node's interactions with an entire group, rather than just individual pairs.
Figure 1: Illustrating how different anomaly patterns require different types of information.

Datasets

The authors evaluated F-FADE against several state-of-the-art baselines (SedanSpot, Midas, AnomRank, and NetWalk) using:

  • RTM: A synthetic graph generator used to inject specific structural and temporal anomalies.
  • DARPA: A standard benchmark for network intrusion detection.
  • ENRON & DBLP: Real-world datasets (email and co-authorship) used to see if detected anomalies correlate with real-world events.
  • BARRA1-4: Four large-scale, proprietary email networks from real companies, containing labeled Account Takeover (ATO) attacks.

Key Insights and Ideas

  • Embeddings as Behavior Trajectories: The model captures behavioral shifts by watching how node embeddings move. For instance, if a node suddenly starts interacting with a new community, its embedding will rapidly migrate toward that group in the latent space.
  • Statistical Calibration: F-FADE doesn't just give a raw score; it provides a calibrated anomaly score based on the probability of observing a specific frequency. This allows for a controlled false-positive rate.
  • Efficiency via Sparsity: The "skeleton" approach proves that you don't need to remember every interaction to understand the network's structure. Tracking just the high-frequency "backbone" is enough to spot deviations.
Figure 2: Visualization of node embeddings moving as interaction patterns change.

Key Results

  • Superior Accuracy: F-FADE consistently outperformed all baselines in AUC (Area Under the Curve). On the BARRA4 dataset, F-FADE achieved an AUC of 0.941, while the next best streaming baseline (Midas) only reached 0.446.
  • Real-World Correlation: In the ENRON dataset, F-FADE’s anomaly peaks aligned with major corporate events, such as the California energy crisis and the resignation of CEO Jeffrey Skilling.
  • Constant Memory Performance: Sensitivity analysis (Figure 6) showed that F-FADE reaches near-optimal performance even with relatively small memory allocations ($M$), making it highly practical for resource-constrained environments.
Figure 5: F-FADE anomaly scores correlating with major real-world events in the ENRON and DBLP datasets.

Limitations and Future Work

  • Attribute Integration: Currently, F-FADE relies purely on graph topology and timing. The authors note that incorporating edge attributes (like email subject lines or transaction amounts) could further improve detection.
  • Automated Parameter Tuning: While F-FADE is efficient, the memory size $M$ and decay rate $\alpha$ currently require manual setting. Automating this tuning based on stream velocity would be a valuable next step.
  • Latent Space Exploration: The authors suggest that the node embedding space itself deserves more study to see if it can be used for other downstream tasks like community evolution tracking.

Summary updated

BibTeX
@inproceedings{chang2021f,
  author = {Yen-Yu Chang and Pan Li and Rok Sosic and M. H. Afifi and Marco Schweighauser and Jure Leskovec},
  title = {{F-FADE: Frequency Factorization for Anomaly Detection in Edge Streams}},
  booktitle = {WSDM},
  year = {2021},
  doi = {10.1145/3437963.3441806},
}
Figure