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

通过推理时跨语言干预弥合大型语言模型中的语言鸿沟

Bridging the Language Gaps in Large Language Models with Inference-Time Cross-Lingual Intervention

School of Informatics, University of Edinburgh(爱丁堡大学信息学院);Monash University(莫纳什大学)

Weixuan Wang, Minghao Wu, Barry Haddow, Alexandra Birch

AI总结:

本文提出推理时跨语言干预框架INCLINE,通过最小二乘优化学习对齐矩阵,在推理时将低性能语言表示转换至高性能语言空间,无需预训练或微调,在九个基准上显著提升多语言性能且极具成本效益。

摘要:

大型语言模型(LLMs)在自然语言处理中展现出了卓越的能力,但在不同语言之间表现出显著的性能差距。解决这些差异的大多数现有方法依赖于预训练或微调,这非常消耗资源。为了在不产生巨大成本的情况下克服这些限制,我们提出了推理时跨语言干预(INCLINE),这是一个新颖的框架,通过在推理过程中将低性能(源)语言的内部表示与高性能(目标)语言的内部表示进行对齐,来增强LLM在低性能语言上的表现。INCLINE最初通过最小二乘优化,利用源语言和目标语言的平行句子学习对齐矩阵,然后在推理过程中应用这些矩阵,将低性能语言的表示转换到高性能语言空间。在五个LLM和九个基准上的广泛实验表明,与近期强大的基线相比,INCLINE在多种任务和语言上都显著提升了性能。我们的分析表明,INCLINE具有极高的成本效益,并适用于广泛的应用场景。此外,我们发布了代码以促进这一方向的研究:https://github.com/weixuan-wang123/INCLINE。

英文摘要:

Large Language Models (LLMs) have shown remarkable capabilities in natural language processing but exhibit significant performance gaps among different languages. Most existing approaches to address these disparities rely on pretraining or fine-tuning, which are resource-intensive. To overcome these limitations without incurring significant costs, we propose Inference-Time Cross-Lingual Intervention (INCLINE), a novel framework that enhances LLM performance on low-performing (source) languages by aligning their internal representations with those of high-performing (target) languages during inference. INCLINE initially learns alignment matrices using parallel sentences from source and target languages through a Least-Squares optimization, and then applies these matrices during inference to transform the low-performing language representations toward the high-performing language space. Extensive experiments on nine benchmarks with five LLMs demonstrate that INCLINE significantly improves performance across diverse tasks and languages, compared to recent strong baselines. Our analysis demonstrates that INCLINE is highly cost-effective and applicable to a wide range of applications. In addition, we release the code to foster research along this line: https://github.com/weixuan-wang123/INCLINE.

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

↑