FastAGEDs: Fast Approximate Graph Entity Dependency Discovery

Guangtong Zhou, Selasi Kwashie, Yidi Zhang, Michael Bewong, Vincent Mwintieru Nofong, Junwei Hu, Debo Cheng, Keqing He, Shanmei Liu, Zaiwen Feng

In the field of data science, discovering the underlying rules that govern datasets is a fundamental task. While relational databases rely on Functional Dependencies (FDs), modern property graphs—such as social networks or knowledge bases—require more complex structures known as Graph Entity Dependencies (GEDs). However, real-world graph data is often noisy, containing typos, missing links, and inconsistencies. Strict discovery algorithms that demand 100% accuracy often fail to find any meaningful patterns in such environments.

The paper "FASTAGEDS: Fast Approximate Graph Entity Dependency Discovery" introduces a robust framework for identifying "approximate" GEDs. By allowing a user-defined margin of error, FASTAGEDS can uncover significant rules that are "mostly true," providing a more realistic and useful view of data semantics.

The Challenge of Graph Dependencies

Traditional GED discovery faces two major hurdles. Semantically, defining what it means for a graph rule to be "almost true" is non-trivial. Computationally, the search space for these dependencies is astronomical, making the discovery process NP-complete. A rule might state: "If two nodes represent the same person, they must have the same birthdate." In a real-world graph, one entry might have a typo (e.g., 1990 vs. 1991), causing a strict algorithm to discard the rule entirely.

Example graph G and query patterns Q1, Q2, Q3 used to define Graph Entity Dependencies (GEDs).

As shown in Figure 1, a GED is defined over a graph pattern (like $Q_3$ representing a company creating two products). A dependency might state that if a company creates two products, those products must share certain attributes. In a perfect world, this holds universally; in reality, data entry errors might cause a few exceptions that FASTAGEDS is designed to handle.

The FASTAGEDS Methodology

To address these challenges, the authors propose several innovations that break the problem down into manageable steps:

  1. Approximate Error Metric ($e_3$): Instead of strict satisfaction, the authors use a metric based on the minimum number of pattern matches that must be removed to satisfy the dependency. This allows users to set an error threshold $\epsilon$ (e.g., "show me rules that are at least 85% accurate").
  2. Disagree and Necessary Sets: Borrowing from relational database theory, the algorithm focuses on "disagree sets"—the specific instances where data violates a potential rule. By analyzing these violations rather than all satisfying instances, the search space is narrowed significantly.
  3. Depth-First Search (DFS) Strategy: FASTAGEDS traverses a lattice of candidate rules using a DFS approach. This strategy, combined with sophisticated pruning techniques, allows the algorithm to skip large portions of the search space that are guaranteed not to contain minimal or valid rules.
  4. Two-Phase Discovery: The process begins by identifying frequent graph patterns (the "scope") using Minimum Image-based Support (MNI). Once the scope is established, the algorithm mines attribute dependencies within those patterns.

Experimental Evaluation and Scalability

The researchers evaluated FASTAGEDS on three diverse real-world datasets: DBLP (bibliography), IMDB (movies), and YAGO4 (a massive knowledge graph with over 13 million edges).

Scalability results showing execution time vs. number of attributes for different error thresholds (epsilon) on DBLP, IMDB, and YAGO4.

As illustrated in Figure 5, the algorithm demonstrates impressive scalability. While the time complexity naturally increases with the number of attributes, the DFS strategy and pruning keep the growth manageable even on the massive YAGO4 dataset. Interestingly, in "dirtier" datasets like YAGO4, a higher error tolerance ($\epsilon$) can sometimes lead to faster discovery. This is because more general rules are found earlier, which then prune away many specific, redundant rules.

Key Insights and Future Directions

FASTAGEDS successfully bridges the gap between complex graph constraints and efficient set-covering logic. By mapping graph patterns to "itemsets," the authors leverage optimized data structures to handle millions of edges. The algorithm not only finds "full" GEDs but also identifies approximate rules, offering deeper insights into data quality and underlying semantics than previous methods.

Despite its success, several avenues for future work remain. Automating the selection of the error threshold $\epsilon$ would make the tool more accessible to non-experts. Furthermore, extending the framework to handle more complex, multi-hop topological constraints and developing incremental update mechanisms for evolving graphs are logical next steps for this research.

Summary updated

BibTeX
@inproceedings{zhou2023fastageds,
  author = {Guangtong Zhou and Selasi Kwashie and Yidi Zhang and Michael Bewong and Vincent Mwintieru Nofong and Junwei Hu and Debo Cheng and Keqing He and Shanmei Liu and Zaiwen Feng},
  title = {{FastAGEDs: Fast Approximate Graph Entity Dependency Discovery}},
  booktitle = {WISE},
  year = {2023},
}
Figure