Semantic Role Labeling with Associated Memory Network

Chaoyu Guan, Yuhao Cheng, Hai Zhao

Abstract

Chaoyu Guan, Yuhao Cheng, Hai Zhao. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers).

2019.

Introduction

Semantic Role Labeling (SRL) is a fundamental task in Natural Language Processing (NLP) aimed at identifying the predicate-argument structure of a sentence—essentially answering "who did what to whom." While modern SRL research has trended toward syntax-agnostic models that avoid the complexities of pre-computed syntactic parses, these models often struggle to capture the rich structural patterns inherent in language.

Researchers from Shanghai Jiao Tong University address this by introducing the Associated Memory Network (AMN). Inspired by human problem-solving through analogy, the AMN allows a model to "remember" similar sentences from its training data to help label new, unseen inputs. By leveraging inter-sentence attention, the model pulls relevant information from these "associated" examples, breaking the bottleneck of treating every sentence as an isolated instance.

The Associated Memory Network

The AMN is designed as a modular plugin for standard BiLSTM-based SRL architectures. The framework operates in three distinct phases:

  1. Associated Sentence Selection: For every input sentence, the system queries the training set to find the $m$ most similar sentences. The authors found that structural similarity, measured via Edit Distance on Part-of-Speech (POS) tag sequences, was more effective than semantic similarity metrics like Word Moving Distance.
  2. Inter-sentence Attention: A dedicated BiLSTM encodes both the target sentence and the retrieved "memory" sentences. An attention mechanism then computes a matrix to identify which words in the memory sentences are most relevant to specific words in the target sentence.
  3. Label Merging: The known semantic labels from the memory sentences are aggregated into a vector representation based on the attention weights. This "memory feature" is then concatenated with standard word embeddings (such as GloVe or ELMo) and fed into the final SRL classifier.
Architecture of the Associated Memory Network (AMN) integrated with a base BiLSTM model.

Experimental Evaluation

The model was rigorously evaluated on the CoNLL-2009 shared task datasets for English and Chinese.

  • English Performance: The AMN combined with ELMo achieved an F1 score of 89.6 on the in-domain Wall Street Journal (WSJ) test set, matching or exceeding state-of-the-art syntax-agnostic and syntax-aware models.
  • Out-of-Domain Robustness: On the Brown corpus, the model reached 79.7 F1, a 0.7% improvement over previous benchmarks. This suggests that the memory component is particularly valuable when the model encounters unfamiliar vocabulary, as it can rely on structural analogies from its training "memory."
  • Cross-linguistic Effectiveness: The model showed significant gains on the Chinese dataset, reaching 83.8 F1, outperforming previous work by 2.0%.

Insights and Analysis

A key finding of the study is the power of structural analogy. The effectiveness of POS-based similarity suggests that the model benefits more from seeing how similar grammatical structures were labeled than from seeing semantically related words.

As shown in the attention heatmaps, the model successfully aligns corresponding roles across different sentences. For instance, it can map the "Agent" role in a memory sentence to the appropriate word in the target sentence, even if the specific verbs differ. This inter-sentence attention mechanism is central to the model's ability to generalize across varying contexts.

Heatmap illustrating inter-sentence attention between a target sentence and a retrieved memory sentence.

Interestingly, ablation studies revealed that even providing random sentences as "memory" provided a slight performance boost. This indicates that the AMN architecture helps the model learn a useful prior distribution of semantic roles (like A0 and A1) that aids in general classification.

Conclusion

The Associated Memory Network demonstrates that explicit inter-sentence similarity is a potent signal for SRL. By effectively querying a "memory" of training examples, the AMN improves generalization, particularly in out-of-domain and low-resource scenarios. Future work may involve optimizing the computational overhead of the retrieval process or integrating the AMN with advanced decoding techniques like biaffine attention to further push the boundaries of syntax-agnostic semantic role labeling.

Summary updated

BibTeX
@inproceedings{guan2019semantic,
  author = {Chaoyu Guan and Yuhao Cheng and Hai Zhao},
  title = {{Semantic Role Labeling with Associated Memory Network}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=BkW0HQW_ZH},
}
Figure