TLDR: SASHA (Sequential Attention-based Sampling for Histopathological Analysis) is a new deep reinforcement learning method for efficiently analyzing gigapixel whole-slide images in histopathology. It uses a hierarchical attention model (HAFED) to learn features and an RL agent with a targeted state updater (TSU) to intelligently zoom into only 10-20% of high-resolution patches. SASHA achieves state-of-the-art diagnostic accuracy while drastically reducing computational costs, memory usage, and inference time compared to full-resolution analysis and other sparse sampling methods.
Automated analysis of histopathological images, crucial for cancer diagnosis, faces significant challenges due to the enormous size of whole-slide images (WSIs), often reaching gigapixels. Analyzing these images entirely at high resolution is computationally impractical and inefficient, as diagnostic information typically occupies only a small fraction of the WSI. Furthermore, obtaining detailed, patch-level annotations from experts is both laborious and expensive, leading to most diagnostic labels being available only at the slide level.
Addressing these challenges, researchers from the Indian Institute of Science, Bangalore, have introduced a novel approach called SASHA – Sequential Attention-based Sampling for Histopathological Analysis. This method leverages deep reinforcement learning to efficiently analyze histopathological images, aiming to match the accuracy of state-of-the-art methods while significantly reducing computational and memory costs.
How SASHA Works
SASHA operates in two primary stages. First, it learns informative features from the images using a lightweight hierarchical, attention-based multiple instance learning (MIL) model. This model, known as the Hierarchical Attention-based Feature Distiller (HAFED), is designed to extract relevant features from both low-resolution and high-resolution patches, ensuring compatibility in their representations.
Second, SASHA intelligently samples and selectively zooms into a small fraction (typically 10-20%) of high-resolution patches. This intelligent sampling is guided by a deep reinforcement learning (RL) agent. The agent observes the WSI state, which is initialized with low-resolution features, and then decides which patch to zoom into next. This decision-making process is formulated as a sequential problem, where the agent learns to identify diagnostically informative regions.
A key innovation within SASHA is the Targeted State Updater (TSU). When a patch is zoomed in and its high-resolution features are extracted by HAFED, the TSU updates the WSI’s overall state. Crucially, it doesn’t update the entire state globally; instead, it selectively refines the state by modifying only those patches that are similar to the currently sampled patch in the feature space. This targeted update mechanism prevents corruption of previously acquired information and improves efficiency.
Also Read:
- PathCoT: Enhancing AI’s Understanding of Pathology Images with Expert Reasoning
- Advancing Polyp Counting in Colonoscopy with Time-Aware AI
Performance and Efficiency
The researchers evaluated SASHA on two prominent cancer datasets: CAMELYON16 for breast cancer and TCGA-NSCLC for lung cancer. The results demonstrate that SASHA consistently outperforms existing sparse sampling methods like RLogist, achieving significantly higher accuracy, AUC, and F1 scores even when sampling only 10% or 20% of the patches. Remarkably, SASHA-0.2 (sampling 20%) achieved performance comparable to models that analyze 100% of the WSI at high resolution, such as HAFED, ACMIL, and DTFD.
Beyond accuracy, SASHA delivers substantial improvements in efficiency. It achieves up to 8 times faster inference times compared to other state-of-the-art attention-based methods, reducing the average inference time per WSI from around 117 seconds to approximately 14-26 seconds. Furthermore, SASHA significantly improves WSI compressibility, requiring over 16 times less memory for WSI representation. This is because HAFED encodes features in a uniform N × d dimensional space, unlike other models that use a larger N × k × d space.
Ablation studies confirmed that every component of SASHA – the WSI-pretrained Vision Transformer for feature extraction, the multi-branch attention in the classifier, the targeted state update, and the reinforcement learning policy – is critical for its high performance. The study also showed that SASHA’s RL agent learns an explainable patch selection strategy, preferentially sampling patches with a higher tumor fraction and those assigned high attention scores by other models.
While SASHA offers significant advancements, the authors acknowledge limitations such as the current fixed sampling budget, which could be optimized with a dynamic allocation strategy, and the increased architectural overhead due to its multiple modules. Nevertheless, SASHA represents a promising step towards more efficient, reliable, and explainable automated diagnosis in medical imaging. For more details, you can refer to the full research paper here.


