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

Unsupervised Relation Extraction: A Variational Autoencoder Approach

Chenhan Yuan, Hoda EldardiryEMNLP 2021

Presented at EMNLP 2021, this research introduces UREVA (Unsupervised Relation Extraction model), a novel framework designed to stabilize the training of Variational Autoencoders (VAEs) for identifying relationships between entities in text without the need for human-labeled data.

The Challenge of Unstable VAEs

Relation Extraction (RE) is the task of identifying how two entities in a sentence are connected (e.g., identifying the capital_of relation in "Paris is the capital of France"). While supervised models are highly accurate, they are constrained by the need for massive labeled datasets.

Unsupervised RE attempts to cluster entity pairs into relations automatically. Recent approaches have leveraged Variational Autoencoders (VAEs), where an encoder predicts a relation and a decoder attempts to reconstruct the original entity pair. However, these models are notoriously unstable. Because relation prediction is typically treated as a "latent variable," the VAE's mathematical objective forces it toward a pre-defined (often uniform) distribution. This frequently results in "model collapse," where the system either predicts the same relation for every input or assigns equal probability to all relations, rendering the extraction useless.

The UREVA Framework

The authors propose a structural shift in the VAE architecture to bypass this instability by decoupling the relation classification from the latent variable constraints.

The UREVA architecture, highlighting the separation of the relation classifier from the latent variable sampling.

Key Architectural Innovations

  1. Intermediate vs. Latent Variables: In UREVA, the relation classification ($r$) is treated as an intermediate variable conditioned on the input, rather than the primary latent variable. A separate latent variable ($z$) is then introduced, conditioned on both the input and the predicted relation. This "shields" the relation variable from the restrictive KL-divergence term in the VAE loss function, allowing it to focus purely on being a discriminative feature for reconstruction.
  2. Decoupling the Prior: By moving the relation classification out of the latent slot, the model is no longer forced to follow a uniform distribution. This allows UREVA to learn the natural, often long-tailed distribution of relations found in real-world language.
  3. Encoder-Decoder Structure: The encoder utilizes entity types (e.g., Person, Location) to predict $r$ and $z$. The decoder, a Convolutional Neural Network (CNN), takes these variables to calculate a compatibility score for the entity pair. To ensure efficiency, the model employs negative sampling, learning to distinguish actual entity pairs from randomly sampled "fake" pairs.

Experimental Evaluation

The model was evaluated on two standard benchmarks:

  • NYT-FB (New York Times - Freebase): A large-scale dataset where the authors focused on a subset of 41,000 sentences labeled with meaningful relations for evaluation.
  • SemEval 2010 Task 8: A cleaner dataset of 8,000 sentences with 10 distinct relation types, used to demonstrate the model's generalizability.

Performance and Robustness

UREVA consistently outperformed state-of-the-art baselines across three key metrics: B-cube ($B^3$), V-measure, and Adjusted Rand Index (ARI).

Performance comparison on the NYT-FB dataset across different cluster counts (# r).

On the NYT-FB dataset with 10 clusters, UREVA achieved a V-measure of 42.0, significantly outperforming the previous best VAE-based model, "Simon" (30.5), and the strong feature-based baseline, "EType+" (40.6).

A critical finding was UREVA's robustness to the number of clusters ($r$). While baseline models like EType+ saw performance drops as the cluster count increased to 100 (falling from 40.6 to 35.4 V-measure), UREVA's performance actually improved, rising to a V-measure of 43.2. Qualitatively, the model successfully grouped semantically similar relations, such as clustering "child," "writtenBy," and "directedBy" into a single subordination-themed category.

Conclusion and Future Directions

UREVA demonstrates that architectural changes to the VAE framework can solve long-standing stability issues in unsupervised relation extraction. While the model currently relies heavily on pre-extracted entity types, future work could involve incorporating more nuanced sentence-level context, such as dependency paths, to further improve the granularity and accuracy of the extracted relations.

Summary updated

BibTeX
@inproceedings{yuan2021unsupervised,
  author = {Chenhan Yuan and Hoda Eldardiry},
  title = {{Unsupervised Relation Extraction: A Variational Autoencoder Approach}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.147},
}
Figure