arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.00868cs.LGcs.CLmath.STstat.MLstat.TH
收藏

量化大型语言模型的扰动影响

Quantifying perturbation impacts for large language models

University of Cambridge(剑桥大学)

Paulius Rauba, Qiyao Wei, Mihaela van der Schaar

AI总结:

本文提出DBPA框架,将LLM输入扰动影响分析转化为频率学派假设检验,通过蒙特卡洛采样和低维语义分布比较,实现模型无关、可解释且支持多重检验的量化评估。

摘要:

我们研究如何量化输入扰动对大型语言模型(LLM)输出的影响,这是模型可靠性和事后可解释性的一项基础任务。该领域的一个关键障碍是将模型响应中有意义的变化与LLM输出的内在随机性区分开来。为克服这一问题,我们提出了基于分布的扰动分析(Distribution-Based Perturbation Analysis,DBPA),该框架将LLM扰动分析重新表述为一个频率学派假设检验问题。DBPA通过蒙特卡洛采样,在低维语义相似性空间中构建经验零假设输出分布和备择输出分布。在降维空间中比较蒙特卡洛估计量,使可处理的频率学派推断成为可能,且无需依赖限制性的分布假设。该框架与模型无关,支持评估任意黑盒LLM上的任意输入扰动,产生可解释的p值,通过受控错误率支持多重扰动检验,并为任意选定的相似性或距离度量提供标量效应量。我们展示了DBPA在评估扰动影响方面的有效性,证明了其在扰动分析中的多功能性。

英文摘要:

We consider the problem of quantifying how an input perturbation impacts the outputs of large language models (LLMs), a fundamental task for model reliability and post-hoc interpretability. A key obstacle in this domain is disentangling the meaningful changes in model responses from the intrinsic stochasticity of LLM outputs. To overcome this, we introduce Distribution-Based Perturbation Analysis (DBPA), a framework that reformulates LLM perturbation analysis as a frequentist hypothesis testing problem. DBPA constructs empirical null and alternative output distributions within a low-dimensional semantic similarity space via Monte Carlo sampling. Comparisons of Monte Carlo estimates in the reduced dimensionality space enables tractable frequentist inference without relying on restrictive distributional assumptions. The framework is model-agnostic, supports the evaluation of arbitrary input perturbations on any black-box LLM, yields interpretable p-values, supports multiple perturbation testing via controlled error rates, and provides scalar effect sizes for any chosen similarity or distance metric. We demonstrate the effectiveness of DBPA in evaluating perturbation impacts, showing its versatility for perturbation analysis.

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

↑