Elamur Research⌕
☰
home / papers / 2021 / Out of Order: How important is the sequential order of words in a sentence in Natural Language Understanding tasks?

Out of Order: How important is the sequential order of words in a sentence in Natural Language Understanding tasks?

Paper · 2021 · Thang Pham, Trung Bui, Long Mai et al.

Summary

The paper asks whether BERT-style classifiers that beat humans on GLUE actually rely on word order. The authors fine-tuned base versions of BERT, RoBERTa and ALBERT on seven GLUE tasks: CoLA, SST-2, QQP, MRPC, STS-B, RTE and QNLI. They then re-tested each model on correctly classified, class-balanced dev examples in which a single sentence had its 1-, 2- or 3-grams randomly permuted. A Word-Order Sensitivity (WOS) score measures how far accuracy falls toward the 50% chance level. Apart from CoLA, the models mostly kept their original predictions on scrambled input, so they behave much like bag-of-words systems. Analysis with LIME and attention shows what they use instead. Sentiment models lean on the polarity of key words, and pair-input models have self-attention heads that link matching tokens across the two inputs regardless of position. When RoBERTa was first fine-tuned on synthetic tasks that force attention to word order, results improved on most GLUE tasks and on SQuAD 2.0. The study suggests GLUE does not really require syntax or deep reasoning.

Key points

  • Between 75% and 90% of correct predictions stayed the same after input words were shuffled. About 65% of gold labels across five GLUE tasks could still be recovered from shuffled sentences.
  • In SST-2, the sentiment of one salient word predicts the label of the whole sentence in at least 60% of cases.
  • WOS is defined as s = (100 − p)/(100 − b), with b = 50. CoLA is the clearly order-sensitive task, followed by RTE among the rest.
  • Extra fine-tuning on synthetic tasks raised WOS by 148–194%. Gains included:
    • RTE's average climbed to 73.21% (up from 72.2%), with the best model reaching 74.73%.
    • SQuAD 2.0 F1 rose from 80.62 to 81.08.
    • SST-2 was the only task that did not improve.
  • RoBERTa remained fairly insensitive to shuffling even on the harder ANLI benchmark, with a WOS of 0.63.

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

Cite

Cite as Thang Pham, Trung Bui, Long Mai and Anh Nguyen. 2021. Out of Order: How important is the sequential order of words in a sentence in Natural Language Understanding tasks?. Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.findings-acl.98

