arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.22663cs.SEcs.CLcs.CR
收藏

机器学习文本分类器的自动化可信度预言生成

Automated Trustworthiness Oracle Generation for Machine Learning Text Classifiers

Monash University(莫纳什大学);University of Auckland(奥克兰大学);Royal Melbourne Institute of Technology(皇家墨尔本理工学院);Joint Research Centre at the European Commission(欧洲委员会联合研究中心)

Lam Nguyen Tung, Steven Cho, Xiaoning Du, Neelofar Neelofar, Valerio Terragni, Stefano Ruberto, Aldeida Aleti

AI总结:

针对文本分类器缺乏自动化可信度评估的问题,提出TOKI方法,通过语义相关性检查生成可信度预言,并设计引导式对抗攻击,实验证明其优于基线及现有攻击方法。

摘要:

用于文本分类的机器学习(ML)已在各个领域得到广泛应用。这些应用可能对伦理、经济和人类行为产生重大影响,引发了对信任机器学习决策的严重关切。研究表明,传统指标不足以建立人类对机器学习模型的信任。这些模型常常学习虚假相关性并基于此进行预测。在现实世界中,其性能可能会显著下降。为避免这种情况,常见做法是测试预测是否基于数据中的有效模式而合理。与此同时,一个被称为可信度预言问题的挑战被提出。由于缺乏自动化的可信度预言,评估需要对解释方法所披露的决策过程进行人工验证。然而,这既耗时、易出错,又难以扩展。我们提出了TOKI,这是首个用于文本分类器的自动化可信度预言生成方法。TOKI自动检查对预测贡献最大的词语是否与预测类别在语义上相关。具体来说,我们利用机器学习解释来提取决策贡献词,并基于词嵌入度量它们与类别的语义相关性。我们还引入了一种新颖的对抗攻击方法,该方法针对TOKI识别出的可信度漏洞。为了评估它们与人类判断的一致性,我们进行了实验。我们将TOKI与仅基于模型置信度的朴素基线进行比较,并将TOKI引导的对抗攻击方法与最先进的对抗攻击方法A2T进行比较。结果表明,仅依赖预测不确定性无法有效区分可信与不可信的预测,TOKI的准确率比朴素基线高出142%,且TOKI引导的攻击方法在更少的扰动下比A2T更有效。

英文摘要:

Machine learning (ML) for text classification has been widely used in various domains. These applications can significantly impact ethics, economics, and human behavior, raising serious concerns about trusting ML decisions. Studies indicate that conventional metrics are insufficient to build human trust in ML models. These models often learn spurious correlations and predict based on them. In the real world, their performance can deteriorate significantly. To avoid this, a common practice is to test whether predictions are reasonable based on valid patterns in the data. Along with this, a challenge known as the trustworthiness oracle problem has been introduced. Due to the lack of automated trustworthiness oracles, the assessment requires manual validation of the decision process disclosed by explanation methods. However, this is time-consuming, error-prone, and unscalable. We propose TOKI, the first automated trustworthiness oracle generation method for text classifiers. TOKI automatically checks whether the words contributing the most to a prediction are semantically related to the predicted class. Specifically, we leverage ML explanations to extract the decision-contributing words and measure their semantic relatedness with the class based on word embeddings. We also introduce a novel adversarial attack method that targets trustworthiness vulnerabilities identified by TOKI. To evaluate their alignment with human judgement, experiments are conducted. We compare TOKI with a naive baseline based solely on model confidence and TOKI-guided adversarial attack method with A2T, a SOTA adversarial attack method. Results show that relying on prediction uncertainty cannot effectively distinguish between trustworthy and untrustworthy predictions, TOKI achieves 142% higher accuracy than the naive baseline, and TOKI-guided attack method is more effective with fewer perturbations than A2T.

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

↑