用模型编辑修复大模型翻译中的语言错配和重复问题
Mitigating the Language Mismatch and Repetition Issues in LLM-based Machine Translation via Model Editing
- 通过定位错误相关神经元,动态关闭干扰项
- 降低语言错配与重复率,同时保持整体翻译质量
- 适合需要精准控制大模型输出的翻译场景
大型语言模型在自然语言处理领域取得突破,但在机器翻译等下游任务中仍存在明显缺陷。本文聚焦于利用大模型进行机器翻译时常见的两类错误:语言错配与重复现象。为缓解这些问题,我们探索使用模型编辑方法,在推理阶段定位并关闭负责错误的前馈网络(FFN)神经元。实验发现,直接应用此类方法对目标错误改善有限,且常导致整体翻译质量显著下降,表明被定位组件可能对翻译性能同样关键。为此,我们提出一种改进策略:在不同语言设置下获取定位结果的交集,过滤掉与目标错误无关的信息。实验证明,该方法能有效降低语言错配和重复比率,多数情况下还能提升或维持整体翻译质量。
原文摘要 · Abstract (English)
Large Language Models (LLMs) have recently revolutionized the NLP field, while they still fall short in some specific down-stream tasks. In the work, we focus on utilizing LLMs to perform machine translation, where we observe that two patterns of errors frequently occur and drastically affect the translation quality: language mismatch and repetition. The work sets out to explore the potential for mitigating these two issues by leveraging model editing methods, e.g., by locating Feed-Forward Network (FFN) neurons or something that are responsible for the errors and deactivating them in the inference time. We find that directly applying such methods either limited effect on the targeted errors or has significant negative side-effect on the general translation quality, indicating that the located components may also be crucial for ensuring machine translation with LLMs on the rails. To this end, we propose to refine the located components by fetching the intersection of the locating results under different language settings, filtering out the aforementioned information that is irrelevant to targeted errors. The experiment results empirically demonstrate that our methods can effectively reduce the language mismatch and repetition ratios and meanwhile enhance or keep the general translation quality in most cases.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。