Horae: A Graph Stream Summarization Structure for Efficient Temporal Range Query

Ming Chen, Renxiang Zhou, Hanhua Chen, Jiang Xiao, Hai Jin, Bo Li

Introduction: The Challenge of Temporal Graph Streams

In our hyper-connected world, data often takes the form of a graph stream: a continuous flow of edges (interactions) between nodes (entities), each tagged with a timestamp and a weight. Examples include email networks, social media interactions, and network traffic between servers. Managing this data presents two significant hurdles:

  1. Scale: The sheer volume of interactions is often too large to store in traditional databases for long-term analysis.
  2. Query Complexity: Analysts frequently need to query both topology and time—for instance, "What was the total traffic volume of server X between 3:00 PM and 4:00 PM?"
A graph stream evolving over discrete time slices $T_0$ to $T_3$.

Existing summarization techniques, such as TCM (Tiny Coherent Matrix) or GSS (Graph Stream Sketch), compress graph topology using hash-based matrices. However, these methods are "time-blind." To answer a range query, they must perform a separate query for every single time unit within that range, leading to a linear increase in latency that becomes impractical for long time windows.

The Horae Architecture

To address these limitations, the authors introduce Horae, a novel multi-layer summarization structure. Its core innovation is a time prefix embedded multi-layer structure that enables efficient temporal range queries.

  • Multi-Layer Matrices: Instead of a single large matrix, Horae maintains multiple layers of hash-based matrices. Each layer represents a different temporal granularity: Layer 1 tracks individual time units, Layer 2 tracks 2-unit blocks, Layer 3 tracks 4-unit blocks, and so on.
  • Binary Range Decomposition (BRD): This is the system's primary optimization. Any arbitrary time range of length $L$ can be mathematically decomposed into at most $2 \log L$ sub-ranges that align with binary prefixes. For example, a range of 6 units might be broken into one 4-unit block and one 2-unit block.
  • Compacted Horae (Horae-cpt): To optimize memory, the authors developed a compacted version where upper layers only store data for "odd" prefixes. This reduces memory usage by approximately 50% while maintaining a query complexity of $O(\log^2 L)$.
The multi-layer matrix structure and binary range decomposition (BRD) used in Horae.

Core Innovations

The shift from $O(L)$ to $O(\log L)$ query time represents a major breakthrough. By aligning the data structure with the binary nature of time representation, Horae transforms a "brute force" search into a structured tree traversal. Unlike traditional segment trees used in static databases, Horae is designed for one-pass processing. It updates all necessary layers as data arrives, ensuring it can handle infinite streams without re-scanning historical data.

Furthermore, the system employs a "kick-out" strategy (similar to Cuckoo hashing) to manage hash collisions and leverages thread-level parallelism to ensure that multi-layer insertions do not bottleneck the stream.

Experimental Setup

Horae was evaluated using four large-scale real-world datasets:

  • Lkml: A communication network of the Linux kernel mailing list.
  • Wiki: An interaction network of English Wikipedia user messages.
  • Stackoverflow: User interactions on the Q&A site over several years.
  • IP flow: Anonymized passive traffic traces from a major internet monitor (CAIDA).

These datasets range from millions to billions of edges, providing a rigorous test for throughput and query accuracy.

Performance Evaluation

The experimental results demonstrate Horae's superiority over existing baselines:

  • Speed: Horae achieved a 100x to 1000x speedup in query latency compared to optimized versions of TCM and GSS.
  • Accuracy: The system maintained a very low Average Relative Error (ARE) and reduced the False Positive Rate (FPR) for existence queries by 93%–99% compared to baselines.
  • Throughput: The parallelized version, Horae-para, maintained high insertion speeds, making it suitable for high-velocity streams like backbone IP traffic.

Discussion and Future Directions

While Horae is a significant advancement, several areas for future research remain. Like all hash-based structures, the matrices can become "saturated" as the graph grows, leading to increased collision rates. Additionally, while Horae focuses on node/edge weights and timestamps, real-world streams often include high-dimensional labels (e.g., message types or service ports). Extending the multi-layer approach to handle these extra dimensions is a logical next step. Finally, for truly "infinite" streams, a strategy for archiving or retiring the oldest, coarsest layers will be necessary.

Summary updated

BibTeX
@inproceedings{chen2022horae,
  author = {Ming Chen and Renxiang Zhou and Hanhua Chen and Jiang Xiao and Hai Jin and Bo Li},
  title = {{Horae: A Graph Stream Summarization Structure for Efficient Temporal Range Query}},
  booktitle = {ICDE},
  year = {2022},
  doi = {10.1109/icde53745.2022.00254},
}
Figure