Tuning LLM Judge Design Decisions for 1/1000 of the Cost

David Salinas, Omar Swelam, Frank Hutter · DOI

TL;DR

This paper tackles the high cost of evaluating Large Language Models (LLMs) by proposing a systematic method to tune LLM-based judges. They introduce a multi-objective, multi-fidelity optimization approach that significantly reduces the cost of finding effective judges, leading to open-weight models that outperform existing benchmarks.

What Problem Does This Paper Address?

Evaluating LLMs, especially instruction-tuned ones, is a major bottleneck due to the expense and time involved in human annotation. While LLM-based judges offer a cheaper alternative by comparing model outputs, existing research often conflates multiple design decisions (model, prompt, hyperparameters), making it hard to pinpoint what truly improves judge performance. This lack of systematic analysis and tuning leads to suboptimal judges and hinders reproducible research. The authors aim to bridge this gap by providing a cost-effective and systematic way to design and tune LLM judges.

Methods

The core of the paper is a multi-objective, multi-fidelity optimization framework for tuning LLM judge hyperparameters.

  • Hyperparameter Search Space: They explore a wide range of hyperparameters, including:
  • LLM Models: Seven open-weight models (Llama3.1, Qwen2.5, Gemma2) with varying parameter counts.
  • Inference Hyperparameters: Temperature and whether to average predictions from different output orders.
  • Prompt Hyperparameters: Various output formats (e.g., best-model-identifier, Likert scale, score pairs), and whether to include the judge's confidence, answer, or explanation.
  • Formatting: Using JSON or raw text for output.
  • Multi-Fidelity Optimization: To manage the computational cost, they employ a "successful halving" approach. Configurations are first evaluated on a small subset of data, and only the promising ones proceed to evaluation on larger subsets. This prunes poor-performing configurations early.
  • Multi-Objective Optimization: The goal is to optimize for both accuracy (measured by human agreement and Spearman correlation) and cost. They use non-dominated sorting to identify a Pareto front of configurations that offer good trade-offs between these objectives.
  • Evaluation Metrics:
    • Human Agreement: Percentage of agreement between the LLM judge and human annotators on pairwise comparisons.
  • Spearman Correlation: Correlation between the judge's rankings and human-derived rankings (e.g., from Chatbot Arena).

Datasets

  • Alpaca-Eval: Contains 47 model completions on 805 prompts.
  • Arena-Hard: Contains completions on 500 instructions for 57 models.
  • LMSys: A large dataset with 51,734 battles, used for measuring human agreement. The authors filter this dataset to select instructions that are specific and have a score of 5 or higher, resulting in 6548 instructions, split into validation (3548) and test (3000) sets.

Key Insights and Ideas

  • Scaling is Not Enough: Simply using larger LLMs or more instructions doesn't guarantee a good judge; prompt design and other hyperparameters play a crucial role.
  • Human Agreement is a Better Metric for Tuning: While Spearman correlation is useful, human agreement is more sensitive to differentiating judge configurations, especially for larger models, and is cheaper to compute.
  • Prompt Design Matters Immensely: The output format (e.g., "pair" format) and the inclusion of specific details like "provide example" (for larger models) significantly impact judge performance.
  • Simplicity Can Be Key for Smaller Models: Smaller LLMs struggle with complex output formats like JSON, making simpler formats more effective for them.
  • Cost-Effectiveness is Achievable: The multi-objective, multi-fidelity approach dramatically reduces the cost of finding good judges, making it feasible to explore a vast hyperparameter space.

Key Results

  • The proposed method identified judge configurations that outperform existing benchmarks (like PandaLM and Arena-Hard) in terms of human agreement, often with significantly lower costs.
  • The cost of evaluating 4480 judge configurations using their method was estimated at ~$2.1K, compared to an estimated ~$2M for similar evaluations using Alpaca-Eval or Arena-Hard.
  • They found that judges using the "pair" output format generally performed better.
  • Increasing temperature negatively impacted performance.
  • Providing an example in the prompt boosted performance for larger models.
  • Asking the judge to provide its own answer or explanation actually hurt performance.
  • Their "Ours-small" judge (under 10B parameters) outperformed PandaLM's 70B parameter judge on the PandaLM test set.

Limitations and Future Work

  • Bias: The authors acknowledge that LLM judges might still exhibit biases, such as favoring stylistic elements or verbosity, even if their selection criteria didn't worsen position bias. Future work could incorporate these biases as additional objectives in the optimization.
  • Limited Scope of Objectives: The current optimization focuses on accuracy and cost. Future work could extend this to include other criteria like stability or explainability.
  • Open-Weight Models: While they emphasize the benefits of open-weight models, the paper doesn't deeply explore the trade-offs compared to proprietary models beyond cost and accessibility.
  • Generalizability of Prompt Strategies: While prompt strategies showed some stability across models (Fig. 7), the authors note that this could change with new LLM capabilities like advanced reasoning.

Summary updated

BibTeX
@inproceedings{salinas2025tuning,
  author = {David Salinas and Omar Swelam and Frank Hutter},
  title = {{Tuning LLM Judge Design Decisions for 1/1000 of the Cost}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=cve4NOiyVp},
}
Figure