Elamur Research

Graph Convolution over Pruned Dependency Trees Improves Relation Extraction

Paper · 2018 · Yuhao Zhang, Peng Qi and Christopher D. Manning

Summary

The paper addresses relation extraction: deciding which relation, if any, links a given subject and object entity in a sentence. Earlier dependency-based neural models had two weaknesses. Recursive tree models are slow because their computation is hard to batch. Models that consider only the minimal parse-tree route linking the two entities can drop crucial words such as a negation. The authors adapt graph convolutional networks (GCNs) to dependency parses. Each node's update is normalized by its degree and includes a self-loop. Max pooling then builds vectors for the whole sentence, the subject and the object, which a feed-forward classifier combines. A contextualized variant (C-GCN) first runs a BiLSTM over the words to soften parse errors. They also introduce path-centric pruning, which keeps the shortest path plus tokens within a small distance of it. On TACRED the model reaches state-of-the-art results, and it is also evaluated on SemEval 2010 Task 8. It runs much faster than tree-structured models. Combining it with a sequence model improves results further, because the two make different mistakes.

Key points

  • The GCN and C-GCN are 10–100x faster than earlier tree-based models. On a Titan Xp, one minibatch of 50 examples takes 6.54 seconds for Tree-LSTM, 0.07 seconds for GCN and 0.08 seconds for C-GCN.
  • Several variants did not help. Separate weights for edge direction gave no gain, and dependency-label-specific edge gating made results worse. The graph is therefore treated as undirected.
  • The authors trained 5 runs with different seeds on the TACRED dev set and compared models example by example:
    • C-GCN was clearly better than PA-LSTM on 847 examples (3.7%).
    • PA-LSTM was clearly better on 629 examples (2.8%).
    • Dependency models handle entities that are far apart, while sequence models exploit local word patterns even when the parse is wrong.
  • SemEval shows strong entity bias. If every sentence is reduced to just "subject and object", a PA-LSTM still scores 65.1 dev F1 with GloVe and 47.9 without it.
  • Entity masking matters for unseen entities. An unmasked SemEval model falls from 83.6 to 62.4 F1 when dev mentions are replaced by <UNK>. A model trained with masked mentions stays stable at 74.7.

Interesting ideas

  • I1. Prune a parse around the shortest path between two arguments, keeping nodes up to K hops away (e.g. K = 1), instead of keeping only the path; this preserves nearby modifiers like negation that flip the meaning.
  • I2. Plain undirected edges plus self-loops and degree normalization beat richer direction- and label-aware variants, since the extra parameters mostly overfit.
  • I3. Replacing the sentence with just its two entities is a cheap probe for how much a dataset can be solved from entity names alone.
  • I4. Comparing models per example across several seeds reveals where each model reliably wins, which justifies and explains an ensemble.
  • I5. Score each dependency edge by how much its endpoint nodes feed the pooled representation, giving a readable list of edges that drive each relation.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (frames): When extracting who-did-what-to-whom between two arguments, read the path plus its one-hop neighbourhood so that "not", modals and similar dependents attached off the path still reach the frame.
  • I2 (learn): Before adding dependency-label-specific weights to any learned component, run the simpler unlabeled baseline as a control to check the extra structure actually pays off.
  • I3 (learn): Use "entities-only" inputs and <UNK>-masked mentions as negative controls in evaluation, so that a score is not credited to understanding when it really comes from memorized names.
  • I4 (tree): Apply this to the perceptron parser and gparse to find sentence types (long-distance attachments versus local patterns) where each witness is more trustworthy when agreeing silver data.
  • I5 (world): Such edge rankings could be reviewed as candidate cue words for relation types before they enter the knowledge graph, keeping the source of each relation explainable.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

 Fields, topics and concepts

 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works

 Topics 1Research subjects and languages the work is about.Information extraction · 176 works

 Concepts 1Key ideas and methods explained on our concept pages.Information extraction · 50 works

Cite

Cite as Yuhao Zhang, Peng Qi and Christopher D. Manning. 2018. Graph Convolution over Pruned Dependency Trees Improves Relation Extraction. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/d18-1244

