GE-ViP: Graph-enhanced Vision Pipeline for Weakly Supervised Histopathology Slide Analysis

Maisha Rahman*, Jawad Ibn Ahad*, Md. Mehedi Hassan, Golam Moursalin, Sifat Momen

✅ Published in Neurocomputing 679 (2026) 133230 (Elsevier, Q1)

📄 Paper: ScienceDirect
DOI: 10.1016/j.neucom.2026.133230
Received: 26 November 2025 · Revised: 28 January 2026 · Accepted: 4 March 2026

GE-ViP Graphical Abstract

Abstract

Whole Slide Images (WSIs) provide rich structural detail for cancer diagnosis, but their gigapixel scale and the lack of pixel-level annotations make automated analysis challenging. Weakly supervised learning enables slide-level training without exhaustive manual labels. However, many convolutional neural network (CNN) and multiple instance learning (MIL)-based pipelines treat patches independently, overlooking the spatial structure, while existing graph-based methods often rely on large, static graphs that are difficult to scale and sensitive to noise. We introduce GE-ViP, a lightweight Graph-Enhanced Vision Pipeline designed to overcome these limitations through a carefully integrated workflow. GE-ViP first selects diagnostically relevant tissue regions using a combination of SAM-derived tissue masks, entropy-based texture measures, and staining-related cues, effectively removing background regions and low-information patches. A Vision Transformer then encodes the selected patches to capture both fine-grained cellular features and broader tissue patterns. Next, patches are connected using a compact TriFusion-Planar graph that integrates spatial proximity, visual similarity, and semantic relationships, yielding a coherent representation of tissue organization. An edge-conditioned Graph Neural Network (GNN) processes this graph to produce slide-level predictions under weak supervision. Unlike prior pipelines that treat patch selection, feature extraction, and graph construction as independent stages, GE-ViP unifies these components into a single framework, improving efficiency, robustness, and interpretability, supported by feature-level explanations via GraphLIME.


Introduction

Histopathological analysis is a key step in cancer diagnosis, where pathologists visually inspect thin tissue slides under a microscope. Whole-slide imaging (WSI) digitizes glass slides into gigapixel images (~8×10⁴ to 2×10⁵ pixels per side), enabling efficient storage, remote access, and computational analysis. However, constructing reliable ML models requires dense patch-level annotations, which are costly and impractical at WSI scale. While this challenge is commonly addressed using MIL under slide-level supervision, existing pipelines often treat patch selection, feature extraction, and contextual aggregation as separate stages.

Key limitations of prior work:

  • CNN+MIL (ABMIL, CLAM): treat patches as orderless set, losing spatial context; attention weights can be noisy
  • Transformer-based MIL (TransMIL, HIPT): improve long-range reasoning but suffer from quadratic cost of self-attention on large WSIs
  • Graph-based MIL (Patch-GCN, WiKG): introduce relational modeling but rely on fixed/heuristic adjacency, sensitive to tissue heterogeneity
  • Post-hoc explainability (GNNExplainer, PGExplainer): computationally expensive and unstable on large heterogeneous WSI graphs

GE-ViP addresses all these limitations through a unified, lightweight pipeline with built-in interpretability.


🎯 Key Contributions

  • Efficient weakly supervised pipeline — Semantic-aware patch selection using SAM masks, entropy, and saturation cues retains only 0.5k–1.5k patches per WSI (vs. 200k–300k for dense tiling), reducing preprocessing time to 10–20 min/WSI and memory to <0.2 GB.
  • TriFusion-Planar graph with edge-aware GNN — A compact k-NN graph fusing: (1) planar Delaunay spatial neighbors, (2) spatial k-NN in Euclidean space, (3) appearance-based mutual k-NN, (4) semantic-based mutual k-NN. Edge-conditioned GNN with 17-dimensional edge attributes learns tissue structure from slide-level labels only.
  • Multi-level interpretability — GraphLIME for node feature importance, slide-level saliency (node dropout effect), patch-level ViT rollout attention maps, subgraph visualization, and t-SNE for embedding analysis.
  • Resource efficiency — 1.44M parameters, 5s per epoch (single NVIDIA RTX 4090) — the smallest and fastest among graph-based WSI methods.

