Scoring with Large Language Models: A Study on Measuring Empathy of Responses in Dialogues

Henry J. Xie, Jinghan Zhang, Xinhao Zhang, Kunpeng LiuarXiv 2024

TL;DR

While Large Language Models (LLMs) are increasingly used to evaluate human-centric qualities like empathy, their internal scoring mechanisms remain an opaque "black box." This paper introduces a framework that deconstructs LLM empathy scoring into explicit, human-interpretable subfactors and clinical codes. By training simple, transparent classifiers on these features, the authors match the performance of a fine-tuned LLM, proving that we don't have to sacrifice interpretability for accuracy.

What Problem Does This Paper Address?

LLMs are frequently tasked with "scoring"—assigning a numerical value to abstract qualities in text. In applications like mental health support or social science research, measuring empathy is highly valuable. However, how an LLM arrives at a specific empathy score is usually hidden behind layers of neural weights.

This lack of transparency is a major hurdle. If an LLM rates a response as "unempathetic," researchers and practitioners need to know why. Is it a lack of emotional resonance, poor perspective-taking, or an inappropriate tone? This paper tackles this gap by investigating how LLMs evaluate empathy and demonstrating how to approximate complex LLM scoring using explicit, explainable features.

Methods

The authors developed a multi-step framework to benchmark LLMs and build interpretable "surrogate" classifiers:

  1. Benchmarking & Fine-Tuning: They evaluated four zero-shot LLMs (GPT-3.5-turbo, GPT-4, GPT-4o, GPT-4o-mini) on an empathy scoring task. They then fine-tuned the best performer (GPT-4o-mini) to establish a "peak performance" gold standard.
  2. Explainable Feature Extraction: To open the black box, they extracted three distinct feature sets from the dialogues:
  3. Standard Text Embeddings: Using OpenAI's text-embedding-3-small.
  4. MITI Code: 15 behavioral codes from the Motivational Interviewing Treatment Integrity manual, a standard clinical tool for evaluating mental health responses.
  5. Explicit Subfactors: A novel set of 15 subfactors mapped across three core dimensions of empathy: Cognitive, Affective, and Compassionate. They used a "reinforced" prompting strategy (prompting GPT-4o ten times to find the most recurring subfactors) to build a robust feature set, visualized below.
The 3 dimensions and 15 explicit subfactors of empathy structured as a leaf.
  1. Surrogate Classifiers: Instead of letting the LLM directly output a final score, they used the LLM to score the 15 explicit subfactors on a scale of 1–10. They then trained traditional machine learning models—such as Logistic Regression (LR) and Support Vector Classifiers (SVC)—on these explicit metrics.
  2. Feature Selection: They applied Recursive Feature Elimination (RFE) to eliminate redundancy and find the absolute most critical features driving the empathy score.

Datasets

The study utilized a dataset compiled by Welivita and Pu, which builds upon the well-known EmpatheticDialogues benchmark.

  • It contains 2,000 unique situation-speaker utterance pairs.
  • Each pair features three distinct responses: one from a human, one "vanilla" ChatGPT response, and one empathy-prompted ChatGPT response (6,000 total triplets).
  • All responses include human-annotated empathy scores (1 = bad, 2 = okay, 3 = good).
  • Because the original data skewed heavily toward high scores, the authors undersampled it to create a perfectly balanced dataset of 1,920 samples (640 of each score class), split 80/20 for training and testing.

Key Insights and Ideas

  • LLMs Have a Structured View of Empathy: By forcing the LLM to score granular subfactors (like "warmth in tone" or "contextual awareness"), the authors proved that these human-understandable concepts highly correlate with overall empathy ratings.
  • Redundancy Hurts, Selection Helps: Simply concatenating clinical MITI codes and explicit subfactors initially degraded classifier performance. However, applying feature selection to distill the pool down to the top 10 most informative features unlocked a massive performance boost.
  • White-Box Parity: The most profound takeaway is that a simple, fully transparent Logistic Regression model trained on just 10 explicit features can perform on par with a complex, fine-tuned LLM.

Key Results

The authors compared the accuracy of direct LLM scoring against their feature-based classifiers:

  • Direct LLM Scoring: Zero-shot GPT-4o-mini achieved a baseline accuracy of 46.61% against human scores. Fine-tuning boosted this peak "upper bound" to 54.69%.
  • Feature-Based Classifiers:
  • Classifiers trained purely on text embeddings topped out at 42.71% (SVC).
  • Classifiers trained on the 15 clinical MITI codes reached 44.79% (SVC).
  • Classifiers trained on the 15 explicit empathy subfactors hit 51.30% (SVC).
  • The Transparent Winner: By combining the MITI codes and explicit subfactors and filtering them down to the top 10 features using RFE, a Logistic Regression model achieved 53.65% accuracy. This virtually matches the fine-tuned LLM peak while being entirely interpretable.

The complete breakdown of how these feature groups performed across different models is illustrated in the paper's methodology and results summary:

Methodology workflow and the resulting model accuracies across different feature groups.

Limitations and Future Work

  • Single Dataset Constraint: The evaluation relied entirely on data derived from EmpatheticDialogues. The authors note that future work must validate this framework across more diverse data sources to account for a wider range of cultural backgrounds and conversational contexts.
  • Factoring in Sentiment and Emotion: The current model looks primarily at structural and cognitive subfactors. The authors plan to explicitly integrate sentiment and emotion tracking from the conversation context to see if it further closes the gap to human evaluation.

Summary updated

BibTeX
@misc{xie2024scoring,
  author = {Henry J. Xie and Jinghan Zhang and Xinhao Zhang and Kunpeng Liu},
  title = {{Scoring with Large Language Models: A Study on Measuring Empathy of Responses in Dialogues}},
  year = {2024},
  eprint = {2412.20264},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.20264},
}
Figure