Subgraph-Aware Training of Language Models for Knowledge Graph Completion Using Structure-Aware Contrastive Learning
cs.CL, cs.AI
Submitted: 2024-07-17
Updated: 2025-01-31
Comments: Accepted to The Web Conference 2025
Code: https://github.com/meaningful96/SATKGC
License: http://creativecommons.org/licenses/by/4.0/
The gist: Fine-tuning pre-trained language models (PLMs) has recently shown a potential to improve knowledge graph completion (KGC).
Terminology
Abstract
Fine-tuning pre-trained language models (PLMs) has recently shown a potential to improve knowledge graph completion (KGC). However, most PLM-based methods focus solely on encoding textual information, neglecting the long-tailed nature of knowledge graphs and their various topological structures, e.g., subgraphs, shortest paths, and degrees. We claim that this is a major obstacle to achieving higher accuracy of PLMs for KGC. To this end, we propose a Subgraph-Aware Training framework for KGC (SATKGC) with two ideas: (i) subgraph-aware mini-batching to encourage hard negative sampling and to mitigate an imbalance in the frequency of entity occurrences during training, and (ii) new contrastive learning to focus more on harder in-batch negative triples and harder positive triples in terms of the structural properties of the knowledge graph. To the best of our knowledge, this is the first study to comprehensively incorporate the structural inductive bias of the knowledge graph into fine-tuning PLMs. Extensive experiments on three KGC benchmarks demonstrate the superiority of SATKGC. Our code is available.
Sources
- Structure Aware Negative Sampling in Knowledge Graphs
- A Simple Framework for Contrastive Learning of Visual Representations
- CERT: Contrastive Self-supervised Learning for Language Understanding
- SimCSE: Simple Contrastive Learning of Sentence Embeddings
- Self-Supervised Contrastive Representation Learning for 3D Mesh Segmentation
- DeBERTa: Decoding-enhanced BERT with Disentangled Attention
- LoRA: Low-Rank Adaptation of Large Language Models
- Rethinking Class-Balanced Methods for Long-Tailed Visual Recognition from a Domain Adaptation Perspective
- Overcoming Classifier Imbalance for Long-tail Object Detection with Balanced Group Softmax
- Representation Learning with Contrastive Predictive Coding
- Balanced Meta-Softmax for Long-Tailed Visual Recognition
- MPNet: Masked and Permuted Pre-training for Language Understanding
- Equalization Loss for Long-Tailed Object Recognition
- Language Models as Knowledge Embeddings
- Improving Multilingual Sentence Embedding using Bi-directional Dual Encoder with Additive Margin Softmax
- Understanding Negative Sampling in Graph Representation Learning
- KG-BERT: BERT for Knowledge Graph Completion
- HaSa: Hardness and Structure-Aware Contrastive Knowledge Graph Embedding
- Contrastive Learning of Sentence Embeddings from Scratch
- Making Large Language Models Perform Better in Knowledge Graph Completion
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering