arXiv(opens in a new tab)Computer ScienceOct 2024Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2410.03334

An X-Ray Is Worth 15 Features: Sparse Autoencoders for Interpretable Radiology Report Generation

Ahmed Abdulaal, Hugo Fry, N. Brown, Ayodeji Ijishakin, Jack Gao, Stephanie L. Hyland, Daniel C. Alexander, Daniel C. Castro

Abstract

Radiological services are experiencing unprecedented demand, leading to increased interest in automating radiology report generation. Existing Vision-Language Models (VLMs) suffer from hallucinations, lack interpretability, and require expensive fine-tuning. We introduce SAE-Rad, which uses sparse autoencoders (SAEs) to decompose latent representations from a pre-trained vision transformer into human-interpretable features. Our hybrid architecture combines state-of-the-art SAE advancements, achieving accurate latent reconstructions while maintaining sparsity. Using an off-the-shelf language model, we distil ground-truth reports into radiological descriptions for each SAE feature, which we then compile into a full report for each image, eliminating the need for fine-tuning large models for this task. To the best of our knowledge, SAE-Rad represents the first instance of using mechanistic interpretability techniques explicitly for a downstream multi-modal reasoning task. On the MIMIC-CXR dataset, SAE-Rad achieves competitive radiology-specific metrics compared to state-of-the-art models while using significantly fewer computational resources for training. Qualitative analysis reveals that SAE-Rad learns meaningful visual concepts and generates reports aligning closely with expert interpretations. Our results suggest that SAEs can enhance multimodal reasoning in healthcare, providing a more interpretable alternative to existing VLMs.

1 Introduction

Radiological services are essential to modern clinical practice, with demand rising rapidly. In the UK, the NHS performs over 43 million radiological procedures annually (Lewis et al., 2021), costing over £2 billion, and demand for scans more than doubled between 2012 and 2019 (NHS England & NHS Improvement, 2019). A significant portion of these costs addresses rising demand through agency, bank, and overtime staff, but a national imaging strategy notes this funding is unsustainable (NHS England & NHS Improvement, 2019). Consequently, there’s growing interest in (semi)-automating tasks like radiology report generation, augmentation, and summarization to assist clinicians (Zhu et al., 2024; Chen et al., 2024; Pérez-García et al., 2024), spurred by advances in multimodal text-vision modelling techniques.

Recent architectures that combine vision encoders with pretrained Large Language Models (LLMs) to create multimodal Vision-Language Models (VLMs) have shown impressive performance in visual and language tasks (Liu et al., 2024b; Liu et al., 2023a; Li et al., 2024; Lin et al., 2023; Liu et al., 2023b). VLMs have been applied to healthcare tasks, including radiology report generation (Hyland et al., 2023; Bannur et al., 2024; Chen et al., 2024; Stock et al., 2024; Yang et al., 2024), typically by mapping image representations into the LLM’s token embedding space. The LLM is fine-tuned to respond to prompts like ‘<<image tokens>> Produce the findings section of a radiology report for this image’ (Pérez-García et al., 2024). Despite improvements from scaling VLMs (Yang et al., 2024), hallucinations and disagreements with domain experts remain common (Yildirim et al., 2024; Jeblick et al., 2023; Lee et al., 2023; Tanno et al., 2024).

Figure

Figure 1: SAE-Rad overview. Panel A: We learn a set of sparsely activating features by training a Sparse Autoencoder (SAE) on class tokens produced by a radiology-image encoder. Panel B: We retrieve the corresponding reference reports for highest activating images for a feature, from which we can produce text descriptions of each feature. Panel C: We pass a new image through the radiology-image encoder and SAE encoder to retrieve the highest activating features. Text descriptions of these features are subsequently used by a pretrained large language model (LLM) to generate a detailed radiology report.

Hallucinations are unavoidable in LLMs (Kalai & Vempala, 2024; Xu et al., 2024), and whilst this represents a limitation of current VLM systems designed for radiology report generation, there are other important considerations of using such a system for this task. For current state-of-the-art systems, it is necessary to finetune a multi-billion parameter LLM (as well as projector weights) to perform visual instruction tuning (Liu et al., 2024b), which is computationally intensive and can be prohibitively expensive. Additionally, the generated reports a VLM provides may not be faithful to the underlying computations of the image encoder – we should aim to design a framework which is verifiably faithful to the image model by reverse engineering the computations of the image encoder. This could yield more interpretable results and thus engender more trust in automated radiology reporting systems.

To this end, we introduce SAE-Rad (Fig. 1), a framework which leverages mechanistic interpretability techniques, and in particular sparse autoencoders (SAEs), to directly decompose image class tokens from a pre-trained radiology image encoder (Pérez-García et al., 2024) into human-interpretable features. These interpretable features are labelled by use of pre-trained LLMs in an automated interpretability pipeline (Bricken et al., 2023), and can then be compiled into descriptive radiology reports. To the best of our knowledge, this is the first instance of using SAEs explicitly for a downstream task requiring multi-modal reasoning. Our contributions are as follows: 1) Novel SAE: We propose a hybrid architecture which builds on gated SAEs to achieve accurate reconstructions with comparable sparsity to state-of-the-art techniques; 2) Multimodal reasoning pipeline: We develop a framework based on our SAE which leverages automated interpretability to label SAE features using paired text data and ultimately produce radiology reports given an image; 3) Mechanistic interpretability in healthcare: Our case study on healthcare data demonstrates the utility of mechanistic interpretability for downstream tasks in a relatively smaller and significantly more homogeneous dataset than most general-domain text or natural-image datasets.

References (69)