[Paper Review] SASA: Semantic-Aware Contrastive Learning Framework with Separated Attention for Triple Classification
SASA introduces a dual-tower encoding with separated attention and semantic-aware hierarchical contrastive learning to improve triple classification in knowledge graphs, achieving state-of-the-art results on FB15k-237 and YAGO3-10.
Knowledge Graphs~(KGs) often suffer from unreliable knowledge, which restricts their utility. Triple Classification~(TC) aims to determine the validity of triples from KGs. Recently, text-based methods learn entity and relation representations from natural language descriptions, significantly improving the generalization capabilities of TC models and setting new benchmarks in performance. However, there are still two critical challenges. First, existing methods often ignore the effective semantic interaction among different KG components. Second, most approaches adopt single binary classification training objective, leading to insufficient semantic representation learning. To address these challenges, we propose extbf{SASA}, a novel framework designed to enhance TC models via separated attention mechanism and semantic-aware contrastive learning~(CL). Specifically, we first propose separated attention mechanism to encode triples into decoupled contextual representations and then fuse them through a more effective interactive way. Then, we introduce semantic-aware hierarchical CL as auxiliary training objective to guide models in improving their discriminative capabilities and achieving sufficient semantic learning, considering both local level and global level CL. Experimental results across two benchmark datasets demonstrate that SASA significantly outperforms state-of-the-art methods. In terms of accuracy, we advance the state-of-the-art by +5.9\% on FB15k-237 and +3.4\% on YAGO3-10.
Motivation & Objective
- Motivate improving triple classification by capturing cross-component semantic interactions among h, r, and t.
- Propose separated attention to decouple and fuse component representations for richer interactions.
- Introduce semantic-aware hierarchical contrastive learning to enhance discriminative semantic learning at local and global levels.
- Jointly train TC objective with contrastive learning to improve semantic representation learning.
- Evaluate SASA on standard TC benchmarks to demonstrate performance gains over state-of-the-art methods.
Proposed method
- Use a dual-tower encoder where one tower encodes (h,r) and the other encodes t; head-relation embedding e_{hr} and tail embedding e_{t} are obtained via BERT-based encoders.
- Apply a separated attention mechanism to align and fuse decoupled representations into a final triple representation h_{hrt} via cross-attention.
- Train with a binary cross-entropy TC objective using a linear layer to output validity scores.
- Introduce local-level contrastive learning by creating dropout-augmented positives for the tail to learn robust fine-grained semantics (L_local).
- Introduce global-level contrastive learning by retrieving hard negatives with a large embedding model (BGE) and training to discriminate the anchor from hard negatives (L_global).
- Jointly optimize L_TC + w1*L_local + w2*L_global with learnable temperature parameter in contrastive losses.
Experimental results
Research questions
- RQ1Can separated attention improve interaction among head-relation and tail representations for TC?
- RQ2Does semantic-aware hierarchical contrastive learning (local and global) enhance fine-grained semantic learning for KGs?
- RQ3How do local perturbations (dropout) and hard negative mining affect TC performance?
- RQ4What are SASA's gains over state-of-the-art TC methods on FB15k-237 and YAGO3-10?
- RQ5Is a small-model, text-based approach sufficient to surpass embedding-based and larger text-based TC models?
Key findings
- SASA achieves state-of-the-art accuracy: 0.966 on FB15k-237 and 0.966 on YAGO3-10.
- SASA improves over StAR by 5.9 percentage points on FB15k-237 and 3.4 on YAGO3-10 in accuracy.
- Local-level CL and global-level CL both contribute to performance gains; removing separated attention degrades results.
- Ablation shows local CL adds accuracy gains (e.g., 0.35% on FB15k-237) and global CL provides substantial improvements by leveraging hard negatives.
- Global negative sampling via BGE hard negatives further boosts discrimination of semantically similar tails.
- Table-level results indicate SASA’s precision and recall improvements (FB237: 0.926/0.974; YAGO3-10: 0.927/0.973) with F1-scores 0.950 and 0.949 respectively.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.