Methodology

Pipeline Overview

GE-ViP Pipeline Overview

Figure 2: A WSI is divided into patches and filtered using entropy, saturation, and SAM-based tissue masks to retain informative regions. Selected patches are encoded using a shared Vision Transformer to extract multi-scale visual features, which are combined with patch metadata to form graph nodes. GE-ViP constructs a tissue graph by fusing spatial, geometric, embedding-based, and semantic neighborhood relationships, followed by edge pruning to retain informative connections. A GNN performs message passing to produce slide-level diagnostic predictions.

Stage 1: Patch Selection

A WSI I ∈ R^{H×W×C} is divided into non-overlapping 256×256 patches at 20× magnification (~70–100k patches/slide). Three-stage filtering:

  • (a) Entropy filtering: patch entropy φ^(ent) ≥ τ_ent (threshold 4.0); ensures textural richness
  • (b) Saturation filtering: mean HSV saturation φ^(sat) ≥ τ_sat (threshold 0.05); eliminates poorly stained regions
  • (c) Semantic filtering: SAM tissue coverage score σᵢ =Mᵢ/pᵢ≥ τ_sem (threshold 0.5)

Final selection rule: \(p_i \in \mathcal{P}^* \iff \phi_i^{(\text{ent})} \geq \tau_{\text{ent}} \wedge \phi_i^{(\text{sat})} \geq \tau_{\text{sat}} \wedge \sigma_i \geq \tau_{\text{sem}}\)

Patches are categorized into: (i) low-information benign, (ii) high-information benign, (iii) high-information suspected cancer.

Stage 2: Multi-Scale Feature Extraction

Each selected patch is processed at two spatial scales with shared ViT-Tiny/16 (224) encoder Φ:

  • Standard view: Resize(224,224) → f^(1) ∈ R^192
  • Context view: Resize(384,384) → CenterCrop(224,224) → f^(2) ∈ R^192

Multi-scale embedding: f_i = [f^(1)_i ‖ f^(2)_i] ∈ R^384

Semantic descriptor: m_i = [aᵢ, ρᵢ, σᵢ] ∈ R^3 (mask area, local density, semantic score)

Node feature: x_i = [f_i ‖ m_i] ∈ R^387

Stage 3: TriFusion-Planar Graph Construction

Four complementary neighborhoods are fused into slide graph G_S = (V, E):

  1. Planar Delaunay N^del(i) — spatial adjacency via Delaunay triangulation; bounded average degree; density-independent → geometric stability backbone
  2. Spatial k-NN N^xy(i) — Euclidean distance in (x,y) coordinate space
  3. Appearance mutual k-NN N^emb(i) — cosine similarity of visual embeddings fᵢ
  4. Semantic mutual k-NN N^sem(i) — similarity of tissue descriptors mᵢ

Union: U(i) = N^del ∪ N^xy ∪ N^emb ∪ N^sem, then symmetrized and degree-regularized.

TriFusion-Planar Graph Construction

Figure 3: Illustration of TriFusion-Planar graph construction. From left: (a) Delaunay triangulation over patch coordinates forms the geometric backbone; (b) spatial k-NN connects nearby patches in coordinate space; (c) appearance mutual k-NN connects visually similar patches; (d) semantic mutual k-NN connects patches of the same tissue prototype. All four neighborhoods are fused and pruned using the weighted edge scoring function.

Score-based edge pruning: \(s_{ij} = 0.45\, d_{\text{feat}}(i,j) + 0.30\, d_{\text{spat}}(i,j) + 0.25\, d_{\text{sem}}(i,j)\)

