Litcius/Paper detail

The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformers

Róbert Csordás, Kazuki Irie, Juergen Schmidhuber

2021Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing55 citationsDOIOpen Access PDF

Abstract

Recently, many datasets have been proposed to test the systematic generalization ability of neural networks. The companion baseline Transformers, typically trained with default hyper-parameters from standard tasks, are shown to fail dramatically. Here we demonstrate that by revisiting model configurations as basic as scaling of embeddings, early stopping, relative positional embedding, and Universal Transformer variants, we can drastically improve the performance of Transformers on systematic generalization. We report improvements on five popular datasets: SCAN, CFQ, PCFG, COGS, and Mathematics dataset. Our models improve accuracy from 50% to 85% on the PCFG productivity split, and from 35% to 81% on COGS. On SCAN, relative positional embedding largely mitigates the EOS decision problem This calls for proper generalization validation sets for developing neural networks that generalize systematically. We publicly release the code to reproduce our results 1 .

Topics & Concepts

TransformerComputer scienceGeneralizationEmbeddingArtificial intelligenceMachine learningArtificial neural networkDeep neural networksTheoretical computer scienceAlgorithmMathematicsPhysicsMathematical analysisQuantum mechanicsVoltageTopic ModelingDomain Adaptation and Few-Shot LearningAdvanced Neural Network Applications
The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformers | Litcius