mlsanityData to 7 Oct 2026

Imposing Relation Structure in Language-Model Embeddings Using Contrastive Learning

arXiv 2109.00840 ↗First posted 2 Sep 2021cs.CL cs.AIcited by 9

Not on the map. Why?

Abstract (arXiv)

Though language model text embeddings have revolutionized NLP research, their ability to capture high-level semantic information, such as relations between entities in text, is limited. In this paper, we propose a novel contrastive learning framework that trains sentence embeddings to encode the relations in a graph structure. Given a sentence (unstructured text) and its graph, we use contrastive learning to impose relation-related structure on the token-level representations of the sentence obtained with a CharacterBERT (El Boukkouri et al.,2020) model. The resulting relation-aware sentence embeddings achieve state-of-the-art results on the relation extraction task using only a simple KNN classifier, thereby demonstrating the success of the proposed method. Additional visualization by a tSNE analysis shows the effectiveness of the learned representation space compared to baselines. Furthermore, we show that we can learn a different space for named entity recognition, again using a contrastive learning objective, and demonstrate how to successfully combine both representation spaces in an entity-relation task.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 21 of its 41 references that are in the map. First posted on arXiv 2 Sep 2021.

Builds on

21 of 41 references.

References · 21

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  7. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  8. 2020Supervised Contrastive Learningcited by 2,803
  9. 2018Deep contextualized word representationscited by 2,285
  10. 2017Modeling Relational Data with Graph Convolutional Networkscited by 1,684
  11. 2019Data-Efficient Image Recognition with Contrastive Predictive Codingcited by 672
  12. 2013Speech Recognition with Deep Recurrent Neural Networkscited by 666
9 more
  1. 2020Contrastive Learning of Medical Visual Representations from Paired Images and Textcited by 636
  2. 2016End-to-End Relation Extraction using LSTMs on Sequences and Tree Structurescited by 161
  3. 2019Span-based Joint Entity and Relation Extraction with Transformer Pre-trainingcited by 132
  4. 2020Two are Better than One: Joint Entity and Relation Extraction with Table-Sequence Encoderscited by 87
  5. 2020CharacterBERT: Reconciling ELMo and BERT for Word-Level Open-Vocabulary Representations From Characterscited by 87
  6. 2018Joint entity recognition and relation extraction as a multi-head selection problemcited by 59
  7. 2018Adversarial training for multi-context joint entity and relation extractioncited by 29
  8. 2019Neural Metric Learning for Fast End-to-End Relation Extractioncited by 12
  9. 2020Let's Stop Incorrect Comparisons in End-to-end Relation Extraction!cited by 3

Built on by

Cited by year

Citing papers per year: 2023: 4; 2024: 4; 2025: 1.

9 papers.