Introduction
Relation Classification (RC) is a fundamental task in Natural Language Processing (NLP) aimed at identifying semantic relationships between entity pairs in text. To scale training, researchers frequently employ distant supervision, which automatically aligns entity pairs from knowledge bases (like Freebase) with unstructured text. However, this method is prone to significant noise. For example, if a database records that "Barack Obama" was born in the "United States," distant supervision labels every sentence containing both entities as a BornIn instance, even if the sentence actually describes his presidency.
In this AAAI-18 paper, researchers from Tsinghua University and Microsoft Research Asia propose a novel framework to filter this noise using Reinforcement Learning (RL) to achieve precise, sentence-level classification.
The Problem: Bag-Level vs. Sentence-Level Precision
Traditional approaches mitigate noise using Multi-Instance Learning (MIL), grouping sentences into "bags" and performing classification at the bag level. While effective for some tasks, MIL suffers from two primary limitations:
- Low Sentence-Level Precision: It fails to pinpoint which specific sentence expresses the relation.
- The "All-Noise" Trap: Most MIL models assume at least one sentence in a bag is correct. In practice, many bags generated by distant supervision contain only noisy, irrelevant sentences.
Proposed Methodology: RL-Based Instance Selection
To address these issues, the authors propose a framework that treats instance selection as a sequential decision process governed by Reinforcement Learning (RL). This approach allows the model to move from bag-level heuristics to precise, sentence-level classification.
The architecture consists of two primary components:
- The Instance Selector (Agent): This module decides whether to select or discard a sentence based on the current state (sentence representation, previously selected sentences, and entity pair).
- The Relation Classifier (Environment): A Convolutional Neural Network (CNN) that trains on the selected "clean" sentences. It provides a delayed reward to the RL agent based on the likelihood of the predicted relation.
The two modules are optimized jointly. To ensure stability, the authors utilize a pre-training strategy where the CNN is initially trained on all data to provide a baseline reward signal for the RL selector before starting joint optimization.
Experimental Results
The model was evaluated on the NYT dataset, a standard benchmark for distant supervision. To assess sentence-level performance, the authors manually labeled a subset of 300 sentences to create a gold-standard test set.
As shown in the results, the CNN+RL model significantly outperforms traditional bag-level models like CNN+ATT (Attention-based) and CNN+Max. Specifically, it achieved a Macro F1 score of 0.42 and a Sentence-Level Accuracy of 64%. Furthermore, the instance selector demonstrated high robustness, successfully filtering out 86% of "entirely noisy" bags—a scenario where previous attention-based models typically fail.
Conclusion
By integrating Reinforcement Learning into the relation classification pipeline, this work effectively addresses the noise inherent in distant supervision. The joint optimization of the selector and classifier allows the model to learn from its own feedback, effectively "cleaning" the training data as it learns. This framework holds potential for other NLP tasks where high-quality labeled data is scarce and distant supervision is necessary.
Summary updated