arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.01048cs.CLcs.LG
收藏

与什么相比?反事实提示的基线和度量标准

Compared to What? Baselines and Metrics for Counterfactual Prompting

Northeastern University(东北大学);Bar-Ilan University(巴伊兰大学);Allen Institute for AI(人工智能研究所)

Zihao Yang, Mosh Levy, Yoav Goldberg, Byron C. Wallace

AI总结:

本文探讨了反事实提示中基线和度量标准的重要性,指出单纯改变文本因素无法准确评估模型敏感性,提出通过统计检验比较干预差异与改写影响的框架,发现模型对患者性别等的敏感性在考虑一般模型敏感性后显著降低。

摘要:

反事实提示(即扰动单一因素并测量输出变化)被广泛用于评估如大语言模型(LLM)偏见和推理链(CoT)忠实性。但本文认为,未考虑基线“意义保持”修改的观察效应无法归因于目标因素。这是因为每个反事实编辑都是复合处理,将感兴趣变量与偶然的表层形式变化捆绑在一起;这违反了处理变化无关性。我们在MedQA上观察到手术改变患者性别导致的预测翻转率为14.9%,但统计上与简单改写输入(14.1%)无法区分。因此,不能得出LLM对患者性别特别敏感的结论。为应对这一问题并稳健地测量目标干预效果,我们提出一个框架,通过统计检验比较目标干预下的差异与改写输入诱导的差异。我们使用该框架重新审视MedPerturb数据集上的分析,发现这些效应在考虑一般模型敏感性后大部分消失,仅5/120项达到统计显著性。将相同框架应用于职业传记分类,检测到明显显著的性别偏见,表明该框架能识别即使效应微小的真实方向性效应。我们评估了多种度量标准——汇总、每样本分布和回归,并发现每样本度量标准远比汇总度量强大,回归则独特地刻画了效应方向和幅度。

英文摘要:

Counterfactual prompting (i.e., perturbing a single factor and measuring output change) is widely used to evaluate things like LLM bias and CoT faithfulness. But in this work we argue that observed effects cannot be attributed to the targeted factor without accounting for baseline "meaning-preserving" modifications to text that establish general model sensitivity. This is because every counterfactual edit is a compound treatment that bundles the variable of interest with incidental surface-form variation; this violates treatment variation irrelevance. We observe prediction flip rates on MedQA of 14.9% when we surgically change patient gender. However, this is statistically indistinguishable from the flip rates induced by simply paraphrasing inputs (14.1%). In this case, it would therefore be unwarranted to conclude that the LLM is especially sensitive to patient gender. To account for this and robustly measure the effects of targeted interventions, we propose a framework in which we compare (via statistical testing) differences observed under target interventions to those induced by paraphrasing inputs. We then use this framework to revisit a analysis done on the MedPerturb dataset, which reported evidence of model sensitivity to patient demographics and stylistic cues. We find that these effects largely dissipate when we account for general model sensitivity, with only 5 of 120 tests reaching statistical significance. Applying the same framework to occupational biography classification, we detect clearly significant directional gender bias, showing that the framework identifies real directional effects even when they are small. We evaluate a range of metrics (aggregate, per-sample distributional, and regression) and find that per-sample metrics are dramatically more powerful than aggregate metrics and regression powerfully and uniquely characterizes effect direction and magnitude.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