TL;DR
Researchers from Ant Financial have developed a high-performance system for extracting "Subject-Predicate-Object" triples from Chinese text by combining BERT with a multi-head selection framework. Their approach—which features semantic-enhanced pre-training, "soft label" embeddings, and massive-scale weekly supervised learning—secured 1st place in the 2019 Language and Intelligence Challenge.
What Problem Does This Paper Address?
Information Extraction (IE) is the task of turning unstructured text into structured knowledge, typically in the form of triples like (Elon Musk, Founder_of, SpaceX).
Historically, this was done using a pipelined framework: first, find the entities (Elon Musk, SpaceX), then classify their relationship. The problem? If the entity extractor makes a mistake, the relation classifier is doomed (error propagation). Furthermore, these two steps are often mutually beneficial—knowing a "founder" relationship exists helps identify the entities involved.
While "joint" models exist to solve this, they often struggle with overlapping entities (where one word is part of multiple entities) or cases where one entity belongs to multiple different triples. This paper aims to build a robust joint model that handles these complexities while leveraging the power of modern transformer architectures.
Methods
The authors propose a joint neural model based on three major innovations:
- Enhanced BERT Feature Extraction: Instead of using standard BiLSTMs, they use BERT as the backbone. They further optimize BERT by introducing a "semantic-enhanced" pre-training task that incorporates document-level and previous-sentence prediction to better capture context.
- Soft Label Embedding: In many joint models, the output of the Entity Recognition (NER) layer is fed into the Relation Extraction (RE) layer as a "hard" label (e.g., "this is a Person"). However, this is non-differentiable and prone to errors. The authors propose using Soft Label Embeddings, which pass the probability distribution (logits) of the entity types instead. This allows the model to remain end-to-end trainable and preserves the uncertainty of the NER stage.
- Multi-Head Selection Framework: They treat relation extraction as a selection problem where each token can "point" to multiple other tokens (heads) with specific relation types. This naturally handles cases where one entity is involved in multiple different relationships.
- Auxiliary Global Relation Prediction: They add a secondary task to predict which relations are present in the sentence as a whole (using the
[CLS]token), which helps guide the overall feature learning process.
Datasets
- SKE Dataset: The primary benchmark, which is the largest schema-based Chinese IE dataset, containing over 430,000 triples across 210,000 real-world sentences with 50 pre-defined predicates.
- Baidu Baike Corpus: To boost NER performance, the authors crawled ~6 million sentences from Baidu Baike. They used a "weekly supervised" approach where the article title was treated as a pseudo-label for entities within the text, providing a massive pre-training signal without manual annotation.
Key Insights and Ideas
- Differentiability Matters: The shift from "hard" labels to "soft" label embeddings is a crucial "aha" moment. By passing probabilities rather than discrete categories, the RE layer can "see" the model's confidence levels, and the entire system can be optimized via backpropagation.
- Weekly Supervision is a Power-Up: Even without perfect labels, pre-training on 6 million domain-specific sentences (Baidu Baike) significantly improved the model's ability to recognize entities before it ever saw the official competition data.
- Global Context Helps Local Decisions: Adding a sentence-level relation prediction task acted as a regularizer, ensuring the model's specific triple extractions aligned with the overall "theme" of the sentence.
Key Results
The proposed system was highly effective:
- Single Model Performance: Achieved an F1-score of 0.876 on the competition's first test set.
- Ensemble Performance: By combining four variants of the model using an XGBoost classifier, they reached an F1-score of 0.892, taking 1st place on testset-1 and 2nd place on testset-2.
- Ablation Studies: The data shows that "Enhanced BERT" provided the single biggest jump in performance (from 0.819 to 0.830 F1 on the development set), but the combination of all techniques ("Baseline + all") provided the best results.
Limitations and Future Work
The authors identified two main areas where the model still fails:
- Overfitting to Training Data: In some cases, the model predicted triples that were present in the training set but could not actually be inferred from the specific sentence provided in the test set.
- Complex Logic: The model struggles with complicated family trees or nested relationships mentioned in a single sentence.
Future work will focus on developing more robust models that can handle these complex semantic dependencies and avoid memorizing training-set triples.
Summary updated