Can You Trust Your Metric? Automatic Concatenation-Based Tests for Metric Validity
<|reference_start|>Can You Trust Your Metric? Automatic Concatenation-Based Tests for Metric Validity: Consider a scenario where a harmfulness detection metric is employed by a system to filter unsafe responses generated by a Large Language Model. When analyzing individual harmful and unethical prompt-response pairs, the metric correctly classifies each pair as highly unsafe, assigning the highest score. However, when these same prompts and responses are concatenated, the metric's decision flips, assigning the lowest possible score, thereby misclassifying the content as safe and allowing it to bypass the filter. In this study, we discovered that several harmfulness LLM-based metrics, including GPT-based, exhibit this decision-flipping phenomenon. Additionally, we found that even an advanced metric like GPT-4o is highly sensitive to input order. Specifically, it tends to classify responses as safe if the safe content appears first, regardless of any harmful content that follows, and vice versa. This work introduces automatic concatenation-based tests to assess the fundamental properties a valid metric should satisfy. We applied these tests in a model safety scenario to assess the reliability of harmfulness detection metrics, uncovering a number of inconsistencies.<|reference_end|>
@article{fandina2024can,
    title={Can You Trust Your Metric? Automatic Concatenation-Based Tests for
  Metric Validity},
    author={Ora Nova Fandina, Leshem Choshen, Eitan Farchi, George Kour, Yotam
  Perlitz, Orna Raz},
    journal={arXiv preprint arXiv:2408.12259},
    year={2024},
    archivePrefix={arXiv},
    eprint={2408.12259},
    primaryClass={cs.AI}
}