RealPatch: a statistical matching framework for model patching with real samples

Romiti, Sara, Inskip, Christopher, Sharmanska, Viktoriia and Quadrianto, Novi (2022) RealPatch: a statistical matching framework for model patching with real samples. European Conference on Computer Vision, Tel Aviv, October 23-27, 2022. Published in: European Conference on Computer Vision. 1-17. Springer

[img] PDF - Accepted Version
Restricted to SRO admin only until 21 October 2023.

Download (5MB)


Machine learning classifiers are typically trained to minimise the average error across a dataset. Unfortunately, in practice, this process often exploits spurious correlations caused by subgroup imbalance within the training data, resulting in high average performance but highly variable performance across subgroups. Recent work to address this problem proposes model patching with CAMEL. This previous approach uses generative adversarial networks to perform intra-class inter-subgroup data augmentations, requiring (a) the training of a number of computationally expensive models and (b) sufficient quality of model’s synthetic outputs for the given domain. In this work, we propose RealPatch, a framework for simpler, faster, and more data-efficient data augmentation based on statistical matching. Our framework performs model patching by augmenting a dataset with real samples, mitigating the need to train generative models for the target task. We demonstrate the effectiveness of RealPatch on three benchmark datasets, CelebA, Waterbirds and a subset of iWildCam, showing improvements in worst-case subgroup performance and in subgroup performance gap in binary classification. Furthermore, we conduct experiments with the imSitu dataset with 211 classes, a setting where generative model-based patching such as CAMEL is impractical. We show that RealPatch can successfully eliminate dataset leakage while reducing model leakage and maintaining high utility. The code for RealPatch can be found at

Item Type: Conference Proceedings
Schools and Departments: School of Engineering and Informatics > Informatics
SWORD Depositor: Mx Elements Account
Depositing User: Mx Elements Account
Date Deposited: 04 Aug 2022 17:00
Last Modified: 02 Nov 2022 10:43

View download statistics for this item

📧 Request an update