NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Croppable Knowledge Graph Embedding

Yushan Zhu, Wen Zhang, Zhiqiang Liu, Mingyang Chen, Lei Liang, Huajun Chen

Introduction

Knowledge Graph Embeddings (KGEs) are fundamental to modern AI tasks, representing entities and relations as continuous vectors to enable link prediction and recommendation. However, a significant hurdle exists in deploying these models across diverse hardware. While a high-performance server can easily manage 512-dimensional vectors for maximum accuracy, resource-constrained devices like smartphones or IoT sensors may only have the memory capacity for 10-dimensional vectors.

Traditionally, addressing these varying requirements necessitated training multiple independent models—one for each target dimension. This approach is computationally expensive, inflexible, and often results in poor performance for low-dimensional models unless complex knowledge distillation techniques are employed. The MED framework introduces "Croppable Knowledge Graph Embeddings," allowing researchers to train a single model once and "crop" it to any required dimension without additional training.

Overview of Croppable KGEs for diverse devices and scenes.

Methodology: The MED Framework

The core of the MED framework is the ability to train a KGE model such that its first $d_i$ dimensions constitute a functional and high-performing sub-model. This is achieved through three integrated mechanisms:

1. Mutual Learning Mechanism

Instead of a simple top-down distillation, MED employs a pairwise mutual learning strategy between neighboring sub-models (e.g., 10d and 20d). These sub-models act as both teacher and student to one another. This bidirectional flow helps low-dimensional models inherit expressiveness from their larger counterparts while ensuring that high-dimensional models do not "forget" the fundamental patterns captured at smaller scales.

2. Evolutionary Improvement Mechanism

To further refine performance, high-dimensional sub-models are prompted to focus on "hard" triples—data points that their lower-dimensional neighbors failed to predict correctly. By using a dynamic weighting system, the loss for the high-dimensional model is increased for triples missed by the smaller model, forcing the larger model to provide the necessary "evolutionary" gain in accuracy.

3. Dynamic Loss Weight

Recognizing that different sub-models have distinct learning needs, MED adaptively balances multiple loss functions during training. Low-dimensional models are prioritized to learn from their "teachers," while high-dimensional models focus on mastering difficult data points.

The MED framework architecture featuring Mutual Learning, Evolutionary Improvement, and Dynamic Loss Weighting.

Evaluation and Key Insights

The framework was rigorously evaluated on standard benchmarks (WN18RR, FB15K237, CoDEx-L, YAGO3-10) and a massive real-world e-commerce social knowledge graph from Taobao, containing over 50 million triples.

Several key insights emerged from this study:

  • Ability Retention: Standard high-dimensional models do not inherently "know" everything their low-dimensional versions do. MED enforces an "Ability Retention Ratio," ensuring that if a small cropped model can solve a problem, the larger version is guaranteed to do so as well.
  • Stepwise Propagation: Knowledge flows through "neighbors" rather than jumping from the largest to the smallest model. This prevents the "dimension gap" that typically degrades performance in traditional distillation.
  • Training Efficiency: MED offers up to a 10x speedup in total training time compared to training multiple independent models. One training session effectively yields dozens of optimized sub-models.
  • Universal Applicability: The method is model-agnostic, showing success with TransE, RotatE, SimplE, and PairRE. It even generalizes to Transformer architectures like BERT, where MED sub-models outperformed specialized distillation methods by 16% to 21%.

Results

MED demonstrates superior performance across the board. On the WN18RR dataset at a mere 10 dimensions, MED improved the Mean Reciprocal Rank (MRR) by 14.9% for TransE and 29.4% for PairRE compared to state-of-the-art baselines. In practical applications, the 10d "mobile" model derived from the Taobao social graph outperformed models specifically trained for that dimension, proving its utility for real-world, resource-constrained environments.

Limitations and Future Work

While MED is highly effective for major KGE types and BERT, it has not yet been tested on every niche variant. The evolutionary mechanism's reliance on learnable scaling parameters may also require some initial tuning when applied to entirely new neural network architectures. Future research will explore extending "croppable" logic to Graph Neural Networks (GNNs) and large-scale Generative Pre-trained Transformers (GPTs).

Summary updated

BibTeX
@inproceedings{zhu2025croppable,
  author = {Yushan Zhu and Wen Zhang and Zhiqiang Liu and Mingyang Chen and Lei Liang and Huajun Chen},
  title = {{Croppable Knowledge Graph Embedding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure