Syntax Helps ELMo Understand Semantics: Is Syntax Still Relevant in a Deep Neural Architecture for SRL?

Emma Strubell, Andrew McCallumarXiv 2018

Abstract

Do unsupervised methods for learning rich, contextualized token representations obviate the need for explicit modeling of linguistic structure in neural network models for semantic role labeling (SRL)? We address this question by incorporating the massively successful ELMo embeddings (Peters et al., 2018) into LISA (Strubell et al., 2018), a strong, linguistically-informed neural network architecture for SRL. In experiments on the CoNLL-2005 shared task we find that though ELMo out-performs typical word embeddings, beginning to close the gap in F1 between LISA with predicted and gold syntactic parses, syntactically-informed models still out-perform syntax-free models when both use ELMo, especially on out-of-domain data. Our results suggest that linguistic structures are indeed still relevant in this golden age of deep learning for NLP.

Introduction

Semantic Role Labeling (SRL) is the task of determining "who did what to whom" in a sentence. Traditionally, this required a pipeline of complex linguistic tools, specifically syntactic parsers. However, the rise of "end-to-end" deep learning led to models that could perform SRL directly on raw text, seemingly making explicit syntax redundant. The arrival of ELMo (Embeddings from Language Models) pushed this further, providing rich, context-aware word representations that implicitly capture linguistic structure. This study investigates a critical question: Is explicit syntactic modeling still relevant, or do deep contextualized embeddings like ELMo render traditional linguistic structures obsolete?

Methods

We address this by integrating ELMo into LISA (Linguistically-Informed Self-Attention). LISA is built on the Transformer architecture and incorporates syntax through a "Syntactic Oracle": one of the attention heads is specifically trained to attend to each token’s syntactic head in a dependency tree. This forces the model to learn to parse while it learns to identify semantic roles. We compare LISA (with syntax) against a "Syntax-Agnostic" (SA) version of the same model that lacks the specialized syntactic attention head, testing both using traditional GloVe embeddings versus ELMo.

Experimental Results

The models were evaluated on the CoNLL-2005 English SRL shared task, using the Wall Street Journal (WSJ) test set for in-domain evaluation and the Brown test set for out-of-domain generalization.

Table 1: SRL performance (F1) on CoNLL-2005. LISA with ELMo and predicted parses (+D&M) achieves state-of-the-art results.

As shown in Table 1, ELMo and explicit syntax are complementary. While ELMo significantly improves the performance of syntax-free models, adding explicit syntactic information pushes performance even higher. On the WSJ test set, LISA+ELMo with high-quality predicted parses (+D&M) achieved an F1 score of 85.17, outperforming the syntax-agnostic SA+ELMo model (84.12).

The "Domain-Agnostic" Signal

The benefit of syntax was most pronounced on the out-of-domain Brown corpus. LISA+ELMo+D&M reached 74.33 F1, nearly 2 points higher than the syntax-agnostic version (72.36). This suggests that syntax acts as a stabilizing force; while neural models often overfit to specific training data styles, the rules of grammar remain relatively consistent across domains.

Error Analysis: Fixing Boundary Errors

A common failure in SRL is "segment boundary" mistakes—misidentifying where an argument starts and ends. Our analysis shows that providing gold-standard syntax specifically helps the model resolve these boundary issues, which ELMo alone cannot fully fix.

Figure 1: F1 score on the development set as different types of errors are corrected. Fixing span boundaries provides a significant performance boost.

As illustrated in Figure 1, the gap between models using predicted syntax and those using "gold" (perfect) parses narrows with ELMo, but remains significant. ELMo helps the model become more resilient to imperfect syntactic information, but explicit structural guidance remains a vital ingredient for deep semantic understanding.

Conclusion

Our results suggest that linguistic structures are indeed still relevant in the golden age of deep learning. Even with powerful contextualized embeddings, explicit syntactic modeling provides a significant performance boost and improves generalization to out-of-domain data. Future work may explore whether similar linguistically-informed architectures can benefit other NLP tasks that have moved toward purely end-to-end approaches.

Summary updated

BibTeX
@misc{strubell2018syntax,
  author = {Emma Strubell and Andrew McCallum},
  title = {{Syntax Helps ELMo Understand Semantics: Is Syntax Still Relevant in a Deep Neural Architecture for SRL?}},
  year = {2018},
  eprint = {1811.04773},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.04773},
}
Figure