arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.12674cs.CLcs.AI
收藏

通过增强指令提升大语言模型的翻译忠实度

Improving Translation Faithfulness of Large Language Models via Augmenting Instructions

Beijing Jiaotong University(北京交通大学);Pattern Recognition Center, WeChat AI, Tencent Inc(腾讯微信AI 模式识别中心);Tencent Inc(腾讯公司);WeChat AI(微信AI);Pattern Recognition Center(模式识别中心);Tencent Inc, China(腾讯公司(中国));Beijing, China(中国北京)

Yijie Chen, Yijin Liu, Fandong Meng, Yufeng Chen, Jinan Xu, Jie Zhou

AI总结:

针对大语言模型指令微调中存在的指令遗忘问题,提出SWIE分段加权指令嵌入方法和OVERMISS数据集,有效提升了模型翻译性能与忠实度。

摘要:

大语言模型(LLMs)具备强大的通用能力,当前一个引人关注的挑战是通过低成本的指令微调激发其机器翻译等专业能力。标准的指令遵循数据按顺序组织为指令、输入和响应的拼接形式。由于LLMs的注意力机制在局部聚焦上存在局限,LLMs在每个位置往往更关注附近的词或句子,这导致解码过程中存在很高的指令遗忘风险。为缓解上述问题,我们提出了SWIE(分段加权指令嵌入)和一个指令遵循数据集OVERMISS。SWIE通过在后续的输入和响应表示上添加全局指令表示,提升模型的指令理解能力;OVERMISS通过将过译和漏译结果与正确译文进行对比,提升模型的忠实度。我们将这些方法应用于BLOOM和LLaMA这两个主流开源LLMs。实验结果表明,基于BLOOMZ-3b的SWIE方法在翻译性能上取得显著提升,尤其是在零样本和长文本翻译场景中,这得益于指令遗忘风险的降低。此外,OVERMISS的翻译性能优于基线(例如LLaMA-7b的BLEU分数从0.69提升至3.12,comet分数平均提升0.48个百分点);结合OVERMISS和SWIE的模型性能进一步提升(例如在三种不同骨干模型上,英德翻译的BLEU分数最高提升0.56),且两者在基于词对齐的忠实度指标上均表现出提升。

英文摘要:

Large Language Models (LLMs) present strong general capabilities, and a current compelling challenge is stimulating their specialized capabilities, such as machine translation, through low-cost instruction tuning. The standard instruction-following data is sequentially organized as the concatenation of an instruction, an input, and a response. As the attention mechanism of LLMs has limitations on local focus, LLMs tend to focus more on the words or sentences nearby at each position. This leads to a high risk of instruction forgetting during decoding. To alleviate the above issues, We propose SWIE (Segment-Weighted Instruction Embedding) and an instruction-following dataset OVERMISS. SWIE improves the model instruction understanding by adding a global instruction representation on the following input and response representations. OVERMISS improves model faithfulness by comparing over-translation and miss-translation results with the correct translation. We apply our methods to two main-stream open-source LLMs, BLOOM and LLaMA. The experimental results demonstrate significant improvements in translation performance with SWIE based on BLOOMZ-3b, particularly in zero-shot and long text translations due to reduced instruction forgetting risk. Additionally, OVERMISS outperforms the baseline in translation performance (e.g. an increase in BLEU scores from 0.69 to 3.12 and an average improvement of 0.48 percentage comet scores for LLaMA-7b) with further enhancements seen in models combining OVERMISS and SWIE (e.g. the BLUE scores increase up to 0.56 from English to German across three different backbones), and both exhibit improvements in the faithfulness metric based on word alignment.

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

↑