Relabeling Minimal Training Subset to Flip a Prediction
Jinghan Yang, Linjie Xu, Lequan Yu
TL;DR
This work addresses the problem of identifying the smallest training-subset $\mathcal{S}_t$ whose relabeling would flip the prediction for a test point $x_t$, enabling contestability and debugging of predictions. It introduces IP-relabel, an approach based on an extended influence function for binary classification with convex loss, and presents a computationally efficient algorithm with complexity $O(p^3+Np^2)$. The key findings show that $| abla S_t|$ can be as small as $|\,\mathcal{S}_t|<0.02N$, with $|\mathcal{S}_t|$ correlating with training noise and providing information beyond predicted probabilities, including revealing group-attribution bias. The contributions offer a practical robustness metric, a data-centric tool for bias detection, and pathways for data cleaning and fairness improvements in real-world settings, with extensions open to more complex models like LLMs and multi-class tasks. $| S_t|$ and $x_t$ appear throughout, and the threshold $\tau$ governs flip decisions.
Abstract
When facing an unsatisfactory prediction from a machine learning model, users can be interested in investigating the underlying reasons and exploring the potential for reversing the outcome. We ask: To flip the prediction on a test point $x_t$, how to identify the smallest training subset $\mathcal{S}_t$ that we need to relabel? We propose an efficient algorithm to identify and relabel such a subset via an extended influence function for binary classification models with convex loss. We find that relabeling fewer than 2% of the training points can always flip a prediction. This mechanism can serve multiple purposes: (1) providing an approach to challenge a model prediction by altering training points; (2) evaluating model robustness with the cardinality of the subset (i.e., $|\mathcal{S}_t|$); we show that $|\mathcal{S}_t|$ is highly related to the noise ratio in the training set and $|\mathcal{S}_t|$ is correlated with but complementary to predicted probabilities; and (3) revealing training points lead to group attribution bias. To the best of our knowledge, we are the first to investigate identifying and relabeling the minimal training subset required to flip a given prediction.
