YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
DiffRuleEA: Diffusion-Guided Rule Induction for Entity Alignment
AAAI 2027
A rule-centered LLM-based Entity Alignment framework that converts alignment evidence and verified decisions into explicit, executable, and reusable rules.
Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DiffRuleEA Pipeline β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Module 1: Multi-View Encoder (Simple-HHEA) β
β βββ BERT + whitening β semantic embeddings (300d) β
β βββ Relation-aware Random Walk + Skip-gram (300d) β
β βββ Time2Vec temporal encoding (64d) β
β βββ CSLS candidate retrieval (K_cand=50) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Module 2: Mixed-State Diffusion Rule Induction β
β βββ D3PM discrete diffusion for predicate masks β
β βββ DDPM continuous diffusion for decision thresholds β
β βββ Per-predicate token + FiLM conditioning β
β βββ CLS-token quality prediction β
β βββ Two-phase: SL pre-training + RL fine-tuning β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Module 3: Self-Evolving Rule-Based Alignment β
β βββ Rule Store (Jaccard > 0.8 merge) β
β βββ Rule Retrieve (domain filter + ΟΒ·log(1+use) + MMR) β
β βββ QNorm score normalization by mask length β
β βββ Confidence-adaptive routing (Ο_high=0.85, Ο_low=0.5) β
β βββ Rule Evolve (decay, distill, rerun Phase B) β
β βββ Rule Transfer (cross-KG reuse) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Key Hyperparameters
| Parameter | Value | Description |
|---|---|---|
| K | 20 | Number of predicates (8 core + 12 domain) |
| T | 100 | Diffusion steps |
| D | 256 | Hidden dimension |
| L_d | 4 | Transformer layers |
| heads | 8 | Attention heads |
| Ξ»_ΞΈ | 0.5 | Threshold loss weight |
| Ξ»_q | 0.1 | Quality loss weight |
| ΞΊ | 10 | Threshold sharpness |
| B | 200 | RL batch size |
| Ξ»_H | 0.01 | Entropy coefficient |
| Ο_high | 0.85 | High-confidence threshold |
| Ο_low | 0.5 | Low-confidence threshold |
| E_SL | 50 | Supervised epochs |
| E_RL | 100 | RL epochs |
Installation
pip install torch numpy openai httpx
Usage
Full Pipeline Training
python -m diffrule_ea.train_evolve \
--data_dir data/dbp15k_en_fr \
--output_dir outputs \
--num_predicates 20 \
--diffusion_steps 100 \
--epochs_sl 50 \
--epochs_rl 100 \
--rl_batch_size 200 \
--evolution_iterations 3 \
--outer_iterations 3
Evaluation
python -m diffrule_ea.evaluate \
--data_dir data/dbp15k_en_fr \
--model_path outputs/diffrule_ea_final.pt \
--run_ablation \
--run_efficiency
Quick Test
python -m diffrule_ea.train_evolve \
--data_dir data/dbp15k_en_fr \
--output_dir outputs_test \
--num_predicates 20 \
--diffusion_steps 10 \
--epochs_sl 5 \
--epochs_rl 5 \
--skip_llm \
--outer_iterations 1
Module Details
Module 2: Diffusion Rule Induction
diffusion_rule_induction.py: D3PM + DDPM denoising with per-predicate tokens, FiLM, CLS head- Paper reference: Appendix F
Module 3: Rule-Based Alignment
rule_based_alignment.py: Rule base with Store/Retrieve/Evolve/Transfer, QNorm, confidence-adaptive routingllm_verifier.py: LLM verification with rule traces, token budgets (~200 VERIFY, ~800 REASON)- Paper reference: Appendix G
Citation
@inproceedings{diffruleea2027,
title={DiffRuleEA: Diffusion-Guided Rule Induction for Entity Alignment},
author={Anonymous},
booktitle={AAAI},
year={2027}
}
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support