TL;DR
This paper tackles the challenge of performing keyword searches on massive graph datasets that exceed available RAM. They introduce a "multi-granular graph representation" that intelligently combines a condensed graph overview with cached portions of the detailed graph. This allows for efficient search algorithms that minimize costly disk I/O, significantly outperforming traditional virtual memory approaches.
What Problem Does This Paper Address?
Keyword search on graph-structured data is a powerful way to query complex, interconnected information, like social networks, citation graphs, or even relational databases. The challenge arises when these graphs become too large to fit into a computer's main memory (RAM). Traditional in-memory search algorithms, when applied to such large datasets, result in extremely high I/O costs as data is constantly swapped between RAM and disk. This paper addresses the need for efficient keyword search on these "external memory" graphs, where the graph size is significantly larger than available memory, and where dedicating large amounts of memory to a single search application might not be feasible.
Methods
The core innovation is the multi-granular graph representation. This approach creates a "supernode graph" which is always kept in memory. This supernode graph is a condensed version of the original graph, where clusters of nodes (called supernodes) are represented by single nodes. The system then combines this supernode graph with parts of the detailed graph that are currently in a cache.
To leverage this representation, the authors propose two search algorithms:
- Iterative Expansion Search: This algorithm repeatedly performs an in-memory search on the current multi-granular graph. After finding potential answers, it expands the supernodes within those answers and then restarts the search on the newly expanded graph. This process continues until the top-k results are pure (i.e., contain no supernodes).
- Incremental Expansion Search: This is a more sophisticated approach that also expands supernodes. However, instead of restarting the search from scratch, it updates the state of the search algorithm (specifically, a backward-expanding search algorithm based on Dijkstra's shortest path) to reflect the expanded supernodes. This avoids recomputing work and significantly reduces CPU overhead. They also introduce several heuristics to manage cache behavior and improve search efficiency, such as the "intra-supernode-weight heuristic" and "thrashing control."
Datasets
The authors evaluated their algorithms using two real-world datasets:
- DBLP: A dataset representing bibliographic information.
- IMDB: The Internet Movie Database.
These datasets were clustered into supernodes using the Edge-Weight Prioritized Breadth-First Search (EBFS) technique. The paper notes that while these datasets can fit into main memory on modern machines, they are used to simulate scenarios where memory is limited, as is common in user-facing applications.
Key Insights and Ideas
- Supernodes as a Memory Management Tool: The concept of supernodes is crucial. They act as a way to abstract away details of the graph, allowing for efficient traversal and search on a smaller, in-memory representation while still being able to drill down into the detailed graph when necessary.
- Incremental Updates are Key: The incremental expansion approach is significantly more efficient than iterative restarts because it avoids redundant computations. By updating the search state rather than re-running from scratch, it leverages previous work.
- Heuristics Matter for Performance: The "intra-supernode-weight heuristic" and "thrashing control" were critical for achieving good performance, especially in scenarios with limited cache sizes. These heuristics help prioritize relevant parts of the graph and prevent performance degradation due to excessive disk I/O.
- Multi-granular Representation Exploits Caching: The multi-granular graph structure is designed to take advantage of existing cached data. If relevant parts of the detailed graph are already in memory, the system can use them directly, further reducing I/O.
Key Results
- Significant I/O Reduction: The proposed Incremental Expansion Search algorithm demonstrated substantial reductions in cache misses (I/O operations) compared to a virtual memory approach (VM-Search), often by factors of 10 to 100.
- Improved Execution Times: Incremental Expansion Search consistently outperformed both Iterative Expansion Search and VM-Search in terms of query execution time. For example, Incremental Search with a 24MB cache was faster than VM-Search with an unlimited cache on most queries.
- Good Recall: Despite performance optimizations, the algorithms maintained high recall (accuracy), often close to 100%, indicating that they were finding most of the relevant results.
- Thrashing Control is Essential: For queries that exhibited thrashing behavior (excessive disk I/O due to cache limitations), the thrashing control heuristic dramatically reduced execution times, by up to two orders of magnitude.
Limitations and Future Work
- Clustering Technique: While EBFS was used for clustering, the paper suggests that exploring other clustering techniques, particularly those based on finding communities in graphs, could lead to even better compression and performance on larger datasets.
- Cache Replacement Policy: The paper used an LRU-based page-replacement policy. Further investigation into more sophisticated policies could potentially improve performance.
- Distributed Environments: The authors mention that an alternative to storing large graphs in external memory is to distribute them across multiple nodes in a parallel environment. Keyword search in such a distributed setting, leveraging the multi-granular graph representation, is an ongoing area of research.
- Bidirectional Search: The authors are currently developing a version of the Bidirectional search algorithm that works on their multi-granular graph representation.
Summary updated