[论文解读] How to Design Translation Prompts for ChatGPT: An Empirical Study
论文设计并评估面向 ChatGPT 的翻译提示,包含翻译任务、领域语境和词性标签,展示在多语言、多参考和多领域设置下翻译质量的提升,少样本提示提供额外增益。
The recently released ChatGPT has demonstrated surprising abilities in natural language understanding and natural language generation. Machine translation relies heavily on the abilities of language understanding and generation. Thus, in this paper, we explore how to assist machine translation with ChatGPT. We adopt several translation prompts on a wide range of translations. Our experimental results show that ChatGPT with designed translation prompts can achieve comparable or better performance over commercial translation systems for high-resource language translations. We further evaluate the translation quality using multiple references, and ChatGPT achieves superior performance compared to commercial systems. We also conduct experiments on domain-specific translations, the final results show that ChatGPT is able to comprehend the provided domain keyword and adjust accordingly to output proper translations. At last, we perform few-shot prompts that show consistent improvement across different base prompts. Our work provides empirical evidence that ChatGPT still has great potential in translations.
研究动机与目标
- 由于其强大的语言能力,激发探索 ChatGPT 在机器翻译中的应用。
- 研究提示中的任务与领域信息是否能提升翻译质量。
- 评估在提示中将 POS 标签作为辅助信息的影响。
- 评估包含多语言、多参考和多领域数据集的提示。
- 探索小样本提示作为对翻译性能的额外提升。
提出的方法
- 定义一组将翻译任务、领域语境和 POS 标签嵌入其中的翻译提示。
- 将 ChatGPT 作为黑盒翻译器使用,并将提示与 TP3 基线进行比较。
- 在 Flores-101 多语言方向和 WMT 多参考数据集上评估翻译,使用 BLEU、ChrF++、和 TER。
- 通过自动标注(Stanza)将 POS 标签融入,并评估方向性影响。
- 在多个领域尝试领域特定提示(TT、CD 和 w-CD)。
- 通过选择高质量翻译对作为上下文示例进行少样本提示,并比较 0、1、5-shot 设置。
实验结果
研究问题
- RQ1在提示中添加翻译任务信息(例如 English-to-German)是否相对于基线提升 ChatGPT 的翻译质量?
- RQ2在提示中包含上下文/领域信息是否在语言方向和领域中提升翻译质量?
- RQ3将 POS 标签作为辅助信息是否在各方向上稳定提升 ChatGPT 的翻译,还是造成不稳定?
- RQ4多参考和多领域评测设置如何影响对 ChatGPT 的翻译质量评估?
- RQ5少样本提示是否能在设计提示之上进一步提升 ChatGPT 的翻译?
主要发现
- 包含翻译任务和领域信息的提示在若干英语为中心的方向上显著提升 ChatGPT 的翻译 BLEU 分数。
- POS 标签提示在某些方向提升,在其他方向导致下降,表明跨方向的不稳定性。
- 使用所提提示的 ChatGPT 在某些方向上超越某些商业系统,且在英语为中心的翻译中特别显著。
- 多参考评估揭示,当用多参考翻译评估时,ChatGPT 的翻译质量可以显著更高。
- 领域信息通常在多领域测试中提升性能,错误的领域提示会导致显著下降。
- 少样本提示提供显著增益,尤其是加入基线 TP3 提示时,增益因提示类型不同而异。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。