← Back to Paper Radar

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

Vatsal Goel, Rishona Dsouza, Nikhil Ega, Amey Ramesh Rambatla, R. Friel, Shuai Shao, Yash Sheth
2026

Reading guide · Based on sections of the original paper

The Galileo authors propose Luna-2, a recipe that fine-tunes per-metric LoRA adapters on a shared small decoder-only model so that each guardrail metric is scored from one output token. They claim this matches GPT-4.1 judges at a small fraction of the cost and latency.

Why read this

Teams running many LLM-as-judge metrics on production traffic should read it to judge whether single-token LoRA classifiers could replace judges for real-time guardrails.

What the authors found

  • Per Table 2, Luna-2 on Llama 3.2 3B nearly matches GPT-4.1 ChainPoll (three runs, averaged) in F1. Scores were 0.94 vs 0.97 on prompt injection, 0.95 vs 0.96 on context adherence and 0.94 vs 0.95 on tool selection. It slightly exceeds the judge on tone (0.92 vs 0.90) and PII (0.89 vs 0.88). Untuned single-token prompting scored far lower (0.21–0.71). The test sets are limited: prompt injection is synthetic, tool selection is a BFCL v4 sample relabeled to the authors' own definition, and tone and PII use proprietary internal data. 4.1 Accuracy
  • On one representative task averaging about 1,250 input tokens, the authors report $0.01–$0.02 per 1K evaluations, against $1.65 for Azure Content Safety. They also report about 150 ms on an A100 versus about 3,000 ms for GPT-4.1. The GPT-4.1 cost is inconsistent within the paper: the text says $2.00, while Table 4 lists $3.60. 4.2 Latency and Cost
  • On context adherence only, seven LLaMA, Ministral and Qwen backbones (3B–8B) reached F1 between 0.93 and 0.96. Several of them showed precision of 0.87 with recall of 1.00. 4.2 Latency and Cost

Main limitation

The latency advantage depends on input length. In Table 5, the 3B model on an A100 takes 1,200 ms at 15K tokens and 20,000 ms at 100K tokens. The authors note superlinear growth once contexts are long. 4.2 Latency and Cost

Where to start

4.2 Latency and Cost · Compare Tables 4 and 5 against the prose to check the cost discrepancy and the length-dependent latency, and to see the serving setup behind the throughput claims.

Abstract

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.

Generated automatically from paper sections on 2026-11-28.