Research Papers 论文研究 3h ago Updated 1h ago 更新于 1小时前 47

Evaluating Prompt Scope and Demonstration Similarity in Local LLM Machine Translation 评估本地大语言模型机器翻译中的提示范围与演示相似性

The paper evaluates prompt scope and demonstration selection as key variables in local LLM machine translation, focusing on English-to-Romance and English-to-Germanic translations. It compares three local instruction-tuned LLMs (llama3.2:3b, mistral:latest, qwen2.5:14b) against dedicated MT baselines using zero-shot and few-shot prompting with different demonstration selection strategies. Results show that dedicated MT systems remain stronger overall, especially for Germanic languages, while few 研究聚焦于本地大语言模型(LLM)在机器翻译任务中的提示范围与示例选择策略。 对比了三种本地指令微调的LLM(llama3.2:3b, mistral:latest, qwen2.5:14b)与专用MT基线系统(OPUS-MT, NLLB-200)。 实验涵盖零样本提示、少样本提示(随机/词法相似度/嵌入相似度检索)以及单目标与多语言家族范围提示。 发现专用MT系统整体表现最优,尤其在日耳曼语族上;嵌入检索对较强LLM有效但优势有限;多语言提示暴露了小模型的结构化输出缺陷。 强调评估LLM翻译能力时应综合考虑提示范围、检索策略及多目标合规性。

65
Hot 热度
70
Quality 质量
68
Impact 影响力

Analysis 深度分析

TL;DR

  • The paper evaluates prompt scope and demonstration selection as key variables in local LLM machine translation, focusing on English-to-Romance and English-to-Germanic translations.
  • It compares three local instruction-tuned LLMs (llama3.2:3b, mistral:latest, qwen2.5:14b) against dedicated MT baselines using zero-shot and few-shot prompting with different demonstration selection strategies.
  • Results show that dedicated MT systems remain stronger overall, especially for Germanic languages, while few-shot prompting benefits some LLMs but harms others.
  • Family-scope prompting is feasible for larger LLMs but reveals structured-output failures in smaller models.
  • The study emphasizes evaluating LLM translation by prompt scope, retrieval strategy, and multi-target compliance beyond traditional metrics.

Why It Matters

This research is crucial for AI practitioners and researchers working on localized or resource-constrained machine translation systems, as it provides insights into how prompt design and demonstration selection impact performance. It highlights the trade-offs between general-purpose LLMs and specialized MT models, guiding best practices for deploying LLMs in real-world translation scenarios where users may request multiple languages or example-based conditioning.

Technical Details

  • Models Evaluated: llama3.2:3b, mistral:latest, qwen2.5:14b (local instruction-tuned LLMs) vs. OPUS-MT and NLLB-200 (dedicated MT baselines).
  • Task: English-to-Romance and English-to-Germanic translation on the FLORES devtest split covering nine EU languages.
  • Prompting Strategies: Zero-shot prompting, k=5 few-shot prompting with random, lexical-similarity, and embedding-similarity demonstration selection.
  • Scope Comparison: Single-target prompts vs. JSON-formatted family-scope prompts requesting all languages in a family simultaneously.
  • Key Findings: Embedding retrieval slightly outperforms other methods for stronger LLMs; family-scope prompting works well for larger models but causes output structure issues in smaller ones.

Industry Insight

  • Organizations deploying LLMs for multilingual translation should prioritize model size and architecture when choosing between single-target and family-scope prompting to avoid structural errors.
  • For cost-sensitive applications using smaller LLMs, dedicated MT systems like OPUS-MT or NLLB-200 may still offer superior accuracy, particularly for Germanic languages.
  • Practitioners should experiment with embedding-based demonstration selection for stronger LLMs to marginally improve few-shot performance, though gains over simpler methods are modest.

TL;DR

  • 研究聚焦于本地大语言模型(LLM)在机器翻译任务中的提示范围与示例选择策略。
  • 对比了三种本地指令微调的LLM(llama3.2:3b, mistral:latest, qwen2.5:14b)与专用MT基线系统(OPUS-MT, NLLB-200)。
  • 实验涵盖零样本提示、少样本提示(随机/词法相似度/嵌入相似度检索)以及单目标与多语言家族范围提示。
  • 发现专用MT系统整体表现最优,尤其在日耳曼语族上;嵌入检索对较强LLM有效但优势有限;多语言提示暴露了小模型的结构化输出缺陷。
  • 强调评估LLM翻译能力时应综合考虑提示范围、检索策略及多目标合规性。

为什么值得看

本文为AI从业者提供了关于如何在实际部署中优化本地LLM机器翻译性能的重要实证指导,特别是在资源受限或隐私敏感场景下。它揭示了不同提示工程策略对翻译质量的显著影响,有助于开发者避免盲目依赖单一范式,并推动更鲁棒的多语言翻译系统设计。

技术解析

  • 模型规格:选用三个主流本地指令微调LLM——llama3.2:3b(小参数量)、mistral:latest(中等规模)、qwen2.5:14b(较大参数量),用于对比其在翻译任务中的泛化能力。
  • 数据集与基准:基于FLORES devtest完整划分,覆盖英语到罗曼语族和日耳曼语族的九种欧盟官方语言,确保跨语言多样性评估。
  • 提示策略设计:测试零-shot prompting、k=5 few-shot prompting(含random、lexical-similarity、embedding-similarity三种示例选择方式),并引入JSON格式的family-scope prompt以支持批量多语言生成。
  • 评估维度:不仅关注传统BLEU等指标,还特别考察structured-output failure(如格式错误、语言混杂)在多目标提示下的发生率,体现对实用性的重视。
  • 基线对比:将本地LLM结果与OPUS-MT和NLLB-200等专业MT系统进行量化比较,凸显当前专用模型仍具优势,但本地LLM在特定条件下可匹敌甚至超越部分基线。

行业启示

  • 在实际应用中,不应仅依据单一语言对的翻译质量评估本地LLM,而需结合提示结构(如是否支持多语言并发)、示例选取机制及输出格式稳定性进行综合考量。
  • 对于追求低延迟、高隐私保护的边缘计算场景,建议优先采用具备较强上下文理解能力的中型以上本地LLM(如qwen2.5:14b),并配合embedding-based示例检索以提升Few-shot效果。
  • 未来产品开发应重视“多目标兼容性”作为核心指标之一,避免因提示扩展导致的小模型崩溃风险,同时探索动态适配不同prompt scope的自适应推理框架。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Evaluation 评测 Research 科学研究