Countering Overfitting with Counterfactual Examples

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Giorgi, Flavio, Veglianti, Fabiano, Silvestri, Fabrizio, Tolomei, Gabriele
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911305610297344
author Giorgi, Flavio
Veglianti, Fabiano
Silvestri, Fabrizio
Tolomei, Gabriele
author_facet Giorgi, Flavio
Veglianti, Fabiano
Silvestri, Fabrizio
Tolomei, Gabriele
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_09193
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Countering Overfitting with Counterfactual Examples
Giorgi, Flavio
Veglianti, Fabiano
Silvestri, Fabrizio
Tolomei, Gabriele
Machine Learning
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.
title Countering Overfitting with Counterfactual Examples
topic Machine Learning
url https://arxiv.org/abs/2502.09193