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

Efficient Parameterization for Knowledge Graph Embedding Using Hierarchical Attention Network

Zhen-Yu Chen, Feng-Chi Liu, Xin Wang, Cheng‐Hsiung Lee, Ching-Sheng Lin2025

Abstract

Knowledge Graph Embedding (KGE) models typically face a scalability wall as graph sizes increase, requiring unique high-dimensional vectors for every entity. This paper introduces a novel Hierarchical Attention Network (HAN) that leverages a small "reserved" subset of entities to represent the entire graph. By utilizing connection features and similarity-based pooling, the proposed model achieves state-of-the-art performance on benchmarks like WN18RR and CoDEx-L while significantly reducing parameter overhead.

Introduction

Knowledge Graphs (KGs) such as DBpedia and Freebase serve as the backbone for numerous AI applications, from recommendation systems to semantic search. However, traditional KGE methods assign a dedicated embedding to every entity, leading to linear parameter growth. This linear dependency hinders deployment on edge devices and limits the ability of models to generalize in sparse data environments. This research addresses the "scalability wall" by decoupling the number of parameters from the total number of entities through a hierarchical attention mechanism.

Methodology

The core innovation lies in the Hierarchical Attention Network (HAN), which constructs entity representations dynamically rather than relying on a full lookup table.

The Reserved Set

Instead of learning embeddings for all entities, the model maintains a learned vector space for only a 10% "reserved" subset. Representations for the remaining 90% are synthesized using three distinct attention layers:

  1. Connection Feature & Self-Attention: The model encodes an entity's "personality" based on its relation frequencies (how often it acts as a head or tail for specific relations). A self-attention layer captures the intricate dependencies between these relation types.
  2. Retrieval & Attention Pooling: The system identifies the "Top-K" most similar entities within the reserved set. Attention pooling then aggregates these reserved embeddings into a similarity-based feature vector.
  3. Dot-Product Attention & GNN: These features are fused via dot-product attention. A Graph Neural Network (GNN) with edge-attention then refines the representation by incorporating local neighborhood context.

For triple scoring, the model employs the RotatE strategy, treating relations as rotations in a complex vector space to maintain geometric consistency.

Experimental Results

The model was evaluated on two standard benchmarks: WN18RR (WordNet subset) and CoDEx-L (a large-scale, complex dataset).

Performance and Efficiency

On WN18RR, the HAN-based model achieved a Mean Reciprocal Rank (MRR) of 0.434 using only 3.7 million parameters. In contrast, a standard RotatE model required 4.1 million parameters to achieve a lower MRR of 0.411. This represents a 5.59% relative improvement in MRR and a significant 21.21% boost in Hits@10.

On the more challenging CoDEx-L dataset, the model maintained its lead with an MRR of 0.213, outperforming other parameter-efficient baselines like EARL+RotatE.

Key Insights

  • Relation Frequency as Identity: The success of the model confirms that an entity's role in a graph is effectively summarized by its relational distribution.
  • Interpolation via Reserved Anchors: The "reserved set" acts as a set of anchors, allowing the network to accurately interpolate the positions of unindexed entities.
  • Edge-Attention Utility: Ablation studies highlighted that the edge-attention mechanism in the GNN is critical for weighting neighbor importance dynamically.

Conclusion

The Hierarchical Attention Network provides a scalable path forward for KGE, breaking the linear relationship between graph size and memory requirements. Future research will focus on optimizing the selection of the reserved set—potentially prioritizing high-connectivity "hub" entities—and exploring more complex attention architectures to further enhance representational capacity in specialized domains like medicine and agriculture.

Summary updated

BibTeX
@inproceedings{chen2025efficient,
  author = {Zhen-Yu Chen and Feng-Chi Liu and Xin Wang and Cheng‐Hsiung Lee and Ching-Sheng Lin},
  title = {{Efficient Parameterization for Knowledge Graph Embedding Using Hierarchical Attention Network}},
  booktitle = {Computers,},
  year = {2025},
  doi = {10.32604/cmc.2025.061661},
}
Figure