paper-with-me

Papers

LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Study

2024-04-26 · Van Bach Nguyen, Paul Youssef, Christin Seifert, Jörg Schlötterer

As NLP models become more complex, understanding their decisions becomes more crucial. Counterfactuals (CFs), where minimal changes to inputs flip a model's prediction, offer a way to explain these models. While Large Language Models (LLMs) have shown remarkable performance in NLP tasks, their efficacy in generating high-quality CFs remains uncertain. This work fills this gap by investigating how well LLMs generate CFs for two NLU tasks. We conduct a comprehensive comparison of several common LLMs, and evaluate their CFs, assessing both intrinsic metrics, and the impact of these CFs on data augmentation. Moreover, we analyze differences between human and LLM-generated CFs, providing insights for future research directions. Our results show that LLMs generate fluent CFs, but struggle to keep the induced changes minimal. Generating CFs for Sentiment Analysis (SA) is less challenging than NLI where LLMs show weaknesses in generating CFs that flip the original label. This also reflects on the data augmentation performance, where we observe a large gap between augmenting with human and LLMs CFs. Furthermore, we evaluate LLMs' ability to assess CFs in a mislabelled data setting, and show that they have a strong bias towards agreeing with the provided labels. GPT4 is more robust against this bias and its scores correlate well with automatic metrics. Our findings reveal several limitations and point to potential future work directions.

📄 PDF Abstract BibTeX arXiv:2405.00722

Code (1)

aix-group/llms-for-cfs 공식 구현 pytorch

Tasks

Data AugmentationSentiment Analysis

Methods 이 논문이 사용한 방법론

Counterfactuals 설명 없음
FLIP https://developer.nvidia.com/blog/flip-a-difference-evaluator-for-alternating-images/

Similar Papers 제목 키워드 기반

Parallel Universes, Parallel Languages: A Comprehensive Study on LLM-based Multilingual Counterfactual Example Generation

2026-01-01 · Qianli Wang, Van Bach Nguyen, Yihong Liu, Fedor Splitt 외 arxiv

Counterfactuals refer to minimally edited inputs that cause a model's prediction to change, serving as a promising approach to explaining the model's behavior. Large language models (LLMs) excel at generating English cou…

Data Augmentation

Large Language Models as Nondeterministic Causal Models

2025-09-26 · Sander Beckers arxiv

Recent work by Chatzi et al. and Ravfogel et al. has developed, for the first time, a method for generating counterfactuals of probabilistic Large Language Models. Such counterfactuals tell us what would - or might - hav…

Zero-shot LLM-guided Counterfactual Generation: A Case Study on NLP Model Evaluation

2024-05-08 · Amrita Bhattacharjee, Raha Moraffah, Joshua Garland, Huan Liu

With the development and proliferation of large, complex, black-box models for solving many natural language processing (NLP) tasks, there is also an increasing necessity of methods to stress-test these models and provid…

counterfactualInstruction Following

Prompting Large Language Models for Counterfactual Generation: An Empirical Study

2023-05-24 · Yongqi Li, Mayi Xu, Xin Miao, Shen Zhou 외

Large language models (LLMs) have made remarkable progress in a wide range of natural language understanding and generation tasks. However, their ability to generate counterfactuals has not been examined systematically. …

counterfactualData Augmentationnamed-entity-recognitionNamed Entity Recognition+5

Flexible text generation for counterfactual fairness probing

2022-06-28 · NAACL (WOAH) 2022 7 · Zee Fryer, Vera Axelrod, Ben Packer, Alex Beutel 외

A common approach for testing fairness issues in text-based classifiers is through the use of counterfactuals: does the classifier output change if a sensitive attribute in the input is changed? Existing counterfactual g…

AttributecounterfactualFairnessText Generation