On the Importance of Text Preprocessing for Multimodal Representation Learning and Pathology Report Generation

Ruben T. Lucassen, Tijn van de Luijtgaarden, Sander P. J. Moonemans, Gerben E. Breimer, Willeke A. M. Blokx +1 more
2/26/2025
cs.CV

No official code found. Best implementation: nuldertien/PathBLIP-2 (2 stars, last commit 2026-03-08).

Abstract

Vision-language models in pathology enable multimodal case retrieval and automated report generation. Many of the models developed so far, however, have been trained on pathology reports that include information which cannot be inferred from paired whole slide images (e.g., patient history), potentially leading to hallucinated sentences in generated reports. To this end, we investigate how the selection of information from pathology reports for vision-language modeling affects the quality of the multimodal representations and generated reports. More concretely, we compare a model trained on full reports against a model trained on preprocessed reports that only include sentences describing the cell and tissue appearances based on the H&E-stained slides. For the experiments, we built upon the BLIP-2 framework and used a cutaneous melanocytic lesion dataset of 42,433 H&E-stained whole slide images and 19,636 corresponding pathology reports. Model performance was assessed using image-to-text and text-to-image retrieval, as well as qualitative evaluation of the generated reports by an expert pathologist. Our results demonstrate that text preprocessing prevents hallucination in report generation. Despite the improvement in the quality of the generated reports, training the vision-language model on full reports showed better cross-modal retrieval performance.

View on arXivView PDF

Code Implementations(1)

This repository contains all code to support the paper: "On the Importance of Text Preprocessing for Multimodal Representation Learning and Pathology Report Generation".

21Python, Jupyter NotebookMay 22, 20257 months ago
blip2computational-pathologygenerative-modelhallucination-mitigationhallucinations+6 more

Similar Papers

Cite this paper

@article{lucassen2025importance,
  title  = {On the Importance of Text Preprocessing for Multimodal Representation Learning and Pathology Report Generation},
  author = {Ruben T. Lucassen and Tijn van de Luijtgaarden and Sander P. J. Moonemans and Gerben E. Breimer and Willeke A. M. Blokx and Mitko Veta},
  year   = {2025},
  eprint = {2502.19285},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.19285v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.19285.svg)](https://codeofpaper.com/paper/2502.19285)

Discussion