Introduction
Deep learning models are increasingly accurate at diagnosing thoracic diseases from chest X-rays, but they remain "black boxes." Most current attempts to explain these models use feature attribution (saliency maps), which highlight where a model is looking but not why. This paper introduces EigenFind, a method that uses StyleGAN to generate "counterfactual" chest X-rays—showing exactly how a healthy lung would need to change to be diagnosed with a specific disease.
Methodology
The authors build upon the StyleEx framework, utilizing a StyleGAN2 architecture. The pipeline consists of a pretrained classifier, a conditional StyleGAN2, and an encoder to map real X-rays into the GAN’s latent "StyleSpace."
The core technical contribution is EigenFind. Previous methods searched for influential features by iterating through every coordinate in the high-dimensional StyleSpace, a process taking up to 12 hours. EigenFind applies Principal Component Analysis (PCA) to the StyleSpace to identify the most significant directions (eigenvectors) of variation. By searching along these top eigenvectors, the system identifies "diagnostic directions" significantly faster.
Key Results and Clinical Validation
The models were evaluated using the CheXpert dataset, focusing on Cardiomegaly, Pleural Effusion, and Atelectasis.
Efficiency Gains
EigenFind reduced the search time for counterfactual explanations from 12 hours to just 5 minutes—a 144x improvement. This speedup makes the tool potentially viable for interactive clinical use without sacrificing the success rate of the generated explanations.
Radiologist Review
Radiologists confirmed that the visual changes—such as increased cardiothoracic ratio for cardiomegaly or mediastinal shifts for atelectasis—were pathologically accurate. Interestingly, the model learned that a pacemaker is a strong indicator of heart disease; when asked to "add" cardiomegaly, the GAN sometimes synthesized a pacemaker. While a "shortcut," this demonstrates the GAN's ability to capture real-world clinical correlations.
Conclusion
Counterfactuals provide a vivid explanation beyond static heatmaps. By factorizing the latent space, EigenFind proves that the features a classifier relies on often align with primary geometric variances in the image data. Future work will focus on expanding the pathology scope and improving reconstruction fidelity to ensure subtle clinical details are preserved.
Summary updated