EvalLM: Interactive Evaluation of Large Language Model Prompts on User-Defined Criteria

Tae Soo Kim, Yoonjoo Lee, Jamin Shin, Young-Ho Kim, Juho Kim

TL;DR

This paper introduces EVALLM, an interactive system designed to help prompt designers refine their prompts for large language models (LLMs). EVALLM facilitates this by allowing users to define custom evaluation criteria and then using an LLM to automatically evaluate prompt outputs against these criteria, providing explanations to guide revisions. A user study demonstrated that EVALLM significantly improves the efficiency and effectiveness of prompt iteration compared to manual evaluation.

What Problem Does This Paper Address?

Developing effective prompts for LLMs is crucial for creating novel generative applications. However, refining these prompts into polished products is challenging due to the non-deterministic nature of LLMs and the difficulty of evaluating outputs, especially for subjective and context-specific criteria. Existing methods often rely on manual evaluation, which is time-consuming and cognitively demanding, limiting the iteration process. This paper addresses the need for a more efficient and effective system to support prompt designers in iteratively refining their prompts by providing automated, user-defined evaluation capabilities.

Methods

EVALLM employs a human-AI collaborative approach. The system uses an LLM in two primary roles:

  1. Evaluation Assistant: This LLM automatically evaluates prompt outputs against user-defined criteria. It provides explanations for its assessments, highlighting where outputs fall short or where its interpretation might differ from the user's.
  2. Criteria Reviewer: This LLM component helps users refine their criteria by suggesting potential revisions, such as splitting broad criteria into more specific ones, merging redundant criteria, or refining vague ones.

The system's interface is structured into three main panels: generation, data, and evaluation. Designers can compose task instructions and prompt templates, select input samples from a dataset, define evaluation criteria, and then run automatic evaluations. The system also offers features like multiple evaluation trials for increased reliability and an experiment screen for larger-scale testing.

Datasets

The paper mentions using the MT-Bench dataset for their technical evaluation. This dataset consists of user requests and LLM responses across various categories. For their evaluation, they selected 19 requests from the writing and role-playing categories. They adapted these requests into a prompt-input format for their experiments.

Key Insights and Ideas

  • LLMs as evaluators: The core idea is leveraging LLMs not just for generation but also for evaluating the quality of generated text based on user-defined criteria, mimicking human judgment but at scale.
  • Interactive refinement: The system emphasizes an iterative loop where designers define criteria, evaluate outputs, receive LLM-generated feedback, and then refine both their prompts and criteria.
  • User-defined criteria are key: The system's strength lies in its ability to adapt to the specific needs of an application by allowing designers to define their own evaluation metrics, moving beyond generic quality assessments.
  • Explanations are crucial for trust and improvement: The LLM's ability to explain its evaluations is vital for designers to understand the feedback, verify its reasonableness, and identify specific areas for prompt improvement.
  • Criteria review tool enhances evaluation quality: The LLM-powered criteria reviewer helps designers create more precise, relevant, and granular evaluation criteria, leading to more insightful evaluations.

Key Results

  • User Study (N=12): Participants using EVALLM (Assist condition) reported significantly higher self-confidence in evaluating prompt outputs and felt the system helped them think through the task more effectively and collaboratively compared to manual evaluation.
  • Efficiency: Participants using EVALLM tested fewer prompt variations (5.00 vs. 8.42) to reach satisfactory prompts.
  • Criteria Quality: Participants felt their criteria were more comprehensive and clearer in the Assist condition. They also made more changes to their criteria with EVALLM's assistance.
  • Workload: Participants experienced significantly lower mental demand and effort in the Assist condition.
  • Technical Evaluation: The "Specific-Criteria" condition (using refined and adapted criteria) showed the highest agreement and correlation with human evaluations, comparable to human-human agreement. Explanations from the LLM were generally accurate and faithful, though some limitations in independence and logic were noted.

Limitations and Future Work

  • LLM limitations: The authors acknowledge that LLM evaluations cannot fully represent diverse human perspectives and may exhibit homogeneity of opinions. They suggest EVALLM can help designers prepare for final human evaluations rather than replace them.
  • Automatic prompt revision: Participants expressed a desire for the system to automatically revise prompts based on evaluations. Future work could explore incorporating reinforcement learning techniques to achieve this.
  • Beyond prompts to models: The system's evaluation capabilities could be extended to compare and refine LLMs themselves, not just prompts.
  • Organizing criteria: As NLG tasks become more specialized, organizing criteria into hierarchies to represent model performance at different levels of granularity is suggested for future work.

Summary updated

BibTeX
@inproceedings{kim2024evallm,
  author = {Tae Soo Kim and Yoonjoo Lee and Jamin Shin and Young-Ho Kim and Juho Kim},
  title = {{EvalLM: Interactive Evaluation of Large Language Model Prompts on User-Defined Criteria}},
  booktitle = {CHI},
  year = {2024},
  doi = {10.1145/3613904.3642216},
}
Figure