Elamur Research⌕
☰
home / papers / 2018 / When data permutations are pathological: the case of neural natural language inference

When data permutations are pathological: the case of neural natural language inference

Paper · 2018 · Natalie Schluter and Daniel Varab

Summary

The paper asks how much the order of training examples affects neural Natural Language Inference (NLI) models. The authors find the effect is large enough to undermine leaderboard comparisons. They build two simple attention-based architectures that use only fixed GloVe embeddings. FF/SUM is close to Parikh et al. (2016), and Bi/LSTM is a slimmed-down variant of Chen et al. (2017). Both are trained on SNLI and MULTI-NLI under many orderings of the training set: the distributed order, its reversal, one-time and per-epoch shuffling, sorting by premise, hypothesis or combined length, and sorting by model confidence, each also reversed. Only the original distributed order gives near state-of-the-art accuracy. Every other ordering costs roughly 3–4 points on SNLI and 1–6 points on MULTI-NLI, including both the standard advice to shuffle and the deep-learning habit of length bucketing. The advantage of the more complex Bi/LSTM over FF/SUM also usually shrinks under the alternative orderings. This casts doubt on whether reported architectural gains, and the benchmarks themselves, are reliable.

Key points

  • Data and test-set scores. SNLI (over 570K pairs) and MULTI-NLI (over 433K pairs) were used. On test, Bi/LSTM reaches 87.12% on SNLI and 75.58% (matched) / 74.33% (mismatched) on MULTI-NLI. The authors present this as state-of-the-art for MULTI-NLI among "simple" systems, meaning embeddings only and no ensembles.
  • Setup. 300-d GloVe Common Crawl 840B vectors are kept frozen, with zero vectors for OOV words. Training uses RMSprop with learning rate 0.001, batch size 512 and dropout 0.2, plus early stopping after 4 epochs without dev improvement.
  • Effect of reversing the order. With the original order, dev accuracy is 85.64 (FF/SUM) and 87.53 (Bi/LSTM) on SNLI, and 72.29 and 76.43 on MULTI-NLI. Simply reversing that order drops these to 82.48 / 83.92 and 66.71 / 69.71.
  • Shuffling and the architecture gap. Shuffling is the best alternative to the original order but still clearly worse. The gap between the two architectures falls from 1.89 to mostly about 0.6–1.3 on SNLI, though it reaches 2.55 under one ordering. On MULTI-NLI it falls from 4.14 to about 2.2–3.5.
  • Reproducing more complex systems. Rerunning Chen et al.'s released code gave 87.77% rather than the reported 88% and took about 7 hours longer than the authors' own system. Gong et al.'s system did not finish. Code for the paper is released on GitHub (nli-data-permutations).

Interesting ideas

  • I1. Treat the order of training examples as an explicit experimental factor: compare the original, reversed, shuffled-once (several seeds with σ) and per-epoch-shuffled versions, and evaluate these on dev so the test set stays untouched.
  • I2. Judge an architecture by whether its advantage survives across data orderings. A gap that appears only under one particular order is likely an artefact, not a better design.
  • I3. Check whether a seemingly harmless sort key, such as sentence length, is secretly correlated with the label. Sorting by that key can quietly arrange the data by class, so the authors examined class ordering separately.
  • I4. Sort the data by a trained model's per-example confidence, in both directions, as a probe of how training dynamics depend on example difficulty.
  • I5. Report the time and accuracy actually obtained when rerunning other people's released code, instead of copying their published numbers.

For Mova

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

  • I1 (learn): Run each training of the perceptron or gparse parser on silver data under several orderings and report the spread, so that order effects are not mistaken for real improvements.
  • I2 (tree): Accept a claim that gparse beats the perceptron parser on LAS only if the margin holds under shuffled and reversed treebank orders.
  • I3 (learn): Before length-bucketing or curriculum-ordering silver data, test whether the sort key correlates with genre, source treebank or witness-parser agreement, and use it as a negative control.
  • I4 (answer): Order school-test or word-problem training items by solver confidence, easy-first and hard-first, to see whether the readers' accuracy depends on presentation order rather than on understanding.
  • I5 (learn): When comparing against external parsers or teachers, log our own reproduced scores and runtimes so that baselines in evaluations are honest.

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 Natalie Schluter and Daniel Varab. 2018. When data permutations are pathological: the case of neural natural language inference. 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-1534

@inproceedings{schluter2018when,
  title = {{When data permutations are pathological: the case of neural natural language inference}},
  author = {Natalie Schluter and Daniel Varab},
  booktitle = {Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1534},
  url = {https://doi.org/10.18653/v1/d18-1534}
}

References

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

  1. Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2015. Neural machine translation by jointly learning to align and translate. In Proceedings of ICLR. ↗ our card
  2. Samuel R. Bowman, Jon Gauthier, Abhinav Rastogi, Raghav Gupta, Christopher D. Manning, and Christopher Potts. 2015. A large annotated corpus for learning natural language inference . ↗
  3. Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. 2014. Sequence to sequence learning with neural networks. In Proceedings of the 28th Annual Conference on Neural Information Processing Systems (NIPS). ↗
  4. A. Williams, N. Nangia, and S. R. Bowman. 2017. A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference. ArXiv e-prints . find
  5. Qian Chen, Xiaodan Zhu, Zhenhua Ling, Si Wei, Hui Jiang, and Diana Inkpen. 2017. Enhanced lstm for natural language inference. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (ACL 2017). ACL, Vancouver, BC, Canada. find
  6. Yichen Gong, Heng Luo, and Jian Zhange. 2017. Natural language inference over interaction space. Technical report. ArXiv:1709.04348 [cs.CL]. ↗
  7. Suchin Gururangan, Swabha Swayamdipta, Omer Levy, Roy Schwartz, Samuel R. Bowman, and Noah A. Smith. 2018. Annotation artifacts in natural language inference data. In The 16th Annual Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. ACL, New Orleans, Louisiana, USA. find
  8. Martin Mirakyan, Karen Hambardzumyan, and Hrant Khachatrian. 2018. Natural Language Inference over Interaction Space: ICLR 2018 Reproducibility Report. ArXiv e-prints . ↗
  9. Makoto Morishita, Yusuke Oda, Graham Neubig, Koichiro Yoshino, Katsuhito Sudoh, and Satoshi Nakamura. 2017. An empirical study of mini-batch creation strategies for neural machine translation. In The First Workshop on Neural Machine Translation (NMT). Vancouver, Canada. find
  10. Ankur P. Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. 2016. A decomposable attention model for natural language inference. In Proc of EMNLP. Austin, Texas, USA. ↗ our card
  11. Jeffrey Pennington, Richard Socher, and Christopher Manning. 2014. Glove: Global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, Doha, Qatar, pages 1532–1543. http://www.aclweb.org/anthology/D14-1162. ↗ our card
  12. Lei Sha, Baobao Chang, Zhifang Sui, and Sujian Li. 2016. Reading and thinking: Re-read lstm unit for textual entailment recognition. In Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers. find
  13. The COLING 2016 Organizing Committee, Osaka, Japan, pages 2870–2879. find

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/schluter-2018-when-data-permutations-are-pathological/