AlignRE: An Encoding and Semantic Alignment Approach for Zero-Shot Relation Extraction

Zehan Li, Fu Zhang, Jingwei Cheng


Abstract
Zero-shot Relation Extraction (ZSRE) aims to predict unseen relations between entity pairs from input sentences. Existing prototype-based ZSRE methods encode relation descriptions into prototype embeddings and predict by measuring the similarity between sentence embeddings and prototype embeddings. However, these methods often overlook abundant side information of relations and suffer from a significant encoding gap between prototypes and sentences, limiting performance. To this end, we propose a framework named AlignRE, based on two Alignment methods for ZSRE. Specifically, we present a novel perspective centered on encoding schema alignment to enhance prototype-based ZSRE methods. We utilize well-designed prompt-tuning to bridge the encoding gap. To improve prototype quality, we explore and leverage multiple side information and propose a prototype aggregation method based on semantic alignment to create comprehensive relation prototype representations. We conduct experiments on FewRel and Wiki-ZSL datasets and consistently outperform state-of-the-art methods. Moreover, our method exhibits substantially faster performance and reduces the need for extensive manual labor in prototype construction. Code is available at https://github.com/lizehan1999/AlignRE.
Anthology ID:
2024.findings-acl.174
Volume:
Findings of the Association for Computational Linguistics ACL 2024
Month:
August
Year:
2024
Address:
Bangkok, Thailand and virtual meeting
Editors:
Lun-Wei Ku, Andre Martins, Vivek Srikumar
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
2957–2966
Language:
URL:
https://aclanthology.org/2024.findings-acl.174
DOI:
Bibkey:
Cite (ACL):
Zehan Li, Fu Zhang, and Jingwei Cheng. 2024. AlignRE: An Encoding and Semantic Alignment Approach for Zero-Shot Relation Extraction. In Findings of the Association for Computational Linguistics ACL 2024, pages 2957–2966, Bangkok, Thailand and virtual meeting. Association for Computational Linguistics.
Cite (Informal):
AlignRE: An Encoding and Semantic Alignment Approach for Zero-Shot Relation Extraction (Li et al., Findings 2024)
Copy Citation:
PDF:
https://aclanthology.org/2024.findings-acl.174.pdf