Improving Soft Unification with Knowledge Graph Embedding Methods

Xuanming Cui, Chionh Wei Peng, Adriel Kuek, Ser-Nam Lim

Introduction

The field of Neuro-Symbolic (NeSy) AI strives to bridge the gap between deep learning—which is powerful but opaque—and symbolic logic, which is interpretable but rigid. Neural Theorem Provers (NTPs) are a prominent NeSy framework that utilizes "soft unification." Instead of requiring exact symbolic matches, NTPs compare vector representations of symbols to perform reasoning.

However, NTPs suffer from two major bottlenecks:

  1. Optimization Hell: Because NTPs use "top-k" retrieval to find relevant facts, only a tiny fraction of the model's parameters receive gradient updates during training. This gradient sparsity makes the model extremely sensitive to initialization and prone to getting stuck in local minima.
  2. Scalability: Reasoning through every possible proof path is computationally expensive. On large datasets like WN18RR, standard NTPs are painfully slow to evaluate.

Conversely, Knowledge Graph Embeddings (KGEs) (like TransE or ComplEx) excel at learning structured vector spaces and are easy to optimize. However, they act as "black boxes" that cannot explain the reasoning behind a specific link prediction. This paper introduces a hybrid approach, integrating KGEs into NTPs to combine interpretable reasoning with robust optimization, achieving state-of-the-art accuracy and a staggering 1000x speedup in evaluation time on large-scale datasets.

Methodology: Injecting KGE "DNA" into NTPs

The authors propose four strategies—variants of the Conditional Theorem Prover (CTP)—to integrate KGEs into the NTP framework:

  • CTP1 (Auxiliary Loss): Adds a KGE loss term to the standard NTP loss, providing a basic nudge to improve embedding structure.
  • CTP2 (Auxiliary Score): The flagship method of the paper. It injects the KGE score directly into every step of the reasoning chain ($ \phi_{mixed} = \lambda \phi_{NTP} + (1-\lambda) \phi_{KGE} $). This forces the model to learn interactions between entities and predicates throughout the entire proof path.
  • CTP3 (Translational Stepping): Replaces expensive top-k retrieval with a 1-1 mapping using translational KGEs (like TransE). Given a subject and relation, the model "calculates" the object instead of searching for it.
  • CTP4 (KGE for Final Ranking): Uses NTPs for multi-hop reasoning but swaps in a KGE for the final step to rank candidates, drastically cutting down on expensive tensor operations.

Key Insights

KGEs as a Global Map: The authors found that standard NTP embeddings are "poorly structured," with most entities having near-zero similarity to each other. KGEs act as a global regularizer, providing a structural "map" that helps the NTP navigate the embedding space even when gradients are sparse.

Embedding distributions for NTP vs NTP+KGE

Variance Reduction: Mathematically, the authors demonstrate that CTP2 reduces the variance of gradient noise by a factor of 4 compared to CTP1. This leads to significantly smoother and more stable training dynamics.

Key Results

The researchers evaluated their methods on a mix of small-scale (Countries, Nations, Kinship, UMLS) and large-scale (FB122, WN18RR) benchmarks, as well as the CLUTRR dataset for reasoning generalization.

  • State-of-the-Art Accuracy: CTP2 outperformed previous NTP-based methods across almost all datasets. On the UMLS dataset, for instance, it achieved a Mean Reciprocal Rank (MRR) of 0.85, beating the baseline CTP's 0.81.
  • Massive Speedups: The efficiency trade-off of CTP4 proved highly effective. By leveraging NTPs for pathfinding and KGEs for the final pick, CTP4 reduced evaluation time by 1452x on the WN18RR dataset compared to the baseline.
Inference and Evaluation Time per Sample
  • Systematic Generalization: On the CLUTRR benchmark, CTP2 demonstrated superior "hop-generalization." While baseline models' accuracy plummeted as reasoning steps increased, CTP2 remained robust, dropping only 0.04 in accuracy when scaling from 4 to 10 hops.

Limitations and Future Work

While integrating KGEs provides massive improvements, the authors note that the sparse gradient problem is mitigated rather than fully solved. The embedding space of these hybrid models still lacks the perfect global structure seen in pure KGE models. Future work may explore more efficient negative sampling techniques for NTPs or apply these hybrid methods to multi-modal reasoning tasks.

Summary updated

BibTeX
@inproceedings{cui2025improving,
  author = {Xuanming Cui and Chionh Wei Peng and Adriel Kuek and Ser-Nam Lim},
  title = {{Improving Soft Unification with Knowledge Graph Embedding Methods}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=cdjfN2kNtB},
}
Figure