What's the Difference? Supporting Users in Identifying the Effects of Prompt and Model Changes Through Token Patterns

Michael A. Hedderich, Anyi Wang, Raoyuan Zhao, Florian Eichin, Jonas Fischer +1 more
4/22/2025
cs.CLcs.HCcs.LG

No official code found. Best implementation: mainlp/spotlight (0 stars, last commit 2025-07-26).

Abstract

Prompt engineering for large language models is challenging, as even small prompt perturbations or model changes can significantly impact the generated output texts. Existing evaluation methods of LLM outputs, either automated metrics or human evaluation, have limitations, such as providing limited insights or being labor-intensive. We propose Spotlight, a new approach that combines both automation and human analysis. Based on data mining techniques, we automatically distinguish between random (decoding) variations and systematic differences in language model outputs. This process provides token patterns that describe the systematic differences and guide the user in manually analyzing the effects of their prompts and changes in models efficiently. We create three benchmarks to quantitatively test the reliability of token pattern extraction methods and demonstrate that our approach provides new insights into established prompt data. From a human-centric perspective, through demonstration studies and a user study, we show that our token pattern approach helps users understand the systematic differences of language model outputs. We are further able to discover relevant differences caused by prompt and model changes (e.g. related to gender or culture), thus supporting the prompt engineering process and human-centric model behavior research.

View on arXivView PDF

Code Implementations(1)

mainlp/spotlightCommunity100%

Repository for the Spotlight approach and ACL'25 paper to support users in identifying the effects of LLM prompt and model changes.

00CSS, HTMLApr 15, 20251 years ago
aclllmpatternspremiseresearch

Similar Papers

Cite this paper

@article{hedderich2025whats,
  title  = {What's the Difference? Supporting Users in Identifying the Effects of Prompt and Model Changes Through Token Patterns},
  author = {Michael A. Hedderich and Anyi Wang and Raoyuan Zhao and Florian Eichin and Jonas Fischer and Barbara Plank},
  year   = {2025},
  eprint = {2504.15815},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.15815v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.15815.svg)](https://codeofpaper.com/paper/2504.15815)

Discussion