Automated Histopathology Report Generation via Pyramidal Feature Extraction and the UNI Foundation Model
Organizations: ViseurAI
Abstract
Generating diagnostic text from histopathology whole slide images (WSIs) is challenging due to the gigapixel scale of the input and the requirement for precise, domain specific language. We propose a hierarchical vision language framework that combines a frozen pathology foundation model with a Transformer decoder for report generation. To make WSI processing tractable, we perform multi resolution pyramidal patch selection (downsampling factors 2^3 to 2^6) and remove background and artifacts using Laplacian variance and HSV based criteria. Patch features are extracted with the UNI Vision Transformer and projected to a 6 layer Transformer decoder that generates diagnostic text via cross attention. To better represent biomedical terminology, we tokenize the output using BioGPT. Finally, we add a retrieval based verification step that compares generated reports with a reference corpus using Sentence BERT embeddings; if a high similarity match is found, the generated report is replaced with the retrieved ground truth reference to improve reliability.
Figures & tables
| Stage | Parameter | Value |
| Pyramid Scanning | Levels processed | |
| Patch size | px | |
| Stride | 256 px | |
| Tissue threshold | ||
| Quality Filtering | Laplacian var. | |
| Value range |
| Parameter | Value |
|---|---|
| Number of layers | 6 |
| Attention heads | 8 |
| Model dimension ( ) | 1024 |
| Feed-forward dimension ( ) | 2048 |
| Dropout rate | 0.1 |
| Maximum sequence length | 64 |
| Rank | Team | Score |
|---|---|---|
| 1 | IMAGINE Lab | 0.8494 |
| 2 | ICGI | 0.8472 |
| 3 | ICL_PathReport | 0.8415 |
| 4 | nw | 0.8282 |
| 5 | PathX | 0.8237 |
| 6 | TrustPath | 0.8127 |
| Slide ID | Generated Report | Ground Truth |
|---|---|---|
| PIT_01_00005_01 | Breast, sono-guided core biopsy; 1. Ductal carcinoma of no special type, grade II (Tubule formation: 3, Nuclear grade: 2, Mitoses: 1) 2. Ductal carcinoma in situ | Breast, core-needle biopsy; 1. Ductal carcinoma in situ – Type: Solid – Nuclear grade: High – Necrosis: Present (Comedo-type) 2. Microcalcification |
| PIT_01_00004_01 | Breast, core-needle biopsy; Invasive carcinoma of no special type, grade II (Tubule formation: 3, Nuclear grade: 2, Mitoses: 1) | Breast, core-needle biopsy; Invasive carcinoma of no special type, grade II (Tubule formation: 3, Nuclear grade: 2, Mitoses: 1) |
| PIT_01_00575_01 | Breast, endoscopic motome biopsy; Fibrocystic tumor favor change | Breast, sono-guided core biopsy; Fibrocystic change |
| PIT_01_06231_02 | Prostate, biopsy; Acinar adenocarcinoma, Gleason’s score 6 (3+3), grade group 1, tumor volume: 90% | Prostate, biopsy; Acinar adenocarcinoma, Gleason’s score 7 (3+4), grade group 2 (Gleason pattern 4: 10%), tumor volume: 90% |
| PIT_01_03513_01 | Uterine cervix, colposcopic biopsy; Low-grade squamous intraepithelial lesion (LSIL; CIN 1) | Uterine cervix, punch biopsy; Low-grade squamous intraepithelial lesion (LSIL; CIN 1) |
| PIT_01_04573_01 | Colon, colonoscopic biopsy; Chronic nonspecific inflammation | Colon, colonoscopic biopsy; Chronic nonspecific inflammation |
Medical Report Generation
Medical report generation turns medical images, clinical records, or conversations into structured, clinically useful reports.
See all 82 papers