Pathologist Attention-Aligned Report Generation for Prostate Histopathology

Ruoyu Xue, Suryakant Singh, Souradeep Chakraborty, Pierre Marza, Oksana Yaskiv, Constantin Friedman, Natallia Sheuka, Paul Friedman, Bharat Ramlal, Beatrice Knudsen, Rajarsi Gupta, Joel Saltz, Prateek Prasanna, Gregory Zelinsky, Dimitris SamarasarXiv 2026

TL;DR

By training vision-language models to look where human experts look, researchers have significantly improved the accuracy and interpretability of automated medical reports. This paper introduces a plug-and-play attention-alignment loss that regularizes model attention maps against real pathologist gaze trajectories, yielding substantial gains in both text quality and clinical accuracy for prostate cancer diagnosis.

What Problem Does This Paper Address?

Generating automated clinical reports from gigapixel Whole-Slide Images (WSIs) is a massive challenge in digital pathology. While deep learning models can generate text, they often suffer from a lack of grounding—meaning the model might write a correct diagnostic statement but base it on the wrong visual regions of the tissue slide.

When human pathologists evaluate a slide, they don't look at everything equally; they dynamically zoom and pan, focusing selectively on highly specific, diagnostically informative regions. Existing report generation models ignore this rich behavioral cue. Without human-like focus, models are prone to overfitting or simply memorizing text patterns from the training data rather than learning true visual-semantic correlations.

Methods

The authors propose a framework that aligns a model's internal attention weights with the visual attention of a pathologist during training.

Fig. 1: Top-left: Collect pathologist attention during WSI examination. Top- right: Align model attention maps to human attention via a training-time loss. Bottom: At inference, the model generates reports with model-attention-based visual evidence.

Key components of the methodology include:

  • Attention-Alignment Loss ($L_{KL}$): The core innovation is an auxiliary loss function based on Kullback-Leibler (KL) divergence. It measures the discrepancy between the model's token-to-image attention distribution and the human saliency map, penalizing the model when it looks away from expert-selected regions.
  • Layer-Specific Supervision: Instead of regularizing all layers of the transformer, the authors found that supervising only the last decoder layer is highly effective. This layer directly drives next-token prediction, making it the most impactful lever for alignment while keeping computational overhead negligible.
  • Architecture Agnostic: The method is plug-and-play. The authors successfully integrated it into two distinct vision-language fusion designs: WSI-LLaVA (which uses self-attention fusion) and HistGen (which uses cross-attention fusion).

Datasets

The authors collected and introduced a novel multimodal pathologist-attention dataset:

  • Data Source: 121 prostate cancer WSIs from the TCGA-PRAD collection.
  • Human Annotations: Six professional pathologists reviewed the slides. The dataset captures multi-scale viewport trajectories (scanpaths across 2×, 4×, 10×, and 20× magnifications) synchronized with real-time verbal descriptions and cursor movements.
  • Clinical Targets: The dataset tracks five critical clinical components: Gleason patterns, perineural invasion (PNI), intraductal carcinoma, extraprostatic extension, and surgical margins.
Fig. 2: Data collection process. Pathologists examine each WSI by iteratively zooming for detail and zooming out to navigate (bottom right). We record syn- chronized verbal descriptions, convert viewports center to scanpath (top center), filter points by target components, and generate a Gaussian-smoothed saliency map overlaid on the slide (top right).

Key Insights and Ideas

  • Gaze as a Regularizer: In low-data medical settings, large language models (like the 7-billion-parameter Vicuna backbone in WSI-LLaVA) easily overfit by memorizing standard report phrasing. Forcing the model's attention to match a human's acts as a powerful visual constraint, preventing memorization and forcing the model to actually "read" the tissue.
  • Less is More in Supervision: Aligning every single layer of a deep network with human gaze actually degrades performance. Different layers encode different types of abstract information; enforcing a uniform human attention target across all layers is overly restrictive. Targeting just the final layer provides the necessary guidance without disrupting internal feature hierarchy.

Key Results

Aligning model attention to human experts led to sweeping improvements across both architectures evaluated:

  • Report Quality: The approach achieved an average improvement of 10.9% across standard NLP metrics (including BLEU-1 through BLEU-4, METEOR, and ROUGE-L).
  • Clinical Accuracy: The exact-match accuracy for identifying key clinical components (like Gleason scores and perineural invasion) jumped by an average of 19.3% (with specific accuracy improvements ranging from 8% to 34% depending on the component and base model).
  • Explainability: At inference time, the model generates heatmaps that align much more closely with actual pathologist gaze and ground-truth semantic segmentations, providing trustworthy visual evidence for its text outputs.
Fig. 4: Qualitative results of visual support. Visual support is extracted from the last decoder layer at inference (top: HistGen, blurred due to the small number of image tokens for better visualization; bottom: WSI-LLaVA). Com- pared to training without alignment (fifth column), our method (fourth column) suppresses non-Gleason regions and better matches ground-truth pathologist at- tention (second column) and Gleason segmentation [12] (third column).

Limitations and Future Work

While promising, the study has a few limitations:

  • Dataset Scale: The attention dataset consists of 121 slides (~7 hours of total expert annotation). While small, the fact that it yielded such strong results highlights the high data efficiency of human-attention supervision.
  • Disease Scope: The current dataset and evaluation are strictly limited to prostate histopathology.

The authors note that future work will focus on expanding this attention-collection protocol to other cancer types and exploring whether models can learn generalized, cross-cancer expert scanning behaviors.

Summary updated

BibTeX
@misc{xue2026pathologist,
  author = {Ruoyu Xue and Suryakant Singh and Souradeep Chakraborty and Pierre Marza and Oksana Yaskiv and Constantin Friedman and Natallia Sheuka and Paul Friedman and Bharat Ramlal and Beatrice Knudsen and Rajarsi Gupta and Joel Saltz and Prateek Prasanna and Gregory Zelinsky and Dimitris Samaras},
  title = {{Pathologist Attention-Aligned Report Generation for Prostate Histopathology}},
  year = {2026},
  eprint = {2607.19624},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.19624},
}
Figure