arXiv:2610.06041cs.CVOct 2026

Manuscript Offprint

arXiv:2610.06041

Representation Disentanglement for Fair Chest X-Ray Diagnosis

Yujie Sun, Ruizhe Li, Xiaowu Sun

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Deep learning has advanced chest X-ray (CXR) diagnosis, yet demographic biases in learned representations may contribute to performance disparities across intersectional groups. We propose a single-encoder framework combining dual-level decorrelation with prototype-guided cross-group contrastive learning to reduce demographic dependence while accounting for within-class variation. We further propose Demographic Representation Alignment Reduction (DRAR), a new metric that quantifies the reduction in demographic structure within disease representations. The framework is evaluated on four classification tasks using 34,809 CheXpert test images across eight intersectional groups, defined by age, sex and ethnicity. Compared with empirical risk minimization (ERM), our method reduces the mean equalized-odds gap from 15.41% to 10.86% and the AUC gap from 5.95% to 5.01%. Our method achieves a DRAR of 59.04% relative to ERM, with only a slight decrease in mean AUC. These results demonstrate that representation disentanglement can reduce demographic bias and improve intersectional fairness. Code is available at https://github.com/06Yujie/Fair-Medical-Imaging.

Index Terms— fair medical imaging, chest X-ray classification, representation disentanglement, contrastive learning

1. INTRODUCTION

Advances in chest X-ray (CXR) representation learning have improved disease recognition [1]. However, demographic bias remains a critical concern in CXR diagnosis [2, 3]. Models can exploit demographic and acquisition-related cues that correlate with disease labels. Reliance on these cues can encourage shortcut learning and impair generalization under distribution shifts [4, 5]. Such shortcuts can contribute to uneven diagnostic performance across demographic groups.

Several strategies have been developed to reduce demographic bias in disease diagnosis, including data-level augmentation [6] and bias-aware optimization [7]. More recently, representation-based methods have learned separate disease and demographic representations and disentangled them during training [8, 9, 10]. However, such methods often rely on separate encoders, complicating joint learning. In addition, cross-group alignment based on disease labels may overlook within-class variation, as patients sharing the same label can exhibit heterogeneous imaging patterns [8]. Uniform alignment may therefore suppress diagnostically relevant variation and affect performance differently across demographic groups [9]. These limitations motivate a unified framework that jointly learns and disentangles disease and demographic representations while accounting for within-class patterns during cross-group alignment.

Moreover, evaluating fairness from model predictions provides limited insight into the learned representation space. Subgroup metrics, such as equalized-odds and area under the receiver operating characteristic curve (AUC) disparities, quantify performance gaps across demographic groups [11], while demographic probing measures the recoverability of sensitive attributes [5]. However, neither directly quantifies the correspondence between disease representation geometry and demographic structure. This motivates a representation-level metric that captures such correspondence, complementing performance-based fairness evaluation.

To address these challenges, we propose a unified framework that disentangles disease and demographic representations using a single encoder. We further account for within-class variation during cross-group alignment and introduce representation-level evaluation of demographic bias. We evaluate the framework across intersectional groups defined by age, sex, and ethnicity. Our main contributions are:

• We develop a single-encoder framework with feature- and relation-level decorrelation to disentangle disease and demographic representations.

• We propose prototype-guided cross-group contrastive learning to account for within-class variation during alignment.

• We introduce a representation-level fairness metric that quantifies demographic structure retained in disease representations.

References (19)