@inproceedings{zhang2018graph,
  title = {{Graph Convolution over Pruned Dependency Trees Improves Relation Extraction}},
  author = {Yuhao Zhang, Peng Qi and Christopher D. Manning},
  booktitle = {Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1244},
  url = {https://doi.org/10.18653/v1/d18-1244}
}

References

27 references, 17 of them with a card of ours. Each entry links to our card when we hold the work, else to OpenAlex and Google Scholar searches for it.

  1. Heike Adel, Benjamin Roth, and Hinrich Schütze. 2016. Comparing convolutional neural networks to traditional models for slot filling. Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics on Human Language Technology (NAACL-HLT). OpenAlex ↗ · Scholar ↗
  2. Razvan C Bunescu and Raymond J Mooney. 2005. A shortest path dependency kernel for relation extraction. In Proceedings of the Conference on Human Language Technology and Empirical Methods in Natural Language Processing (EMNLP 2005), pages 724–731.
  3. Shexia He, Zuchao Li, Hai Zhao, and Hongxiao Bai. 2018. Syntax for semantic role labeling, to be, or not to be. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics.
  4. Nanda Kambhatla. 2004. Combining lexical, syntactic, and semantic features with maximum entropy models for extracting relations. In Proceedings of the ACL 2004 Interactive poster and demonstration sessions. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  5. Thomas N Kipf and Max Welling. 2017. Semi-supervised classification with graph convolutional networks. International Conference on Learning Representations (ICLR 2017).
  6. Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. 1998. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324. OpenAlex ↗ · Scholar ↗
  7. Kenton Lee, Luheng He, Mike Lewis, and Luke Zettlemoyer. 2017. End-to-end neural coreference resolution. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing (EMNLP 2017).
  8. Yang Liu, Furu Wei, Sujian Li, Heng Ji, Ming Zhou, and Houfeng Wang. 2015. A dependency-based neural network for relation classification. Proceedings of the 53th Annual Meeting of the Association for Computational Linguistics (ACL 2015). OpenAlex ↗ · Scholar ↗
  9. Christopher D. Manning, Mihai Surdeanu, John Bauer, Jenny Finkel, Steven J. Bethard, and David Mc-Closky. 2014. The Stanford CoreNLP natural language processing toolkit. In Association for Computational Linguistics (ACL) System Demonstrations, pages 55–60.
  10. Diego Marcheggiani and Ivan Titov. 2017. Encoding sentences with graph convolutional networks for semantic role labeling. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing (EMNLP 2017).
  11. Mike Mintz, Steven Bills, Rion Snow, and Dan Jurafsky. 2009. Distant supervision for relation extraction without labeled data. In Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP, pages 10…
  12. Makoto Miwa and Mohit Bansal. 2016. End-to-end relation extraction using LSTMs on sequences and tree structures. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL 2016).
  13. Joakim Nivre, Marie-Catherine de Marneffe, Filip Ginter, Yoav Goldberg, Jan Hajic, Christopher D Manning, Ryan McDonald, Slav Petrov, Sampo Pyysalo, Natalia Silveira, et al. 2016. Universal dependencies v1: A multilingual treebank collection. In Proceedings of the 10th International Conference on La…
  14. Jeffrey Pennington, Richard Socher, and Christopher D Manning. 2014. GloVe: Global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP 2014), volume 14, pages 1532– 1543.
  15. Chris Quirk and Hoifung Poon. 2017. Distant supervision for relation extraction beyond the sentence boundary. Proceedings of the 15th Conference of the European Association for Computational Linguistics (EACL 2017).
  16. Bryan Rink and Sanda Harabagiu. 2010. UTD: Classifying semantic relations by combining lexical and semantic resources. In Proceedings of the 5th International Workshop on Semantic Evaluation, pages 256–259. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  17. Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Tim Lillicrap. 2017. A simple neural network module for relational reasoning. In Advances in neural information processing systems, pages 4974– 4983.
  18. Kai Sheng Tai, Richard Socher, and Christopher D Manning. 2015. Improved semantic representations from tree-structured long short-term memory networks. Proceedings of the 53th Annual Meeting of the Association for Computational Linguistics (ACL 2015). OpenAlex ↗ · Scholar ↗
  19. Ngoc Thang Vu, Heike Adel, Pankaj Gupta, and Hinrich Schütze. 2016. Combining recurrent and convolutional neural networks for relation classification. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics on Human Language Technology (N… OpenAlex ↗ · Scholar ↗
  20. Linlin Wang, Zhu Cao, Gerard de Melo, and Zhiyuan Liu. 2016. Relation classification via multi-level attention CNNs. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL 2016).
  21. Kun Xu, Yansong Feng, Songfang Huang, and Dongyan Zhao. 2015a. Semantic relation classification via convolutional neural networks with simple negative sampling. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP 2015). OpenAlex ↗ · Scholar ↗
  22. Yan Xu, Lili Mou, Ge Li, Yunchuan Chen, Hao Peng, and Zhi Jin. 2015b. Classifying relations via long short term memory networks along shortest dependency paths. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP 2015), pages 1785–1794.
  23. Mo Yu, Wenpeng Yin, Kazi Saidul Hasan, Cicero dos Santos, Bing Xiang, and Bowen Zhou. 2017. Improved neural relation detection for knowledge base question answering. Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (ACL 2017). OpenAlex ↗ · Scholar ↗
  24. Dmitry Zelenko, Chinatsu Aone, and Anthony Richardella. 2003. Kernel methods for relation extraction. Journal of machine learning research, 3:1083–1106.
  25. Daojian Zeng, Kang Liu, Siwei Lai, Guangyou Zhou, Jun Zhao, et al. 2014. Relation classification via convolutional deep neural network. In Proceedings of the 24th International Conference on Computational Linguistics (COLING 2014), pages 2335– 2344.
  26. Yuhao Zhang, Victor Zhong, Danqi Chen, Gabor Angeli, and Christopher D. Manning. 2017. Position-aware attention and supervised data improve slot filling. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing (EMNLP 2017). OpenAlex ↗ · Scholar ↗
  27. Peng Zhou, Wei Shi, Jun Tian, Zhenyu Qi, Bingchen Li, Hongwei Hao, and Bo Xu. 2016. Attention-based bidirectional long short-term memory networks for relation classification. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL 2016), page 207.

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/zhang-2018-graph-convolution-over-pruned-dependency/