Patient-Conditioned Adaptive Offsets for Reliable Diagnosis across Subgroups
Gelei Xu, Yuying Duan, Jun Xia, Ruining Deng, Wei Jin, Yiyu Shi
TL;DR
Medical diagnoses often suffer from performance gaps across patient subgroups due to heterogeneous disease prevalence and presentation. HyperAdapt encodes patient attributes into a compact embedding that conditions small residual parameter offsets generated by a hyper-adapter, which modulates a frozen backbone via low-rank adapters and shared-generation blocks. Across Fitzpatrick-17k, ODIR-5k, and PAD-UFES-20 with backbones such as ResNet-50 and Swin-T, HyperAdapt yields consistent subgroup improvements while preserving overall accuracy, including a 4.1% recall and 4.4% F1 boost on PAD-UFES-20 relative to strong baselines. This context-conditioned approach mirrors clinical reasoning, providing scalable, efficient, and interpretable improvements in subgroup reliability for medical imaging diagnosis.
Abstract
AI models for medical diagnosis often exhibit uneven performance across patient populations due to heterogeneity in disease prevalence, imaging appearance, and clinical risk profiles. Existing algorithmic fairness approaches typically seek to reduce such disparities by suppressing sensitive attributes. However, in medical settings these attributes often carry essential diagnostic information, and removing them can degrade accuracy and reliability, particularly in high-stakes applications. In contrast, clinical decision making explicitly incorporates patient context when interpreting diagnostic evidence, suggesting a different design direction for subgroup-aware models. In this paper, we introduce HyperAdapt, a patient-conditioned adaptation framework that improves subgroup reliability while maintaining a shared diagnostic model. Clinically relevant attributes such as age and sex are encoded into a compact embedding and used to condition a hypernetwork-style module, which generates small residual modulation parameters for selected layers of a shared backbone. This design preserves the general medical knowledge learned by the backbone while enabling targeted adjustments that reflect patient-specific variability. To ensure efficiency and robustness, adaptations are constrained through low-rank and bottlenecked parameterizations, limiting both model complexity and computational overhead. Experiments across multiple public medical imaging benchmarks demonstrate that the proposed approach consistently improves subgroup-level performance without sacrificing overall accuracy. On the PAD-UFES-20 dataset, our method outperforms the strongest competing baseline by 4.1% in recall and 4.4% in F1 score, with larger gains observed for underrepresented patient populations.
