Abstract
Neural Relation Extraction (RE) models have achieved significant success, yet they are often treated as "black boxes." This study introduces a suite of 14 probing tasks designed to identify the linguistic features—ranging from surface-level word distance to deep syntactic structures—that these models actually encode. By evaluating various architectures including CNNs, Bi-LSTMs, GCNs, and Transformers, we reveal a complex relationship between internal linguistic knowledge and task performance. Notably, while state-of-the-art models like Transformers excel at RE, they often "forget" simple surface features in favor of more abstract representations.
Introduction
In Relation Extraction (RE), the goal is to identify the semantic relationship between two entities within a sentence. For example, in the sentence "Apple was founded by Steve Jobs," a model should identify the org:founded_by relation. While modern neural models achieve high accuracy, the specific information they rely on remains opaque. Are they understanding the underlying syntax, memorizing entity types, or simply exploiting surface-level heuristics like word distance?
Understanding these internal representations is vital for diagnosing model failures, ensuring robustness across domains, and verifying that models are not merely relying on "spurious correlations" or data shortcuts.
Methodology: The Probing Framework
To investigate these models, the authors employ a diagnostic "probing" framework. This approach involves a two-step process:
- Model Training: Standard sentence encoders (CNN, Bi-LSTM, GCN, and Self-Attention) are trained on a relation extraction task.
- Feature Probing: The trained encoder is frozen, and its fixed sentence representations are used as input for a simple logistic regression classifier. This "probing classifier" is tasked with predicting specific linguistic features. Success in this secondary task indicates that the encoder has successfully learned and retained that specific feature.
The study evaluates 14 probing tasks categorized into three levels:
- Surface Information: Sentence length, distance between arguments, and the presence of intervening entities.
- Syntactic Information: Dependency tree depth, part-of-speech (POS) tags of neighboring words, and argument ordering.
- Argument Information: Entity types (e.g., Person, Organization) and grammatical roles (e.g., Subject, Object).
Experimental Setup
The models were evaluated on two primary benchmarks:
- TACRED: A large-scale dataset containing over 106,000 sentences and 42 relation types, characterized by a high volume of "no_relation" samples.
- SemEval 2010 Task 8: A smaller dataset with approximately 10,000 sentences and 19 relation types.
The researchers also investigated the effects of Entity Masking (replacing specific names with generic type tags) and the integration of Contextualized Embeddings like ELMo and BERT.
Key Insights
Architectural Biases
Different neural architectures exhibit distinct preferences for linguistic information. CNNs and Bi-LSTMs excel at capturing local context, such as the POS tags of words immediately adjacent to entities. Conversely, Graph Convolutional Networks (GCNs), which incorporate dependency parses, naturally perform better on tasks related to syntactic tree depth.
The Transformer Paradox and "Forgetting"
A significant finding is the "Transformer Paradox": Multi-headed Self-Attention models often performed the worst on probing tasks despite achieving the highest F1 scores on the actual RE task. This suggests that Transformers encode deeper, more complex linguistic features that current probes may not fully capture. Furthermore, as models become more specialized for RE, they tend to "forget" superficial details; for instance, models with higher RE performance were often less accurate at predicting exact sentence length.
The Impact of BERT and Masking
Adding BERT or ELMo consistently improved performance across nearly all probing tasks, particularly those involving entity types and POS information. Entity masking proved to be a double-edged sword: while it significantly boosts RE performance by preventing overfitting to specific entity names, it drastically reduces the model's ability to identify entity types during probing, as the encoder is forced to rely entirely on surrounding context.
Results
The experimental results highlight a disconnect between "knowing" linguistic facts and performing the extraction task. While some models (like CNN + ELMo) scored highest on several probing tasks, they trailed the best RE models in overall F1 score.
As shown in the TACRED results, the Self-Attention + BERT (cased) + Entity Masking model achieved the highest overall performance with an F1 score of 66.9. Models also showed high sensitivity to "Argument Ordering," a critical feature for distinguishing directional relations like per:parent versus per:children.
Conclusion
This research demonstrates that while neural RE models capture a wealth of linguistic information, their success is not always tied to the explicit "knowledge" of standard linguistic features. The discrepancy between probing success and task performance suggests the existence of latent features that require more nuanced diagnostic tools. Future work will focus on developing probes for complex syntactic patterns and investigating model generalization to unseen entity types.
Summary updated