Papers
Topics
Authors
Recent
Search
2000 character limit reached

Relation- & Attribute-Aware Graph Attention Networks

Updated 15 December 2025
  • The paper introduces a unified framework that utilizes hybrid attention mechanisms and multi-channel encoding to improve cross-platform product matching.
  • It employs specialized attribute-aware encoding by partitioning knowledge graphs into four channels, leveraging MPNet and SimCSE for robust entity representations.
  • Empirical results show significant Hits@1 improvements on benchmarks such as DBP15K and DWY100K, demonstrating superior effectiveness in real-world eBay-to-Amazon matching.

Relation-aware and Attribute-aware Graph Attention Networks for Entity Alignment (RAEA) constitute a unified neural architecture for the product matching problem, treated as an instance of Entity Alignment (EA) over large-scale knowledge graphs (KGs). RAEA was introduced for fine-grained matching across cross-platform product catalogs, particularly between eBay and Amazon, leveraging both attribute triples and relation triples with explicit modeling of their interactions via a hybrid of attention mechanisms and multi-channel encoding. The RAEA pipeline demonstrates significant improvements in alignment tasks on both benchmark datasets and real-world product matching scenarios (Liu et al., 8 Dec 2025).

1. Two-Stage Pipeline for Cross-Platform Matching

The RAEA approach is positioned within a two-stage matching pipeline. In the initial “rough filter” phase, a set of manually crafted, rule-based regular expressions operates over eBay product categories and title keywords to retrieve a candidate subset of Amazon products for each eBay entry. For example, products in the eBay category "rock climbing → anti-skating claw" are matched to Amazon entries with titles containing "climbing.*crampons".

The “fine filter” applies the RAEA model. For each candidate subgraph pair (one from eBay-KG, one from Amazon-KG), RAEA computes dense entity embeddings and constructs a similarity matrix. Entities are then aligned by ranking candidates according to embedding similarity. This two-stage design enables efficient large-scale matching while maximizing precision in the final ranking step.

2. Attribute-aware Entity Encoding

A distinctive feature of RAEA is the partitioning of the KG into four disjoint channels—Literal, Digital, Name, and Structure-only—where each channel contains only the corresponding attribute type triples. For each channel, entities are represented by encoding their attribute predicate-value pairs with a pre-trained MPNet model (768 dimensions), further refined via SimCSE for improved sentence similarity.

Let ajRdaa_j\in\mathbb{R}^{d_a} and vjRdvv_j\in\mathbb{R}^{d_v} denote the embeddings for predicate pjp_j and value vjv_j. Each entity ee has an initial state he(0)Rde\boldsymbol{h}_e^{(0)}\in\mathbb{R}^{d_e}. Attribute aggregation proceeds via a single-headed attention mechanism, where the entity state and each predicate embedding are concatenated and scored:

oj=LeakyReLU(u[he(i1)aj]),αj=exp(oj)k=1nexp(ok)o_j = \mathrm{LeakyReLU}\left(u^\top\,[\boldsymbol{h}_e^{(i-1)}\,\|\, a_j ]\right),\quad \alpha_j = \frac{\exp(o_j)}{\sum_{k=1}^n \exp(o_k)}

The updated representation is

he(i)=σ(j=1nαjWi[ajvj])\boldsymbol{h}_e^{(i)} = \sigma\left(\sum_{j=1}^n \alpha_j W_i [a_j \| v_j]\right)

with learnable uu, WiW_i, and vjRdvv_j\in\mathbb{R}^{d_v}0 as ELU. Stacking one or two layers yields an attribute-aware embedding vjRdvv_j\in\mathbb{R}^{d_v}1. This architecture enables rich modeling of heterogeneous attribute signals across different attribute types.

3. Relation-aware Graph Attention Networks

After entities are assigned attribute-aware embeddings, RAEA introduces a three-stage mechanism for relation-aware enhancement.

3.1 Entity-to-Relation Representation

