arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.01649cs.LGcs.AI
收藏

shapiq:面向机器学习的 Shapley 交互作用

shapiq: Shapley Interactions for Machine Learning

LMU Munich(慕尼黑大学);Munich Center for Machine Learning(慕尼黑机器学习中心);University of Warsaw(华沙大学);Warsaw University of Technology(华沙理工大学);Bielefeld University(比勒费尔德大学);CITEC(认知交互技术中心);Paderborn University(帕德博恩大学)

Maximilian Muschalik, Hubert Baniecki, Fabian Fumagalli, Patrick Kolpaczki, Barbara Hammer, Eyke Hüllermeier

AI总结:

本文提出开源 Python 包 shapiq,统一高效计算 Shapley 值与任意阶 Shapley 交互作用的算法,并提供含11个应用的基准套件与模型解释可视化能力。

摘要:

Shapley Value(SV,Shapley 值)最初源于博弈论,近来已成为机器学习研究中的重要工具。或许最引人注目的是,它被用于可解释人工智能中的特征归因和数据估值。Shapley Interactions(SI,Shapley 交互作用)自然地扩展了 SV,并通过为实体组分配联合贡献来解决其局限性,从而增强对黑盒机器学习模型的理解。由于计算 SV 和 SI 具有指数复杂度,已有多种方法被提出,这些方法利用结构性假设,或在资源有限的情况下给出概率估计。在本工作中,我们推出 shapiq,这是一个开源 Python 软件包,在一个与应用无关的框架中统一了用于高效计算 SV 和任意阶 SI 的最先进算法。此外,它包含一个基准测试套件,其中有 11 个 SI 的机器学习应用,并提供预计算博弈和真值,用于系统评估跨领域的计算性能。对于从业者,shapiq 能够解释并可视化模型预测中的任意阶特征交互作用,包括 vision transformer、语言模型,以及借助 TreeSHAP-IQ 的 XGBoost 和 LightGBM。借助 shapiq,我们将 shap 从特征归因进一步扩展,并巩固 SV 与 SI 在机器学习中的应用,从而促进未来研究。源代码和文档可在 https://github.com/mmschlk/shapiq 获取。

英文摘要:

Originally rooted in game theory, the Shapley Value (SV) has recently become an important tool in machine learning research. Perhaps most notably, it is used for feature attribution and data valuation in explainable artificial intelligence. Shapley Interactions (SIs) naturally extend the SV and address its limitations by assigning joint contributions to groups of entities, which enhance understanding of black box machine learning models. Due to the exponential complexity of computing SVs and SIs, various methods have been proposed that exploit structural assumptions or yield probabilistic estimates given limited resources. In this work, we introduce shapiq, an open-source Python package that unifies state-of-the-art algorithms to efficiently compute SVs and any-order SIs in an application-agnostic framework. Moreover, it includes a benchmarking suite containing 11 machine learning applications of SIs with pre-computed games and ground-truth values to systematically assess computational performance across domains. For practitioners, shapiq is able to explain and visualize any-order feature interactions in predictions of models, including vision transformers, language models, as well as XGBoost and LightGBM with TreeSHAP-IQ. With shapiq, we extend shap beyond feature attributions and consolidate the application of SVs and SIs in machine learning that facilitates future research. The source code and documentation are available at https://github.com/mmschlk/shapiq.

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

↑