Exploring Automatically Perturbed Natural Language Explanations in Relation Extraction

Wanyun Cui, Xingran Chen

Introduction

In the field of Relation Extraction (RE), models are tasked with identifying the relationship between entities within a sentence—for instance, recognizing that "Robert" and "Julie" are in a "Spouse" relationship. To improve data efficiency and model reliability, researchers previously introduced methods like ExpBERT, which augment training by providing models with human-written natural language explanations (NLEs), such as "$o_1$ and $o_2$ went on a honeymoon."

While NLEs have shown promise, they come with significant drawbacks: human annotation is slow and expensive. Furthermore, it has been widely assumed that the performance gains from NLEs stem from the semantic logic contained within the human-written text. This research investigates whether models truly "understand" this logic or if they are simply utilizing the additional tokens as a computational "scratchpad" to better process the input sentence.

Methodology: From Human Logic to Perturbed Context

The authors conducted a series of stress tests to evaluate the necessity of semantic meaning in explanations. They proposed two primary experimental frameworks:

  1. Corrupted Explanations: Human-annotated explanations were systematically corrupted by replacing meaningful words with random ones (e.g., changing "honeymoon" to "frog"). The study measured performance across varying levels of corruption, from 0% to 100%.
  2. Perturbed Context (PC): Building on the hypothesis that content is secondary to structure, the authors introduced a method that bypasses human text entirely. Instead, they insert a sequence of special tokens $[M]_i$ with randomly initialized embeddings between the target entities.
Figure 1: (a) Example of a guide model using natural language explanations vs. perturbed context. (b) and (c) show performance on Disease and Spouse datasets as explanations are corrupted. Note that tunable corrupted explanations (green) maintain high performance even at 100% corruption.

Key Insights: The "Scratchpad" Theory

The experimental results yielded several surprising insights into how Transformers utilize auxiliary information:

  • Semantic Meaning is Optional: For fine-tuned models, corrupting an explanation by 100%—essentially turning it into gibberish—resulted in negligible performance drops. This suggests that the model isn't "reading" the hint for its logic; rather, it is utilizing the extra parameter space provided by the tokens.
  • Context Space vs. Inductive Bias: The primary benefit of NLEs appears to be providing "extra context space." Transformers use these additional tokens to perform more complex attention calculations that cannot be accommodated within the original sentence length.
  • Frozen vs. Fine-tuned Dynamics: Human logic remains beneficial when the underlying language model is "frozen" (weights are not updated). In this scenario, the human explanation provides a useful static inductive bias. However, once fine-tuning is permitted, the model quickly learns its own internal "logic" within the extra space, often surpassing the utility of human-provided hints.

Performance and Efficiency

The proposed Perturbed Context approach was evaluated against standard benchmarks, including TACRED, Spouse, and Disease datasets.

  • State-of-the-Art Results: On the TACRED benchmark, the PC approach achieved a 67.2 F1 score, outperforming both the human-annotated ExpBERT (66.6 F1) and the vanilla BERT baseline (66.7 F1).
  • Massive Speedup: Because PC avoids the need to encode multiple separate explanations for every sentence (a requirement in previous NLE methods), it is 20 to 30 times faster than traditional explanation-based models.
  • Generalization: The benefits of extra context space extended beyond Relation Extraction to tasks like Word Sense Disambiguation (WSD), where the PC model outperformed vanilla BERT by nearly 4 points (72.0 vs 68.6).
Figure 2: Performance on the TACRED dataset across different percentages of training data. The Perturbed Context approach remains competitive with or superior to human-annotated methods across all data regimes.

Conclusion and Future Work

This study challenges the conventional wisdom regarding natural language explanations in NLP. By demonstrating that "random context" can be as effective as human-written logic, the authors provide a path toward more efficient and scalable model augmentation.

Future research is needed to determine if this "scratchpad" effect persists in generative tasks like summarization or within the architecture of massive Large Language Models (LLMs), where internal context space is already significantly larger than the BERT-sized models used in this study.

Summary updated

BibTeX
@inproceedings{cui2023exploring,
  author = {Wanyun Cui and Xingran Chen},
  title = {{Exploring Automatically Perturbed Natural Language Explanations in Relation Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.214},
}
Figure