Each retained edge carries a 17-dimensional attribute vector g_ij encoding: appearance dissimilarity d^emb, spatial distance r, mask-area difference Δa, orientation (sin θ, cos θ), semantic dissimilarity d^sem, density difference Δρ, 6 RBF encodings of spatial distance, and 4 binary neighborhood source flags (1^del, 1^xy, 1^emb, 1^sem). During training, projected to compact 5-D [z(d^emb), z(r), z(Δa), sin θ, cos θ].

Stage 4: Edge-Conditioned GNN Training

GE-ViP GNN Architecture

Figure 4: Edge-conditioned GNN architecture. Each layer applies residual GINE message passing conditioned on 5-D edge attributes. After 4 layers, a multi-head readout (Set2Set + attention aggregation + mean pooling) produces a fixed-length slide embedding, which is classified by a temperature-scaled cosine head.

Architecture:

  • 4-layer residual edge-conditioned GINE with DropPath and DropFeature
  • Hidden dimension: 256
  • Multi-head readout: [Set2Set ‖ AttnAgg ‖ Mean] ∈ R^{4d_hid}
  • Temperature-scaled cosine classifier: ℓ = τ · (h/‖h‖) · W_c^T

Training setup:

  • 120 epochs, AdamW (lr=3×10⁻⁴, weight decay=6×10⁻²), cosine warmup, mixed precision, gradient clipping
  • Robustness: node noise σ=0.006, DropEdge 0.18, DropNode 0.14, DropFeature 0.18
  • Loss: LDAM-DRW (class imbalance) + R-Drop λ=0.07 (consistency) + Manifold Mixup α=0.35
  • EMA weight averaging (μ=0.999)
  • Evaluation: 12 test-time augmentation views (node dropout p=0.084, edge dropout p=0.108)
  • Early stopping: macro-F1 on validation, patience 30 epochs
  • Data splits: 70:30 patient-level stratified + 10-fold patient-level cross-validation

📊 Results

Table 2: TCGA Cohort Characteristics

DatasetSubtypeStage IStage IIStage IIIStage IV#WSIsWSI SizeDiseaseTask
TCGA-ESCAAdenocarcinoma (1)30567519375~80k–120k pxEsophageal carcinomaSubtype & Stage
 Squamous cell (2)131155512    
TCGA-KIDNEYChromophobe (1)12910962261233~100k–150k pxRenal cell carcinoma (KIRC, KIRP, KICH)Subtype & Stage
 Clear cell (2)2705812483    
 Papillary (3)231447027    
TCGA-LUNGSquamous (1)644378232202121~100k–200k pxLung cancer (LUAD, LUSC)Subtype & Stage
 Adenocarcinoma (2)46420014142    

Table 3: Cancer Type Classification (mean ± std, 10-fold CV)

Bold = best performance; underline = second best.

MethodTCGA-ESCA AccTCGA-ESCA AUCTCGA-ESCA F1TCGA-KIDNEY AccTCGA-KIDNEY AUCTCGA-KIDNEY F1TCGA-LUNG AccTCGA-LUNG AUCTCGA-LUNG F1
ABMIL85.61±2.0090.74±0.9085.70±1.9394.97±0.8598.69±0.6594.98±0.8880.67±2.3784.80±3.7780.35±2.76
CLAM-SB88.27±2.3093.56±1.4088.28±2.2896.68±0.9399.49±0.2096.67±0.9482.89±1.5489.25±1.8782.86±1.52
CLAM-MB87.21±1.0592.83±1.6487.27±2.0396.92±0.4299.55±0.0896.91±0.4280.81±1.0888.66±1.6780.77±0.98
DSMIL87.20±0.8291.91±1.3487.25±0.7996.19±1.3199.28±0.2696.17±1.3181.80±1.2086.30±1.6081.78±1.27
TransMIL86.70±2.0492.52±0.6686.81±1.9495.38±1.4799.22±0.5195.36±1.4978.31±2.3785.89±3.4878.03±2.66
DTFD-MIL88.81±2.4993.79±2.2288.88±2.4396.27±1.0099.30±0.3696.26±1.0182.41±0.8288.70±1.4582.37±0.88
HIPT89.24±1.2593.79±1.3289.74±2.2796.72±0.8799.48±0.1496.73±0.8780.39±1.1386.91±0.5880.51±1.14
GTP78.03±0.8584.61±5.3377.76±0.6983.54±4.3593.71±3.3382.76±0.0378.07±1.3183.66±1.0877.98±1.25
Patch-GCN88.30±1.3293.98±0.8388.37±2.0696.68±1.1199.53±0.1896.67±1.1079.72±3.6787.13±2.4079.88±3.59
WiKG90.37±2.1495.23±2.9090.40±3.1397.08±0.7199.65±0.1297.08±0.7184.02±0.7290.78±1.2483.93±0.64
GE-ViP (Ours)92.13±1.0896.11±2.1591.32±1.1897.56±0.8599.61±0.0597.02±0.6687.55±0.7691.81±1.3186.33±1.02

