Elamur Research

Attention-Based Bidirectional Long Short-Term Memory Networks for Relation Classification

Paper · 2016 · Peng Zhou, Wei Shi, Jun Tian et al.

Summary

The paper addresses relation classification: deciding which semantic relation, and in which direction, holds between two marked nominals in a sentence. Earlier strong systems relied on handcrafted features or on outputs of other tools such as WordNet, dependency parsers and NER. These add computational cost and let upstream errors propagate. The authors propose Att-BLSTM, a bidirectional LSTM with peephole connections whose per-word outputs are pooled into a single sentence vector by a learned attention weighting. A softmax classifier then reads that vector. The only input is word embeddings. The entity boundaries are supplied as four position-indicator tokens treated like ordinary words. Training uses dropout at three layers plus L2 regularization. On the SemEval-2010 Task 8 dataset the model reaches an F1 of 84.0%, which beats most earlier approaches, including several that rely on parse trees and lexical resources. The work matters because it shows that letting the network pick out the decisive words can replace much feature engineering in a fairly simple architecture.

Key points

  • Data: SemEval-2010 Task 8 has 9 directed relations plus an undirected Other class. It contains 10,717 annotated examples, with 8,000 for training and 2,717 for testing. The authors randomly held out 800 sentences for validation because there is no official development set.
  • Metric: the official macro-averaged F1 over the nine real relations, which excludes Other and respects directionality.
  • Results with the 50-dimensional Turian et al. vectors: Att-BLSTM scores 82.5%, compared with 80.0% for the bidirectional RNN of Zhang and Wang (2015). With 100-dimensional GloVe vectors (Pennington et al.) it reaches 84.0%.
  • Baselines in the comparison include:
    • the top SemEval-2010 SVM with many lexical features (82.2%);
    • CNN by Zeng et al. (82.7%);
    • SDP-LSTM on shortest dependency paths (83.7%).
  • Training setup:
    • AdaDelta with learning rate 1.0 and minibatch size 10;
    • L2 strength of 10^-5;
    • dropout of 0.3 on the embedding layer, 0.3 on the LSTM layer and 0.5 on the penultimate layer;
    • forward and backward outputs combined by element-wise sum.

Interesting ideas

  • I1. Instead of adding positional feature vectors, the entity spans are marked by inserting boundary tokens into the word sequence, so the encoder learns their role like any other word. This is a cheap and general way to tell a sequence model "these spans matter."
  • I2. Attention pooling uses one learned vector to score every timestep, then forms a weighted sum, so the weights show which words drove the decision. This gives a built-in, inspectable trace of what the classifier relied on.
  • I3. The paper argues that depending on parsers and NER for features lets their errors cascade, and it shows that a raw-text model gets close to parse-based systems. A parse-free model can therefore act as an independent witness.
  • I4. Regularization is placed per layer: dropout is tuned separately at the input, recurrent and penultimate levels and combined with weight-norm rescaling. Tuning dropout per layer rather than with one global rate is a transferable recipe for small datasets.

For Mova

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

  • I1 (frames): when scoring candidate semantic roles or coreference links, mark the candidate argument spans with explicit boundary tokens before encoding, rather than building separate position features.
  • I2 (learn): log the attention weights of any neural scorer as part of its explanation, and check them against the UD tree to catch decisions that rest on irrelevant words.
  • I3 (learn): use a parse-free relation classifier as a negative control or extra witness, flagging sentences where tree-based frames and the surface model disagree.
  • I4 (tree): when training gparse on small UD treebanks, tune dropout separately for the embedding, encoder and scorer layers instead of using a single rate.

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

 Fields, topics and concepts

Cite

Cite as 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. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers).

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

