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

对于使用 SGD 训练的分类器,数据调试是 NP 难问题

Data Debugging is NP-hard for Classifiers Trained with SGD

Harbin Institute of Technology(哈尔滨工业大学)

Zizheng Guo, Pengyu Chen, Yanzhang Fu, Dongjing Miao

AI总结:

本文证明在 SGD 训练的线性分类器上,数据调试问题 Debuggable 在损失函数和维度不固定时是 NP 完全的,并对 hinge 型与线性损失函数给出复杂度分析,为数据调试算法设计提供理论依据。

摘要:

数据调试旨在找出训练数据的一个子集,使得在该子集上重新训练得到的模型具有更高的准确率。目前已提出大量启发式方法,但没有任何一种方法被保证能有效解决该问题。这留下了一个悬而未决的问题:是否存在一种高效算法,能够找到使重新训练模型准确率更高的子集。为回答这一开放问题,并为后续开发更优数据调试算法提供理论基础,我们研究了名为 Debuggable 的问题的计算复杂度。给定一个通过在数据集 $D$ 上训练得到的机器学习模型 $\mathcal{M}$,以及一个测试实例 $(\mathbf{x}_\text{test},y_\text{test})$,其中 $\mathcal{M}(\mathbf{x}_\text{test})\neq y_\text{test}$,Debuggable 问题是要判断是否存在 $D$ 的一个子集 $D^\prime$,使得在 $D^\prime$ 上重新训练得到的模型 $\mathcal{M}^\prime$ 满足 $\mathcal{M}^\prime(\mathbf{x}_\text{test})=y_\text{test}$。为覆盖广泛使用的常见模型,我们以经过 SGD 训练的线性分类器为模型,得到以下主要结果:(1)如果损失函数和模型维度不固定,那么无论 SGD 处理所有训练样本的训练顺序如何,Debuggable 都是 NP 完全的;(2)对于 hinge 型损失函数,我们给出了 Debuggable 计算复杂度的全面分析;(3)如果损失函数是线性函数,Debuggable 可以在线性时间内求解,即在这种情况下数据调试可以容易地解决。这些结果不仅凸显了当前方法的局限性,也为数据调试提供了新的见解。

英文摘要:

Data debugging is to find a subset of the training data such that the model obtained by retraining on the subset has a better accuracy. A bunch of heuristic approaches are proposed, however, none of them are guaranteed to solve this problem effectively. This leaves an open issue whether there exists an efficient algorithm to find the subset such that the model obtained by retraining on it has a better accuracy. To answer this open question and provide theoretical basis for further study on developing better algorithms for data debugging, we investigate the computational complexity of the problem named Debuggable. Given a machine learning model $\mathcal{M}$ obtained by training on dataset $D$ and a test instance $(\mathbf{x}_\text{test},y_\text{test})$ where $\mathcal{M}(\mathbf{x}_\text{test})\neq y_\text{test}$, Debuggable is to determine whether there exists a subset $D^\prime$ of $D$ such that the model $\mathcal{M}^\prime$ obtained by retraining on $D^\prime$ satisfies $\mathcal{M}^\prime(\mathbf{x}_\text{test})=y_\text{test}$. To cover a wide range of commonly used models, we take SGD-trained linear classifier as the model and derive the following main results. (1) If the loss function and the dimension of the model are not fixed, Debuggable is NP-complete regardless of the training order in which all the training samples are processed during SGD. (2) For hinge-like loss functions, a comprehensive analysis on the computational complexity of Debuggable is provided; (3) If the loss function is a linear function, Debuggable can be solved in linear time, that is, data debugging can be solved easily in this case. These results not only highlight the limitations of current approaches but also offer new insights into data debugging.

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

↑