Reducing Class-Wise Performance Disparity via Margin Regularization

Beier Zhu, Kesen Zhao, Jiequan Cui, Qianru Sun, Yuan Zhou +2 more
1/30/2026
cs.LGcs.CV

Official code: BeierZhu/MR2 (3 stars, last commit 2026-02-05).

Abstract

Deep neural networks often exhibit substantial disparities in class-wise accuracy, even when trained on class-balanced data, posing concerns for reliable deployment. While prior efforts have explored empirical remedies, a theoretical understanding of such performance disparities in classification remains limited. In this work, we present Margin Regularization for Performance Disparity Reduction (MR$^2$), a theoretically principled regularization for classification by dynamically adjusting margins in both the logit and representation spaces. Our analysis establishes a margin-based, class-sensitive generalization bound that reveals how per-class feature variability contributes to error, motivating the use of larger margins for hard classes. Guided by this insight, MR$^2$ optimizes per-class logit margins proportional to feature spread and penalizes excessive representation margins to enhance intra-class compactness. Experiments on seven datasets, including ImageNet, and diverse pre-trained backbones (MAE, MoCov2, CLIP) demonstrate that MR$^2$ not only improves overall accuracy but also significantly boosts hard class performance without trading off easy classes, thus reducing performance disparity. Code is available at: https://github.com/BeierZhu/MR2

View on arXivView PDF

Code Implementations(1)

BeierZhu/MR2Official100%

[ICLR 2026] Reducing class-wise performance disparity via margin regularization

30Shell, PythonFeb 5, 20268 months ago

Similar Papers

Cite this paper

@article{zhu2026reducing,
  title  = {Reducing Class-Wise Performance Disparity via Margin Regularization},
  author = {Beier Zhu and Kesen Zhao and Jiequan Cui and Qianru Sun and Yuan Zhou and Xun Yang and Hanwang Zhang},
  year   = {2026},
  eprint = {2602.00205},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.00205v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.00205.svg)](https://codeofpaper.com/paper/2602.00205)

Discussion