arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.09748cs.CLcs.AI
收藏

你能做到多小?用于设备端机器翻译关键错误检测的紧凑语言模型

How Small Can You Go? Compact Language Models for On-Device Critical Error Detection in Machine Translation

Fraunhofer IAIS - Department of Media Engineering(弗劳恩霍夫人工智能研究所-媒体工程部门);University of Bonn - Department of Computer Science(波恩大学-计算机科学系);Lamarr Institute for Machine Learning(拉马尔人工智能与机器学习研究所)

Muskaan Chopra, Lorenz Sparrenberg, Sarthak Khanna, Rafet Sifa

AI总结:

针对大型语言模型在设备端部署受限的问题,该研究通过基准测试2B以下模型,发现约10亿参数的紧凑指令调优模型经轻量校准后,可在设备端高效检测机器翻译关键错误,平衡质量与计算成本。

摘要:

大型语言模型(LLMs)在评估机器翻译(MT)方面表现出色,但其规模和成本阻碍了在边缘设备和隐私敏感工作流中的部署。我们提出问题:在仍能检测改变语义的翻译错误的情况下,模型能做到多小?聚焦于英语→德语关键错误检测(CED),我们在WMT21、WMT22和SynCED-EnDe-2025数据集上对2B以下模型(LFM2-350M、Qwen-3-0.6B/1.7B、Llama-3.2-1B-Instruct、Gemma-3-1B)进行基准测试。我们的框架标准化提示词,应用轻量级对数偏差校准和多数投票,并报告语义质量(MCC、F1-ERR/F1-NOT)和计算指标(显存、延迟、吞吐量)。结果显示约10亿参数模型存在明显的平衡点:Gemma-3-1B经合并权重微调后,在SynCED-EnDe-2025上达到MCC=0.77、F1-ERR=0.98,同时在MacBook Pro M4 Pro(24GB)上保持400毫秒单样本延迟。更大规模的Qwen-3-1.7B获得最高绝对MCC(比Gemma高+0.11),但计算成本更高。相比之下,超小型模型(0.6B)经少样本校准后仍可使用,但实体和数字错误检测不足。总体而言,经轻量级校准和小样本监督增强的紧凑指令调优LLM可提供可靠的设备端MT CED,在现实翻译流程中实现隐私保护、低成本错误筛查。所有数据集、提示词和脚本均公开于我们的GitHub仓库。

英文摘要:

Large Language Models (LLMs) excel at evaluating machine translation (MT), but their scale and cost hinder deployment on edge devices and in privacy-sensitive workflows. We ask: how small can you get while still detecting meaning-altering translation errors? Focusing on English->German Critical Error Detection (CED), we benchmark sub-2B models (LFM2-350M, Qwen-3-0.6B/1.7B, Llama-3.2-1B-Instruct, Gemma-3-1B) across WMT21, WMT22, and SynCED-EnDe-2025. Our framework standardizes prompts, applies lightweight logit-bias calibration and majority voting, and reports both semantic quality (MCC, F1-ERR/F1-NOT) and compute metrics (VRAM, latency, throughput). Results reveal a clear sweet spot around one billion parameters: Gemma-3-1B provides the best quality-efficiency trade-off, reaching MCC=0.77 with F1-ERR=0.98 on SynCED-EnDe-2025 after merged-weights fine-tuning, while maintaining 400 ms single-sample latency on a MacBook Pro M4 Pro (24 GB). At larger scale, Qwen-3-1.7B attains the highest absolute MCC (+0.11 over Gemma) but with higher compute cost. In contrast, ultra-small models (0.6B) remain usable with few-shot calibration yet under-detect entity and number errors. Overall, compact, instruction-tuned LLMs augmented with lightweight calibration and small-sample supervision can deliver trustworthy, on-device CED for MT, enabling private, low-cost error screening in real-world translation pipelines. All datasets, prompts, and scripts are publicly available at our GitHub repository.

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

↑