NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Unsupervised Relation Extraction by Augmenting Diverse Sentence Pairs

Qing Wang, Kang Zhou, Qiao Qiao, Yuepei Li, Qi Li

Introduction

Relation Extraction (RE) is a fundamental task in Information Extraction, aimed at identifying the semantic relationship between two entities in a given sentence (e.g., identifying that "Steve Jobs" and "Apple" share an org:founded_by relationship). While supervised RE has seen significant progress, it remains bottlenecked by the requirement for massive, human-labeled datasets. Unsupervised Relation Extraction (URE) offers a scalable alternative by clustering similar relations without pre-defined labels.

Modern URE frameworks typically rely on contrastive learning, which optimizes a model to pull "positive pairs" (sentences expressing the same relation) closer in a vector space while pushing "negative pairs" apart. However, current methods suffer from two primary limitations: a lack of diversity in positive pairs—often relying on simple surface-level variations—and the use of suboptimal loss functions that treat relations as binary categories rather than a semantic spectrum. This paper introduces AugURE, a framework designed to address these gaps through diverse data augmentation and a nuanced margin-based loss function.

The AugURE Framework

AugURE improves the quality of learned relation representations by focusing on the diversity of training signals and the flexibility of the optimization objective.

1. Diverse Positive Pair Augmentation

To move beyond simple word-level perturbations, AugURE employs a multi-layered strategy to generate positive pairs that are semantically identical but syntactically diverse.

  • Within-Sentence Augmentation: The model creates variations of a single sentence by sampling non-stop words between entities and performing entity substitution. For instance, if an entity is labeled as an ORGANIZATION, it might be replaced with another entity of the same type (e.g., replacing "Apple" with "Microsoft") to ensure the model focuses on the relational context rather than specific entity names.
  • Cross-Sentence Augmentation: This represents the core innovation of the framework. By identifying different sentences that express the same underlying relation, the model learns more robust, generalized representations. This is achieved through three methods:
  • OpenIE Templates: Using Open Information Extraction to identify sentences with identical relation patterns.
  • NLI Grouping: Leveraging Natural Language Inference (NLI) to determine if different templates entail the same meaning (e.g., "is the CEO of" entails "works for").
  • ChatGPT Rewriting: Using Large Language Models (LLMs) to rewrite sentences into a concise relationship format. Original sentences that share the same LLM-generated summary are then grouped as positive pairs. Crucially, the LLM is used as a discovery tool for existing data rather than a generator of synthetic training samples, avoiding potential distribution shifts.

2. Relation Encoder and Architecture

The framework utilizes a BERT-base architecture as its backbone. To ensure the model focuses on the relevant entities, the authors inject special "entity markers" (e.g., <e1:PERSON>) into the input. These markers guide the transformer's attention toward the entities and their respective types, which is critical for distinguishing between different relation types that might share similar contexts.

3. Margin-Based Loss

Traditional URE models often use Noise-Contrastive Estimation (NCE) loss, which treats relations as a binary "same or different" classification. AugURE replaces this with Margin Pair Loss. This shift acknowledges that relations exist on a spectrum; for example, the relation "employee" is semantically closer to "member" than it is to "founded by." The margin-based approach allows the model to handle "false negatives" more gracefully—instances where two sentences in a batch might actually share a relation despite being labeled as negatives—and provides a more flexible optimization landscape.

Experimental Results

The authors evaluated AugURE on two standard benchmarks: NYT-FB (a distantly supervised, noisy dataset) and TACRED (a high-quality, crowdsourced dataset). Performance was measured using K-Means clustering on the learned representations.

Performance Highlights

  • NYT-FB: AugURE achieved state-of-the-art results, improving the $B^3$ F1 score by 0.6%, the V-measure F1 by 4.3%, and the Adjusted Rand Index (ARI) by 2.8%.
  • TACRED: The model demonstrated even more significant gains on this cleaner dataset. Most notably, the ARI—a rigorous measure of clustering agreement—increased by 12.4% over previous leading methods.
  • Ablation Studies: The researchers confirmed that both the cross-sentence augmentation and the margin loss were critical. Removing either component led to a substantial drop in performance, validating the hypothesis that both data diversity and a nuanced loss function are necessary for effective URE.

Discussion and Future Work

The success of AugURE highlights several key insights for the field of unsupervised learning. First, treating relations as a spectrum rather than discrete categories significantly improves robustness. Second, the use of LLMs to discover "global context" (linking different sentences across a dataset) is more effective than relying solely on "local context" (modifying a single sentence).

Despite these gains, the authors note that the reliance on K-Means clustering assumes roughly spherical and balanced clusters, which may not reflect the skewed distribution of relations in real-world language. Furthermore, the OpenIE process can be biased toward frequent relations. Future research may explore more flexible clustering algorithms and techniques to better handle the "long-tail" of rare relation types.

Summary updated

BibTeX
@inproceedings{wang2023improving,
  author = {Qing Wang and Kang Zhou and Qiao Qiao and Yuepei Li and Qi Li},
  title = {{Improving Unsupervised Relation Extraction by Augmenting Diverse Sentence Pairs}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.745},
}
Figure