Imposing Relation Structure in Language-Model Embeddings Using Contrastive Learning
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2020Supervised Contrastive Learningcited by 2,803
- 2018Deep contextualized word representationscited by 2,285
- 2017Modeling Relational Data with Graph Convolutional Networkscited by 1,684
- 2019Data-Efficient Image Recognition with Contrastive Predictive Codingcited by 672
- 2013Speech Recognition with Deep Recurrent Neural Networkscited by 666
9 more
- 2020Contrastive Learning of Medical Visual Representations from Paired Images and Textcited by 636
- 2016End-to-End Relation Extraction using LSTMs on Sequences and Tree Structurescited by 161
- 2019Span-based Joint Entity and Relation Extraction with Transformer Pre-trainingcited by 132
- 2020Two are Better than One: Joint Entity and Relation Extraction with Table-Sequence Encoderscited by 87
- 2020CharacterBERT: Reconciling ELMo and BERT for Word-Level Open-Vocabulary Representations From Characterscited by 87
- 2018Joint entity recognition and relation extraction as a multi-head selection problemcited by 59
- 2018Adversarial training for multi-context joint entity and relation extractioncited by 29
- 2019Neural Metric Learning for Fast End-to-End Relation Extractioncited by 12
- 2020Let's Stop Incorrect Comparisons in End-to-end Relation Extraction!cited by 3
Built on by
Citing papers per year: 2023: 4; 2024: 4; 2025: 1.
9 papers.
- 2023An Information Extraction Study: Take In Mind the Tokenization!cited by 6
- 2023Graph-Induced Syntactic-Semantic Spaces in Transformer-Based Variational AutoEncoderscited by 6
- 2023Representation Learning for Person or Entity-centric Knowledge Graphs: An Application in Healthcarecited by 4
- 2023GADePo: Graph-Assisted Declarative Pooling Transformers for Document-Level Relation Extractioncited by 1
- 2024Enhancing Biomedical Knowledge Discovery for Diseases: An Open-Source Framework Applied on Rett Syndrome and Alzheimer's Diseasecited by 1
- 2024Fast-and-Frugal Text-Graph Transformers are Effective Link Predictorscited by 0
- 2024Evaluating the Predictive Features of Person-Centric Knowledge Graph Embeddings: Unfolding Ablation Studiescited by 0
- 2024ADEQA: A Question Answer based approach for joint ADE-Suspect Extraction using Sequence-To-Sequence Transformerscited by 0
- 2025Reduction of Supervision for Biomedical Knowledge Discoverycited by 0
- 2025Reduction of Supervision for Biomedical Knowledge Discovery13 Apr 2025
- 2024ADEQA: A Question Answer based approach for joint ADE-Suspect Extraction using Sequence-To-Sequence Transformers20 Dec 2024
- 2024Evaluating the Predictive Features of Person-Centric Knowledge Graph Embeddings: Unfolding Ablation Studies27 Aug 2024
- 2024Fast-and-Frugal Text-Graph Transformers are Effective Link Predictors13 Aug 2024
- 2024Enhancing Biomedical Knowledge Discovery for Diseases: An Open-Source Framework Applied on Rett Syndrome and Alzheimer's Disease18 Jul 2024
- 2023Graph-Induced Syntactic-Semantic Spaces in Transformer-Based Variational AutoEncoders14 Nov 2023
- 2023GADePo: Graph-Assisted Declarative Pooling Transformers for Document-Level Relation Extraction28 Aug 2023
- 2023Representation Learning for Person or Entity-centric Knowledge Graphs: An Application in Healthcare9 May 2023
- 2023An Information Extraction Study: Take In Mind the Tokenization!27 Mar 2023