Countering Overfitting with Counterfactual Examples
Flavio Giorgi, Fabiano Veglianti, Fabrizio Silvestri, Gabriele Tolomei
Abstract
Overfitting is a well-known issue in machine learning that occurs when a model struggles to generalize its predictions to new, unseen data beyond the scope of its training set. Traditional techniques to mitigate overfitting include early stopping, data augmentation, and regularization. In this work, we demonstrate that the degree of overfitting of a trained model is correlated with the ability to generate counterfactual examples. The higher the overfitting, the easier it will be to find a valid counterfactual example for a randomly chosen input data point. Therefore, we introduce CF-Reg, a novel regularization term in the training loss that controls overfitting by ensuring enough margin between each instance and its corresponding counterfactual. Experiments conducted across multiple datasets and models show that our counterfactual regularizer generally outperforms existing regularization techniques.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on2
- FOCUS: Flexible Optimizable Counterfactual Explanations for Tree EnsemblesAna Lucic, Harrie Oosterhuis, Hinda Haned, Maarten de RijkeAAAI 2022 · 87 citations
- GRACE: Generating Concise and Informative Contrastive Sample to Explain Neural Network Model's PredictionThai Le, Suhang Wang, Dongwon LeeKDD 2020 · 49 citations
Related papers
- iFlood: A Stable and Effective RegularizerYuexiang Xie, Zhen Wang, Yaliang Li, Ce Zhang et al.ICLR 2022 · 6 citations
- Consistency Regularization for Adversarial RobustnessJihoon Tack, Sihyun Yu, Jongheon Jeong, Minseon Kim et al.AAAI 2022 · 75 citations
- Meta-Learning Requires Meta-AugmentationJanarthanan Rajendran, Alexander Irpan, Eric JangNeurIPS 2020 · 111 citations
- Adversarial Unlearning: Reducing Confidence Along Adversarial DirectionsAmrith Setlur, Benjamin Eysenbach, Virginia Smith, Sergey LevineNeurIPS 2022 · 26 citations
- Overfitting in adversarially robust deep learningLeslie Rice, Eric Wong, J. Zico KolterICML 2020 · 935 citations
