arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.18583cs.CLcs.AIcs.LG
收藏

Luna-2:基于小语言模型的可扩展单令牌评估

Luna-2: Scalable Single-Token Evaluation with Small Language Models

Galileo AI

Vatsal Goel, Rishon Dsouza, Nikhil Ega, Amey Ramesh Rambatla, Rob Friel, Shuai Shao, Yash Sheth

AI总结:

Luna-2利用小语言模型实现高效、准确的单令牌评估,大幅降低计算成本和延迟,提升内容安全与幻觉检测性能。

摘要:

实时防护需要准确、廉价且快速的评估,但目前的默认方法LLMAJ(大型语言模型作为评判者)由于多令牌生成而显得缓慢、昂贵且操作上非确定性。我们提出了Luna-2,一种新的架构,利用仅解码器的小语言模型(SLMs)构建确定性的评估模型,以可靠计算复杂任务特定的LLMAJ指标(例如毒性、幻觉、工具选择质量等),在使用前沿LLM时的准确性不低于LLMAJ,同时大幅降低计算成本和延迟。每个指标都实现为一个轻量级的LoRA/PEFT头,基于共享的SLM骨干,使数百个专门化的指标能够在单个GPU上同时运行,以隐私保护和延迟优化的方式在AI系统附近本地部署。在内容安全和幻觉基准测试中,Luna-2的准确性与最先进的基于LLM的评估器相当,同时将推理成本降低了超过80倍,延迟降低了超过20倍。在本文中,我们概述了模型架构、训练方法,并报告了在准确性、延迟和吞吐量上的实际实验结果。在生产环境中,Luna-2正在保护1亿以上的AI会话,并每月处理超过1000十亿个标记,为客户提供每年超过3000万美元的评估成本节省。

英文摘要:

Real-time guardrails require evaluation that is accurate, cheap, and fast - yet today's default, LLM-as-a-judge (LLMAJ), is slow, expensive, and operationally non-deterministic due to multi-token generation. We present Luna-2, a novel architecture that leverages decoder-only small language models (SLMs) into a deterministic evaluation model to reliably compute complex task-specific LLMAJ metrics (e.g. toxicity, hallucination, tool selection quality, etc.) at an accuracy at par or higher than LLMAJ using frontier LLMs while drastically reducing the cost and latency of computation. Each metric is implemented as a lightweight LoRA/PEFT head on top of a shared SLM backbone, enabling hundreds of specialized metrics to run concurrently on a single GPU, deployable locally next to AI systems in a privacy-preserving and latency optimizing manner. Across content safety and hallucination benchmarks, Luna-2 matches the accuracy of state-of-the-art LLM-based evaluators while reducing inference cost by over 80x and latency by over 20x. In this paper, we outline the model architecture, training methodology and report real-world empirical results on accuracy, latency, and throughput results. In production, Luna-2 is protecting 100M+ AI sessions and processing over 100B tokens per month for our customers with eval cost savings of over $30M annually.

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

↑