GE-ViP achieves the highest Accuracy, AUC, and F1-score across all three TCGA cohorts for cancer type classification, surpassing the best prior graph method (WiKG) by +1.76% Acc on ESCA, +0.48% on KIDNEY, +3.53% on LUNG.

Table 4: Cancer Stage Prediction (mean ± std, 10-fold CV)

MethodTCGA-ESCA AccTCGA-ESCA AUCTCGA-ESCA F1TCGA-KIDNEY AccTCGA-KIDNEY AUCTCGA-KIDNEY F1TCGA-LUNG AccTCGA-LUNG AUCTCGA-LUNG F1
ABMIL51.21±4.1064.28±4.0048.51±2.7551.99±2.0863.42±2.2447.10±2.4552.57±0.7257.33±1.4245.39±0.98
CLAM-SB51.47±3.2465.08±1.4648.70±3.8451.99±2.6266.07±2.9747.83±2.4451.02±2.1957.22±2.8644.73±2.95
CLAM-MB54.15±4.6565.81±2.3051.56±3.7651.91±3.2767.67±2.5048.63±1.8550.21±1.6657.32±2.0143.99±1.52
DSMIL51.75±4.5866.03±6.0549.07±5.8552.32±3.0266.85±2.8048.16±2.2952.33±1.2157.93±2.7444.96±2.07
TransMIL53.61±3.4465.43±4.0749.86±5.9650.37±1.4361.96±2.6443.73±2.6052.15±1.0655.09±0.9442.51±1.49
DTFD-MIL50.68±5.2965.60±5.1848.21±5.2651.75±2.0064.03±2.6645.63±3.3852.52±0.7857.56±1.7144.88±1.76
HIPT48.82±6.1663.46±3.8935.55±12.1351.81±2.9661.83±1.4037.40±1.5352.24±1.8855.26±0.4635.92±4.74
GTP46.38±4.0363.55±3.8845.90±3.9646.05±2.1457.01±1.1039.73±2.1450.85±3.7755.22±4.1043.34±2.12
Patch-GCN52.28±3.9868.03±2.7050.47±5.1854.26±3.2668.96±2.2249.89±2.2650.63±0.5853.82±1.4342.62±2.64
WiKG57.50±3.9969.96±4.2855.80±4.3955.49±2.1269.71±1.4051.23±1.4352.85±0.7460.34±1.3747.52±1.52
GE-ViP (Ours)62.74±3.5471.56±4.0161.71±3.0256.25±1.8668.46±1.3250.14±2.0354.88±0.4362.12±1.0948.35±1.44

Staging is inherently harder (subtle visual differences between stages I–IV). GE-ViP achieves the best Accuracy and AUC on ESCA (+5.24% Acc over WiKG) and LUNG (+2.03% AUC over WiKG), with consistent F1 improvements. GE-ViP shows particularly notable gains on the challenging staging problem where most existing methods struggle.

Table 5: Cross-Domain Evaluation — Camelyon-17 & TCGA-COAD

