GIG: Graph Data Imputation With Graph Differential Dependencies

Jiang Hua, Michael Bewong, Selasi Kwashie, Md Geaur Rahman, Junwei Hu, Xi Guo, Zaiwen FenarXiv 2024

TL;DR

GIG (Graph Data Imputation with Graph Differential Dependencies) is a novel framework that tackles missing data in knowledge graphs by combining semantic rule mining with a transformer architecture. By using graph differential dependencies to guide both model training and value validation, GIG achieves exceptionally high precision and explainability compared to traditional statistical imputation methods.

What Problem Does This Paper Address?

Missing data is a universal headache in data engineering and data science. While plenty of techniques exist to fill in these gaps (a process called imputation), most are built for traditional tabular (relational) databases. They rely on statistical heuristics or strict, hand-crafted rules that don't translate well to the interconnected world of graph data, such as knowledge graphs.

Furthermore, existing deep learning or statistical imputation models often operate as "black boxes." They might predict a value that makes statistical sense to the model but violates basic domain logic, and they lack the ability to explain why a specific value was chosen. GIG addresses this dual challenge: adapting data imputation for graph structures while injecting semantic knowledge to make the process reliable and explainable.

Methods

GIG bridges the gap between symbolic reasoning (rules) and deep learning (transformers) through a three-step pipeline:

  1. Rule Mining and Selection: The framework uses an algorithm called GDDMiner to extract Graph Differential Dependencies (GDDs) from the graph. Unlike traditional rules that require exact matches, GDDs use distance and similarity functions (e.g., "if two entities have very similar names, they likely belong to the same genre"). GIG consolidates these rules to streamline what the model needs to learn.
  2. Transformer Training: The rules are split into a Left-Hand Side (LHS, the context) and a Right-Hand Side (RHS, the target dependency). GIG feeds the LHS into a Transformer encoder and the RHS into a decoder. Crucially, it treats attributes and thresholds as unified tokens, allowing the transformer to learn the intricate relationships between data constraints.
  3. Imputation and Semantic Validation: When a missing value is encountered, GIG formulates it as an incomplete rule ($X \rightarrow \_$). The trained transformer predicts the missing RHS value. Finally, GIG performs a "sanity check" using the GDD rules: if the transformer predicts a value that violates semantic logic (for example, predicting a year like "2020" for a name attribute), the value is discarded.

The complete architecture is visualized below:

Fig. 1: GIG Framework

Datasets

The authors evaluated GIG across seven real-world datasets with artificially introduced missing values ranging from 1% to 5%:

  • Relational Datasets (Converted to Graphs): Restaurant (names/addresses), Customer_shopping_data (age/prices), Adult (occupations/nationalities), and Ncvoter (age/registration dates).
  • Native Graph Datasets: Entity Resolution (from a video streaming platform), Women’s World Cup (tracking players, teams, and tournaments), and Graph Data Science (airport connections worldwide).

Key Insights and Ideas

  • The Power of "Soft" Rules: By leveraging differential dependencies instead of rigid entity dependencies, GIG accommodates real-world data variations and noise (like minor typos in strings or close numerical intervals) without breaking the logical framework.
  • Rules as Neural Guardrails: Instead of just using deep learning to guess a value, GIG uses rules both to structure the transformer's training data and to filter out hallucinations during inference.
  • Prioritizing Truth Over Guesses: The semantic validation step acts as a strict filter. It ensures that any value GIG actually outputs is guaranteed to be logically consistent with the rest of the graph.

Key Results

GIG was benchmarked against two state-of-the-art data cleaning and imputation baselines: Holoclean (a machine-learning framework) and DERAND (a similarity-rule approach).

  • Superior Precision: Across all seven datasets, GIG achieved a higher precision rate than the baselines. Because of its rule-guided validation, when GIG fills in a blank, it is highly likely to be correct.
  • The Recall Trade-off: On a few relational datasets (Adult, CSD, and Ncvoter), GIG showed lower recall than the baselines. This means its strict semantic rules occasionally preferred to leave a value blank rather than risk making an incorrect guess.
  • Overall Effectiveness: Despite the recall trade-off, GIG remained highly competitive and frequently outperformed the baselines in overall F1-measure (the balance of precision and recall). It performed exceptionally well on native graph data, particularly the Entity Resolution dataset.

Limitations and Future Work

The main limitation of GIG stems from its strength: its strictness. Because it relies heavily on valid GDD rules to accept a prediction, it can suffer from lower recall if the underlying data doesn't yield enough strong rules, leaving some missing values un-imputed.

To fix this, the authors point to a promising future direction: expanding GIG to support approximate graph entity rules. This would allow the system to relax its filtering criteria slightly when dealing with highly uncertain data, boosting recall while maintaining a strong grip on semantic consistency.

Summary updated

BibTeX
@misc{hua2024gig,
  author = {Jiang Hua and Michael Bewong and Selasi Kwashie and MD Geaur Rahman and Junwei Hu and Xi Guo and Zaiwen Fen},
  title = {{GIG: Graph Data Imputation With Graph Differential Dependencies}},
  year = {2024},
  eprint = {2410.15747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15747},
}
Figure