@inproceedings{zhou2016attention,
  title = {{Attention-Based Bidirectional Long Short-Term Memory Networks for Relation Classification}},
  author = {Peng Zhou, Wei Shi, Jun Tian, Zhenyu Qi, Bingchen Li, Hongwei Hao and Bo Xu},
  booktitle = {Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},
  year = {2016},
  doi = {10.18653/v1/p16-2034},
  url = {https://doi.org/10.18653/v1/p16-2034}
}

References

25 references, 15 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. Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2014. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473.
  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, pages 724–731. Association for Computational Linguistics.
  3. Jan K Chorowski, Dzmitry Bahdanau, Dmitriy Serdyuk, Kyunghyun Cho, and Yoshua Bengio. 2015. Attention-based models for speech recognition. In Advances in Neural Information Processing Systems, pages 577–585.
  4. Alan Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. 2013. Speech recognition with deep recurrent neural networks. In Acoustics, Speech and Signal Processing (ICASSP), 2013 IEEE International Conference on, pages 6645–6649. IEEE. semantic resources. In Proceedings of the 5th International Worksho… OpenAlex ↗ · Scholar ↗
  5. Alex Graves. 2013. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850. OpenAlex ↗ · Scholar ↗
  6. Iris Hendrickx, Su Nam Kim, Zornitsa Kozareva, Preslav Nakov, Diarmuid Ó Séaghdha, Sebastian Padó, Marco Pennacchiotti, Lorenza Romano, and Stan Szpakowicz. 2009. Semeval-2010 task 8: Multi-way classification of semantic relations between pairs of nominals. In Proceedings of the Workshop on Seman…
  7. Richard Socher, Brody Huval, Christopher D Manning, and Andrew Y Ng. 2012. Semantic compositionality through recursive matrix-vector spaces. In Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, pages 1201–1211. A…
  8. Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. 2015. Teaching machines to read and comprehend. In Advances in Neural Information Processing Systems, pages 1684– 1692.
  9. Joseph Turian, Lev Ratinov, and Yoshua Bengio. 2010. Word representations: a simple and general method for semi-supervised learning. In Proceedings of the 48th annual meeting of the association for computational linguistics, pages 384–394. Association for Computational Linguistics.
  10. Geoffrey E Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan R Salakhutdinov. 2012. Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580. OpenAlex ↗ · Scholar ↗
  11. Fei Wu and Daniel S Weld. 2010. Open information extraction using wikipedia. In Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics, pages 118–127. Association for Computational Linguistics.
  12. Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural computation, 9(8):1735–1780. OpenAlex ↗ · Scholar ↗
  13. Kelvin Xu, Jimmy Ba, Ryan Kiros, Aaron Courville, Ruslan Salakhutdinov, Richard Zemel, and Yoshua Bengio. 2015. Show, attend and tell: Neural image caption generation with visual attention. arXiv preprint arXiv:1502.03044.
  14. Tomas Mikolov, Martin Karafiát, Lukas Burget, Jan Cernockỳ, and Sanjeev Khudanpur. 2010. Recurrent neural network based language model. In IN-TERSPEECH 2010, 11th Annual Conference of the International Speech Communication Association, Makuhari, Chiba, Japan, September 26-30, 2010, pages 1045–1048… OpenAlex ↗ · Scholar ↗
  15. Xu Yan, Lili Mou, Ge Li, Yunchuan Chen, Hao Peng, and Zhi Jin. 2015. Classifying relations via long short term memory networks along shortest dependency path. arXiv preprint arXiv:1508.03720. OpenAlex ↗ · Scholar ↗
  16. Xuchen Yao and Benjamin Van Durme. 2014. Information extraction over structured data: Question answering with freebase. In ACL (1), pages 956–966. Citeseer. OpenAlex ↗ · Scholar ↗
  17. Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. 2013. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pages 3111–3119.
  18. Matthew D Zeiler. 2012. Adadelta: An adaptive learning rate method. arXiv preprint arXiv:1212.5701.
  19. George A Miller. 1995. Wordnet: a lexical database for english. Communications of the ACM, 38(11):39–41.
  20. Daojian Zeng, Kang Liu, Siwei Lai, Guangyou Zhou, and Jun Zhao. 2014. Relation classification via convolutional deep neural network. In Proceedings of COLING, pages 2335–2344.
  21. 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: Volume 2…
  22. Dongxu Zhang and Dong Wang. 2015. Relation classification via recurrent neural network. arXiv preprint arXiv:1508.01006. OpenAlex ↗ · Scholar ↗
  23. Shu Zhang, Dequan Zheng, Xinchen Hu, and Ming Yang. 2015. Bidirectional long short-term memory networks for relation classification. OpenAlex ↗ · Scholar ↗
  24. Jeffrey Pennington, Richard Socher, and Christopher D Manning. 2014. Glove: Global vectors for word representation. In EMNLP, volume 14, pages 1532– 1543.
  25. Bryan Rink and Sanda Harabagiu. 2010. Utd: Classifying semantic relations by combining lexical and OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/zhou-2016-attention-based-bidirectional-long-short/