arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.12284cs.LGcs.AIcs.NE
收藏

魔鬼在细节中:简单的技巧提高了Transformers的系统概括性

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

The Swiss AI Lab IDSIA(瑞士人工智能实验室IDSIA)

Róbert Csordás, Kazuki Irie, Jürgen Schmidhuber

摘要:

近年来,许多数据集被用来测试神经网络的系统泛化能力。同伴基线Transformers,通常使用标准任务的默认超参数进行训练,显示出显着失败。在这里,我们证明,通过重新访问模型配置的基本缩放嵌入,提前停止,相对位置嵌入,通用Transformer的变种,我们可以大大提高性能的Transformers的系统推广。我们报告了五个流行数据集的改进:SCAN,CFQ,PCFG,COGS和Mathematics数据集。我们的模型将PCFG生产率分割的准确性从50%提高到85%,将COGS的准确性从35%提高到81%。在SCAN上,相对位置嵌入在很大程度上减轻了EOS决策问题(Newman等人,2020年),产生100%的准确率的长度分裂与截止26。重要的是,这些模型之间的性能差异通常在IID数据分割上不可见。这就需要适当的泛化验证集来开发系统泛化的神经网络。我们公开发布代码以重现我们的结果。

英文摘要:

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 (Newman et al., 2020), yielding 100% accuracy on the length split with a cutoff at 26. Importantly, performance differences between these models are typically invisible on the IID data split. This calls for proper generalization validation sets for developing neural networks that generalize systematically. We publicly release the code to reproduce our results.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