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

通过语言无关层跳过实现多语言对比解码

Multilingual Contrastive Decoding via Language-Agnostic Layers Skipping

Nanjing University(南京大学);EPFL(洛桑联邦理工学院)

Wenhao Zhu, Sizhe Liu, Shujian Huang, Shuaijie She, Chris Wendler, Jiajun Chen

AI总结:

针对DoLa在非英语任务中表现不佳的问题,提出通过跳过底层语言无关层获取有效业余logits的多语言对比解码算法,在11种语言的推理基准上优于基线,显著提升LLM思维链推理准确率。

摘要:

层对比解码(DoLa)旨在通过对比早退输出(业余logits)与最终输出(专家logits)的预测概率,提升大语言模型(LLM)的生成质量。然而我们发现,该方法在非英语任务上表现不佳。受模型前向传播过程中语言转换的先前可解释性研究启发,我们发现这一问题源于早退输出与最终输出之间的语言不匹配。本研究提出一种改进的对比解码算法,对英语之外的多种语言均有效。为获得更有用的业余logits,基于初步分析,我们设计了两种策略来跳过一组底层的语言无关层。在多语言推理基准上的实验结果表明,我们提出的方法优于以往的对比解码基线,并且在11种语言上大幅提升了大语言模型的思维链推理准确率。该项目将在以下地址发布:https://github.com/NJUNLP/SkipLayerCD。

英文摘要:

Decoding by contrasting layers (DoLa), is designed to improve the generation quality of large language models (LLMs) by contrasting the prediction probabilities between an early exit output (amateur logits) and the final output (expert logits). However, we find that this approach does not work well on non-English tasks. Inspired by previous interpretability work on language transition during the model's forward pass, we discover that this issue arises from a language mismatch between early exit output and final output. In this work, we propose an improved contrastive decoding algorithm that is effective for diverse languages beyond English. To obtain more helpful amateur logits, we devise two strategies to skip a set of bottom, language-agnostic layers based on our preliminary analysis. Experimental results on multilingual reasoning benchmarks demonstrate that our proposed method outperforms previous contrastive decoding baselines and substantially improves LLM's chain-of-thought reasoning accuracy across 11 languages. The project will be available at: https://github.com/NJUNLP/SkipLayerCD.

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

↑