Skip to main content
QUICK REVIEW

[Paper Review] Joint Language Semantic and Structure Embedding for Knowledge Graph Completion

Jianhao Shen, Chenguang Wang|arXiv (Cornell University)|Sep 19, 2022
Topic ModelingComputer Science22 citations
TL;DR

LaSS jointly embeds semantic descriptions and KG structure by fine-tuning pre-trained language models with a probabilistic structured loss, achieving state-of-the-art KG completion and data efficiency, including low-resource settings.

ABSTRACT

The task of completing knowledge triplets has broad downstream applications. Both structural and semantic information plays an important role in knowledge graph completion. Unlike previous approaches that rely on either the structures or semantics of the knowledge graphs, we propose to jointly embed the semantics in the natural language description of the knowledge triplets with their structure information. Our method embeds knowledge graphs for the completion task via fine-tuning pre-trained language models with respect to a probabilistic structured loss, where the forward pass of the language models captures semantics and the loss reconstructs structures. Our extensive experiments on a variety of knowledge graph benchmarks have demonstrated the state-of-the-art performance of our method. We also show that our method can significantly improve the performance in a low-resource regime, thanks to the better use of semantics. The code and datasets are available at https://github.com/pkusjh/LASS.

Motivation & Objective

  • Motivate KG completion by leveraging both structural patterns and semantic descriptions of entities and relations.
  • Propose a unified embedding framework (LaSS) that combines semantic embedding from language models with a probabilistic structured loss for structural reconstruction.
  • Demonstrate state-of-the-art performance on multiple KG benchmarks for link prediction and triplet classification.
  • Show improved data efficiency in low-resource settings by exploiting semantic information.
  • Provide analysis and discussion of limitations and future directions in integrating semantics and structure.

Proposed method

  • Represent (h, r, t) triplets by concatenating natural language descriptions of h, r, and t and forwarding through a pre-trained LM to obtain semantic embeddings via mean pooling.
  • Define a probabilistic structured loss based on a TransE-like score f(h,r,t)=b−0.5||h+r−t||^2 and compute Pr(h|r,t), Pr(r|h,t), Pr(t|h,r) with negative sampling to train the LM.
  • Fine-tune LMs (BERT and RoBERTa variants) on the KG data with this structured loss, creating joint semantic and structure embeddings.
  • Use negative sampling to approximate the partition function in the probabilistic loss to maintain computational efficiency.
  • Query-dependent embeddings (via LM outputs) maintain semantic consistency while the structured loss guides structural reconstruction.
  • Evaluate on KG benchmarks including FB15k-237, FB13, WN18RR, WN11, and UMLS across link prediction and triplet classification.

Experimental results

Research questions

  • RQ1Can a single framework that fuses semantic descriptions with KG structure improve KG completion tasks beyond purely structural or purely semantic models?
  • RQ2Does fine-tuning language models with a probabilistic structured loss enable effective joint embedding of semantics and structure for link prediction and triplet classification?
  • RQ3How does LaSS perform in low-resource data regimes compared to existing KG completion methods?
  • RQ4What is the impact of using different pre-trained language models (BERT vs RoBERTa) and model sizes on KG completion performance?

Key findings

  • LaSS achieves state-of-the-art results on several KG benchmarks for link prediction and triplet classification.
  • LaSS demonstrates improved data efficiency, performing well in low-resource settings and often surpassing methods trained on full data with much less labeled data.
  • LaSS variants using larger models (LaSS-BERT LARGE, LaSS-RoBERTa LARGE) generally outperform smaller counterparts, especially on WordNet-based tasks.
  • LaSS outperforms KG-BERT and traditional structure-only methods by leveraging both semantic descriptions and structural cues, particularly in preserving semantic consistency while reconstructing KG structures.
  • The analysis shows LaSS captures semantic relatedness and structural patterns via its attention mechanisms and structured loss, contributing to improved predictions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.