arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.03945cs.CL
收藏

偏置Transformer对单调性的关注

On Biasing Transformer Attention Towards Monotonicity

University of Zurich(苏黎世大学);University of Edinburgh(爱丁堡大学)

Annette Rios, Chantal Amrhein, Noëmi Aepli, Rico Sennrich

摘要:

自然语言处理中的许多序列到序列任务在源序列和目标序列之间的对齐中是大致单调的,并且先前的工作已经通过专门的注意函数或预训练促进或加强了单调注意行为的学习。在这项工作中,我们引入了一个单调性损失函数,这是兼容的标准注意力机制和测试它的几个序列到序列的任务:字形到音素转换,形态变化,音译,和方言规范化。实验表明,我们可以实现很大程度上单调的行为。性能好坏参半,在RNN基线之上有更大的增益。一般的单调性不利于Transformer多头注意力,然而,当只有一部分头偏向单调行为时,我们看到了孤立的改进。

英文摘要:

Many sequence-to-sequence tasks in natural language processing are roughly monotonic in the alignment between source and target sequence, and previous work has facilitated or enforced learning of monotonic attention behavior via specialized attention functions or pretraining. In this work, we introduce a monotonicity loss function that is compatible with standard attention mechanisms and test it on several sequence-to-sequence tasks: grapheme-to-phoneme conversion, morphological inflection, transliteration, and dialect normalization. Experiments show that we can achieve largely monotonic behavior. Performance is mixed, with larger gains on top of RNN baselines. General monotonicity does not benefit transformer multihead attention, however, we see isolated improvements when only a subset of heads is biased towards monotonic behavior.

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

↑