TL;DR
DiffTSP introduces a discrete diffusion model for Knowledge Graph Triple Set Prediction, generating all missing factual triples in a single "one-pass" generative process. By modeling the joint distribution of the entire triple set rather than scoring candidates independently, it successfully captures complex inter-triple dependencies and eliminates logical contradictions.
What Problem Does This Paper Address?
Knowledge Graphs (KGs) are foundational to modern AI, powering everything from web search to recommendation systems. However, they are notoriously incomplete. Traditional Knowledge Graph Completion (KGC) methods focus on filling in a single blank—for instance, predicting a missing tail entity given a head entity and a relation, like (h, r, ?).
A much more realistic and challenging task is Triple Set Prediction (TSP): given an incomplete graph, predict the entire set of missing triples without any prior hints.
Existing TSP methods evaluate and score candidate triples independently. This isolated approach ignores the fact that triples are highly interconnected and constrained by real-world logic. For example, predicting (Person A, isFatherOf, Person B) should logically preclude predicting (Person A, isMotherOf, Person B). Because traditional models score triples in a vacuum, their final predicted sets are frequently riddled with these kinds of logical conflicts.
Methods
The authors propose DiffTSP, framing triple set prediction as a generative task powered by a discrete diffusion model.
- Forward Diffusion Process: The model systematically corrupts a query graph by progressively masking its relational edges over a series of timesteps, transitioning them into a special "absence" state.
- Reverse Denoising Process: A novel structure-aware denoising network is trained to reverse this corruption, recovering the clean, complete graph. Crucially, this reverse process is conditioned on the originally observed incomplete graph (the support graph).
- Structure-Aware Architecture: To effectively learn graph structures, the denoising network integrates two synergistic components:
- A Relational Context Encoder (RCE) that performs relation-guided message passing to capture local structural dependencies among neighboring entities.
- A Relational Graph Diffusion Transformer (RelDiT) that models global, long-range dependencies across the entire graph using a relation-aware attention bias.
- Relation-Balanced Meta-Learning: To train the model robustly, the authors use a meta-learning framework that splits the KG into support and query graphs using a relation-balanced strategy. This ensures the training tasks mirror the true relation distribution and prevents the model from biasing toward frequently occurring relations.
Datasets
The model was evaluated on three widely recognized public benchmark datasets:
- Wiki79k & Wiki143k: Large-scale subsets extracted from Wikidata, evaluated under both Closed-World (CWA) and Partial-Open-World Assumptions (RS-POWA) to mimic real-world incompleteness.
- CFamily: A smaller, synthetically completed dataset focused strictly on family relationships, providing a clean testbed for evaluating strict logical consistency.
Key Insights and Ideas
- Joint Distribution Over Isolated Scoring: By treating graph completion as a generative diffusion process, the prediction of each edge is inherently conditioned on the state of all other evolving edges. This naturally enforces internal consistency and structural harmony.
- Taming Sparsity with Class Balancing: Real-world KGs are extremely sparse, meaning "non-existent" edges vastly outnumber valid ones. DiffTSP treats non-existence as an additional relation type and optimizes a weighted Binary Cross-Entropy (BCEw) loss based on inverse frequency. Without this design, the model would simply learn to predict "no edge" everywhere to minimize loss.
- Self-Correction in Sampling: Visualizations of the iterative sampling process reveal an interesting "aha" moment: even if early denoising steps introduce incorrect edges, the global attention mechanism allows the model to self-correct in later steps rather than letting errors cascade.
Key Results
DiffTSP achieves state-of-the-art (SOTA) performance across all three benchmarks, significantly outperforming both traditional link prediction baselines and recent TSP models.
- Eliminating Logical Conflicts: In qualitative case studies on family data, baselines like HAKE and AstarNet frequently generated absurd contradictions (e.g., predicting an entity was simultaneously a brother and a sister to the same person). DiffTSP maintained perfect logical integrity, matching the ground truth.
- Massive Efficiency Gains: Because DiffTSP generates the entire set of triples in a single pass rather than scoring candidates triple-by-triple, it is incredibly fast. On the Wiki143k dataset, DiffTSP completed inference in just 72 seconds, compared to 695 seconds for the previous SOTA TSP model (GPHT) and 5,532 seconds for AstarNet.
Limitations and Future Work
- Sampling Step Sensitivity: While the model works well with a small number of sampling steps ($T=20$), increasing the steps beyond this threshold actually causes a slight decline in accuracy due to the potential accumulation of erroneous edges in the final steps.
- Fixed Entity Assumption: DiffTSP assumes a fixed set of entities and focuses entirely on predicting missing relations between them. Extending this discrete diffusion approach to open-world scenarios—where entirely new entities are discovered and integrated on the fly—remains an open challenge for future research.
Summary updated