For each relation type vjRdvv_j\in\mathbb{R}^{d_v}2, all triples vjRdvv_j\in\mathbb{R}^{d_v}3 induce “head view” and “tail view” representations: vjRdvv_j\in\mathbb{R}^{d_v}4

vjRdvv_j\in\mathbb{R}^{d_v}5

vjRdvv_j\in\mathbb{R}^{d_v}6

Here, vjRdvv_j\in\mathbb{R}^{d_v}7 is the set of triples with relation vjRdvv_j\in\mathbb{R}^{d_v}8, and vjRdvv_j\in\mathbb{R}^{d_v}9 are learnable.

3.2 Relation-to-Entity Representation

Each entity pjp_j0 aggregates incoming relation representations via attention: pjp_j1

pjp_j2

where pjp_j3 denotes all relation types incident on pjp_j4.

3.3 Entity Representation Enhancement

A final graph attention (GAT) layer propagates signals over the graph: pjp_j5

pjp_j6

These outputs serve as the final per-channel entity embeddings.

4. Channel-wise Ensemble for Similarity Computation

Similarity between eBay and Amazon entities is computed channel-wise as the cosine similarity between the resulting embeddings. To aggregate these into a single cross-KG similarity matrix, RAEA applies a data-driven pre-weighting strategy: channel pjp_j7 is weighted by its Hits@1 performance, pjp_j8, yielding

pjp_j9

where vjv_j0 is the similarity matrix for channel vjv_j1. This approach leverages the empirical discriminative power of each attribute type in the ensemble.

5. Margin-based Hard Negative Training Objective

For each channel, RAEA employs a margin-based ranking loss using hard negatives. Let vjv_j2 be the set of supervised aligned seed pairs vjv_j3. For each, up to 15 hardest negatives vjv_j4 are sampled: vjv_j5 with Euclidean distance vjv_j6 and typical margin vjv_j7. The overall loss sums across all channels.

6. Implementation Configurations

Key hyperparameters include MPNet embedding dimensions (vjv_j8), intermediate GAT dimensions (vjv_j9), optimizer (AdaGrad), learning rate grid ee0, and ee1-regularization grid ee2. Negative sampling is fixed at 15 per seed for DBP15K, 5 for DWY100K. Pre-training of MPNet utilizes “paraphrase-multilingual-MPnet-base-v2” with batch size 512 and SimCSE objective. Training uses early stopping (no Hits@1 improvement in 50 epochs, max 1,500) on hardware comprising an NVIDIA RTX 3090 (24 GB) and 12-core CPU.

7. Empirical Performance and Applications

On the cross-lingual DBP15K EA benchmark, RAEA with pre-weighted ensemble achieves:

  • zh–en: Hits@1 = 86.28% (best baseline 79.60%)
  • ja–en: Hits@1 = 88.48% (best baseline 78.50%)
  • fr–en: Hits@1 = 94.97% (best baseline 91.85%) with an average improvement of approximately 6.59% in Hits@1 over 12 baselines.

On the monolingual DWY100K dataset, RAEA attains Hits@1 of 97.35% (DBP–WD, best=98.10%) and 99.82% (DBP–YG, best=99.89%).

In practical eBay-to-Amazon matching, RAEA’s fine filter yields NDCG=0.566 and MRR=0.345, outperforming simpler ensemble baselines. This suggests that the joint modeling of attribute and relation signals, combined with channel-weighted similarity and hard negative loss, is particularly effective for real-world cross-platform product alignment. The RAEA source code is available for public use.


RAEA introduces a unified EA framework that synthesizes attribute-aware encoding (via MPNet and attention), explicit aggregation of relation types through RGAT, multi-channel ensemble scoring grounded in empirical discriminative strength, and discriminative margin-based training. These architectural features result in superior alignment accuracy on diverse datasets and improved product matching performance in operational settings (Liu et al., 8 Dec 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Relation-aware and Attribute-aware Graph Attention Networks for Entity Alignment (RAEA).