Logic-guided Semantic Representation Learning for Zero-Shot Relation Classification

Juan Li, Ruoxu Wang, Ningyu Zhang, Wen Zhang, Fan Yang, Huajun Chen

Introduction

Relation Classification (RC) is a fundamental task in information extraction, aimed at identifying the semantic connection between two entities within a sentence. Traditional RC models operate under a "closed-world" assumption, where they can only recognize relations encountered during training. This limitation hinders their performance in dynamic environments where new relations frequently emerge.

Zero-Shot Relation Classification (ZSRC) addresses this by attempting to identify unseen relations. While previous methods relied on manual text descriptions or word embeddings, these often struggle with labor-intensive requirements and semantic ambiguity. This paper introduces Logic-guided Semantic Representation Learning (LSRL), a framework that leverages Knowledge Graphs (KGs) and symbolic logic to bridge the gap between seen and unseen relations.

The LSRL Framework

The LSRL framework is designed to enhance the semantic space used for zero-shot projection by incorporating both implicit and explicit knowledge from KGs. It consists of three primary modules:

  1. Feature Representation: Raw sentences are transformed into feature vectors using a Piecewise Convolutional Neural Network (PCNN). These features are then mapped into a semantic space using established projection methods such as DeViSE or ConSE.
  2. Semantic Representation Learning: This core module constructs a robust semantic space. It utilizes Implicit Connections via Knowledge Graph Embeddings (KGE) to represent relations based on their structural context within a KG. Simultaneously, it incorporates Explicit Connections by mining logical rules. These rules allow the model to formally derive the representation of an unseen relation from seen ones.
  3. Inference: During testing, the model calculates the similarity between the projected sentence vector and the learned representations of all candidate unseen relations, selecting the most probable match.
Overview of the LSRL framework, illustrating the integration of feature representation, semantic learning from KGs and rules, and the inference process.

Dataset and Experimental Setup

To evaluate LSRL, the authors developed a new benchmark based on Wikipedia and Wikidata. The dataset comprises 100 relations, split into 70 "seen" relations for training and 30 "unseen" relations for testing. This split was carefully curated to ensure that unseen relations possess logical or semantic ties to the training set, facilitating a rigorous test of the model's reasoning capabilities.

Experimental Results

The experimental evaluation demonstrates that incorporating KG-based knowledge significantly outperforms standard word embedding baselines. As shown in the results table, the addition of KG embeddings ($E_{kg}$) and logic rules ($E_{rl}$) leads to substantial improvements in Hit@n metrics.

Performance comparison (Hit@n) of different semantic configurations within the ConSE and DeViSE frameworks.

Key findings include:

  • KG Superiority over Word Embeddings: Using KG embeddings alone improved Hit@1 accuracy by approximately 18% compared to word embeddings, largely due to the reduced ambiguity of KG-based representations (e.g., distinguishing between different meanings of "draft").
  • Impact of Logic Rules: The "KG+Rule" configuration achieved the highest performance, reaching a Hit@1 of 0.43 within the ConSE framework. Logic rules serve as "anchors," providing corrective signals that stabilize representations even when KG data is sparse.
  • Qualitative Success: Case studies revealed that the model excels at identifying complex relations like nominated_for by leveraging rules that connect them to seen relations like award_received.

Conclusion and Future Work

LSRL represents a significant step forward in ZSRC by effectively combining the intuition of neural embeddings with the precision of symbolic logic. While the method is currently dependent on the availability and quality of external KGs, it demonstrates the power of structured knowledge in solving zero-shot tasks. Future work will explore end-to-end reasoning to discover and apply logical rules dynamically during training, potentially reducing the reliance on pre-mined rules and improving performance on sparse relations.

Summary updated

BibTeX
@inproceedings{li2020logic,
  author = {Juan Li and Ruoxu Wang and Ningyu Zhang and Wen Zhang and Fan Yang and Huajun Chen},
  title = {{Logic-guided Semantic Representation Learning for Zero-Shot Relation Classification}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.coling-main.265},
}
Figure