TL;DR
This paper introduces R$^2$Eval, a framework for intelligently routing and evaluating outputs from large language models (LLMs) and large reasoning models (LRMs). It tackles the challenges of model reliability, cost, and latency by dynamically selecting the best "judge" model for each task, significantly improving efficiency while maintaining human-level assessment quality.
What Problem Does This Paper Address?
As LLMs become more sophisticated, they're increasingly used to evaluate each other's outputs (e.g., in chatbot arenas or for automated grading). However, this "LLM-as-a-judge" approach faces several hurdles:
- Heterogeneous Reliability: Different LLMs have varying strengths and weaknesses, and their judgments can be inconsistent.
- Cost and Latency: Running powerful LLMs for every evaluation is expensive and slow.
- Lack of Principled Strategies: There's no clear, systematic way to decide which LLM to use for a given task to balance accuracy, speed, and cost.
This paper aims to bridge this gap by creating a framework that can intelligently route evaluation tasks to the most appropriate LLM or LRM judge, optimizing for accuracy, latency, and cost.
Methods
The R$^2$Eval framework has three main components:
- Benchmark Layer: This layer establishes a consistent way to evaluate LLMs and LRMs. It uses pairwise comparisons (Model A vs. Model B) across six domains (math, logic, code, knowledge, roleplay, writing), including both standard and "thinking-augmented" variants (where LRMs provide their reasoning steps). This allows for a systematic comparison of judge models.
- Automated Judges (LLMs & LRMs): The framework unifies the interface for both LLMs (which provide only verdicts) and LRMs (which provide verdicts along with explicit thinking traces). This allows for direct comparison and analysis of how reasoning processes influence judgments.
- Routing Strategies: This is the core innovation. R$^2$Eval employs two types of routing:
- Offline Routing: Uses global statistics (accuracy, latency, cost) from all judges to create fixed policies (e.g., "always pick the most accurate judge," "pick the fastest judge"). These are simple but don't adapt to individual tasks.
- Online Routing: Dynamically selects a judge for each specific instance. This includes:
- LLM-as-Router: A lightweight LLM acts as a router, considering task features and budget constraints.
- Trainable Router: A small, trained model that learns to predict the best judge based on input features, offering a more efficient and adaptive solution.
The routing strategies aim to balance accuracy, latency, and token cost using a utility function that can be tuned.
Datasets
The paper introduces R$^2$Eval corpus, a newly constructed benchmark. Key features include:
- Six Domains: Covers reasoning-intensive (math, logic, code) and non-reasoning (knowledge, roleplay, writing) tasks.
- Difficulty-Aware: Includes difficulty buckets (Easy, Medium, Diff) derived from baseline judge performance, allowing for analysis of how judges perform on varying task complexities.
- Thinking-Augmented Variants: For each item, there's a version where generators provide explicit reasoning traces, enabling analysis of LRM thinking.
- Dual-Generator Protocol: Responses are generated by GPT-40 and Claude 3.5 to ensure diversity and avoid single-model bias.
- Human-Annotated Gold Labels: Provides ground truth for evaluation.
This dataset is designed to be more comprehensive and difficulty-aware than existing benchmarks.
Key Insights and Ideas
- Reasoning Doesn't Guarantee Correctness: LRMs provide thinking traces, but the paper shows that good reasoning doesn't always lead to correct verdicts, and flawed reasoning can sometimes yield correct answers. This highlights the need for "reasoning-aware calibration."
- Difficulty Matters: Task difficulty significantly impacts judge performance. Harder tasks show larger gaps between judges, making difficulty-aware routing crucial for efficient resource allocation.
- LLMs vs. LRMs Trade-offs: LLMs are generally faster and cheaper but more variable. LRMs offer stronger performance, especially in reasoning tasks, but at a higher computational cost.
- Routing is Key for Efficiency: Static routing strategies are insufficient. Adaptive online routing, especially the trainable router, significantly reduces cost and latency while maintaining high accuracy.
- Domain Specialization: Different models excel in different domains (e.g., LRMs for math/logic, instruction-following models for writing/roleplay), reinforcing the need for a diverse pool of judges and intelligent routing.
Key Results
- Accuracy: LRMs like Gemini-2.5-Flash and Gemini-2.5-Pro achieved the highest accuracy in reasoning domains. Claude-3.5-Sonnet performed best in writing and roleplay.
- Cost and Latency Reduction: R$^2$Eval's routing strategies significantly reduced evaluation cost and latency. For example, online routers reduced selected-judge latency by 20-45% compared to accuracy-only strategies.
- Alignment with Human Assessments: The framework maintained close alignment with human judgments, demonstrating its reliability.
- Robustness: The routing strategies showed good generalization across domains and were robust to broader generator distributions.
Limitations and Future Work
- Difficulty Proxy: The difficulty buckets are derived from baseline model performance, which might inherit biases. Future work could explore more external or model-independent difficulty measures.
- Endogeneity: The design choice of using GPT-40 and Claude 3.5 for response generation might introduce some endogeneity, though the authors performed robustness checks.
- Router Overhead: While online routers are efficient, they still introduce some latency and cost, which is accounted for in the end-to-end analysis.
- Future Work: The authors suggest exploring more sophisticated routing strategies, further analyzing the relationship between reasoning and judgment, and developing more robust calibration methods for LLM/LRM judges.
Summary updated