Recursive Subtree Composition in LSTM-Based Dependency Parsing
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre
@mdlhx 4 June 2019
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 1/22
Recursive Subtree Composition in LSTM-Based Dependency Parsing - - PowerPoint PPT Presentation
Recursive Subtree Composition in LSTM-Based Dependency Parsing Miryam de Lhoneux , Miguel Ballesteros and Joakim Nivre @mdlhx 4 June 2019 Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 1/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 1/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 2/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 3/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 4/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 4/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 5/22
nmod Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 5/22
nmod det Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 5/22
nmod det
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 5/22
nmod det
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 5/22
nmod det
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 5/22
nmod det
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 5/22
nmod det
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 5/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 6/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 6/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 6/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 6/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 6/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 6/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 6/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 6/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 6/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 7/22
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b MLP concat LSTM f LSTM b
STACK jumped root BUFFER Configuration: the brown fox
b r
f
j u e d w m p t h e Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root e(brown) pe(brown) e(fox) pe(fox) e(jumped) pe(jumped) pe(the) e(the) (score(LEFT−ARC),score(RIGHT−ARC),score(SHIFT),score(SWAP)) Scoring:
Kiperwasser and Goldberg (2016); de Lhoneux et al. (2017) Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 8/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 9/22
e(the)
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 9/22
pe(the) e(the)
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 9/22
concat
Cf Cf Cf Cb Cb Cb h e t pe(the) e(the)
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 9/22
fox jumped root Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 10/22
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b concat
Vthe Vfox Vjumped Vroot Vbrown
fox jumped root Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 10/22
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b concat
Vthe Vfox Vjumped Vroot Vbrown
fox jumped root Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 10/22
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b concat
Vthe Vfox Vjumped Vroot Vbrown
fox jumped root Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 10/22
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b MLP concat LSTM f LSTM b
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root (score(LEFT−ARC),score(RIGHT−ARC),score(SHIFT),score(SWAP)) Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 10/22
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b concat LSTM f LSTM b
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 11/22
Cthe Cbrown Cfox Cjumped Croot
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b concat LSTM f LSTM b
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 11/22
nmod Cthe Cbrown Cfox Cjumped Croot
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b concat LSTM f LSTM b
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 11/22
Cfox nmod Cthe Cbrown Cfox Cjumped Croot
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b concat LSTM f LSTM b
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 11/22
Cfox nmod Cthe Cbrown Cfox Cjumped Croot
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b concat LSTM f LSTM b
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 11/22
det Cfox Cthe Cbrown Cfox Cjumped Croot
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b concat LSTM f LSTM b
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 11/22
Cfox det Cfox Cthe Cbrown Cfox Cjumped Croot
LSTM f LSTM b LSTM f LSTM b LSTM f LSTM b concat concat concat concat LSTM f LSTM b concat LSTM f LSTM b
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 11/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 12/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 12/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 12/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 12/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 13/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 14/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 14/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 14/22
concat concat concat concat concat
b
LSTM
b
LSTM
b
LSTM
b
LSTM
b
LSTM
f
LSTM
f
LSTM
f
LSTM
f
LSTM
f
LSTM
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 15/22
b
LSTM
b
LSTM
b
LSTM
b
LSTM
b
LSTM
f
LSTM
f
LSTM
f
LSTM
f
LSTM
f
LSTM
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 15/22
b
LSTM
b
LSTM
b
LSTM
b
LSTM
b
LSTM
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 15/22
f
LSTM
f
LSTM
f
LSTM
f
LSTM
f
LSTM
Vthe Vfox Vjumped Vroot
Vbrown
fox jumped root
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 15/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 16/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 16/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 16/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 17/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 17/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 17/22
concat
Cf Cf Cf Cb Cb Cb h e t pe(the) e(the)
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 18/22
concat
Cf Cf Cf Cb Cb Cb h e t pe(the) e(the)
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 18/22
concat
Cf Cf Cf Cb Cb Cb h e t pe(the) e(the)
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 18/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 19/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 19/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 20/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 21/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 21/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 21/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 21/22
Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 21/22
Miryam de Lhoneux, Yan Shao, Ali Basirat, Eliyahu Kiperwasser, Sara Stymne, Yoav Goldberg, and Joakim Nivre.
Task: Multilingual Parsing from Raw Text to Universal Dependencies. Association for Computational Linguistics, Vancouver, Canada, pages 207–217. Chris Dyer, Miguel Ballesteros, Wang Ling, Austin Matthews, and Noah A. Smith. 2015. Transition-based dependency parsing with stack long short-term memory. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing of the Asian Federation of Natural Language Processing, ACL 2015, July 26-31, 2015, Beijing, China, Volume 1: Long Papers. pages 334–343. http://aclweb.org/anthology/P/P15/P15-1033.pdf. Eliyahu Kiperwasser and Yoav Goldberg. 2016. Simple and accurate dependency parsing using bidirectional LSTM feature representations. Transactions of the Association for Computational Linguistics 4:313–327. Miryam de Lhoneux, Miguel Ballesteros and Joakim Nivre Recursive Subtree Composition in Parsing 22/22