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

打破语言壁垒:通过结构化自注意力改进跨语言推理

Breaking the Language Barrier: Improving Cross-Lingual Reasoning with Structured Self-Attention

EPFL(洛桑联邦理工学院)

Negar Foroutan, Mohammadreza Banaei, Karl Aberer, Antoine Bosselut

AI总结:

研究多语言模型在语码转换设置下跨语言推理能力的迁移困难,提出一种使用专用参数鼓励跨语言注意力的新机制,在RuleTaker和LeapOfThought数据集上分别提升推理性能14%和4%。

摘要:

在这项工作中,我们研究多语言语言模型(MultiLMs)在针对某种语言进行推理微调时,能否将逻辑推理能力迁移到其他语言。我们在两种方案下评估MultiLMs的跨语言推理能力:(1)上下文语言与问题语言在新测试语言中保持一致,即推理仍是单语的,模型必须跨语言迁移已学到的推理能力;(2)上下文语言与问题语言不同(我们称之为语码转换推理)。在两个逻辑推理数据集RuleTaker和LeapOfThought上,我们证明,尽管MultiLMs在单语设置下能跨语言迁移推理能力,但在语码转换设置下却难以迁移推理能力。基于这一观察,我们提出了一种新颖的注意力机制,该机制使用一组专用参数来鼓励在语码转换序列中进行跨语言注意力,从而在RuleTaker和LeapOfThought数据集上分别将推理性能提升了14%和4%。

英文摘要:

In this work, we study whether multilingual language models (MultiLMs) can transfer logical reasoning abilities to other languages when they are fine-tuned for reasoning in a different language. We evaluate the cross-lingual reasoning abilities of MultiLMs in two schemes: (1) where the language of the context and the question remain the same in the new languages that are tested (i.e., the reasoning is still monolingual, but the model must transfer the learned reasoning ability across languages), and (2) where the language of the context and the question is different (which we term code-switched reasoning). On two logical reasoning datasets, RuleTaker and LeapOfThought, we demonstrate that although MultiLMs can transfer reasoning ability across languages in a monolingual setting, they struggle to transfer reasoning abilities in a code-switched setting. Following this observation, we propose a novel attention mechanism that uses a dedicated set of parameters to encourage cross-lingual attention in code-switched sequences, which improves the reasoning performance by up to 14% and 4% on the RuleTaker and LeapOfThought datasets, respectively.

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

↑