[Paper Review] PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization
PandaLM introduces a privacy-preserving judge LLM (PandaLM-7B) trained to evaluate and optimize instruction-tuning hyperparameters for open LLMs, focusing on subjective quality aspects, and demonstrates competitive performance against API-based and human evaluations.
Instruction tuning large language models (LLMs) remains a challenging task, owing to the complexity of hyperparameter selection and the difficulty involved in evaluating the tuned models. To determine the optimal hyperparameters, an automatic, robust, and reliable evaluation benchmark is essential. However, establishing such a benchmark is not a trivial task due to the challenges associated with evaluation accuracy and privacy protection. In response to these challenges, we introduce a judge large language model, named PandaLM, which is trained to distinguish the superior model given several LLMs. PandaLM's focus extends beyond just the objective correctness of responses, which is the main focus of traditional evaluation datasets. It addresses vital subjective factors such as relative conciseness, clarity, adherence to instructions, comprehensiveness, and formality. To ensure the reliability of PandaLM, we collect a diverse human-annotated test dataset, where all contexts are generated by humans and labels are aligned with human preferences. Our results indicate that PandaLM-7B achieves 93.75% of GPT-3.5's evaluation ability and 88.28% of GPT-4's in terms of F1-score on our test dataset. PandaLM enables the evaluation of LLM to be fairer but with less cost, evidenced by significant improvements achieved by models tuned through PandaLM compared to their counterparts trained with default Alpaca's hyperparameters. In addition, PandaLM does not depend on API-based evaluations, thus avoiding potential data leakage. All resources of PandaLM are released at https://github.com/WeOpenML/PandaLM.
Motivation & Objective
- Motivate the need for automated, reliable evaluation to optimize instruction-tuning hyperparameters for LLMs.
- Propose PandaLM as a judge LLM that assesses subjective as well as objective aspects of responses.
- Create a human-aligned test dataset to validate PandaLM’s reliability and relevance.
- Demonstrate that PandaLM-selected hyperparameters yield substantial performance gains over Alpaca-based defaults.
Proposed method
- Train PandaLM-7B (LLaMA-7B base) on 300k GPT-3.5-generated evaluation tuples created from Alpaca-52K-style inputs and responses from multiple open LLMs with consistent fine-tuning data.
- Incorporate evaluation results, rationale, and a reference response as PandaLM outputs.
- Distill data with self-instruction and apply heuristic filtering to mitigate noise and input-order bias.
- Construct a human-labeled test set (1k samples) with high inter-annotator agreement to benchmark PandaLM against humans and API models.
- Evaluate PandaLM against GPT-3.5, GPT-4, and humans using a dual-inference approach (order-swapped responses) for robustness.

Experimental results
Research questions
- RQ1Can a dedicated judge LLM reliably evaluate and distinguish between instruction-tuned LLMs across subjective and objective criteria?
- RQ2How close is PandaLM-7B’s evaluation performance to GPT-3.5, GPT-4, and human judgments on a diverse test set?
- RQ3Do hyperparameters selected by PandaLM improve open LLMs more than Alpaca-based defaults across multiple base models?
- RQ4Is PandaLM capable of facilitating privacy-preserving, cost-effective evaluation without relying on API-based assessments?
Key findings
- PandaLM-7B achieves 93.75% of GPT-3.5’s evaluation ability and 88.28% of GPT-4’s on a diverse human-annotated test set (in F1 terms).
- Models tuned with PandaLM-selected hyperparameters outperform Alpaca-tuned counterparts across multiple base models in human and GPT-based evaluations.
- PandaLM enables automatic, private evaluation without API data leakage, offering open-source access and reproducibility.
- A structured tuning procedure (80 configurations per model, four blocks, robust cross-block comparison) identifies effective hyperparameters that vary by base model.
- On downstream lm-eval tasks, PandaLM-tuned models show consistent improvements over Alpaca-tuned ones across several benchmarks.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.