MethodCamelyon-17 AccCamelyon-17 AUCCamelyon-17 F1TCGA-COAD AccTCGA-COAD AUCTCGA-COAD F1
ABMIL76.33±0.3281.10±1.0555.20±1.0986.24±1.4095.38±0.2484.39±1.11
CLAM-SB74.18±1.2678.56±1.5357.22±5.0186.67±0.9693.65±0.3484.00±1.06
TransMIL78.10±1.0591.30±1.3461.02±1.3786.45±1.9595.07±0.9883.70±2.46
AMD-MIL75.55±0.3289.05±1.0569.01±1.0985.81±2.0795.38±0.1584.21±1.59
WiKG81.62±1.2394.11±1.6058.89±1.0785.81±3.2694.19±1.2083.72±2.83
FR-MIL77.15±1.7484.43±1.1671.55±1.5184.09±2.0792.38±1.1180.26±2.23
GE-ViP (Ours)81.84±0.6194.70±1.0369.80±2.5587.11±0.1595.21±1.0185.28±0.55

Camelyon-17 (300 WSIs, lymph node breast metastasis): GE-ViP achieves 81.84% Acc and 94.70 AUC despite domain shift (different tissue type, staining, acquisition). TCGA-COAD (465 colon adenocarcinoma WSIs, 4 histological categories): 87.11% Acc with the lowest variance (±0.15).


📊 Ablation Study

Table 6: Patch Extraction Comparison

MethodMagnif.Patches/WSIAvg. Time/WSIMemory/WSINoise Induction
Dense grid tiling20×200k–300k100–180 min1.5–5 GBLow
Dense grid tiling40×120k–250k80–120 min1–3 GBLow
Uniform random sampling20×50k–70k40–60 min0.8–2 GBLow
Tissue-masked random sampling20×15k–20k30–50 min0.5–1 GBHigh
Entropy & saturation filtering20×5k–10k25–30 min<0.5 GBHigh
Semantic-aware (GE-ViP)20×0.5k–1.5k10–20 min<0.2 GBLow

GE-ViP reduces patch count by >100× vs. dense tiling while maintaining low noise induction through semantic awareness. 10–20 min preprocessing vs. 100–180 min for dense tiling.

Table 7: Statistical Significance — TriFusion vs k-NN (p < 0.05 in bold)

Model ComparisonMetricTestpSignificant?
TriFusion-ResNet18 vs kNN-ResNet18AccuracyWilcoxon0.043
 F1Bootstrap0.3436
 AUCBootstrap0.1376
TriFusion-ResNet50 vs kNN-ResNet50AccuracyWilcoxon0.0071
 F1Bootstrap0.0788
 AUCBootstrap0.1836
TriFusion-ConvNeXt-Tiny vs kNN-ConvNeXt-TinyAccuracyWilcoxon0.0373
 F1Bootstrap0.0476
 AUCBootstrap0.0804
TriFusion-ViT-Small vs kNN-ViT-SmallAccuracyWilcoxon0.0489
 F1Bootstrap0.0948
 AUCBootstrap0.098
TriFusion-ViT-Base vs kNN-ViT-BaseAccuracyWilcoxon0.0427
 F1Bootstrap0.0524
 AUCBootstrap0.0344

Table 8: Feature Extractor Ablation (AUC %)

Backbone TypeExtractorTumor Type ESCATumor Type KIDNEYTumor Type LUNGStage ESCAStage KIDNEYStage LUNG
CNNResNet-5090.1297.6585.4153.1262.3160.21
 ResNet-10191.4598.1186.0756.8364.5860.74
 ResNet-15291.9898.4786.5559.9462.2758.18
ViTViT-Small/1692.0398.7286.8970.1566.5461.75
 ViT-Base/1692.4199.0287.1067.8667.0357.14
 ViT-Tiny/16 (224)97.5699.6187.5571.5668.4662.12
PretrainedUNI93.8298.3486.9164.2761.1156.84

ViT-Tiny/16 (224) delivers the strongest overall results across all tasks. ViT-based features consistently outperform CNN variants; ViT-Tiny outperforms even the pathology foundation model UNI, particularly for stage prediction — highlighting the benefit of task-adaptive feature representations integrated with graph-based reasoning.

