TL;DR
LogicDP is a new data programming framework that automates the creation of high-quality training labels for graph data, such as Knowledge Graphs and Scene Graphs. By combining Inductive Logic Programming (ILP) to discover rules and a budget-aware human-in-the-loop process to refine them, it achieves state-of-the-art reasoning performance with significantly less manual effort than traditional labeling.
What Problem Does This Paper Address?
Deep learning models for graph reasoning—tasks like predicting missing relationships in a Knowledge Graph (KG) or identifying objects in a Scene Graph—are notoriously data-hungry. While these models perform exceptionally well when given massive datasets, real-world graphs are often sparse and incomplete.
Manually labeling thousands of graph triples is expensive and slow. Existing "Data Programming" (DP) tools like Snorkel help by using heuristic "labeling functions" to create noisy labels at scale. However, these tools are designed for unstructured data (like text) and require human experts to manually write the labeling code. LogicDP addresses this by asking: Can we automatically discover these labeling functions from the graph itself and make them interpretable enough for humans to refine quickly?
Methods
LogicDP introduces a three-stage pipeline to generate training data efficiently:
- Function Generation (ILP): Instead of asking a human to write code, LogicDP uses Inductive Logic Programming. It looks at a small "bootstrap" set of known facts and searches for logical paths that explain them. For example, it might discover the rule:
Car(X) ← Has(X, Wheel) ∧ Has(X, Window). - Budget-Aware Refinement: Not all discovered rules are good; some might be based on coincidental correlations. LogicDP iteratively selects the most promising rules (those that cover the most data with the highest estimated accuracy) and asks an oracle (a human or a synthetic source) for a confidence score.
- Label Aggregation: Because rules can be noisy or conflict with one another, LogicDP uses Posterior Regularization (PR). This mathematical framework balances the "teacher" (the logic rules) with the "student" (the reasoning model being trained), allowing the model to learn a smooth, denoised distribution of labels.
Datasets
The authors evaluated LogicDP on two primary domains:
- Knowledge Graphs: FB15K-237 (a subset of Freebase containing world facts) and WN18RR (a subset of WordNet focused on English word relations).
- Visual Scene Graphs: Visual Genome (VG), where the task is to predict the class label of an entity (e.g., "Car," "Person") based on its relationships to other objects in an image.
Key Insights and Ideas
- Interpretability as an Efficiency Multiplier: Because ILP generates first-order logic rules, they are easily readable by humans. The authors found that asking a human "Is something with wheels and windows usually a car?" is far more efficient than asking them to label 100 individual images of cars.
- Amortized Human Effort: The study found that while evaluating a single logic rule takes about twice as long as labeling a single image, a single rule can label hundreds of instances. This results in an amortized speedup of 100x compared to sample-wise labeling.
- Robustness to "Weird" Data: The label aggregation step (PR) is crucial. It prevents the model from blindly following a bad rule if the model's internal reasoning suggests the rule is likely wrong in a specific context.
Key Results
- Superior Data Efficiency: On Knowledge Graph tasks, LogicDP consistently outperformed strong baselines like Active Learning (AL-MaxEnt) and Label Propagation.
- Closing the Gap: On the WN18RR dataset, LogicDP achieved performance nearly identical to the "ideal" case (training on the full ground-truth dataset) while using only a fraction of the labels.
- Scene Graph Success: On Visual Genome, LogicDP achieved 80% of the "ideal" performance with a budget of only 10 interactions with the oracle.
- Human Validation: In a study with 25 graduate students, human-provided confidence scores for logic rules closely tracked synthetic scores, proving that human commonsense is a viable "oracle" for this framework.
Limitations and Future Work
- Dataset Bias: The authors noted that some datasets contain inherent biases. For example, in Visual Genome, the predicate "Arm" is highly correlated with "Chair". Logic rules might pick up these counter-intuitive correlations, leading to "correct" labels for the wrong reasons.
- Complexity Constraints: While chain-like logic rules work well for most KG tasks, more complex domains (like molecular synthesis or formal theorem proving) might require more sophisticated rule structures than the ones currently generated.
- Future Directions: The team suggests exploring how to handle "counter-intuitive" statements in datasets and extending the framework to even more complex reasoning procedures.
Summary updated