MixCL: Mixed Contrastive Learning for Relation Extraction

Jinglei Zhang,Bo Li,Xixin Cao,Minghui Zhang,Wen Zhao
DOI: https://doi.org/10.1007/978-981-97-2238-9_7
2024-01-01
Abstract:Entity representation plays a fundamental role in modern relation extraction models. Previous efforts usually explicitly distinguish entities from contextual words, e.g., by introducing position embedding w.r.t. entities or surrounding entities with special tokens. Inspired by this observation, we propose improving relation extraction via a novel entity-level contrastive learning, which contrasts an entity with both other ones and its contextual words in a mini-batch. To generate high-quality negatives for contrast, we equip our entity-level contrastive learning with an innovative Mixup strategy, which interpolates feature representations of negative entities and contextual words to create new diversified negative examples. Extensive experiments on TACRED, TACRED-revisited, and SemEval2010 show that our method delivers robust performance improvements base on a strong relation extraction baseline. Furthermore, we propose a new metric to measure the overall hardness of the negative examples by considering their dissimilarities with the anchor instance as well as their diversities, explaining the superiority of our method in-depth.
What problem does this paper attempt to address?