In the era of deep learning, a persistent question in Natural Language Processing (NLP) is whether explicit syntactic structures still provide value to end-to-end models. This paper, presented at EMNLP-IJCNLP 2019 by researchers from Alibaba Group, investigates this question within the context of Semantic Role Labeling (SRL). The authors propose a novel mechanism to integrate high-quality syntactic dependency information into a Transformer-based architecture, demonstrating that syntax remains a vital component for achieving state-of-the-art performance.
The Challenge of Semantic Role Labeling
Semantic Role Labeling is the task of identifying the predicate-argument structure of a sentence—essentially determining "who did what to whom, when, and where." Historically, researchers believed that understanding a sentence's grammatical structure (syntax) was a necessary prerequisite for understanding its meaning (semantics).
However, the advent of syntax-agnostic models, such as BiLSTMs and Transformers trained purely on text, began to outperform traditional syntax-heavy systems. This shift led to a debate: Is explicit syntax obsolete? This paper argues that syntax is still essential, provided it is of high quality and integrated effectively into the model architecture.
The RELAWE Architecture
The core contribution of this work is RELAWE (Relation-Aware Self-Attention). While standard self-attention mechanisms only consider the relationships between token embeddings, RELAWE modifies the attention calculation to explicitly incorporate syntactic dependency paths.
The model builds upon the standard Transformer encoder but introduces several key innovations for syntax injection:
- Direct Integration: Embeddings for the syntactic dependency head ($E_D$) and the dependency relation ($E_R$) are added directly into the attention score calculations and the final weighted sums.
- Path-Based Representations: Instead of focusing solely on immediate parent-child relationships, the authors utilize DEPPATH (the distance in the dependency tree between a predicate and an argument) and RELPATH (the sequence of labels along the shortest path between two words).
- Deep vs. Shallow Integration: The authors demonstrate that moving syntactic information into the self-attention mechanism itself (RELAWE) is far more effective than "shallow" integration methods like simple input concatenation.
Experimental Setup and Results
The models were evaluated on the CoNLL-2009 shared task dataset, with a primary focus on Chinese and additional validation on English. To test the impact of "syntax quality," the researchers utilized various levels of syntactic trees, ranging from standard automated trees (AUTO) to BERT-enhanced high-quality trees (BIAFFINE+BERT).
Key Findings
- Quality is King: The study confirms that "bad syntax is worse than no syntax." While standard AUTO trees provided a marginal boost, BERT-enhanced syntactic trees led to significant performance gains.
- Orthogonality with BERT: Even when using BERT for word representations, adding explicit syntax provided a complementary signal that improved scores, suggesting that BERT's implicit syntax does not fully capture the structural nuances required for SRL.
- The "Gold" Gap: When the model was provided with manually annotated "Gold" (perfect) syntax, the F1 score jumped to 92.14. This massive gap indicates that the current bottleneck for SRL is not the semantic model itself, but rather the accuracy of the syntactic parsers used as input.
Conclusion
The RELAWE model achieved a new state-of-the-art F1 score of 84.22 on the Chinese test set in the closed setting and 87.35 when combined with BERT. These results strongly suggest that explicit syntax is not obsolete in the age of deep learning; rather, the challenge lies in developing high-quality parsers and sophisticated integration strategies to leverage that structural knowledge effectively.
Summary updated