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

评估Transformer学习轻度上下文相关语言的能力

Evaluating Transformer's Ability to Learn Mildly Context-Sensitive Languages

University of Washington(华盛顿大学)

Shunjie Wang, Shane Steinert-Threlkeld

AI总结:

本文测试了Transformer学习不同复杂度轻度上下文相关语言的能力,发现其同分布泛化良好但长序列外推逊于LSTM,并揭示其self-attention建模依存关系和计数行为的作用。

摘要:

尽管Transformer在NLP任务中表现良好,但近期研究表明,self-attention在学习某些正则语言和上下文无关语言时存在理论局限。这些发现促使我们思考其对自然语言建模的影响,而自然语言被假设为轻度上下文相关。我们测试了Transformer学习不同复杂度的轻度上下文相关语言的能力,发现它们对未见的同分布数据泛化良好,但向更长字符串外推的能力逊于LSTM。分析表明,学习到的self-attention模式和表示建模了依存关系并表现出计数行为,这可能有助于模型解决这些语言。

英文摘要:

Despite the fact that Transformers perform well in NLP tasks, recent studies suggest that self-attention is theoretically limited in learning even some regular and context-free languages. These findings motivated us to think about their implications in modeling natural language, which is hypothesized to be mildly context-sensitive. We test the Transformer's ability to learn mildly context-sensitive languages of varying complexities, and find that they generalize well to unseen in-distribution data, but their ability to extrapolate to longer strings is worse than that of LSTMs. Our analyses show that the learned self-attention patterns and representations modeled dependency relations and demonstrated counting behavior, which may have helped the models solve the languages.

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

↑