Transformers中组合推广的迭代译码
Iterative Decoding for Compositional Generalization in Transformers
摘要:
深度学习模型可以很好地推广到分布式数据,但很难在组成上进行推广,即,结合一组学习过的原语来解决更复杂的任务。在序列到序列(seq2seq)学习中,Transformers通常无法预测比训练时看到的更长的样本的正确输出。本文介绍了迭代解码,seq2seq的替代方案,(i)提高了PCFG和笛卡尔积数据集的Transformer组合泛化,(ii)证明在这些数据集中,seq2seq Transformers不学习未展开的迭代。在迭代解码中,训练样本被分解为Transformer迭代学习的一系列中间步骤。在推理时,中间输出作为中间输入反馈给Transformer,直到预测到迭代结束令牌。最后,我们说明了迭代解码的CFQ数据集的一些限制。
英文摘要:
Deep learning models generalize well to in-distribution data but struggle to generalize compositionally, i.e., to combine a set of learned primitives to solve more complex tasks. In sequence-to-sequence (seq2seq) learning, transformers are often unable to predict correct outputs for longer examples than those seen at training. This paper introduces iterative decoding, an alternative to seq2seq that (i) improves transformer compositional generalization in the PCFG and Cartesian product datasets and (ii) evidences that, in these datasets, seq2seq transformers do not learn iterations that are not unrolled. In iterative decoding, training examples are broken down into a sequence of intermediate steps that the transformer learns iteratively. At inference time, the intermediate outputs are fed back to the transformer as intermediate inputs until an end-of-iteration token is predicted. We conclude by illustrating some limitations of iterative decoding in the CFQ dataset.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。