LLM Comparator: Visual Analytics for Side-by-Side Evaluation of Large Language Models

Minsuk Kahng, Ian Tenney, Mahima Pushkarna, Michael Xieyang Liu, James Wexler, Emily Reif, Krystal Kallarackal, Minsuk Chang, Michael Terry, Lucas Dixon · DOI

Introduction

Evaluating Large Language Models (LLMs) presents a significant challenge due to their ability to generate open-ended, free-form text. The industry standard for assessment is "side-by-side" (SxS) evaluation, where a judge—either human or a more capable LLM—compares responses from two models (A and B) for the same prompt. However, automated judges like AutoSxS often produce a "data deluge." A simple aggregate win rate (e.g., "Model A wins 56% of the time") fails to provide actionable insights into specific model behaviors or performance across different data "slices," such as coding versus creative writing.

System Design and Methods

To address these limitations, we present LLM Comparator, a visual analytics tool designed to bridge the gap between high-level metrics and granular examples. The tool's architecture is centered around two primary components: an Interactive Table and a Visualization Summary.

The LLM Comparator interface, featuring an interactive table (left) and visualization summary panels (right).

Interactive Table

The table view facilitates detailed inspection of individual responses. It employs overlapping word highlights to emphasize differences between model outputs and provides LLM-generated rationale summarization. This summarization condenses multiple rater justifications into concise bullet points, allowing developers to quickly grasp the core reasons for a particular rating.

Visualization Summary

The summary panel supports three distinct analytical workflows:

  • The "When" (Win Rates by Category): Performance is visualized across various prompt categories (e.g., Reasoning, Coding) using bar charts.
  • The "Why" (Rationale Clusters): This novel feature uses an LLM to cluster rater justifications into representative labels (e.g., "is more concise," "follows instructions accurately") based on embedding similarity.
  • The "How" (N-grams and Custom Functions): Users can identify frequent phrases in specific models or define custom JavaScript/Regex functions to quantify qualitative differences, such as response length or the presence of specific formatting.

Analytical Insights

A key innovation of LLM Comparator is the "LLM-in-the-loop" approach for meta-analysis. By using an LLM to summarize and cluster the judgments of other LLMs, the tool helps developers understand the underlying logic of the evaluation process without needing to read thousands of individual rationales.

Detailed view of individual rater scores and rationales for a specific prompt, enabling deep-dives into the judge's decision-making process.

This enables a "closed-loop" development cycle: developers identify a high-level performance gap, use rationale clusters to form a hypothesis (e.g., "Model A is too brief"), and then verify this hypothesis through targeted examples in the interactive table.

Impact and Evaluation

LLM Comparator has seen significant internal adoption at Google, with over 400 users analyzing more than 1,000 experiments within its first three months. A qualitative study with professional model developers highlighted the tool's efficiency. Participants noted that rationale clusters substantially reduced the time required to diagnose performance issues compared to traditional spreadsheet-based analysis. Users also leveraged the tool for "prior experience-based testing," hunting for known failure modes like unnecessary apologies or repetitive phrasing.

Limitations and Future Work

While effective, the tool faces computational bottlenecks when processing very large datasets due to the cost and latency of LLM-based summarization. Future work will explore more efficient scaling methods and more nuanced clustering techniques that go beyond semantic embedding similarity. Additionally, providing a library of pre-configured patterns (e.g., repetition detectors) would further streamline the evaluation process for developers.

Summary updated

BibTeX
@inproceedings{kahng2024llm,
  author = {Minsuk Kahng and Ian Tenney and Mahima Pushkarna and Michael Xieyang Liu and James Wexler and Emily Reif and Krystal Kallarackal and Minsuk Chang and Michael Terry and Lucas Dixon},
  title = {{LLM Comparator: Visual Analytics for Side-by-Side Evaluation of Large Language Models}},
  booktitle = {CHI Extended Abstracts},
  year = {2024},
  doi = {10.1145/3613905.3650755},
}
Figure