Introduction
In the current machine learning landscape, we are increasingly faced with a "model lake"—a proliferation of models that achieve similar high-level performance metrics, such as 90% accuracy, yet exhibit distinct behavioral patterns on specific data subsets. Selecting the right model for a specific application requires understanding these nuanced differences. However, manual pairwise comparison scales quadratically ($O(N^2)$) with the number of models, making it impractical for developers to document every possible pair.
To address this, we present VERBA, a framework that leverages Large Language Models (LLMs) to automatically generate natural-language "diffs" between two machine learning models. By analyzing how models diverge on the same data, VERBA provides human-readable explanations that reveal behavioral gaps often hidden by standard aggregate metrics.
Methods
The VERBA framework treats model comparison as a translation task, converting raw prediction data into descriptive text. The process involves three primary stages:
- Representative Sampling: A specific "verb" split of the dataset is selected to record predictions from both models ($M_0$ and $M_1$).
- Serialization & Prompting: These input-output pairs are serialized into a structured format. This data is combined with a task description and, optionally, model metadata such as weights or tree structures.
- Verbalization: A "Verbalizer" LLM ($LLM_{verb}$) analyzes the patterns of divergence and summarizes them in natural language (e.g., "Model 0 is more sensitive to the 'Recency' feature than Model 1").
To objectively evaluate the quality of these verbalizations, the authors established a simulation-based protocol. An "Evaluator" LLM ($LLM_{eval}$) is provided with the outputs of Model 0 and the generated explanation. The informativeness of the explanation is measured by the Evaluator's ability to accurately predict the behavior of Model 1 based on that information.
Key Insights and Results
The effectiveness of VERBA was benchmarked using three tabular datasets: Blood Transfusion, Diabetes, and Car Evaluation. Models including Logistic Regression (LR), Decision Trees (DT), and Multilayer Perceptrons (MLP) were used to create pairs with similar performance but distinct behaviors.
The Value of Transparency
A critical finding of the study is that providing the LLM with "model internals"—such as the specific decision rules of a tree—significantly enhances explanation quality. LLMs are far more effective at explaining the why behind model differences when they can access the underlying logic rather than just black-box outputs.
Performance Benchmarks
- Accuracy: For Decision Tree pairs with a 20-25% behavioral divergence, VERBA achieved up to 80% accuracy in verbalizing variations. Including structural information pushed this accuracy to 90%.
- Model Comparison: Leading models like Gemini 2.0 Flash, GPT-4o, and Claude 3.5 Sonnet showed robust performance. Gemini often excelled in "Mismatch Accuracy," capturing the precise points of model disagreement.
- Complexity Ceiling: Verbalization accuracy was generally higher for linear models (LR) than for non-linear models (MLP), suggesting that more complex models may require more representative samples or deeper mechanistic insights for effective explanation.
Limitations and Future Work
While VERBA demonstrates strong potential for tabular data, several areas for future research remain:
- Scalability: Extending the framework to deep neural networks (e.g., Transformers) will require integrating more advanced mechanistic interpretability techniques to describe high-dimensional internals.
- Data Modalities: Future evaluations should explore high-dimensional data types such as text and images.
- Iterative Refinement: Implementing self-critique loops within the LLM prompting process could further improve the clarity and precision of the generated verbalizations.
- Evaluator Bias: The reliance on an LLM-based evaluator introduces potential biases that warrant further investigation.
Summary updated