Table 9: Edge Construction Strategy Ablation (AUC %)

DatasetTaskk-NN (cosine)k-NN (distance)GE-ViP (TriFusion)
TCGA-ESCAType94.98±2.5292.36±1.1196.11±2.15
 Stage64.36±4.3863.56±4.6971.56±4.01
TCGA-KIDNEYType99.44±0.2899.47±0.2499.61±0.11
 Stage68.62±1.9768.01±1.7768.46±1.32
TCGA-LUNGType90.62±1.4088.31±2.2291.81±1.31
 Stage58.72±1.5857.92±1.9962.12±1.09

TriFusion-Planar consistently outperforms both single-criterion k-NN baselines across all datasets and tasks. The most significant gains are on staging (+7.20% AUC on ESCA staging vs cosine k-NN).

Memory Efficiency Comparison

ModelEpoch TimeParameters
GE-ViP (Ours)5 s1.44M
WiKG8 s1.66M
Patch-GCN14 s20.14M
GTP29 s6.82M
ABMIL~3 s— (non-graph)

GE-ViP achieves the fastest training time (5s/epoch) and smallest parameter count (1.44M) among all graph-based WSI models — 14× fewer parameters than Patch-GCN.


Model Interpretation

GE-ViP provides multi-level interpretability:

GE-ViP Patch-Level Interpretability

Figure 5: Patch-level interpretability via ViT attention rollout. Top-K (K=12) patches selected by semantic score are visualized with attention heatmaps. Highlighted regions correspond to clinically meaningful structures: tumor-stroma boundaries, atypical nuclei clusters, glandular formations, stromal textures, and necrotic rims.

GE-ViP Slide-Level Saliency and Subgraph View

Figure 6: Slide-level saliency maps and subgraph visualization. Left: WSI thumbnail with patches shown as colored points scaled by node importance (confidence drop when zeroed out) — salient nodes cluster over tumor nests, invasive fronts, and gland chains. Right: Top-ranked edges drawn as blue connections, with thick bundles tracing coherent architectural motifs (tumor boundaries, dense stromal regions).

GE-ViP t-SNE Embeddings

Figure 7: t-SNE visualization of learned slide embeddings. Classes form compact, well-separated clusters. Slides at cluster centers exhibit clear, canonical cancer morphology; boundary slides display ambiguous tissue patterns (useful for clinical triage). GraphLIME feature importance (inset) shows boundary/structure-sensitive ViT channels and texture/nuclear descriptors rank highest; color-only features contribute less.

  • Patch-level (ViT rollout): Attention rollout on top-K (K=12) patches by semantic score → highlights tumor-stroma boundaries, atypical nuclei clusters, stromal textures, necrotic rims — clinically meaningful regions
  • Slide-level saliency: Each patch shown as a point on WSI thumbnail with color/size encoding node importance (drop in argmax confidence when zeroed) → salient nodes cluster over tumor nests, invasive fronts, gland chains, stromal reaction
  • Subgraph view: Top-ranked edges (by endpoint node saliency sum) displayed as blue connections → thick edge bundles trace coherent architectural motifs
  • GraphLIME feature importance: Boundary/structure-sensitive ViT channels and texture/nuclear descriptors rank highest; color-only features contribute less (likely due to stain normalization independence)
  • t-SNE embeddings: Slides deep inside same-class clusters show clear representative cancer morphology; boundary slides display ambiguous tissue patterns → clinical triage utility

📚 Citation

@article{rahman2026gevip,
  title={GE-ViP: Graph-enhanced vision pipeline for weakly supervised histopathology slide analysis},
  author={Rahman, Maisha and Ahad, Jawad Ibn and Hassan, Md. Mehedi and Moursalin, Golam and Momen, Sifat},
  journal={Neurocomputing},
  volume={679},
  pages={133230},
  year={2026},
  publisher={Elsevier},
  doi={10.1016/j.neucom.2026.133230}
}