Efficient Information Extraction in Few-Shot Relation Classification through Contrastive Representation Learning

Philipp Borchert, Jochen De Weerdt, Marie-Francine Moens
3/25/2024
cs.CLcs.AI

No official code found. Best implementation: pnborchert/MultiRep (8 stars, CC-BY-4.0, last commit 2024-06-18).

Abstract

Differentiating relationships between entity pairs with limited labeled instances poses a significant challenge in few-shot relation classification. Representations of textual data extract rich information spanning the domain, entities, and relations. In this paper, we introduce a novel approach to enhance information extraction combining multiple sentence representations and contrastive learning. While representations in relation classification are commonly extracted using entity marker tokens, we argue that substantial information within the internal model representations remains untapped. To address this, we propose aligning multiple sentence representations, such as the [CLS] token, the [MASK] token used in prompting, and entity marker tokens. Our method employs contrastive learning to extract complementary discriminative information from these individual representations. This is particularly relevant in low-resource settings where information is scarce. Leveraging multiple sentence representations is especially effective in distilling discriminative information for relation classification when additional information, like relation descriptions, are not available. We validate the adaptability of our approach, maintaining robust performance in scenarios that include relation descriptions, and showcasing its flexibility to adapt to different resource constraints.

View on arXivView PDF

Code Implementations(1)

pnborchert/MultiRepCommunity100%
CC-BY-4.0

Efficient Information Extraction in Few-Shot Relation Classification through Contrastive Representation Learning. NAACL 2024.

80Shell, PythonOct 8, 20232 years agoCC-BY-4.0
contrastive-learningfew-shotfewrelinformation-extractionlow-resource-nlp+1 more

Similar Papers

Cite this paper

@article{borchert2024efficient,
  title  = {Efficient Information Extraction in Few-Shot Relation Classification through Contrastive Representation Learning},
  author = {Philipp Borchert and Jochen De Weerdt and Marie-Francine Moens},
  year   = {2024},
  eprint = {2403.16543},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.16543v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.16543.svg)](https://codeofpaper.com/paper/2403.16543)

Discussion