@inproceedings{pham2021out,
  title = {{Out of Order: How important is the sequential order of words in a sentence in Natural Language Understanding tasks?}},
  author = {Thang Pham, Trung Bui, Long Mai and Anh Nguyen},
  booktitle = {Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.98},
  url = {https://doi.org/10.18653/v1/2021.findings-acl.98}
}

References

40 references, 7 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Steven Bird, Ewan Klein, and Edward Loper. 2009. Natural Language Processing with Python: Analyzing Text with the Natural Language Toolkit. O’Reilly, Beijing. find
  2. Daniel Cer, Mona Diab, Eneko Agirre, Iñigo Lopez-Gazpio, and Lucia Specia. 2017. SemEval-2017 task 1: Semantic textual similarity multilingual and crosslingual focused evaluation. In Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017), pages 1–14, Vancouver, Canada.… our card
  3. Peijie Chen, Chirag Agarwal, and Anh Nguyen. 2020. The shape and simplicity biases of adversarially robust imagenet-trained cnns. arXiv e-prints, pages arXiv–2006. find
  4. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies,… our card
  5. William B Dolan and Chris Brockett. 2005. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005). our card
  6. Jeffrey L Elman. 1990. Finding structure in time. Cognitive science, 14(2):179–211. find
  7. Kawin Ethayarajh. 2019. How contextual are contextualized word representations? comparing the geometry of BERT, ELMo, and GPT-2 embeddings. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Process… find
  8. Allyson Ettinger. 2020. What bert is not: Lessons from a new suite of psycholinguistic diagnostics for language models. Transactions of the Association for Computational Linguistics, 8:34–48. our card
  9. Lorenzo Gatti, Marco Guerini, and Marco Turchi. 2015. Sentiwords: Deriving a high precision and high coverage lexicon for sentiment analysis. IEEE Transactions on Affective Computing, 7(4):409–421. find
  10. Edward Gibson, Leon Bergen, and Steven T Piantadosi. 2013. Rational integration of noisy evidence and prior semantic expectations in sentence interpretation. Proceedings of the National Academy of Sciences, 110(20):8051–8056. find
  11. GLUE leaderboard. Glue benchmark. https://gluebenchmark.com/leaderboard . (Accessed on 01/29/2021). ↗
  12. Eva Hasler, Felix Stahlberg, Marcus Tomalin, Adrià de Gispert, and Bill Byrne. 2017. A comparison of neural models for word ordering. In Proceedings of the 10th International Conference on Natural Language Generation, pages 208–212, Santiago de Compostela, Spain. Association for Computational Lingu… find
  13. Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural computation, 9(8):1735–1780. find
  14. Minqing Hu and Bing Liu. 2004. Mining and summarizing customer reviews. In Proceedings of the Tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’04, page 168–177, New York, NY, USA. Association for Computing Machinery. find
  15. Huggingface. 2020. Pretrained models — transformers 3.3.0 documentation. huggingface.co/ transformers/pretrained_models.html . (Accessed on 09/30/2020). find
  16. Urvashi Khandelwal, He He, Peng Qi, and Dan Jurafsky. 2018. Sharp nearby, fuzzy far away: How neural language models use context. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 284–294, Melbourne, Australia. Association for C… find
  17. Diederik P Kingma and Jimmy Ba. 2015. Adam: A method for stochastic optimization. Published as a conference paper at the 3rd International Conference for Learning Representations, San Diego. find
  18. Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. 2020. Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations. find
  19. Hector Levesque, Ernest Davis, and Leora Morgenstern. 2012. The winograd schema challenge. In Thirteenth International Conference on the Principles of Knowledge Representation and Reasoning. Citeseer. find
  20. Yongjie Lin, Yi Chern Tan, and Robert Frank. 2019. Open sesame: Getting inside bert’s linguistic knowledge. Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP. our card
  21. Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692. find
  22. Tomáš Mikolov, Martin Karafiát, Lukáš Burget, Jan Černockỳ, and Sanjeev Khudanpur. 2010. Recurrent neural network based language model. In Eleventh annual conference of the international speech communication association. find
  23. Jeff Mitchell and Jeffrey Bowers. 2020. Priorless recurrent networks learn curiously. In Proceedings of the 28th International Conference on Computational Linguistics, pages 5147–5158. find
  24. Francis Mollica, Matthew Siegelman, Evgeniia Diachek, Steven T Piantadosi, Zachary Mineroff, Richard Futrell, Hope Kean, Peng Qian, and Evelina Fedorenko. 2020. Composition is the core driver of the language-selective network. Neurobiology of Language, 1(1):104–134. find
  25. Yixin Nie, Adina Williams, Emily Dinan, Mohit Bansal, Jason Weston, and Douwe Kiela. 2020. Adversarial NLI: A new benchmark for natural language understanding. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4885–4901, Online. Association for Computa… find
  26. NLTK. nltk.metrics.distance — nltk 3.5 documentation. https://www.nltk.org/_modules/ nltk/metrics/distance.html . (Accessed on 12/25/2020). ↗
  27. Chinnadhurai Sankar, Sandeep Subramanian, Chris Pal, Sarath Chandar, and Yoshua Bengio. 2019. Do neural dialog systems use the conversation history effectively? an empirical study. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 32–37, Florence, Ital… find
  28. Allen Schmaltz, Alexander M. Rush, and Stuart” Shieber. 2016. Word ordering without syntax. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2319–2324, Austin, Texas. Association for Computational Linguistics. find
  29. Chenglei Si, Shuohang Wang, Min-Yen Kan, and Jing Jiang. 2019. What does bert learn from multiple-choice reading comprehension datasets? arXiv preprint arXiv:1910.12391. — [arXiv:1910.12391](https://arxiv.org/abs/1910.12391) find
  30. Koustuv Sinha, Prasanna Parthasarathi, Joelle Pineau, and Adina Williams. 2020. Unnatural language inference. arXiv preprint arXiv:2101.00010. our card
  31. Swapnil Parekh, Yaman Kumar Singla, Changyou Chen, Junyi Jessy Li, and Rajiv Ratn Shah. 2020. My teacher thinks the world is flat! interpreting automatic essay scoring mechanism. arXiv preprint arXiv:2012.13872. — [arXiv:2012.13872](https://arxiv.org/abs/2012.13872) find
  32. Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew Y Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pages 1631… find
  33. Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. 2016. A decomposable attention model for natural language inference. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2249–2255, Austin, Texas. Association for Computational Linguistic… our card
  34. Saku Sugawara, Pontus Stenetorp, Kentaro Inui, and Akiko Aizawa. 2020. Assessing the benchmarking capacity of machine reading comprehension datasets. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 8918–8927. find
  35. Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019. find
  36. Quora. 2017. (1) first quora dataset release: GLUE: A multi-task benchmark and analysis plat-Question pairs - data @ quora - quora. form for natural language understanding. In Inter-https://www.quora.com/q/quoradata/ national Conference on Learning Representations. First-Quora-Dataset-Release-Questi… find
  37. Wei Wang, Bin Bi, Ming Yan, Chen Wu, Jiangnan Xia, Zuyi Bao, Liwei Peng, and Luo Si. 2020. find
  38. Structbert: Pranav Rajpurkar, Robin Jia, and Percy Liang. 2018. Incorporating language structures into pre-training Know what you don’t know: Unanswerable ques-for deep language understanding. In International tions for SQuAD. In Proceedings of the 56th An-Conference on Learning Representations. nua… find
  39. Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. SQuAD: 100,000+ questions for Fabio Massimo Zanzotto, Andrea Santilli, Leonardo machine comprehension of text. In Proceedings of Ranaldi, Dario Onorati, Pierfrancesco Tommasino, the 2016 Conference on Empirical Methods in Natu-… find
  40. Yue Zhang and Stephen Clark. 2015. Discriminative syntax-based word ordering for text generation. Computational linguistics, 41(3):503–538. find

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/pham-2021-out-order-how-important-is/