Manuscript Offprint
arXiv:2610.38346Knowledge-structured and evidence-aware semantic self-distillation for glomerular pathology foundation model
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Qiming He+1,6, Jing Li+2, Zihan Wang+3, Tian Guan+3, Yifei Ma4, Zimo Zhao4, Yanxia Wang2, Hongjing Chen7, Yexing Zhang8, Yizhi Wang3, Xinrui Chen3, Xitong Ling3, Minxi Ouyang3, Yujie Xie3, Lianghui Zhu3, Yiqing Liu3, Qingxia Hou2, Shuyan Zhao2, Xiaoqin Wang2, Lili Ma2, Qiang Huang3, Zhiyuan Shen3, Junru Cheng3, Siqi Zeng3, Chao He4, Yonghong He3,5,6, Zhe Wang2,5
1*Fuzhou University Affiliated Provincial Hospital, Interdisciplinary Institute for Medical Engineering, Fuzhou University, Fuzhou, China.
2*Department of Pathology, School of Basic Medicine and Xijing Hospital, Fourth Military Medical University, Xi'an, China.
3*Institute of Biopharmaceutical and Health Engineering, Tsinghua Shenzhen International Graduate School, Tsinghua University, Shenzhen, China.
4*Department of Engineering Science, University of Oxford, Oxford, UK.
5Jinfeng Laboratory, Chongqing, China.
6Medical Optical Technology R&D Center, Research Institute of Tsinghua, Pearl River Delta, Guangzhou, China.
7Department of Pathology, Ankang Central Hospital, Ankang, China.
8Jinan Inspur Data Technology Co., Ltd., Jinan, China
- Qiming He, Jing Li, Zihan Wang and Tian Guan contributed equally to this work.
- Qiming He (he-qm23@tsinghua.org.cn), Chao He (chao.he@eng.ox.ac.uk), Yonghong He (heyh@sz.tsinghua.edu.cn), and Zhe Wang (zhwang@fmmu.edu.cn) are the corresponding authors.
Abstract
Visual foundation models learn rich pathological morphology but lack explicit concept-level supervision. Vision-language pretraining can provide this supervision but requires costly image-text pairs. Here, we introduce GloSAGE, a semantic self-distillation framework that uses lesion profiles predicted by a pretrained visual teacher to construct structured pathology descriptions. Reliability-guided selection identifies image-text anchors, while Knowledge-Structured Pathology Text Synthesis and Evidence-Guided Negative-pair Construction account for partially observed lesions. Image-text alignment trains projection layers while retaining the frozen visual encoder; an intermediate Semantic Transfer Layer supplies features for downstream tasks. Developed on GloMillion and evaluated across seven glomerulus- and case-level cohorts, GloSAGE supported zero-shot lesion recognition, image-text retrieval, hard-negative discrimination and concept-intervention analyses. It outperformed its source visual model in most lesion-recognition tasks and improved lesion grading, while supporting competitive case-level disease classification, injury grading and baseline renal function estimation. Ablations supported the combined contributions of knowledge-structured text and evidence-guided negatives, and the intermediate transfer layer improved mean lesion-recognition ROC-AUC relative to the complete projection output. A frozen language model conditioned on GloSAGE features generated glomerular descriptions. These findings suggest that teacher-derived lesion profiles can provide annotation-efficient semantic supervision for extending a glomerular visual foundation model.
Keywords: Computational pathology, Foundation model, Semantic self-distillation, Vision-language alignment, Glomerular pathology
1 Introduction
Self-supervised pretraining has shifted computational pathology from task-specific discriminative pipelines towards foundation representations that support heterogeneous diagnostic, prognostic and biomarker-prediction tasks [1–4]. Nevertheless, independent evaluations indicate that their performance still remains dependent on tissue type, staining protocol, acquisition domain, morphological granularity and downstream readout [5–7]. These limitations are particularly relevant when foundation modeling is extended from cancer-dominated, tissue-level analysis to renal pathology, where diagnostically meaningful phenotypes are expressed within repeated anatomical entities and are defined by subtle, coexisting alterations of glomerular cells, capillary loops, basement membranes and mesangial architecture [8–10]. Our previous research introduced GloPath, an entity-centric visual foundation model for glomerular pathology [10]. However, morphology-focused visual pretraining primarily structures feature spaces through visual invariance, instance discrimination or reconstruction objectives, without explicitly constraining representations by pathological concepts. Consequently, pathology-relevant semantics may be present in the learned representations but remain insufficiently organized and underexploited for downstream tasks [11–14].
Vision-language pretraining provides a mechanism for introducing concept-level supervision by aligning histopathology images with captions, reports, diagnostic descriptions or instructional responses in a shared embedding space. Contrastive and generative pathology models have consequently expanded computational pathology towards zero-shot recognition, cross-modal retrieval, report generation and interactive visual question answering [15–25]. Yet the scalability of this paradigm remains coupled to the availability and fidelity of image-text pairs. Web-derived captions may be weakly matched to local morphology, whereas clinical reports are typically written at the case or slide level and do not exhaustively describe every visual entity. Constructing lesion-level descriptions for individual glomeruli would therefore require substantial expert annotation and cross-stain reconciliation. At the same time, a domain-specific visual foundation model already contains predictive knowledge acquired from large-scale morphological pretraining and downstream supervision. Existing knowledge-distillation strategies in computational pathology have largely focused on representation compression, domain adaptation or the aggregation of multiple visual teachers [26–28]. Whether a visual foundation model can instead reuse its own predictions as concept-level supervision, thereby converting latent morphological knowledge into cross-modal representations without manually paired corpora, remains insufficiently explored.
Repurposing model-derived predictions as semantic supervision introduces two further challenges. First, directly converting prediction into isolated text tokens produces a flat semantic codebook that does not encode the hierarchical, relational and compositional organization through which pathologists interpret lesions. Knowledge-enhanced pathology models have shown that disease ontologies and graph-structured priors can connect diagnostic entities with definitions, attributes and inter-concept relations [13, 19, 29]; however, these structures must be coupled to image-specific evidence if they are to organize rather than merely append textual knowledge. Second, pseudo-label-derived supervision is intrinsically asymmetric in partially observed multi-label pathology data. A glomerulus may contain multiple concurrent lesions, while stain-dependent assessment and annotation workflows reveal only a subset of possible findings. Standard image-text contrastive learning nevertheless treats off-diagonal image-text combinations as negatives, implicitly conflating verified absence with unexamined concepts and potentially separating samples that share positive lesions. More generally, studies of vision-language learning, multi-label contrastive objectives and partial-label disambiguation have demonstrated that semantic overlap and incomplete observations invalidate the conventional one-positive-versus-many-negative assumption [30–32]. Thus, scalable semantic self-distillation requires more than pseudo-text generation: it must jointly establish a structured semantic target and determine which pairwise contrastive relations are supported by the available pathological evidence.
Here, we introduce GloSAGE (Semantic Alignment Guided by Evidence), a knowledge-structured and evidence-aware semantic self-distillation framework for glomerular pathology foundation models (Fig. 1). GloSAGE first deploys a pretrained visual teacher across GloMillion to derive knowledge-structured caption using KEYS, and then applies PIRA with EDGE-guided negative construction to preserve diagnostic utility during self-distillation. GloSAGE is then evaluated for semantic capability, clinical diagnosis, ablation, and language extension tasks on seven cohorts. (Fig. 1A). In the framework, Knowledge-Structured Pathology Text Synthesis (KEYS) subsequently converts these profiles into structured pathological descriptions containing standardized lesion names, definitions, and synonyms organized by the knowledge graph. To prevent partially observed labels from introducing fabricated negative supervision, GloSAGE further incorporates Evidence-Guided Negative-pair Construction (EDGE), which distinguishes verified absence from unexamined concepts and excludes negative pairs that are unsupported by or inconsistent with the observed lesion profiles. The resulting descriptions are aligned with representations produced by a frozen visual encoder

Fig. 1 Overview of GloSAGE. (A) Development of GloSAGE through semantic self-distillation. A pretrained visual teacher predicts lesion profiles for glomerular images in GloMillion, and KEYS converts these profiles into knowledge-structured captions. Paired images and captions undergo image-text contrastive pretraining through PIRA with EDGE-guided negative construction. STL transforms pretrained visual features for downstream tasks. GloSAGE is evaluated across seven cohorts for semantic capabilities, clinical diagnosis, component contributions and language-related extensions. (B) Framework of KEYS, PIRA and EDGE. Reliability-guided selection identifies over 40,000 trustworthy visual-semantic anchors. KEYS transforms their lesion profiles into structured descriptions incorporating lesion hierarchies, subtypes and severity grades. PIRA aligns images encoded by the frozen visual encoder with descriptions encoded by PubMedBERT through trainable projection heads, while EDGE excludes unsupported or contradicted negative pairs. STL comprises the first visual projection layer and GELU activation and provides the downstream visual representation. (C) Evaluation of semantic enhancement through zero-shot lesion recognition, bidirectional retrieval, hard-negative discrimination and concept intervention. (D) Evaluation of the diagnostic benefits of semantic enhancement at the glomerular and case levels. Glomerular evaluations include the distribution of ROC-AUC across 27 lesion-recognition tasks (left) and performance on 15 tasks across four independent cohorts (middle). Case-level evaluations include kidney disease diagnosis, subtyping, injury grading and biomarker prediction. (E) Ablation results assessing the contributions of individual components. (F) Exploratory evaluation of language-related capabilities.
through the Semantic Transfer Layer (STL) and Pathology-Informed Representation Alignment (PIRA), thereby reorganizing latent morphological representations within a cross-modal semantic space (Fig. 1B). We evaluated this process through a progressive chain of evidence. Zero-shot lesion recognition, bidirectional image-text retrieval, hard-negative discrimination, and concept intervention were used to determine whether concept-level alignment had been established (Fig. 1C), whereas lesion recognition, lesion grading, and case-level disease classification, injury grading, and biomarker regression assessed whether semantic reorganization improved conventional morphological assessment (Fig. 1D). Ablation analyses further disentangled the respective contributions of KEYS, EDGE, and STL (Fig. 1E). Finally, we examined the extensibility of the learned representations to higher-level pathology applications through fixed-prompt, image-conditioned glomerular description generation (Fig. 1F). Collectively, this framework investigates whether morphological knowledge already encoded by a domain-specific visual foundation model can be converted into reliable semantic supervision and subsequently reused to improve both representation quality and downstream capabilities.
2.1 Overview
We developed GloSAGE to reorganize the latent morphological representations of a pretrained glomerular visual model through semantic self-distillation on GloMillion (Secs. 4.2 and 4.1.1). Using the GloAtlas (Secs. 4.1 and 4.1.2), we evaluated the resulting semantic space in four settings: zero-shot lesion recognition (Fig. 2A), bidirectional image-text retrieval (Fig. 2B), hard-negative discrimination (Fig. 2C), and concept intervention (Fig. 2D). In zero-shot lesion recognition, GloSAGE achieved the best performance on more of the 27 tasks than any competing model, including 80% of the lesions under PASM staining. In bidirectional retrieval, GloSAGE ranked first in the majority of image-to-text tasks and in nearly all text-to-image tasks. In six-candidate hard-negative discrimination, GloSAGE achieved the highest mean top-1 accuracy on PAS and Masson, whereas its PASM accuracy was close to chance and slightly below KEEP. In concept intervention, GloSAGE outperformed the second-best model by 12.2%, 7.7%, and 5.4% across the three staining protocols, respectively. We next assessed conventional diagnosis tasks, including glomerulus-level tasks (lesion recognition, and lesion and injury grading on GloAtlas, GloPro, GloGS-1, GloGS-2 and GloGrade (Sec. 4.1.2-4.1.6), as well as case-level tasks on RenalXJ (Sec. 4.1.7) and RenalKPMP (Sec. 4.1.8). For both lesion recognition and grading on GloAtlas, GloSAGE achieved significantly higher ROC-AUC than each competing model across tasks (all Holm-adjusted ; Fig. 3A-D). Evaluation across four independent cohorts further demonstrated that GloSAGE significantly to highly significantly outperformed most competing models (with Holm-adjusted values ranging from < 0.05 to < 0.001; Fig. 3E-F). At the case level, GloSAGE achieved the best performance across 5 of 7 tasks on disease classification, injury grading, and biomarker regression on RenalXJ and RenalKPMP (Fig. 4). Component-wise ablations further quantified the contributions of EDGE, KEYS, and STL, which yielded mean gains of 0.92 percentage points (95% CI, 0.49–1.36; ), 0.98 percentage points (95% CI, 0.41–1.55; ), and 2.26 percentage points (95% CI, 0.99–3.53; ), respectively (Fig. 5). Finally, fixed-prompt image-conditioned description generation was used to examine whether the learned representations could support language output. GloSAGE achieved the highest average scores on all the three ROUGE metrics across stains (Fig. 6) and demonstrated performance comparable to that of GPT-6-Astra (https://chatgpt.com/). Collectively, these experiments distinguish direct evidence of semantic alignment from its potential utility across downstream pathological tasks.
2.2 Knowledge-guided alignment reveals lesion-level semantic understanding
To determine whether knowledge-guided alignment produced a genuinely lesion-aware semantic space, rather than merely improving similarity for familiar image-text pairs, we designed four complementary evaluations that progressively interrogated different properties of the learned representations.
2.2.1 Zero-shot lesion recognition
To assess whether GloSAGE acquired interpretable lesion-level semantics, we performed zero-shot lesion recognition by measuring image-text similarity in a shared embedding space, without training additional classifiers (Fig. 2A). GloSAGE achieved mean lesion-wise ROC-AUCs of 0.714, 0.689, and 0.759 across PAS, Masson, and PASM stains, respectively, outperforming the strongest overall comparator, CONCH (0.628, 0.602, and 0.622), by 8.6, 8.7, and 13.7 percentage points. At the individual lesion level, GloSAGE achieved the highest ROC-AUC in 7 of 11 PAS tasks, 2 of 6 Masson tasks, and 8 of 10 PASM tasks (Fig. 2A; Supplementary Tables S1–S3). Notable improvements were observed for PAS(+) (0.828 versus 0.458 for the next-best model), Masson-MH (0.778 versus 0.502), and PASM-MH (0.776 versus 0.513), although CONCH retained an advantage for certain lesions, particularly GS in Masson (0.865 versus 0.596) and PASM (0.952 versus 0.626). We additionally included GloPath as an unaligned visual-only negative control: its image features were compared directly with independently encoded PubMedBERT lesion descriptions, without a trained cross-modal mapping, to illustrate why visual representations alone do not provide a reliable text-similarity readout. Because GloPath has no jointly trained image-text embedding space, it was excluded from retrieval, hard-negative discrimination, and concept-intervention analyses, for which direct cross-modal matching is the primary evaluation. Compared with GloPath, GloSAGE improved mean ROC-AUC by 16.98, 11.40, and 19.10 percentage points across PAS, Masson, and PASM, respectively, with statistically significant improvements for PAS (P = 0.0098) and PASM (P = 0.0020; two-sided Wilcoxon signed-rank test). These results show that the aligned GloSAGE representation supports classifier-free recognition of the evaluated lesion concepts. The GloPath image-text comparison is an unaligned negative control, whereas the comparisons with pretrained vision-language models should be interpreted in light of their different supervision histories.
2.2.2 Bidirectional image-text retrieval
We next asked whether the learned space could recover the correspondence between an image and a pathological description, rather than merely rank prespecified lesion names. Images were ranked against candidate descriptions (image-to-text), and descriptions against candidate images (text-to-image), with retrieval measured by recall at ranks 1, 5 and 10 (Fig. 2B). In image-to-text retrieval, GloSAGE consistently achieved the highest R@1 across PAS, Masson, and PASM, reaching 0.1694, 0.2867, and 0.1083, respectively, compared with 0.0109, 0.2671, and 0.0585 for the next-best models. The improvement was particularly pronounced in PAS, where GloSAGE achieved a 15.5-fold higher R@1 than KEEP. This advantage extended to text-to-image retrieval, with GloSAGE achieving the highest or joint-highest R@1 across all three stains (0.0215, 0.1000, and 0.0588, respectively). At broader retrieval ranks, GloSAGE maintained competitive performance, achieving the highest R@5 and R@10 in PAS image-to-text retrieval and the highest or joint-highest R@10 across all three stains in text-to-image retrieval. Although performance varied across models at higher retrieval ranks, GloSAGE demonstrated consistent advantages in top-ranked semantic matching across staining modalities and retrieval directions (Supplementary Tables S4–S6). These findings suggest that semantic alignment enables GloSAGE to establish more precise image-text correspondences, particularly in identifying the most relevant pathological concepts.
2.2.3 Discrimination of hard-negative descriptions
Because familiar lesion names can differ by subtle morphology, we tested whether an image ranked its matching lesion description above five closely related but incorrect alternatives. Hard-negative accuracy measures the fraction of lesion-positive images for which the reference description ranked first; chance accuracy with six candidates is 1/6 (Fig. 2C; Supplementary Table S7). Across 12 PAS and 8 Masson stress-test lesion targets, GloSAGE's mean hard-negative accuracy was 0.283 and 0.201, corresponding to margins above chance of 0.116 and 0.034 and exceeding the other evaluated models in both stains. Across 11 PASM targets, its mean accuracy was 0.179 (margin 0.012), slightly below KEEP (0.188; margin 0.021)(Supplementary Table S7). On PAS, GloSAGE correctly distinguished PAS(-) in 0.827 of positive images, compared with 0.680 for KEEP; for MN, the corresponding accuracies were 0.782 and at most 0.059 among the other models. In Masson, GloSAGE obtained 0.333 for MH versus 0.046 for CONCH, but PLIP surpassed GloSAGE for GS (1.000 versus 0.375). In PASM, GloSAGE achieved 0.406 for EP versus 0.359 for CONCH, while KEEP performed better for MP (0.598 versus 0.205 for GloSAGE). Overall, these results demonstrate GloSAGE's enhanced ability to discriminate morphologically similar lesion concepts, particularly in PAS and Masson stains, while highlighting opportunities for further refinement in challenging lesion-specific distinctions (Fig. 2C; Supplementary Tables S8–S10).
2.2.4 Concept-intervention analysis
Finally, we perturbed lesion-bearing descriptions while leaving the image unchanged to assess whether image-text similarity responded to targeted changes in pathological concepts. For each intervention, we calculated the similarity difference between the original and perturbed descriptions and evaluated its ability to distinguish images positive and negative for the original lesion. The mean similarity difference on positive images was used as an effect size, while its ROC-AUC quantified intervention-discrimination performance (Fig. 2D; Supplementary Tables S11–S14). Across PAS, Masson and PASM, GloSAGE achieved mean ROC-AUCs of 0.651, 0.584 and 0.613, respectively, outperforming the strongest comparators, KEEP (0.529), PLIP (0.507) and KEEP (0.559). The corresponding mean similarity differences on positive images were
(A) Zero-shot lesion recognition

Comparison of ROC-AUC on Lesion Recognition (PAS)
Comparison of ROC-AUC on Lesion Recognition (PASM)
(B) Image-text retrieval
Retrieval Performance Relative to Random Guessing
(C) Hard negative discrimination

(D) Concept-intervention tests


Fig. 2 Semantic assessment of GloSAGE across three histological stains. (A) Experimental setup and performance comparison for zero-shot lesion recognition. The bar chart shows the overall ROC-AUC of each model across all evaluated lesions for the three stains. The three bubble plots illustrate the lesion-wise ROC-AUC rankings of the models for PAS, Masson and PASM, respectively. (B) Experimental setup and performance comparison for bidirectional image-text retrieval, evaluated using R@1, R@5 and R@10. The upper and lower rows of line plots represent image-to-text and text-to-image retrieval, respectively, while the three columns correspond to PAS, Masson and PASM. (C) Ranking a matched lesion description against five hard negatives. Heatmaps show the difference between hard-negative accuracy and the six-candidate chance level (1/6) for individual lesions, while bar charts summarize the mean difference across all evaluated stress-test targets for each stain. (D) Experimental setup and performance comparison for concept intervention. The three horizontal bar charts illustrate the distribution of the best-performing model-lesion combinations across the three stains, while the vertical bar chart compares the overall ROC-AUC across models.
0.095, 0.062 and 0.064, indicating that perturbing matched lesion descriptions generally reduced image-text similarity. Beyond these aggregate improvements, GloSAGE was prominently represented among the ten highest-performing model-lesion combinations for each stain, accounting for 5 of 10 in PAS, 5 of 10 in Masson and 4 of 10 in PASM (Fig. 2D). This consistent representation among top-performing combinations further supports its ability to capture lesion-specific semantic distinctions beyond improvements in average performance. Nevertheless, intervention sensitivity varied across individual lesions and stains (Supplementary Fig. S3). For PAS-negative mesangial changes, GloSAGE achieved intervention-discrimination ROC-AUCs of 0.884 in PAS and 0.840 in PASM, compared with 0.529 and 0.653 for CONCH, respectively. On Masson, GloSAGE achieved 0.683 for Cre versus 0.637 for CONCH. In contrast, its performance was lower than KEEP for PAS MH (0.523 versus 0.589) and PASM GS (0.549 versus 0.559). Together, these findings provide further evidence that GloSAGE learns lesion-sensitive semantic representations that respond meaningfully to targeted textual perturbations, supporting its ability to capture pathological concepts beyond superficial image-text associations.
2.3 Knowledge-guided representations improve glomerulus-level diagnostic tasks
Glomeruli are fundamental functional units of the kidney, and assessing their structural and functional alterations is essential for understanding the onset and progression of kidney diseases. Previous studies have explored automated glomerular lesion recognition using deep learning, including graph-based modeling, noise-robust learning, and multi-lesion identification approaches [33–36]. First, we evaluated GloSAGE on GloAtlas across three stains—periodic acid-Schiff (PAS), Masson's trichrome (hereafter referred to as Masson), and periodic acid-Schiff methenamine silver (PASM)—covering 27 lesion recognition and 10 lesion grading tasks. For lesion recognition, GloSAGE achieved the highest or tied-highest ROC-AUC at the displayed precision in 19 of 27 tasks and mean values of 0.952, 0.937 and 0.949 across PAS, Masson and PASM, respectively (Fig. 3A,B). For grading, it reached the best result in 6 of 10 tasks, with a mean ROC-AUC of 0.912 across tasks (Fig. 3C,D). Next, we assessed its performance in identifying global glomerulosclerosis (GS) on GloGS-1 and GloGS-2, as well as grading glomerular injury on GloGrade, a cross-species dataset of mouse kidney tissues (Fig. 3E). Finally, we evaluated its performance on approximately 14,000 glomeruli from GloPro, representing real-world clinical settings (Fig. 3F).
2.3.1 Glomerular lesion recognition
Glomerular lesion recognition evaluates whether learned representations preserve the morphological distinctions essential for routine pathological diagnosis. We fine-tuned task-specific classifiers for individual lesion targets and evaluated their performance on held-out folds across PAS, Masson and PASM stains. GloSAGE achieved mean ROC-AUCs of 0.952, 0.937 and 0.949 for PAS, Masson and PASM, respectively, outperforming GloPath by 1.1, 0.8 and 0.3 percentage points (Fig. 3A). Notably, GloSAGE achieved the highest ROC-AUC in 9 of 11 PAS tasks, 3 of 6 Masson tasks and 7 of 10 PASM tasks. These findings highlight the value of semantic enhancement even when conventional ROC-AUC metrics approach saturation. Nevertheless, performance varied across lesions and stains. GloSAGE performed strongly on PAS-MH (0.930), PASM-GS (0.996) and Masson-GS (0.997), whereas ADH remained comparatively challenging across stains (0.815, 0.763 and 0.762 for PAS, Masson and PASM, respectively). Several exceptions were observed: KEEP marginally outperformed GloSAGE on PAS-GS (0.998 versus 0.997), UNI led on PASM-MP (0.969 versus 0.953), and PLIP achieved higher performance on PASM-ADH (0.790 versus 0.762). Lesion-wise bubble plots further illustrate the consistently leading or near-leading performance of GloSAGE across most lesion categories (Supplementary Fig. S4; Supplementary Tables S15–S17).
To better characterize performance gains in the high-ROC-AUC regime, we further quantified the relative reduction in ROC-AUC deficit, defined as the proportion of the remaining gap to perfect discrimination (ROC-AUC = 1) eliminated by GloSAGE (Supplementary Table S18-S20). Compared with GloPath, GloSAGE reduced the overall ROC-AUC deficit by 18.72%, 11.17% and 4.70% across PAS, Masson and PASM, respectively. Notably, these improvements varied across lesion types and staining modalities. In PAS, substantial reductions were observed for crescent formation (Cre, 45.42%) and crumpling (Crum, 30.81%), indicating improved discrimination of lesions characterized by structural alterations. In Masson, the largest gains occurred in glomerulosclerosis (GS, 48.72%) and segmental sclerosis (SS, 41.96%), suggesting enhanced sensitivity to sclerotic and fibrotic morphological changes. In PASM, GloSAGE showed pronounced improvements in Cre (34.16%), PAS-negative mesangial changes (32.15%), SS (28.37%) and GS (26.93%). By contrast, improvements were limited or slightly negative for several already well-recognized lesions, including PAS-GS, PASM-MH and PASM-ADH, while Masson-Cre showed a more substantial decline. Relative to general-purpose foundation models, GloSAGE further reduced the overall ROC-AUC deficit by up to 45.87%, 46.88% and 37.04% across PAS, Masson and PASM, respectively. These findings suggest that knowledge-guided semantic enhancement provides meaningful gains beyond conventional ROC-AUC improvements, particularly for lesion categories involving complex architectural remodeling, although the benefits remain lesion- and stain-dependent.
To investigate the morphological evidence underlying these predictions, we visualized lesion-specific activation patterns using Grad-CAM (Fig. 3B). Across different stains, GloSAGE preferentially highlighted mesangial regions exhibiting matrix expansion and increased mesangial cellularity in MH, suggesting sensitivity to the structural and cellular alterations characteristic of mesangial hypercellularity. For crescent formation (Cre), the activation maps emphasized extracapillary regions containing proliferating parietal epithelial cells and associated fibrous components, consistent with the morphological organization of crescentic lesions. In glomerulosclerosis (GS), GloSAGE localized regions characterized by sclerosis and obliteration of glomerular capillary loops, reflecting its sensitivity to the architectural disruption associated with sclerotic injury. Together, these quantitative and qualitative findings suggest that knowledge-guided semantic
(A)

Performance of GloSAGE relative to other models (Masson)
Performance of GloSAGE relative to other models (PASM)
(C)
Gain of performance of GloSAGE compared to GloPath
(E)

Performance on GloGrade (frozen encoder)
Performance on GloGrade (non-frozen encoder)
(B)
(D)
(F)
Performance across 11 lesions on GloPro (n of better performance; mean gain; Holm p-value)

Fig. 3 GloSAGE enhances diagnostic performance across multiple levels of glomerular pathology analysis. (A) Performance comparison of glomerular lesion recognition across different foundation models. The upper-left panel shows the mean ROC-AUC across all lesions for each of the three stains. The upper-right, lower-left, and lower-right panels show the relative reduction in ROC-AUC deficit achieved by GloSAGE compared with other models on PAS, Masson, and PASM stains, respectively. (B) Representative visualizations of glomerular lesion recognition by GloSAGE. The three rows correspond to PAS, Masson, and PASM stains, respectively, while the three columns represent mesangial hypercellularity (MH), crescent formation (Cre), and global sclerosis (GS). (C) Performance comparison of glomerular lesion grading. The left panel shows the distributions of ROC-AUC across multiple cross-validation folds for different models, while the right panel illustrates the distribution of ROC-AUC improvements achieved by GloSAGE over GloPath. (D) Representative visualizations of glomerular lesion grading by GloSAGE. The three rows correspond to PAS, Masson, and PASM stains, respectively, and the three columns illustrate different severity grades or morphological subtypes. (E) Performance on GloGS-1 (recognition of GS), GloGS-2 (recognition of GS), GloGrade (injury grading of glomeruli). (F) Performance on GloPro (lesion recognition on PAS).
enhancement improves lesion-level discrimination while preserving sensitivity to diagnostically relevant morphological structures across histological stains.
2.3.2 Glomerular lesion grading
Glomerular lesion grading provides clinically relevant insights into pathological severity and morphological heterogeneity. We therefore evaluated GloSAGE on ten grading and morphological subtype classification tasks across PAS, Masson trichrome (MT), and PASM stains, covering mesangial hypercellularity (MH), crescent formation (Cre), membranoproliferative lesions (MP), and endocapillary proliferation (EP). Specifically, MH was assessed using four ordinal severity grades (absent, mild, moderate, and severe), whereas Cre was classified into cellular, fibrocellular, and fibrous subtypes. MP and EP were further categorized according to segmental or global involvement (Supplementary Table S21).
Across the ten tasks, GloSAGE achieved the highest mean ROC-AUC of 0.912, outperforming GloPath (0.892, p = 0.0484), UNI (0.886, p = 0.0295), KEEP (0.876, p = 0.0010), PLIP (0.871, p = 0.0056), and CONCH (0.861, p < 0.01). GloSAGE achieved the best performance in six tasks, including PAS-MH (0.897), MT-MH (0.920), MT-Cre (0.961), PAS-MP (0.925), PAS-EP (0.887), and PASM-EP (0.876). Notably, GloSAGE outperformed its visual predecessor, GloPath, in 70% of the tasks, with an average absolute ROC-AUC improvement of 2.85 percentage points across these tasks. The most pronounced improvements were observed in PAS-EP (0.887 versus 0.813), MT-Cre (0.961 versus 0.908), and PASM-EP (0.876 versus 0.844). Nevertheless, GloPath remained marginally superior in PASM-MH (0.893 versus 0.892) and PASM-Cre (0.937 versus 0.925), while UNI achieved the highest ROC-AUC in PASM-MP (0.866 versus 0.857). Collectively, these results suggest that knowledge-guided semantic reorganization enhances the discrimination of lesion severity and morphological subtypes, although the magnitude of improvement varies across stains and lesion categories.
The grading heatmaps in Fig. 3D further illustrate the morphological distinctions underlying these tasks. For PAS-MH, the visualizations span mild, moderate, and severe mesangial hypercellularity, characterized by progressively increased mesangial cellularity and expansion of mesangial regions. For MT-Cre, the heatmaps highlight distinct crescentic morphologies, including cellular crescents dominated by proliferating cells, fibrocellular crescents containing both cellular and extracellular matrix components, and fibrous crescents characterized by collagen-rich fibrotic tissue. Similarly, the PASM-Cre examples illustrate these three crescent subtypes, with differences in cellular composition and extracellular matrix deposition reflected in their glomerular architecture. Together, these visualizations provide qualitative examples of the diverse pathological patterns involved in lesion grading and subtype classification, complementing the quantitative results. Full task-wise means and standard deviations are provided in Supplementary Table S21.
2.3.3 Generalizability evaluation on independent cohorts
GS represents an advanced and irreversible form of glomerular injury and serves as an important histopathological indicator of chronic kidney damage. To assess the generalizability of the GloSAGE framework, we externally validated the GloAtlas-derived lesion recognition models on GloGS-1 and GloGS-2 and further evaluated GloSAGE for glomerular injury grading on GloGrade. For external GS recognition, GloSAGE maintained strong discriminative performance, achieving ROC-AUCs of 0.9717 and 0.9813 on the two cohorts, respectively (Fig. 3E). Although GloSAGE did not consistently outperform all competing models, its performance remained competitive, with several models achieving similarly high ROC-AUCs. This may be attributed to the relatively distinctive morphological characteristics of global glomerulosclerosis, which make GS recognition a comparatively straightforward task and limit the additional benefits of semantic enhancement. Nevertheless, these results support the cross-cohort generalizability of GloSAGE for glomerular lesion recognition.
To further assess cross-species generalizability, we evaluated glomerular injury grading on GloGrade, an independent mouse glomerular pathology dataset. With the encoder frozen, GloSAGE achieved the highest ROC-AUC of 0.8156, outperforming GloPath by 0.80 percentage points and four general-purpose pathology foundation models (UNI, CONCH, PLIP, and KEEP) by an average of 9.99 percentage points, highlighting the strong cross-species transferability of its semantically enriched representations. Interestingly, end-to-end fine-tuning reduced GloSAGE's ROC-AUC to 0.7043, with similar declines observed in most competing models. This may reflect overfitting and representation drift caused by limited training data and cross-species distribution shifts, whereas freezing the encoder preserves generalizable morphological representations learned during large-scale pretraining.
2.3.4 Large-scale real-world deployment
To assess the robustness and clinical applicability of GloSAGE under real-world conditions, we constructed GloPro, a large-scale dataset comprising approximately 14,000 PAS-stained glomeruli collected consecutively from routine clinical practice, covering 11 glomerular lesion recognition tasks. Across these 11 tasks, GloSAGE demonstrated superior overall performance, achieving a mean ROC-AUC of 0.9188 and outperforming all five competing models (Fig. 3F). Notably, GloSAGE achieved higher ROC-AUCs than CONCH, KEEP, and PLIP across all 11 tasks, with mean improvements of 5.19, 3.51, and 3.15 percentage points, respectively (all Holm-adjusted p = 0.005). It also outperformed UNI in 9 of 11 tasks, with an average improvement of 2.16 percentage points (Holm-adjusted ). Compared with its visual-only predecessor GloPath, GloSAGE achieved superior performance in 8 of 11 tasks, further supporting the benefits of knowledge-structured semantic enhancement in real-world clinical settings.
At the individual lesion level, GloSAGE achieved the highest ROC-AUC in 7 of 11 tasks, including MH (0.9196), Crum (0.7863), ADH (0.8127), and MP (0.9919) (Table S22). Importantly, despite the distribution shift from the curated GloAtlas dataset to real-world GloPro, GloSAGE maintained excellent discrimination for several lesions, particularly PAS(-), mesangial proliferation, endocapillary proliferation, and global glomerulosclerosis, all achieving ROC-AUCs above 0.99 or close to this threshold. Moreover, GloSAGE exhibited improved performance on mesangial proliferation and endocapillary proliferation compared with its internal GloAtlas evaluation, suggesting that its semantically enriched representations can generalize effectively to heterogeneous clinical samples. Collectively, these findings highlight the robustness and practical potential of GloSAGE for large-scale glomerular lesion assessment in real-world clinical settings.
2.4 Knowledge-guided representations improve case-level diagnostic tasks
Glomerular abnormalities are central to the pathogenesis and progression of numerous kidney diseases, and their histopathological characteristics provide important diagnostic and prognostic information beyond conventional clinical indicators [37]. Therefore, extending glomerulus-level representations to case-level clinical assessment is essential for evaluating their translational utility. Leveraging the deep semantic representations and lesion probability profiles derived from GloSAGE, we conducted comprehensive case-level evaluations on RenalXJ and RenalKPMP, spanning disease classification, kidney injury severity grading, and renal function biomarker prediction.
2.4.1 Performance on RenalXJ
Case-level diagnosis requires aggregating heterogeneous glomeruli across a biopsy while capturing both disease-specific morphology and tissue injury. We therefore employed attention-based multiple instance learning (MIL) using either glomerular deep features or lesion probability profiles (Fig. 4A-B). Disease classification involved 236 IgA nephropathy and 217 membranous nephropathy cases, while injury grading included 744 cases across grades 0, 1, and 2 (483, 162, and 99 cases, respectively).
Deep feature-based evaluation. GloSAGE achieved the highest disease classification ROC-AUC (), weighted-F1 (), and accuracy (), exceeding GloPath, the strongest comparator, by 1.0, 1.1, and 1.1 percentage points, respectively. Its advantage was more pronounced over general-purpose pathology foundation models, with ROC-AUC improvements ranging from 2.91 to 11.33 percentage points. For injury grading, GloSAGE consistently achieved the best ROC-AUC (), weighted-F1 (), and accuracy (), outperforming the strongest comparators by 2.78, 4.83, and 1.46 percentage points, respectively (Supplementary Tables S23 and S24). These results demonstrate the effectiveness of GloSAGE's semantically enriched representations for integrating heterogeneous glomerular morphology into case-level diagnostic predictions.
Lesion probability-based evaluation. To further investigate the clinical utility of explicit pathological concepts, we performed case-level MIL using lesion probability profiles instead of deep features. For disease classification, GloSAGE achieved the highest weighted-F1 () and accuracy (), while maintaining a competitive ROC-AUC of , slightly below GloPath (). For injury grading, GloSAGE achieved an ROC-AUC of and accuracy of , remaining competitive with GloPath and CONCH, which achieved the highest ROC-AUC () and accuracy (), respectively (Supplementary Tables S25 and S26). Notably, GloSAGE achieved a slightly higher injury grading ROC-AUC using lesion probabilities than deep features ( vs. ), suggesting that explicit lesion-level information can provide complementary value for assessing kidney injury severity. Together, these findings support the utility of GloSAGE for case-level assessment through both high-dimensional semantic representations and interpretable lesion probability profiles.
Attention visualizations further illustrate how GloSAGE aggregates morphologically informative glomeruli for case-level prediction (Fig. 4B). For disease classification, the highest-attention glomeruli in representative IgA nephropathy cases exhibit prominent mesangial hypercellularity and mesangial matrix expansion, consistent with characteristic mesangial alterations. In contrast, highly attended glomeruli in membranous nephropathy cases predominantly show relatively preserved glomerular architecture with diffuse capillary wall thickening and limited mesangial proliferation, reflecting the characteristic morphological pattern of membranous nephropathy. For injury grading, attention highlights distinct patterns across increasing severity: mildly injured glomeruli generally retain recognizable capillary loops with relatively limited structural alterations; moderately injured glomeruli exhibit more pronounced mesangial expansion, capillary
(A-B) Performance of disease classification and injury grading on RenalXJ.

Examples of top-12 glomeruli selected by attention (Disease: IgAN, MN)
(C-D) Performance of disease classification and baseline eGFR regression on RenalKPMP.
Examples of top-12 glomeruli selected by attention (Disease: AKI, CKD)
Fig. 4 (A) Case-level performance comparison for disease classification (top row) and injury grading (bottom row) on RenalXJ. (B) Representative examples of the top 12 glomeruli ranked by attention weights in case-level disease classification and injury grading on RenalXJ. (C) Case-level performance comparison for disease classification (top row) and biomarker regression (bottom row) on RenalKPMP. (D) Representative examples of the top 12 glomeruli ranked by attention weights in case-level disease classification and biomarker regression on RenalKPMP.
loop distortion, and segmental structural damage; and severely injured glomeruli are characterized by extensive sclerosis, extracellular matrix accumulation, and substantial loss of normal glomerular architecture. Notably, attention is concentrated on a small subset of representative glomeruli for disease classification, whereas injury grading involves a broader distribution of attention across glomeruli exhibiting heterogeneous degrees of damage. Although these visualizations do not establish lesion-level localization accuracy, they provide qualitative evidence that GloSAGE prioritizes pathologically relevant morphological patterns when integrating glomerulus-level representations into case-level predictions.
2.4.2 Performance on RenalKPMP
Acute kidney injury (AKI) and chronic kidney disease (CKD) exhibit distinct, albeit partially overlapping, renal histopathological characteristics, providing a morphological basis for case-level disease classification. Meanwhile, baseline estimated glomerular filtration rate (eGFR) is a key indicator of kidney function and CKD severity. Previous work has demonstrated associations between glomerular histomorphological features and renal biomarkers, providing a rationale for morphology-based prediction of kidney function [38]. We therefore evaluated GloSAGE on RenalKPMP for AKI/CKD classification using deep semantic features and baseline eGFR regression using both deep semantic features and lesion probability profiles, aiming to investigate the relationship between glomerular morphology and renal functional biomarkers.
For AKI/CKD classification, GloSAGE achieved an F1-score of and an accuracy of 0.7885, outperforming GloPath (0.7915 and 0.7613, respectively) and achieving the second-highest accuracy among all models (Fig. 4C). Although UNI and PLIP achieved slightly higher F1-scores (0.8185 and 0.8165, respectively), their advantages over GloSAGE were relatively modest. Notably, GloSAGE improved accuracy over GloPath by 2.72 percentage points, suggesting that semantic enhancement provides additional discriminative information beyond visual representations alone. The relatively small differences among the leading models may reflect the overlapping glomerular manifestations of AKI and CKD, as their distinction also depends on tubulointerstitial alterations and clinical disease duration, which are not fully captured by glomerulus-level representations.
For baseline eGFR prediction, GloSAGE demonstrated consistent advantages across both feature representations (Fig. 4C). Using deep semantic features, GloSAGE achieved the lowest RMSE and MAE (16.9080 ± 1.6373), outperforming all five competing models. Importantly, lesion probability-based regression further improved its performance, reducing RMSE to 20.0111 ± 1.2494 and MAE to 16.2814 ± 1.2926, corresponding to reductions of 5.15% and 3.71%, respectively, compared with its deep feature-based results. GloSAGE again achieved the lowest errors among all competing models, outperforming the strongest comparator, UNI, by 2.56% in RMSE and 0.61% in MAE. These findings suggest that explicit lesion probability profiles may capture clinically relevant pathological information associated with renal function, complementing high-dimensional semantic representations. Collectively, the consistent performance of GloSAGE across both regression settings supports the potential of knowledge-guided glomerular representations for morphology-based renal function assessment.
To further investigate the morphological relevance of GloSAGE-derived representations, we visualized the top-12 glomeruli with the highest attention weights for representative cases in AKI/CKD classification and baseline eGFR prediction (Fig. 4D). For disease classification, highly attended glomeruli exhibited heterogeneous pathological patterns, with CKD cases showing more prominent chronic structural alterations, including glomerulosclerosis and architectural distortion, whereas AKI cases displayed relatively preserved glomerular architecture in several instances. For eGFR prediction, attention patterns also varied across renal function categories (<30, 30–60, and >60 mL/min/1.73 m²), with severely impaired renal function generally associated with more pronounced glomerular structural abnormalities, while higher eGFR cases exhibited comparatively preserved morphology. These visualizations suggest that GloSAGE-based MIL can prioritize morphologically informative glomeruli associated with disease identity and renal functional status, providing qualitative interpretability for case-level predictions.
2.5 Ablation study
To assess the contributions of GloSAGE's semantic design, we examined three components linking image-text pretraining to downstream lesion classification (Fig. 5A): KEYS, which constructs knowledge-structured pathological descriptions; EDGE, which filters candidate negative pairs according to observed lesion evidence; and STL, which provides the intermediate visual projection features for downstream prediction. We evaluated the removal of KEYS and EDGE, individually and jointly, and compared STL features with the output of the complete visual projection head.
2.5.1 Separating knowledge structure from evidence-aware negatives
To assess the contributions of EDGE and KEYS, we compared plain image-text alignment (w/o EDGE and KEYS), alignment with EDGE alone (w/o KEYS), alignment with KEYS alone (w/o EDGE), and the complete GloSAGE model across 27 lesion-recognition tasks. GloPath served as the vanilla visual-pretraining reference. Plain image-text alignment largely preserved the diagnostic performance of GloPath, yielding an overall mean ROC-AUC of 0.9407 versus 0.9404. Stain-specific means were 0.9400, 0.9293 and 0.9482 for PAS, Masson and PASM (Fig. 5B), respectively, compared with 0.9410, 0.9287 and 0.9468 for GloPath. These mixed changes suggest that image-text supervision alone was insufficient to consistently improve the source visual representation.
Adding either EDGE or KEYS alone improved the PAS mean but reduced the Masson and PASM means, resulting in overall ROC-AUCs of 0.9378 and 0.9384, respectively, below the plain-alignment baseline (Fig. 5A). Combining both components yielded the highest overall mean of 0.9476. GloSAGE exceeded EDGE alone by 0.98 percentage points (95% CI, 0.41–1.55; Holm-adjusted p = 0.0034) and KEYS alone by 0.92 percentage points (95% CI, 0.49–1.36; Holm-adjusted p = 0.0008). Relative to plain alignment, the improvement was 0.70 percentage points (95% CI, 0.15–1.24; Holm-adjusted p = 0.0144), supporting the joint configuration rather than uniform benefits from either component in isolation.
The largest gains over plain alignment included PAS Crum (0.8779 to 0.9220) and Masson segmental sclerosis (0.9077 to 0.9475); PASM endocapillary lesions also improved from 0.9701 to 0.9747 (Fig. 5C-D). These patterns may reflect the value of combining structured descriptions that distinguish related concepts with evidence-guided negatives that avoid penalizing coexisting or incompletely examined lesions. Such supervision could be particularly helpful for focal and heterogeneous abnormalities. Benefits were not universal: plain alignment performed better for Masson and PASM capsular adhesion, whereas near-saturated tasks showed little variation (Supplementary Tables S27–S29).
(A)
(B)

Performance of different configurations on lesion recognition across three staining.

(C)
Task-wise ROC-AUC ranking of GloSAGE ablations

(D)
GloSAGE gains over ablation configurations
(E)
Fig. 5 Ablation of the semantic components of GloSAGE. (A) GloSAGE architecture highlighting KEYS, EDGE and STL. (B) ROC-AUC rankings of the ablation configurations across individual lesions. (C) Mean ROC-AUC for each stain. (D) GloSAGE gains relative to each ablation configuration on lesion-recognition tasks. Rows correspond to PAS, Masson and PASM, respectively; columns correspond to w/o EDGE, w/o KEYS and w/o EDGE and KEYS, respectively. (E) Comparison of STL features with the complete projection-head output (GloSAGE-P). The upper-left panel shows mean ROC-AUC across the three stains; the upper-right, lower-left and lower-right panels show lesion-specific ROC-AUC for PAS, Masson and PASM, respectively.
2.5.2 Comparison with the complete projection head
We next compared three visual representations: the original GloPath features, the output of the complete projection head (GloSAGE-P), and the intermediate features from STL, comprising the first fully connected layer and GELU activation. GloPath achieved an overall mean lesion-recognition ROC-AUC of 0.9404. Using the complete projection output reduced this mean to 0.9250, with stain-specific means of 0.9348, 0.8977 and 0.9306 for PAS, Masson and PASM. In contrast, STL yielded the highest overall mean of 0.9476, exceeding GloSAGE-P by 2.26 percentage points (95% CI, 0.99–3.53; Holm-adjusted p = 0.0034) and outperforming it on all 27 tasks (Fig. 5E).
The differences were most pronounced for challenging lesions. For Masson segmental sclerosis, ROC-AUC decreased from 0.9100 with GloPath to 0.7966 with the complete projection head, but increased to 0.9475 with STL. A similar pattern occurred for PAS-Crum (0.8870, 0.8685 and 0.9220) and PASM-SS (0.9450, 0.8750 and 0.9609), whereas near-saturated tasks showed smaller differences. These results suggest that the final embedding optimized for cross-modal alignment may constrain information useful for lesion discrimination, while STL provides an intermediate representation that benefits from semantic training and retains greater diagnostic utility.
2.6 GloSAGE connects glomerular morphology to language
(A)

(C)
GloSAGE: Glomerular lesion profile. No positive renal lesion groups were detected among the measured renal glomerular findings. This patch is negative for the assessed lesion set.
GPT-6-Astra: The glomerulus shows preserved tuft architecture with mild mesangial matrix expansion and focal mild mesangial hypercellularity. Capillary walls appear somewhat prominent, with many lumina remaining open. Bowman's space is preserved. No definite crescent, segmental or global sclerosis, or necrosis is evident in this section. These findings are nonspecific; a definitive diagnosis requires correlation with additional sections, immunofluorescence, and electron microscopy.
GloSAGE: Glomerular sclerosis, renal sclerosis, papillary sclerosis.
GPT-6-Astra: The glomerulus shows extensive sclerosis, with dense matrix replacing most of the tuft, markedly reduced cellularity, and near-complete obliteration of capillary lumina. A broad, sparsely cellular crescent-shaped fibrous band occupies the lower portion of Bowman's space, suggestive of a fibrous crescent. Overall, the image suggests advanced chronic glomerular scarring with near-global sclerosis; additional sections would help distinguish the suspected crescent from capsular fibrosis.
GloSAGE: Glomerular lesion profile with positive findings: Mesangial lesion; Membranoproliferative.
GPT-6-Astra: The glomerular tuft shows mesangial matrix expansion with increased mesangial cellularity and focal narrowing of capillary lumina. Some capillary loops remain open. There is possible focal tuft-capsule adhesion along the lower-left margin, although this is difficult to confirm in this single section. No definite crescent, necrosis, or global sclerosis is evident. The overall appearance suggests a mesangial proliferative injury pattern; the underlying disease cannot be established from this image alone.
(B)
Fig. 6 Image-conditioned generation of glomerular descriptions. (A) A trainable visual-prefix adapter converts features from a frozen visual encoder into eight tokens that condition a frozen language model. Each image is paired with the same fixed descriptive instruction; knowledge-graph-derived descriptions provide the training references. (B) ROUGE-1, ROUGE-2, and ROUGE-L recall scores against structured reference descriptions across PAS, Masson, and PASM. (C) Selected generated descriptions from the GloSAGE-based system alongside GPT-6-Astra outputs for the same images. Panel C is qualitative and is not a quantitative comparison between the two systems.
2.6.1 Exploratory evaluation of image-conditioned description generation
We explored whether GloSAGE representations could support language-based interpretation by coupling each visual encoder to a frozen Qwen2.5-0.5B-Instruct model through a trainable visual-prefix adapter. The adapter converted image features into eight visual tokens, which were prepended to the instruction embeddings for autoregressive generation (Fig. 6A). The visual encoder and language model remained frozen, and only the visual-prefix adapter was trained. Each test image was paired with a fixed instruction requesting a description of glomerular morphology and lesions; this setting therefore assessed image-conditioned description generation rather than unrestricted question answering. Across the three stains, GloSAGE achieved the highest mean ROUGE-1 (0.7906), ROUGE-2 (0.7143), and ROUGE-L (0.7791). Performance varied by stain: GloSAGE led all three ROUGE metrics on PAS and Masson, achieving a ROUGE-L of 0.8509 on Masson, whereas CONCH led all three metrics on PASM. These results suggest that GloSAGE features can support generation of descriptions with greater reference-text overlap on average (Supplementary Table S30).
2.6.2 Qualitative exploration and comparison with GPT-6-Astra
Representative examples illustrate how the adapted model translates glomerular images into lesion descriptions. We also juxtaposed its outputs with those of GPT-6-Astra to explore similarities and differences in the descriptions produced by a domain-adapted model and a general-purpose multimodal model. The selected cases illustrate the outputs and limitations of the two systems but were not used for quantitative comparison, providing qualitative context for the overlap-based evaluation. This comparison was limited to selected examples and was not a systematic head-to-head benchmark. It therefore does not establish equivalent performance, superiority or comparable clinical reliability relative to GPT-6-Astra. Broader evaluation with standardized prompts, representative test cases and blinded expert assessment would be needed to determine the accuracy, completeness and clinical usefulness of the generated descriptions.
3 Discussion
This study shows that the knowledge accumulated by a visual pathology foundation model can serve as a starting point for its semantic extension. Visual pretraining has produced transferable morphological representations, including general-purpose pathology models and the glomerulus-specific GloPath model [1, 10]. GloSAGE builds on this foundation by converting teacher-predicted lesion profiles into image-specific textual supervision and aligning them with frozen visual features. The resulting model supports both concept-based interaction and conventional diagnostic readouts without requiring a newly annotated image-text corpus or retraining the visual encoder. This suggests a complementary route for developing pathology foundation models: knowledge acquired during visual model development can be reorganized into representations that are more readily accessed through pathological concepts.
The semantic evaluations illuminate what this reorganization makes possible. Zero-shot lesion recognition uses descriptions as direct readouts of image features; bidirectional retrieval examines correspondence between images and structured lesion profiles; hard-negative discrimination and concept intervention probe whether similarity responds to differences in lesion meaning. Together, these analyses indicate that the learned space supports several forms of interaction beyond a task-specific classification head. Existing pathology vision-language models have established the value of image-text alignment for retrieval and zero-shot analysis [15, 29]. GloSAGE extends this line of work at the glomerulus level by deriving image-specific text from an existing visual teacher and organizing it around a defined lesion vocabulary. Its semantic capability is therefore best understood as making previously acquired pathological knowledge accessible through a new interface, rather than creating pathological information absent from the source visual representation.
The provenance of that knowledge is central to interpreting the results. The GloPath-based lesion predictors used to generate GloSAGE's training descriptions had been trained on GloAtlas annotations. Their predictions subsequently supplied semantic supervision for selected GloMillion images; GloAtlas images were not used as the image-text pairs for semantic alignment. Accordingly, the GloAtlas experiments examine whether knowledge acquired by the visual teacher can be expressed and reused through language-aligned representations. In this setting, "zero-shot" denotes inference without fitting an additional lesion classifier, rather than concepts unseen throughout model development. This distinction clarifies the contribution of semantic self-distillation: it converts established visual diagnostic knowledge into a form that can be queried by text and transferred to downstream readouts. The separately assembled evaluation cohorts broaden the assessment beyond this internal knowledge-transfer setting.
The ablations provide a second insight into how this conversion works. KEYS specifies the lesion concepts represented in the text, whereas EDGE determines which candidate negatives are supported by the available observation record. Their combination performed better than plain alignment or either component in isolation, suggesting that informative semantic targets and defensible contrastive comparisons are mutually important when lesion profiles are partially observed. This differs from approaches that incorporate broader pathological knowledge during pretraining or distil information among visual models [29, 39]: the emphasis here is on using teacher-derived, entity-specific evidence to govern image-text alignment. The representation comparison adds a practical architectural finding. Although the final projection was trained for cross-modal matching, the intermediate STL features provided the stronger readout for lesion recognition. Semantic matching and diagnostic transfer can thus favor different points along the same projection pathway; the present ablation identifies a useful interface without assigning its advantage to a single architectural factor.
The diagnostic evaluations show how this interface operates across levels of pathological assessment. On individual glomeruli, semantic transfer improved aggregate lesion recognition and supported distinctions in severity and morphological subtype. Evaluations on GloGS-1, GloGS-2, GloPro and GloGrade then examined the representation across independently sourced images, routine clinical sampling and an experimental mouse dataset. At the biopsy level, multiple-instance learning connected glomerular representations to disease classification, injury grading and baseline renal function estimation. These applications differ in their labels and units of analysis, yet all draw on information carried by glomerular morphology. Recent whole-slide multimodal models have demonstrated the value of linking pathology representations to broader slide-level tasks [18]; our findings suggest that an explicitly defined anatomical entity can also provide a useful bridge from lesion concepts to case-level assessment.
Connecting GloSAGE features to a frozen language model offers another view of this bridge. With only a visual-prefix adapter trained, the system generated descriptions under a fixed instruction, demonstrating that the semantically organized representation can condition language output. This experiment is an exploratory extension of the visual representation rather than an evaluation of unrestricted visual question answering. Its overlap-based metrics assess agreement with structured reference descriptions, while the selected GPT-6-Astra examples illustrate differences in descriptive content without establishing comparative clinical accuracy. Together with advances in pathology vision-language and multimodal modeling [15, 17], the result points to a modular development strategy in which entity-level representations can be connected to language interfaces without replacing the underlying visual model.
Several considerations guide the next stage of this work. Teacher-derived supervision inherits the coverage and uncertainty of the teacher's lesion vocabulary, while broader clinical assessment will benefit from additional institutions, staining conditions and workflow settings. Glomerular representations also capture one important component of renal pathology rather than the full range of tissue compartments and clinical information considered in diagnosis. Finally, expert assessment of lesion accuracy, omissions and unsupported statements is needed to establish the usefulness of generated descriptions. These directions do not change the central finding: existing visual pathology models can supply image-specific knowledge for structured semantic alignment. Where suitable visual teachers, concept resources and observation records are available, this approach offers a path for extending foundation models from morphological encoding towards concept-based analysis and language-mediated interaction.
4 Methods
4.1 Dataset description
We assembled eight cohorts from the Department of Pathology, Xijing Hospital, Fourth Military Medical University, Xi'an, China and publicly available database. GloAtlas provided expert-annotated glomerular images for lesion recognition and grading; GloMillion provided the large-scale corpus used for visual pretraining and semantic self-distillation; GloPro supported prospective evaluation in routine practice; and RenalXJ and RenalKPMP linked glomerular images with clinical and pathological reports for case-level analysis.
Renal biopsy specimens were processed with hematoxylin and eosin (H&E), periodic acid-Schiff (PAS), Masson's trichrome (Masson), and periodic acid-methenamine silver (PASM) staining. Whole-slide images (WSIs) were screened at low resolution with a pretrained glomerular detector [40], and the detected glomeruli were extracted at magnification for model development and evaluation. Full digitization, extraction, quality-control, eligibility, annotation, and partitioning procedures are provided in Supplementary Methods, Section A.1.
4.1.1 GloMillion
GloMillion comprises 14,049 renal biopsy WSIs collected between 2022 and 2023 and contains more than one million extracted glomerular images. The cohort underlies both the source visual representation and the semantic self-distillation framework. GloPath-based lesion predictors generated candidate lesion profiles, from which reliability-guided selection retained more than 40,000 visual-semantic anchors. These lesion predictors had previously been trained using the expert-annotated GloAtlas lesion labels. Although GloAtlas and GloMillion comprised non-overlapping patients, GloAtlas therefore contributed concept-level supervision indirectly through the teacher; the GloMillion images used for semantic alignment were not the GloAtlas evaluation images. GloAtlas and GloMillion contain strictly non-overlapping patient cohorts.
4.1.2 GloAtlas
GloAtlas comprises renal biopsy specimens from 870 cases collected between 2019 and 2021. Each case contributed six glass slides containing 12 serial tissue sections across H&E, PAS, Masson, and PASM staining. Two trained nephrologists independently annotated the glomerular images, and a senior renal pathologist adjudicated disagreements. GloAtlas served as the principal annotated cohort for lesion recognition and severity grading. Dataset partitioning was performed at the patient level.
4.1.3 GloPro
GloPro comprises 695 prospectively acquired PAS-stained renal biopsy slides collected through the routine diagnostic workflow at Xijing Hospital between 2022 and 2023. GloPro and GloMillion were mutually exclusive at the patient level: no patient represented in GloPro contributed a slide or glomerular image to GloMillion. Consequently, GloPro images were used in neither GloPath visual pretraining nor GloSAGE semantic alignment. To facilitate real-world data acquisition, we established an integrated clinical workflow using the SQS 600P whole-slide scanner (Shenzhen Shengqiang Technology Co., Ltd., China) equipped with Innoviora-kidney, a deployed AI-assisted renal pathology analysis software. Following routine renal biopsy, tissue processing, and PAS staining, slides were digitized using the scanner and automatically processed by Innoviora-kidney, which performed glomerular detection and lesion classification using pretrained models. The resulting glomerular images and predictions were subsequently subjected to manual review and pathological assessment. In total, 13,749 glomerular images were collected and independently annotated by two nephrologists, with disagreements adjudicated by a senior renal pathologist. This prospective cohort provides a real-world benchmark for evaluating the robustness and clinical applicability of GloSAGE under routine diagnostic conditions.
4.1.4 GloGS-1
GloGS-1 was derived from the publicly available AIDPATH dataset hosted on Mendeley Data (https://doi.org/10.17632/k7nvtgn2x6.3, [41]) and was used to evaluate external generalization in glomerulosclerosis recognition. The dataset contains 2,340 individual glomerular images extracted from human PAS-stained kidney sections scanned at 20× magnification, comprising 1,170 normal and 1,170 sclerotic glomeruli. The released image-level labels were retained for binary classification.
4.1.5 GloGS-2
GloGS-2 was constructed from the public dataset (https://doi.org/10.5281/zenodo.4299694) to assess glomerulosclerosis recognition across heterogeneous tissue sources and staining conditions. The source dataset comprises 78 annotated regions of interest from 20 human kidney WSIs originating from three medical centers and TCGA. Individual glomeruli were extracted using the released segmentation masks. Each mask-derived bounding box was expanded outward by 10% to retain surrounding tissue context. The resulting dataset contained 1,397 glomerular images, including 272 globally sclerotic and 1,125 non-globally sclerotic glomeruli.
4.1.6 GloGrade
GloGrade was derived from the public KidneyAI Dataset (https://doi.org/10.5281/zenodo.17456927, [42]), released by investigators from AstraZeneca and collaborating institutions, to assess cross-species transfer to glomerular injury grading. The source dataset contains 3,928 PAS-stained glomerular images extracted from 30 WSIs in a BTBR ob/ob mouse model of diabetic nephropathy. Each image was independently assessed by three expert kidney pathologists using normal, mild, moderate, severe, and excluded categories. The final evaluation dataset comprised 3,668 images assigned to four ordered grades: normal (n = 757), mild (n = 979), moderate (n = 1,281), and severe (n = 651).
4.1.7 RenalXJ
RenalXJ comprises 744 renal biopsy cases with paired clinical and pathological reports. Each case contributed 12 serial sections across four stains, yielding 7,464 WSIs. Case-level labels represented IgA nephropathy versus membranous nephropathy and mild, moderate, or severe renal tissue injury. The cohort was partitioned at the case level into training, validation, and test subsets in a 6:2:2 ratio.
4.1.8 RenalKPMP
RenalKPMP was derived from the Kidney Precision Medicine Project (KPMP), a multicenter initiative providing publicly accessible human kidney biopsy images and linked clinical data through the KPMP Repository (https://atlas.kpmp.org/repository/). This cohort was used to evaluate case-level discrimination between acute kidney injury (AKI) and chronic kidney disease (CKD), together with prediction of baseline estimated glomerular filtration rate (eGFR). The deep-feature analysis included 297 cases, comprising 62 AKI and 235 CKD cases. Baseline eGFR ranged from 22.18 to 141.64 mL/min/1.73 m², with a mean of 57.87 ± 22.62 mL/min/1.73 m² (mean ± standard deviation). The lesion-based analysis included 258 cases with available lesion-probability representations, comprising 57 AKI and 201 CKD cases. In this subset, baseline eGFR ranged from 25.93 to 141.64 mL/min/1.73 m², with a mean of 57.91±22.77 mL/min/1.73 m². Glomerular representations were grouped by participant to form case-level bags, with disease category and baseline eGFR serving as the corresponding case-level targets.
4.2 GloSAGE
GloSAGE contains four connected components. Reliability-guided teacher inference first identifies image-lesion profiles supported by the source visual model in our previous research [10]. KEYS converts each retained profile into a structured pathology description using the domain knowledge graph. EDGE then filters candidate negative pairs according to the concepts actually assessed for each image. Finally, PIRA aligns frozen morphological features with the structured descriptions, and STL exposes an intermediate semantically organized representation for supervised downstream analysis. The semantic training corpus is derived from GloMillion, whereas GloAtlas, GloPro, and RenalXJ and RenalKPMP provide complementary glomerular and case-level evaluation.
4.2.1 Problem formulation
Glomeruli can contain multiple coexisting lesions, whereas any one staining or annotation protocol observes only part of their pathological state. We therefore formulated GloSAGE as knowledge-structured and evidence-aware semantic self-distillation. A pretrained visual teacher supplies image-specific lesion evidence; a nephropathology knowledge graph supplies standardized concept descriptions; and an evidence-aware rule determines which image-text pairs can validly contribute negative supervision.
For a test image with pathological state , define the frozen visual representation and its normalized semantic projection . With the trained parameters held fixed, these variables satisfy
where is mutual information. Semantic enrichment instead refers to reorganizing the available information so that concept-based comparison and restricted readouts can access it more effectively. This distinction allows improved linear or cosine-similarity performance without implying improvement for an unrestricted optimal predictor.
Let denote glomerular images, a frozen visual encoder, and a trainable visual projection. For each image, a pretrained lesion head produces scores . Reliability-guided selection retains a positive lesion profile within the observed concept set , and the knowledge-guided serializer converts that profile into text:
Here, an unrecorded lesion is not assumed to be absent, and a selected pseudo-label is not treated as manually verified ground truth. GloSAGE reorganizes information already present in the frozen morphological features into a concept-aligned space; a deterministic projection does not increase the total information in the source representation, but can make that information more accessible to cosine-similarity or restricted downstream readouts.
Let be the text encoder and its text-side projection. The normalized image and text representations define , where . A candidate text was allowed to act as a negative only if the observation predicate supported that relationship. This is essential in partially observed multi-label pathology: a non-matching description can share a positive lesion with the image or describe a lesion that was never examined.
The role of alignment can also be stated geometrically. Let and be unit-normalized embeddings of a correct description and a valid alternative, and let . If a unit-normalized image representation satisfies , then
This bound separates three empirical requirements addressed by GloSAGE: reliable image-text correspondence, discriminative text targets, and valid negative relations.
4.2.2 Visual backbone
The visual backbone was GloPath, an entity-centric ViT-B model with 12 Transformer blocks pretrained with DINO on more than one million glomerular images [10, 43, 44]. For image , the frozen encoder and trainable projection produce
where sg denotes stop-gradient. The source visual encoder remained fixed during semantic alignment.
4.2.3 Knowledge-structured pathology text synthesis
Knowledge-Structured Pathology Text Synthesis (KEYS) converted reliable teacher predictions into structured descriptions. Candidate outputs from the 27 stain-specific lesion predictors were mapped to an ordered vocabulary of 12 lesion groups. Positive groups were linked to a nephropathology knowledge graph containing 24 nodes and 60 edges. Each node stored a standardized name, anatomical compartment, synonyms, definition, and hierarchy path; graph relations represented hierarchy, co-occurrence, candidate progression, and mutually exclusive findings.
The graph supplied domain-level semantic structure, whereas the teacher supplied image-specific evidence. Definitions and synonyms therefore described the selected concepts but were not treated as separately observed attributes of the image. Likewise, graph relations were available to the pair-construction procedure only when explicitly invoked; their presence in the graph did not create additional positive findings or independent loss terms.
For every retained profile, KEYS serialized the corresponding lesion names, definitions, and up to three synonyms in a fixed order. Empty profiles were described as containing no positive findings among the assessed lesion set, rather than as normal glomeruli. Details are in Supplementary Sec. A.2.
4.2.4 Evidence-guided negative-pair construction
Evidence-Guided Negative-pair Construction (EDGE) addresses false-negative supervision in partially observed multi-label pathology. Standard contrastive learning treats other descriptions in a batch as negatives, but this assignment is unreliable when glomeruli share lesions or when a candidate lesion was not included in the observation protocol. In contrast to approaches that infer possible false negatives from embedding similarity [45], EDGE uses the recorded observation process before a pair enters the objective. For concept , the recorded state of image i was
where denotes an unavailable assessment. A candidate description was retained as a negative for image i only when every lesion coordinate used to justify that assignment had been assessed and recorded as negative:
Thus, candidate pairs based on an unexamined lesion or contradicted by a recorded positive lesion were removed from repulsive supervision, but were not promoted to positive pairs. Details are provided in Supplementary Methods, Section A.3.
This distinction separates unsupported assignments from contradicted ones. For example, a crescent-bearing description cannot be certified as a negative for an image whose crescent status was not examined; if crescent is recorded as positive, the proposed negative is directly contradicted. Only an explicitly assessed negative crescent coordinate supports repulsion on that basis. Certification is conditional on the available record and does not eliminate errors already present in a pseudo-label.
4.2.5 Pathology-informed representation alignment
Pathology-Informed Representation Alignment (PIRA) aligned the projected visual features with PubMed-BERT text features [46]. For a mini-batch of paired images and descriptions, normalized features and defined logits . The comparison mask retained the paired positives and EDGE-certified negatives. Training used the symmetric masked CLIP objective [47]:
(7)
Specifically, the mask used in the contrastive objective was
where is the off-diagonal negative-pair admissibility indicator defined in Eq. (6). Thus, paired positives were always retained. Excluded candidates did not enter the corresponding softmax denominator. The knowledge graph and evidence mask acted through different mechanisms: node text determined the semantic targets, whereas observation-aware certification determined the admissible comparison set. Positive pairs remained the paired image and description; shared or excluded off-diagonal pairs were not automatically promoted to positives.
For an eligible image-to-text pair, the similarity gradient is the usual softmax contrastive gradient; for a masked pair it is zero. EDGE therefore changes the set of repulsive comparisons without changing the paired positive target or adding a separate graph loss. The reverse text-to-image term uses the transposed mask, so the same evidence decision is respected in both directions. An anchor with no retained alternative contributes no directional repulsion beyond its paired positive.
The Semantic Transfer Layer (STL), defined as the first visual projection layer followed by GELU activation [48], supplied GloSAGE features to supervised downstream tasks. Network dimensions, tokenization, sampling, optimization, and the complete masked-gradient formulation are given in Supplementary Methods, Section A.4.
4.3 Evaluation
The evaluation followed a progression from semantic alignment to diagnostic utility and language-mediated interpretation. Classifier-free experiments first examined whether glomerular morphology corresponded to pathological concepts in the joint embedding space. Supervised recognition and grading then assessed whether semantic transfer preserved or strengthened lesion-level discrimination, while case-level multiple-instance learning (MIL) tested whether these features supported disease classification and injury assessment across heterogeneous glomeruli. Ablations examined the contributions of knowledge-structured text, evidence-aware negatives, and the transfer layer. Finally, a language-model extension explored whether the resulting representations could support image-conditioned descriptions.
4.3.1 Comparator models
We evaluated GloSAGE alongside UNI[1], CONCH[15], PLIP[49], and KEEP[29]. UNI served as an image-only baseline, whereas CONCH and PLIP supplied pretrained visual-language representations. KEEP was included as a knowledge-enhanced comparator because it uses a disease knowledge graph to organize image-text pairs into semantic groups and guide vision-language pretraining. It therefore provided a relevant comparison for evaluating glomerulus-specific semantic self-distillation against broader knowledge-enhanced pretraining. GloPath was retained as the source visual baseline to isolate the contribution of semantic transfer[10]. All models used the same stain-specific task definitions; image-text evaluations used the corresponding paired encoders where available. Checkpoint, preprocessing, and model-adaptation details are provided in Supplementary Methods, Section A.5.
4.3.2 Semantic understanding
Semantic understanding was evaluated on GloAtlas across PAS, Masson, and PASM through four complementary tasks, examining concept recognition, cross-modal correspondence, fine-grained specificity, and sensitivity to changes in pathological meaning.
Zero-shot lesion recognition assigned independent lesion scores using cosine similarities between normalized image embeddings and predefined lesion-description embeddings, testing concept recognition without a trained classifier. Here, zero-shot refers to inference without fitting an additional lesion classifier to the evaluated images. It does not imply that the lesion concepts were unseen during model development: the visual teacher used to generate alignment targets had been trained on GloAtlas lesion annotations. For the GloPath visual-only control, lesion descriptions were encoded independently with PubMedBERT; masked mean pooling of token representations yielded 768-dimensional text vectors. These vectors and the 768-dimensional GloPath image features were separately normalized and compared directly by cosine similarity, without a trained image-text alignment layer. Bidirectional retrieval ranked descriptions for an image query and images for a text query, with semantic-group identity defining valid matches, to assess correspondence across modalities. Hard-negative discrimination tested whether a lesion-positive image ranked its matching description above five related but incorrect alternatives, probing discrimination between closely related concepts. Concept intervention kept the image fixed and replaced the lesion-bearing description, measuring whether the similarity response distinguished lesion-positive from lesion-negative images.
GloPath was included only in zero-shot recognition as an unaligned visual-only negative control; it was excluded from the other semantic analyses because it has no jointly trained image-text embedding space. Full candidate construction, aggregation, and metric definitions are given in Supplementary Methods, Section A.6. Zero-shot recognition, retrieval, and hard-negative analyses used the available stain-specific manifests, including their assigned training, validation, and test records; concept intervention used the test partition. These analyses required no additional classifier fitting, but not all constitute independent held-out evaluation.
4.3.3 Glomerular and case-level diagnosis
Diagnostic evaluation assessed whether semantic transfer supported clinically relevant assessment at both the individual-glomerulus and biopsy-case levels. On GloAtlas, 27 lesion-recognition tasks (11 PAS, six Masson, and ten PASM) tested the identification of coexisting morphological abnormalities. Ten grading tasks assessed severity or clinically meaningful lesion subtypes: mesangial hypercellularity severity, crescent composition, and segmental versus global involvement of membranoproliferative and endocapillary lesions. Task-specific classification heads were trained using the corresponding training partitions, with checkpoint selection based on validation ROC-AUC. Together, these tasks evaluated the morphological distinctions that underpin renal biopsy interpretation.
Case-level evaluation on RenalXJ comprised IgA nephropathy versus membranous nephropathy classification and three-class renal injury grading, testing whether glomerular representations could support disease differentiation and integrated assessment of tissue injury. Two forms of instance-level representation were evaluated: deep features, extracted directly by the foundation model, and lesion-based features, comprising glomerular lesion-probability vectors predicted by lesion classifiers developed from the foundation model. Each representation was grouped into case bags and aggregated separately by attention-based MIL (implemented at https://github.com/lingxitong/MIL_BASELINE), allowing heterogeneous glomerular findings to contribute to a biopsy-level prediction. Feature extraction and lesion-probability inference were performed with the corresponding models frozen. 3-fold validation was performed at the case level, preventing images from the same case from appearing across partitions. Attention weights were used to inspect high-contribution glomeruli rather than as independently validated localization annotations. Complete task definitions, classifier protocols, and MIL settings are reported in Supplementary Methods, Section A.4.
4.3.4 Ablation study
Ablations on GloAtlas examined the intended contributions of the three semantic components. EDGE was designed to exclude negative pairs unsupported or contradicted by observed lesion evidence, whereas KEYS provided structured pathological descriptions grounded in the lesion knowledge graph. Removing EDGE (w/o EDGE), KEYS (w/o KEYS), or both (w/o EDGE and KEYS) tested their individual and combined contributions under the same downstream protocol. An architectural ablation compared STL, comprising the first visual projection layer and GELU activation, with the complete projection head (GloSAGE-Fullproj), testing whether the intermediate representation more effectively transferred semantic alignment to supervised diagnosis.
4.4 Language-related task extension
An exploratory language-model extension assessed image-conditioned generation of glomerular morphology and lesion descriptions. A trainable adapter comprising a linear layer, GELU, and LayerNorm mapped each image representation to eight visual-prefix embeddings, which were prepended to the instruction embeddings of Qwen2.5-0.5B-Instruct. The visual encoder and language model remained frozen; only the adapter was optimized using autoregressive cross-entropy on reference-answer tokens, with prefix, instruction, and padding positions excluded from the loss. Images were paired with a fixed descriptive instruction and knowledge-graph-derived reference descriptions, preserving the predefined data partitions. Checkpoints were selected by validation loss, and test descriptions were generated deterministically. Selected examples were additionally compared qualitatively with GPT-6-Astra using the same images and fixed descriptive question, without additional task-specific prompts or reference descriptions. This exploratory comparison examined lesion-description content rather than establishing quantitative performance equivalence. Adapter training, decoding settings, and the GPT-6-Astra comparison procedure are detailed in Supplementary Methods, Section A.8.
4.4.1 Quantification and statistical analysis
Diagnostic discrimination was quantified by ROC-AUC. Retrieval used recall at ranks 1, 5, and 10. Hard-negative accuracy was the proportion of images for which the matching description ranked first. Concept-intervention effect was the similarity difference between original and perturbed descriptions; intervention-discrimination ROC-AUC assessed whether this difference separated lesion-positive from lesion-negative images. Generated descriptions were evaluated with ROUGE-1, ROUGE-2, and ROUGE-L, which quantify lexical and sequence overlap with reference descriptions.
Repeated-run results were summarized as means and standard deviations under the selection rules stated for each analysis. Comparisons across matched lesion tasks used nonparametric paired analyses, with multiplicity control where reported. Details are provided in Supplementary Methods, Section A.9. Training hyperparameters and the hardware and software environment are provided in Sections A.4 and A.10, respectively.
Acknowledgements
This study was supported by National Natural Science Foundation of China (82572986), the Research Funds of Jinfeng Laboratory (JFLKYXM202503AZ-203), National Natural Science Foundation of China (82430062), National High Level Hospital Clinical Research Funding (BJ-2024-155), Natural Science Foundation of Fujian Province (2026J01310023), Shenzhen Engineering Research Centre (XMHT20230115004), Beijing Municipal Health Commission Research Ward Excellence Clinical Research Program (BRWEP2024WO32240114), and the Fuzhou University Talent-Introduction Scientific Startup Fund (XRC-25119). We also acknowledge the creators of the AIDPATH glomerular dataset, the publicly released kidney glomerular ROI dataset, and the KidneyAI dataset for making their data available. The results reported here are in part based on data generated by the Kidney Precision Medicine Project (KPMP) and codes generated by https://github.com/lingxitong/MIL_BASELINE.
Ethics approval
The use of institutional renal biopsy images and associated clinical data in this study was approved by the Medical Ethics Committee of the First Affiliated Hospital of the Fourth Military Medical University (approval no. KY20243325-1). The study was conducted in accordance with the approved research protocol and informed consent documents. Publicly available datasets were used in accordance with their respective access conditions and original ethical approvals.
Author contributions
Qiming He, Jing Li, Tian Guan, Chao He, Zhe Wang, and Yonghong He conceived and designed the study. Chao He, Zhe Wang, and Yonghong He supervised the project and provided overall guidance. Qiming He performed data processing and model development. Jing Li led dataset construction, pathological annotation, and result interpretation. Qiming He, Jing Li, and Tian Guan drafted the manuscript; Tian Guan also revised and polished the text. Yifei Ma and Zimo Zhao contributed to code development and experimental analysis. Xitong Ling, Minxi Ouyang and Yujie Xie contributed to model validation. Yanxia Wang and Hongjing Chen contributed to dataset construction and annotation. Yexing Zhang, Yizhi Wang, Xinrui Chen, Lianghui Zhu, Yiqing Liu, and Junru Cheng assisted with experiments and code organization. Qingxia Hou, Shuyan Zhao, Xiaoqin Wang, and Lili Ma contributed to dataset curation. Qiang Huang, Zihan Wang, Zhiyuan Shen, and Siqi Zeng provided equipment and research resources. All authors reviewed and approved the manuscript.
Competing interests
The authors declare no competing interests.
Data availability
Access for the institutional datasets may be requested from the corresponding author and is subject to approval by the data-holding institution, applicable ethics requirements, and a data-use agreement. The public datasets are available from their respective repositories: the AIDPATH glomerular image dataset (GloGS-1) at https://data.mendeley.com/datasets/k7nvtgn2x6/3; the kidney glomerular ROI dataset used to derive GloGS-2 at https://zenodo.org/records/4299694; the KidneyAI dataset used for GloGrade at https://zenodo.org/records/17456927; and Kidney Precision Medicine Project (KPMP) data used for RenalKPMP at https://atlas.kpmp.org/repository.
Code availability
Code and model weights are released at https://github.com/jiangnansss/Code-for-GloSAGE.
Supplementary information
See Supplementary Materials for details of Sections, Figures and Tables.
References
[1] Chen, R.J., Ding, T., Lu, M.Y., et al.: Towards a general-purpose foundation model for computational pathology. Nature Medicine 30, 850–862 (2024) https://doi.org/10.1038/s41591-024-02857-3
[2] Xu, H., Usuyama, N., Bagga, J., Zhang, S., Rao, R., Naumann, T., Wong, C., Gero, Z., González, J., Gu, Y., Xu, Y., Wei, M., Wang, W., Ma, S., Wei, F., Yang, J., Li, C., Gao, J., Rosemon, J., Bower, T., Lee, S., Weerasinghe, R., Wright, B.J., Robicsek, A., Piening, B., Bifulco, C., Wang, S., Poon, H.: A whole-slide foundation model for digital pathology from real-world data. Nature 630(8015), 181–188 (2024) https://doi.org/10.1038/s41586-024-07441-w
[3] Vorontsov, E., Bozkurt, A., Casson, A., Shaikovski, G., Zelechowski, M., Severson, K., Zimmermann, E., Hall, J., Tenenholtz, N., Fusi, N., Yang, E., Mathieu, P., Eck, A., Lee, D., Viret, J., Robert, E., Wang, Y.K., Kunz, J.D., Lee, M.C.H., Bernhard, J.H., Godrich, R.A., Oakley, G., Millar, E., Hanna, M., Wen, H., Retamero, J.A., Moye, W.A., Yousfi, R., Kanan, C., Klimstra, D.S., Rothrock, B., Liu, S., Fuchs, T.J.: A foundation model for clinical-grade computational pathology and rare cancers detection. Nature Medicine 30(10), 2924–2935 (2024) https://doi.org/10.1038/s41591-024-03141-0
[4] Wang, X., Zhao, J., Marostica, E., Yuan, W., Jin, J., Zhang, J., Li, R., Tang, H., Wang, K., Li, Y., Wang, F., Peng, Y., Zhu, J., Zhang, J., Jackson, C.R., Zhang, J., Dillon, D., Lin, N.U., Sholl, L., Denize, T., Meredith, D., Ligon, K.L., Signoretti, S., Ogino, S., Golden, J.A., Nasrallah, M.P., Han, X., Yang, S., Yu, K.-H.: A pathology foundation model for cancer diagnosis and prognosis prediction. Nature 634(8035), 970–978 (2024) https://doi.org/10.1038/s41586-024-07894-z
[5] Campanella, G., Chen, S., Singh, M., Verma, R., Muehlstedt, S., Zeng, J., Stock, A., Croken, M., Veremis, B., Elmas, A., Shujski, I., Neittaanmäki, N., Huang, K.-l., Kwan, R., Houldsworth, J., Schoenfeld, A.J., Vanderbilt, C.: A clinical benchmark of public self-supervised pathology foundation models. Nature Communications 16(1) (2025) https://doi.org/10.1038/s41467-025-58796-1
[6] Neidlinger, P., El Nahhas, O.S.M., Muti, H.S., Lenz, T., Hoffmeister, M., Brenner, H., Treeck, M., Langer, R., Dislich, B., Behrens, H.M., Röcken, C., Foersch, S., Truhn, D., Marra, A., Saldanha, O.L., Kather, J.N.: Benchmarking foundation models as feature extractors for weakly supervised computational pathology. Nature Biomedical Engineering 10(6), 1113–1123 (2025) https://doi.org/10.1038/s41551-025-01516-3
[7] Yan, F., Wu, J., Li, J., Wang, W., Chen, Y., Wei, L., Lu, J., Chen, W., Gao, Z., Li, J., Li, H., Yan, H., Ma, J., Chen, M., Lu, Y., Chen, Q., Wang, Y., Ling, X., Wang, X., Wang, Z., Huang, Q., Hua, S., Liu, M., Ma, L., Shen, T., Zhang, X., He, Y., Chen, H., Zhang, S., Wang, Z.: Pathorchestra: a comprehensive foundation model for computational pathology with over 100 diverse clinical-grade tasks. npj Digital Medicine 8(1) (2025) https://doi.org/10.1038/s41746-025-02027-w
[8] Zhu, L., Ling, X., Ouyang, M., Liu, X., Guan, T., Fu, M., Zeng, M., Cheng, Z., Fu, F., Huang, Q., et al.: Subspecialty-specific foundation model for intelligent gastrointestinal pathology. npj Digital Medicine (2026)
[9] Wang, Y., Chen, L., Huang, Q., Guan, T., Deng, X., Shen, Z., Li, J., Chen, X., Hu, B., Ling, X., et al.: From generic to specialized: A subspecialty diagnostic system powered by self-supervised learning for cervical histopathology. arXiv preprint arXiv:2510.10196 (2025)
[10] He, Q., Li, J., Guan, T., et al.: GloPath: An entity-centric foundation model for glomerular lesion assessment and clinicopathological insights. Advanced Science 13(29), 20580 (2026) https://doi.org/10.1002/advs.202520580
[11] Nakhli, R., Rich, K., Zhang, A., Darbandsari, A., Shenasa, E., Hadjifaradji, A., Thiessen, S., Milne, K., Jones, S.J.M., McAlpine, J.N., Nelson, B.H., Gilks, C.B., Farahani, H., Bashashati, A.: Volta: an environment-aware contrastive cell representation learning for histopathology. Nature Communications 15(1) (2024) https://doi.org/10.1038/s41467-024-48062-1
[12] Alfasy, S., Shafique, A., Nejat, P., Khan, J., Alsaafin, A., Alabtah, G., Tizhoosh, H.R.: Rotation-agnostic image representation learning for digital pathology. In: 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11683–11693. IEEE, Los Alamitos, CA, USA (2024). https://doi.org/10.1109/CVPR52733.2024.01110
[13] Huang, Y., Zhao, W., Zhang, Z., Chen, Y., Fu, Y., Wu, F., Jiang, Y., Liang, L., Wang, S., Yu, L.: Knowledge-guided adaptation of pathology foundation models effectively improves cross-domain generalization and demographic fairness. Nature Communications 16(1) (2025) https://doi.org/10.1038/s41467-025-66300-y
[14] Yang, Y., Liu, Y., Liu, X., Gulhane, A., Mastrodicasa, D., Wu, W., Wang, E.J., Sahani, D., Patel, S.: Demographic bias of expert-level vision-language foundation models in medical imaging. Science Advances 11(13) (2025) https://doi.org/10.1126/sciadv.adq0305
[15] Lu, M.Y., Chen, B., Williamson, D.F.K., et al.: A visual-language foundation model for computational pathology. Nature Medicine 30, 863–874 (2024) https://doi.org/10.1038/s41591-024-02856-4
[16] Lu, M.Y., Chen, B., Williamson, D.F.K., Chen, R.J., Zhao, M., Chow, A.K., Ikemura, K., Kim, A., Pouli, D., Patel, A., Soliman, A., Chen, C., Ding, T., Wang, J.J., Gerber, G., Liang, I., Le, L.P., Parwani, A.V., Weishaupt, L.L., Mahmood, F.: A multimodal generative ai copilot for human pathology. Nature 634(8033), 466–473 (2024) https://doi.org/10.1038/s41586-024-07618-3
[17] Xiang, J., Wang, X., Zhang, X., et al.: A vision-language foundation model for precision oncology. Nature 638, 769–778 (2025) https://doi.org/10.1038/s41586-024-08378-w
[18] Ding, T., Wagner, S.J., Song, A.H., et al.: A multimodal whole-slide foundation model for pathology. Nature Medicine 31, 3749–3761 (2025) https://doi.org/10.1038/s41591-025-03982-3
[19] Xu, Y., Wang, Y., Zhou, F., Ma, J., Jin, C., Yang, S., Li, J., Zhang, Z., Zhao, C., Zhou, H., Li, Z., Lin, H., Wang, X., Wang, J., Han, A., Chan, R.C.K., Liang, L., Zhang, X., Chen, H.: A multimodal knowledge-enhanced whole-slide pathology foundation model. Nature Communications 16(1) (2025) https://doi.org/10.1038/s41467-025-66220-x
[20] Tran, M., Schmidle, P., Guo, R.R., Wagner, S.J., Koch, V., Lupperger, V., Novotny, B., Murphree, D.H., Hardway, H.D., D'Amato, M., Lefkes, J., Geijs, D.J., Feuchtinger, A., Böhner, A., Kaczmarczyk, R., Biedermann, T., Amir, A.L., Mooyaart, A.L., Ciompi, F., Litjens, G., Wang, C., Comfere, N.I., Eyerich, K., Braun, S.A., Marr, C., Peng, T.: Generating dermatopathology reports from gigapixel whole slide images with histogpt. Nature Communications 16(1) (2025) https://doi.org/10.1038/s41467-025-60014-x
[21] Chen, K., Liu, M., Yan, F., Ma, L., Shi, X., Wang, L., Wang, X., Zhu, L., Wang, Z., Zhou, M., Zhang, S.: Cost-effective instruction learning for pathology vision and language analysis. Nature Computational Science 5(7), 524–533 (2025) https://doi.org/10.1038/s43588-025-00818-5
[22] Javed, S., Mahmood, A., Ganapathi, I.I., Dharejo, F.A., Werghi, N., Bennamoun, M.: CPLIP: Zero-shot learning for histopathology with comprehensive vision-language alignment. In: 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11450–11459. IEEE, Los Alamitos, CA, USA (2024). https://doi.org/10.1109/CVPR52733.2024.01088
[23] Shi, J., Li, C., Gong, T., Zheng, Y., Fu, H.: ViLa-MIL: Dual-scale vision-language multiple instance learning for whole slide image classification. In: 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11248–11258. IEEE, Los Alamitos, CA, USA (2024). https://doi.org/10.1109/CVPR52733.2024.01069
[24] Seyfioglu, M.S., Ikezogwo, W.O., Ghezloo, F., Krishna, R., Shapiro, L.: Quilt-LLaVA: Visual instruction tuning by extracting localized narratives from open-source histopathology videos. In: 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 13183–13192. IEEE, Los Alamitos, CA, USA (2024). https://doi.org/10.1109/CVPR52733.2024.01252
[25] Watawana, H., Ranasinghe, K., Mahmood, T., Naseer, M., Khan, S., Khan, F.S.: Hierarchical Text-to-Vision Self Supervised Alignment for Improved Histopathology Representation Learning, pp. 167–177. Springer, Cham, Switzerland (2024). https://doi.org/10.1007/978-3-031-72083-3_16
[26] Ma, J., Guo, Z., Zhou, F., Wang, Y., Xu, Y., Li, J., Yan, F., Cai, Y., Zhu, Z., Jin, C., Lin, Y., Jiang, X., Zhao, C., Li, D., Han, A., Li, Z., Chan, R.C.K., Wang, J., Fei, P., Cheng, K.-T., Zhang, S., Liang, L., Chen, H.: A generalizable pathology foundation model using a unified knowledge distillation pretraining framework. Nature Biomedical Engineering 10(3), 545–564 (2025) https://doi.org/10.1038/s41551-025-01488-4
[27] Vray, G., Tomar, D., Bozorgtabar, B., Thiran, J.-P.: Distill-soda: Distilling self-supervised vision transformer for source-free open-set domain adaptation in computational pathology. IEEE Transactions on Medical Imaging 43(5), 2021–2032 (2024) https://doi.org/10.1109/tmi.2024.3355645
[28] Le Vuong, T.T., Kwak, J.T.: Moma: Momentum contrastive learning with multi-head attention-based knowledge distillation for histopathology image analysis. Medical Image Analysis 101, 103421 (2025) https://doi.org/10.1016/j.media.2024.103421
[29] Zhou, X., Sun, L., He, D., et al.: Knowledge-enhanced pretraining for vision-language pathology foundation model on cancer diagnosis. Cancer Cell 44, 777–791 (2026) https://doi.org/10.1016/j.ccell.2026.01.019
[30] Zhang, J., Huang, J., Jin, S., Lu, S.: Vision-language models for vision tasks: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence 46(8), 5625–5644 (2024) https://doi.org/10.1109/tpami.2024.3369699
[31] Zhang, P., Wu, M.: Multi-label supervised contrastive learning. Proceedings of the AAAI Conference on Artificial Intelligence 38(15), 16786–16793 (2024) https://doi.org/10.1609/aaai.v38i15.29619
[32] Wang, H., Xiao, R., Li, Y., Feng, L., Niu, G., Chen, G., Zhao, J.: Pico+: Contrastive label disambiguation for robust partial label learning. IEEE Transactions on Pattern Analysis and Machine Intelligence 46(5), 3183–3198 (2024) https://doi.org/10.1109/tpami.2023.3342650
[33] He, Q., Ge, S., Zeng, S., Wang, Y., Ye, J., He, Y., Li, J., Wang, Z., Guan, T.: Global attention based gnn with bayesian collaborative learning for glomerular lesion recognition. Computers in Biology and Medicine 173, 108369 (2024) https://doi.org/10.1016/j.combiomed.2024.108369
[34] Li, J., He, Q., Liu, Y., Wang, Y., Guan, T., Ye, J., He, Y., Wang, Z.: Glomerular lesion recognition based on pathology images with annotation noise via noisy label learning. IEEE Access 11, 41325–41336 (2023) https://doi.org/10.1109/ACCESS.2023.3269792
[35] Jayapandian, C.P., Chen, Y., Janowczyk, A.R., Palmer, M.B., Cassol, C.A., Sekulic, M., Hodgin, J.B., Zee, J., Hewitt, S.M., O'Toole, J., et al.: Development and evaluation of deep learning-based segmentation of histologic structures in the kidney cortex with multiple histologic stains. Kidney international 99(1), 86–101 (2021)
[36] Yang, C.-K., Lee, C.-Y., Wang, H.-S., Huang, S.-C., Liang, P.-I., Chen, J.-S., Kuo, C.-F., Tu, K.-H., Yeh, C.-Y., Chen, T.-D.: Glomerular disease classification and lesion identification by machine learning.
Biomedical Journal 45(4), 675–685 (2022) https://doi.org/10.1016/j.bj.2021.08.011
[37] Srivastava, A., Palsson, R., Kaze, A.D., Chen, M.E., Palacios, P., Sabbisetti, V., Betensky, R.A., Steinman, T.I., Thadhani, R.I., McMahon, G.M., et al.: The prognostic value of histopathologic lesions in native kidney biopsy specimens: results from the boston kidney biopsy cohort study. Journal of the American Society of Nephrology: JASN 29(8), 2213 (2018)
[38] Hölscher, D.L., Bouteldja, N., Joodaki, M., Russo, M.L., Lan, Y.-C., Sadr, A.V., Cheng, M., Tesar, V., Stillfried, S.V., Klinkhammer, B.M., et al.: Next-generation morphometry for pathomics-data mining in histopathology. Nature communications 14(1), 470 (2023)
[39] Ma, J., Guo, Z., Zhou, F., et al.: A generalizable pathology foundation model using a unified knowledge distillation pretraining framework. Nature Biomedical Engineering 10, 545–564 (2026) https://doi.org/10.1038/s41551-025-01488-4
[40] He, Q., Zeng, S., Ge, S., Wang, Y., Ye, J., He, Y., Guan, T., Wang, Z., Li, J.: Identifying and matching 12-level multistained glomeruli via deep learning for diagnosis of glomerular diseases. International Journal of Imaging Systems and Technology 34(2), 23032 (2024)
[41] Bueno, G., Gonzalez-Lopez, L., Garcia-Rojo, M., Laurinavicius, A., Deniz, O.: Data for glomeruli characterization in histopathological images. Data in brief 29, 105314 (2020)
[42] Matsoukas, C., Tomic, T.T., Tonelius, P., Nuñez-Duran, E., Liang, L., Wernerson, A., Mölne, J., Menzies, R.I., Granqvist, A.B., Hansen, P.B., et al.: Streamlining the histopathologic workflow in diabetic kidney disease with artificial intelligence. Journal of the American Society of Nephrology: JASN 37(5), 974 (2025)
[43] Dosovitskiy, A.: An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929 (2020)
[44] Caron, M., Touvron, H., Misra, I., Jégou, H., Mairal, J., Bojanowski, P., Joulin, A.: Emerging properties in self-supervised vision transformers. In: 2021 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 9630–9640 (2021). IEEE
[45] Huynh, T., Kornblith, S., Walter, M.R., Maire, M., Khademi, M.: Boosting contrastive self-supervised learning with false negative cancellation. In: 2022 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 986–996 (2022). IEEE
[46] Gu, Y., Tinn, R., Cheng, H., Lucas, M., Usuyama, N., Liu, X., Naumann, T., Gao, J., Poon, H.: Domain-specific language model pretraining for biomedical natural language processing. ACM Transactions on Computing for Healthcare 3(1), 1–23 (2021) https://doi.org/10.1145/3458754. Published online 15 October 2021; issue dated January 2022
[47] Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., Krueger, G., Sutskever, I.: Learning transferable visual models from natural language supervision. In: Proceedings of the 38th International Conference on Machine Learning. Proceedings of Machine Learning Research, vol. 139, pp. 8748–8763. PMLR, Virtual Conference (2021). https://proceedings.mlr.press/v139/radford21a.html
[48] Hendrycks, D., Gimpel, K.: Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415 (2016)
[49] Huang, Z., Bianchi, F., Yuksekgonul, M., Montine, T.J., Zou, J.: A visual-language foundation model for pathology image analysis using medical twitter. Nature medicine 29(9), 2307–2316 (2023)
[50] Roberts, I.S.D., Cook, H.T., Troyanov, S., Alpers, C.E., Amore, A., Barratt, J., Berthoux, F., Bonsib, S., Bruijn, J.A., Cattran, D.C., Coppo, R., D'Agati, V., D'Amico, G., Emancipator, S., Emma, F., Feehally, J., Ferrario, F., Fervenza, F.C., Florquin, S., Fogo, A., Geddes, C.C., Groene, H.-J., Haas, M., Herzenberg, A.M., Hill, P.A., Hogg, R.J., Hsu, S.I., Jennette, J.C., Joh, K., Julian, B.A., Kawamura, T., Lai, F.M., Li, L.-S., Li, P.K.T., Liu, Z.-H., MacKinnon, B., Mezzano, S., Schena, F.P., Tomino, Y., Walker, P.D., Wang, H., Weening, J.J., Yoshikawa, N., Zhang, H.: The Oxford classification of IgA nephropathy: pathology definitions, correlations, and reproducibility. Kidney International 76(5), 546–556 (2009) https://doi.org/10.1038/ki.2009.168
[51] Haas, M., Seshan, S.V., Barisoni, L., Amann, K., Bajema, I.M., Becker, J.U., Joh, K., Ljubanovic, D., Roberts, I.S.D., Roelofs, J.J., Sethi, S., Zeng, C., Jennette, J.C.: Consensus definitions for glomerular lesions by light and electron microscopy: recommendations from a working group of the Renal Pathology Society. Kidney International 98(5), 1120–1134 (2020) https://doi.org/10.1016/j.kint.2020.08.006
[52] Bajema, I.M., Wilhelmus, S., Alpers, C.E., Bruijn, J.A., Colvin, R.B., Cook, H.T., D'Agati, V.D., Ferrario, F., Haas, M., Jennette, J.C., Joh, K., Nast, C.C., Noël, L.-H., Rijnink, E.C., Roberts, I.S.D., Seshan, S.V., Sethi, S., Fogo, A.B.: Revision of the International Society of Nephrology/Renal Pathology Society classification for lupus nephritis: clarification of definitions, and modified National Institutes of Health activity and chronicity indices. Kidney International 93(4), 789–796 (2018) https://doi.org/10.1016/j.kint.2017.11.023
[53] Deng, Y., Zhao, S., Miao, Y., Zhu, J., Li, J.: MedKA: A knowledge graph-augmented approach to improve factuality in medical large language models. Journal of Biomedical Informatics 168, 104871 (2025) https://doi.org/10.1016/j.jbi.2025.104871
[54] Hamza, A., Abdullah, Ahn, Y.H., Lee, S., Kim, S.T.: LLaVA needs more knowledge: Retrieval augmented natural language generation with knowledge graph for explaining thoracic pathologies. Proceedings of the AAAI Conference on Artificial Intelligence 39(3), 3311–3319 (2025) https://doi.org/10.1609/aaai.v39i3.32342
[55] Wei, X., Kurtz, C., Cloppet, F.: Relaxing binary constraints in contrastive vision-language medical representation learning. In: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 4462–4471 (2025)
[56] Lyu, G., Sun, B., Deng, X., Feng, S.: Addressing multi-label learning with partial labels: From sample selection to label selection. Proceedings of the AAAI Conference on Artificial Intelligence 39(18), 19251–19259 (2025) https://doi.org/10.1609/aaai.v39i18.34119
[57] Song, X., Salcianu, A., Song, Y., Dopson, D., Zhou, D.: Fast wordpiece tokenization. In: Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pp. 2089–2103 (2021)
[58] Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., Fei-Fei, L.: Imagenet: A large-scale hierarchical image database. In: 2009 IEEE Conference on Computer Vision and Pattern Recognition, pp. 248–255 (2009). Ieee
[59] Ilse, M., Tomczak, J., Welling, M.: Attention-based deep multiple instance learning. In: Proceedings of the 35th International Conference on Machine Learning. Proceedings of Machine Learning Research, vol. 80, pp. 2127–2136. PMLR, Stockholm, Sweden (2018). https://proceedings.mlr.press/v80/ilse18a.html
[60] Yu, J., Wang, Z., Vasudevan, V., Yeung, L., Seyedhosseini, M., Wu, Y.: Coca: Contrastive captioners are image-text foundation models. arXiv preprint arXiv:2205.01917 (2022)
[61] Qwen Team: Qwen2.5 Technical Report (2024). https://doi.org/10.48550/arXiv.2412.15115 . https://arxiv.org/abs/2412.15115
A Supplementary Methods
A.1 Cohort eligibility, slide digitization, and image quality control
All institutional cohorts were assembled at the Department of Pathology, Xijing Hospital, Air Force Medical University. Renal biopsy sections were stained with H&E, PAS, Masson's trichrome and PASM to provide complementary views of renal tissue morphology. H&E reveals tissue architecture and cellular changes; PAS highlights mesangial matrix and basement membranes; Masson's trichrome distinguishes collagen deposition and fibrosis; and PASM delineates glomerular basement membranes, facilitating assessment of capillary-wall alterations. Together, these stains support comprehensive evaluation of glomerular and tubulointerstitial lesions. Slides were digitized with an SQS-600P slide imaging system of Shenzhen Shengqiang Technology Co., Ltd., China. For glomerulus-level analysis, WSIs were read with OpenS-dpc (https://github.com/WonderLandxD/opensdpc) and downsampled to an effective magnification of 5× (1.68 µm/pixel). A pretrained glomerular detector localized candidate glomeruli, and the corresponding regions were extracted at 20× (0.42 µm/pixel). This entity-level extraction kept the complete detected glomerulus as the unit used for representation learning and downstream analysis. Samples assigned to validation or test sets were excluded from the corresponding training procedures, and all partitions were constructed at the patient or WSI level specified below to avoid image-level leakage.
GloAtlas included 870 renal biopsy cases collected from 2019 to 2021. Each case contributed six glass slides containing 12 serial tissue sections, yielding 5,220 digitized slides. The cohort encompassed diabetic nephropathy, focal segmental glomerulosclerosis, antineutrophil cytoplasmic antibody-associated glomerulonephritis, membranous nephropathy, obesity-related glomerulopathy, anti-glomerular basement membrane disease, lupus nephritis, endocapillary proliferative glomerulonephritis, membranoproliferative glomerulonephritis, tubulointerstitial nephritis, crescentic glomerulonephritis, IgA nephropathy, and IgA vasculitis nephritis. Glomeruli were localized in whole-slide images using a pretrained glomerular detector and extracted at 20× magnification for lesion annotation. The annotation scheme comprised 27 stain-lesion combinations: 11 for PAS (MH, PAS(+), PAS(-), Crum, ADH, SS, MN, MP, EP, Cre, and GS), six for Masson's trichrome (MH, ADH, SS, SFN, Cre, and GS), and ten for PASM (MH, PAS(-), ADH, SS, SFN, MN, MP, EP, Cre, and GS). Where applicable, annotations additionally distinguished mesangial hypercellularity severity, segmental versus global involvement of membranoproliferative and endocapillary lesions, and crescent subtypes. The morphological definitions summarized in Supplementary Table S12 reference the Renal Pathology Society consensus, the Oxford classification, and the revised ISN/RPS definitions for crescent composition [50–52]. Yanxia Wang and Xiaoqin Wang independently annotated glomerular lesions using the Kidney Labeling Tool according to standardized diagnostic criteria. Jing Li, a senior renal pathologist, reviewed disagreements and established the final adjudicated reference labels.
GloMillion included 14,049 renal biopsy WSIs collected from 2022 to 2023 and more than one million detected glomeruli. The slides were organized chronologically and did not carry detailed disease-subtype annotations. GloMillion supplied the unlabeled morphology corpus for visual pretraining and the candidate images for semantic self-distillation. GloMillion and GloAtlas were temporally separated.
GloPro included 695 PAS-stained renal biopsy slides and detected 13,749 glomerular images acquired prospectively in the routine diagnostic workflow. Glomeruli were detected and extracted with the same procedure used for GloAtlas. Yanxia Wang and Xiaoqin Wang independently annotated the images, and Jing Li adjudicated disagreements. The cohort was not used to construct semantic anchors and was reserved for prospective assessment of lesion recognition.
RenalXJ included 744 cases, each represented by 12 serial sections: four H&E, four PAS, two Masson, and two PASM sections. Its 7,464 WSIs were digitized at a reported resolution of 0.105µm/pixel. Clinical and pathological reports were linked at the case level. Pathological diagnosis was restricted to IgA nephropathy and membranous nephropathy for binary disease classification; renal tissue injury was categorized as mild, moderate, or severe.
A.2 Knowledge graph and structured-text construction
Recent studies have explored medical knowledge graphs as structured sources of supervision for language-based interpretation. MedKA transformed graph-encoded medical knowledge into a question-answer corpus for language-model training [53], while KG-LLaVA retrieved domain-specific graph knowledge to support natural-language explanations of medical images [54]. These approaches motivate the conversion of organized medical concepts into explicit textual supervision. In GloSAGE, KEYS performs this conversion at the glomerular lesion level, combining standardized concept names, definitions, and synonyms into structured descriptions conditioned on teacher-derived lesion profiles.
The nephropathology knowledge graph was represented as , where denotes the nodes, the relation edges, and the node attributes. It was stored as node, edge, and metadata records and contained 24 nodes and 60 edges. Each node included a unique identifier, names, anatomical compartment, synonyms, definition, and hierarchy path. The root, KG_Renal_ROOT, represented glomerular lesions; descendants represented lesion groups and selected subtypes, including mesangial grades and cellular, fibrocellular, and fibrous crescents. A fixed profile-to-node map linked the 12 lesion groups to their concept records. For example, membranous_nephropathy mapped to KG_Renal_P11.
Four graph relations were retained. is_a encoded the annotation hierarchy. co_occurs represented statistical lesion associations screened using lift, multiplicity-adjusted significance, support, and sample size. progresses_to stored candidate directional relations; directions lacking longitudinal support were marked as unverifiable and were not interpreted causally. Mutually exclusive edges recorded the subtype of the exclusion rule, including structural impossibility, mutually exclusive trait, and suspect. Suspect relations were kept distinct from hard structural exclusions. The graph topology supported pair construction, whereas node names, definitions, and synonyms supplied the text content; relation edges were not automatically verbalized as image findings.
For each positive group, KEYS retrieved its English name, stored definition, and first three synonyms. Let map lesion concept to its graph node, and let , , and denote the English name, definition, and first three synonyms of node , respectively. For the positive lesion profile defined in Eq. 2, structured text was constructed as
Here, Join concatenates records in the fixed vocabulary order, and inserts the resulting fields into the following template:
Glomerular lesion profile with positive findings: <lesion names>. Definitions: <definitions>. Synonyms: <synonyms>.
For an empty profile, was the exact template:
Glomerular lesion profile. No positive lesion groups were detected among the measured renal glomerular findings. This patch is negative for the assessed lesion set.
This sentence refers only to the assessed coordinates and does not label the glomerulus as globally normal. Because subthreshold teacher probabilities do not establish verified absence, the empty-profile wording should be understood as a description of the recorded profile rather than independent confirmation of biological negativity.
As an example, a profile containing mesangial lesion and endocapillary proliferation was rendered as the two English concept names followed by their stored definitions and the three stored synonyms for each concept. The same structured text bank was used to construct the image-text targets and the language-model reference answers.
A.3 Evidence-guided negative construction
Negative-pair construction requires particular care when medical images share pathological findings or have partially observed lesion labels. Recent work has addressed false negatives in medical vision-language learning using graph-informed semantic targets [55], while partial-label learning has highlighted the need to distinguish unannotated positives from genuine negatives [56]. Motivated by these issues, EDGE certifies candidate negative pairs against the available lesion evidence, excluding assignments that are unsupported by observation or contradicted by recorded positive findings.
For image , EDGE represented each lesion coordinate as recorded positive, assessed negative, or unexamined. Let denote the set of assessed coordinates and the set of recorded positive coordinates. A candidate negative was associated with a non-empty evidence set containing the coordinates on which its negative assignment depended. Its admissibility was defined as
where denotes the indicator function. Two failure modes were distinguished. An unsupported negative used at least one coordinate absent from ; a contradicted negative used a coordinate already positive in . The unexamined check was applied first so that the two diagnostic categories remained disjoint.
Pair-level elimination evaluated each ordered image-description candidate separately. Profile-level elimination evaluated the description profile against the same observation rule and removed every pair generated from a profile when certification failed. Sequential application was monotonic: a pair removed by the first rule could not be reintroduced by the second. Unknown coordinates supported neither disagreement nor overlap. Removed pairs contributed neither attraction nor repulsion and were never relabeled as positives. Structural reachability and mutually exclusive relations were computed at the profile level; suspect-exclusive relations were excluded from the default hard-exclusion matrix. These rules also applied to empty and partially observed profiles without treating missing values as negatives.
A.4 Network architecture and optimization
The visual branch used the frozen 768-dimensional GloPath ViT-B feature [10, 43]. Its projection head was a 768-to-1,024 linear layer, GELU activation [48], and a 1,024-to-512 linear layer. The text branch used PubmedBERT[46]; text was tokenized with the associated WordPiece tokenizer [57], truncated to 64 tokens, and mapped through a projection head with the same 1,024-dimensional hidden and 512-dimensional output configuration. Image and text outputs were normalized. The visual encoder remained frozen, and semantic alignment optimized the projection heads.
Contrastive pretraining which adopt CLIP [47] ran for 10 epochs with learning rate , weight decay , and temperature 0.07. Each batch sampled 16 semantic groups and four images per group, giving 64 images. The symmetric image-to-text and text-to-image loss used the same EDGE-derived comparison mask, transposed for the reverse direction. A masked candidate was assigned no probability mass in the corresponding softmax and therefore produced zero direct pairwise gradient. When every off-diagonal candidate was retained, the objective reduced to the standard CLIP loss.
For downstream lesion recognition, grading, and recognition ablations, images were resized to pixels and normalized by ImageNet channel statistics [58]. Augmentation comprised horizontal and vertical flips, rotation, shift-scale-rotation, and contrast adjustment. Adam optimization used learning rate , weight decay , batch size eight, and at most 50 epochs. Validation ROC-AUC selected checkpoints. The standard GloSAGE representation was the 1,024-dimensional activation after the first visual-projection linear layer and GELU; GloSAGE-P used the complete 512-dimensional projection output.
For case-level tasks, the ABMIL [59] feature layer had width 512, the attention network had width 128, and dropout was 0.1. The model processed one case bag per optimization step and was trained with Adam for 30 epochs using learning rate and weight decay . 3-fold validation used seed 2024; 20% of each fold's training portion was reserved for validation. Two instance-level representations were evaluated separately. For the deep-feature representation, each preprocessed glomerular image was passed through the corresponding frozen foundation model to extract its visual embedding; GloSAGE used the STL output. For the lesion-based representation, each glomerulus was represented by a 15-dimensional vector comprising a three-dimensional one-hot stain indicator (PAS, Masson, or PASM) and 12 lesion probabilities predicted by the corresponding foundation-model-based lesion classifiers. The lesion coordinates followed the fixed order MH, PAS(+), PAS(-), Crum, ADH, SS, SFN, MN, MP, EP, Cre, and GS. Glomerular vectors from the same biopsy case formed a bag, which was supplied to ABMIL for case-level prediction. Attention weights were used only to visualize representative glomeruli and were not treated as independently validated localization labels.
A.5 Evaluation models
The comparison included GloSAGE, its source visual model GloPath, UNI, CONCH, PLIP, and KEEP. Together, these models represented glomerulus-specific visual pretraining, general-purpose pathology visual pretraining, and pathology vision-language pretraining. Parameter counts below indicate approximate encoder sizes rather than task-specific trainable parameters.
GloPath [10] used a DINO-pretrained ViT-B/16 visual backbone, with approximately 86 million parameters, trained on 1,017,879 glomerular images extracted from 14,049 renal biopsy WSIs. GloSAGE retained this visual backbone and used reliable teacher-derived lesion profiles from GloMillion to construct knowledge-structured text supervision. Its text pathway used PubMedBERT, a BERT-base encoder with approximately 110 million parameters. Semantic alignment trained the image and text projection heads while keeping both encoders frozen.
UNI [1] served as a general-purpose image-only pathology baseline. It used a ViT-L/16 backbone with approximately 300 million parameters and was pretrained using DINOv2 on Mass-100K, comprising approximately 100 million tissue patches from more than 100,000 WSIs across 20 major tissue types. UNI was included in supervised and MIL evaluations but excluded from cross-modal semantic experiments because it does not provide a pretrained joint image-text embedding space.
CONCH [15] used a CoCa-based [60] architecture trained with contrastive and captioning objectives on approximately 1.17 million human histopathology image-caption pairs. The released model combined a ViT-B/16 visual encoder (approximately 90 million parameters) with a 12-layer, 768-dimensional text encoder (approximately 110 million parameters). We used the conch_ViT-B-16 architecture and its contrastive projection for semantic matching.
PLIP [49] was obtained by adapting a pretrained CLIP model to OpenPath, a dataset containing 208,414 pathology image-text pairs collected from public online sources, including medical Twitter. Its released architecture comprised a ViT-B/32 visual encoder with approximately 88 million parameters and a 12-layer, 512-dimensional text Transformer with approximately 63 million parameters. We used the released CLIP processor and image and text projections.
KEEP [29] provided a knowledge-enhanced vision-language comparator. It used a UNI-initialized ViT-L/16 visual encoder with approximately 300 million parameters and a PubMedBERT-based text encoder with approximately 110 million parameters. Its disease knowledge graph contained 11,454 disease entities and 139,143 attributes, and guided the organization of image-text data from OpenPath and Quilt-1M into approximately 143,000 semantic groups. The text encoder underwent disease-knowledge pretraining before image-text alignment. We used the released image transformation and text tokenizer.
Semantic experiments used each multimodal model's released image and text pathways with model-specific preprocessing. For GloSAGE, semantic matching used the complete 512-dimensional image and text projection heads, whereas supervised downstream tasks used STL. Visual representations were evaluated under the corresponding supervised and case-level MIL protocols described below.
A.6 Semantic evaluation protocols
Semantic evaluation examined concept recognition, bidirectional retrieval, discrimination between related concepts, and sensitivity to targeted textual changes. Following the joint-embedding evaluation paradigm used in pathology vision-language models [15], image and text representations were normalized before matching. For image and description , the matching score was defined as
where and denote the model-specific image and text embedding pathways.
Zero-shot lesion recognition.
Every image included in the evaluation was compared with the stain-specific lesion descriptions using Eq. 11. Each lesion received an independent similarity score, allowing coexisting findings to be evaluated without imposing mutually exclusive predictions. No additional classifier or decision threshold was fitted. Lesion-wise ROC-AUC was computed from the binary reference labels, and stain-level performance was the unweighted mean over the standard recognition panel.
Bidirectional image-text retrieval.
Image-to-text retrieval ranked candidate semantic-group descriptions for each image. Text-to-image retrieval ranked images for each description, with every image sharing the query's semantic-group identifier counted as a valid match. Recall at ranks 1, 5, and 10 was computed in each direction, with a query counted as successful when at least one valid match appeared among the top- candidates. Zero-shot recognition and retrieval used the stain-specific manifests and their available training, validation, and test records. These analyses were classifier-free evaluations of the semantic space rather than estimates from an independent held-out cohort.
Hard-negative discrimination.
Each lesion-positive image was paired with its matching description and five related but incorrect descriptions. Top-1 accuracy was the proportion of images for which the matching description ranked first by cosine similarity; chance performance was 1/6. The hard-negative panels also contained explicitly labelled stress-test concepts beyond the standard 27-task recognition panel, as identified in the corresponding Supplementary Tables.
Concept intervention.
The image was held fixed while the original lesion-bearing description was replaced with a competing concept description. The intervention effect for image x was defined as
A positive value indicated higher similarity to the original description than to the intervened description. Mean effect size was calculated on images positive for the original lesion. Intervention-discrimination ROC-AUC assessed whether distinguished lesion-positive from lesion-negative images. It therefore quantified discrimination using the similarity-change score, rather than a difference between two diagnostic ROC-AUC values. Concept intervention used the test partition, and lesion- and stain-level summaries averaged only valid interventions.
A.7 Ablation protocols
Component ablations examined the contributions of evidence-guided negative construction and knowledge-structured text synthesis by changing only the semantic-alignment pretraining configuration. GloSAGE w/o EDGE disabled EDGE while retaining KEYS; GloSAGE w/o KEYS replaced knowledge-structured text while retaining EDGE; and GloSAGE w/o EDGE and KEYS removed both components. Each configuration loaded its own pretrained projection checkpoint and was evaluated using the same STL downstream interface, with three training repetitions per lesion-recognition task.
The architectural ablation compared STL with the complete visual projection head, termed GloSAGE-P. Both configurations loaded the same GloSAGE projection weights. STL supplied the output of the first linear layer followed by GELU activation to the downstream classifier, whereas GloSAGE-P supplied the complete 512-dimensional projection output. The downstream preprocessing and optimization settings were otherwise unchanged.
A.8 Language-model extension protocols
We explored image-conditioned generation of glomerular morphology and lesion descriptions by connecting each visual encoder to Qwen2.5-0.5B-Instruct [61] through a trainable visual-prefix adapter. The fixed prompt was “Describe the renal glomerular morphology and identified lesions in this image. Answer:”. The corresponding knowledge-graph-derived structured description served as the reference answer. This fixed-prompt protocol evaluated descriptive generation rather than unrestricted question answering.
Visual-prefix adaptation.
For image , the visual encoder produced a feature vector . The adapter applied a linear mapping, GELU activation, and layer normalization, then reshaped the output into eight visual-prefix embeddings:
where is the language-model embedding dimension and denotes the adapter parameters. The visual embeddings were prepended to the prompt-token embeddings, allowing the language model to generate the answer autoregressively. Both the visual encoder and language model remained frozen; only the adapter was optimized.
Training and decoding.
Training minimized autoregressive cross-entropy over answer tokens:
where denotes the prompt, the -th answer token, the set of non-padding answer positions, and the frozen language-model parameters. Visual-prefix, prompt, and padding positions were excluded from the loss.
The predefined manifest training, validation, and test assignments were preserved without reshuffling. AdamW optimization ran for 10 epochs with a learning rate of , weight decay of 0.01, batch size of eight, and seed 3407. Prompt-answer sequences were truncated to 192 tokens. The checkpoint with the lowest validation loss was selected for testing. Test answers were generated without access to the reference answer, using deterministic decoding with sampling disabled and a maximum of 128 new tokens.
Generation metrics.
Generated text was lowercase and tokenized into word tokens for evaluation. ROUGE-1 and ROUGE-2 used reference-normalized unigram and bigram overlap, respectively, and ROUGE-L used reference-normalized longest common subsequence length. All three metrics were reported as recall-based scores. These measures quantified overlap with reference descriptions rather than independently established clinical correctness.
Exploratory comparison with GPT-6-Astra.
GPT-6-Astra was included as a general-purpose multimodal language-model comparator for qualitative inspection of selected examples. For each example, a single glomerular image was submitted in a fresh conversation together with the fixed question: "Describe the renal glomerular morphology and identified lesions in this image." No preceding conversational context, additional task-specific instructions, lesion labels, knowledge-graph content, or reference answers were supplied.
The same image and descriptive question were used for the GloSAGE-based language-model extension. Its inference interface appended the standard "Answer:" delimiter used during training. Responses were inspected alongside the reference lesion information, with attention to agreement on lesion identity, coverage of coexisting findings, and unsupported statements. The comparison was restricted to selected examples and did not involve aggregate scoring, statistical testing, or a systematic assessment of equivalence between the models.
A.9 Quantification and statistical analysis
The lesion-related tasks used ROC-AUC, and case-level injury grading used macro-averaged one-versus-rest ROC-AUC. Accuracy, macro-F1, and class-frequency-weighted F1 were reported where applicable. Repeated runs were summarized by their arithmetic mean and sample standard deviation. For comparisons over the same lesion tasks, models constituted related samples. An omnibus comparison among more than two models used the Friedman test. Planned pairwise comparisons used two-sided Wilcoxon signed-rank tests on task-wise metric differences. Family-wise multiplicity was controlled by the Holm step-down procedure, and adjusted p values are reported where specified. The significance threshold was two-sided . Reported 95% confidence intervals for mean task-wise gains were obtained by nonparametric resampling of the matched task differences and recomputing their mean. No independence was assumed among images within a task for these task-level comparisons. Missing or undefined task metrics were excluded pairwise rather than imputed, and the number of matched tasks was retained with each test.
A.10 Hardware and software
Evaluation experiments were performed on a workstation running Ubuntu 20.04.6 LTS, equipped with an AMD EPYC 7551P 32-core processor and four NVIDIA GeForce RTX 3090 GPUs, each with 24 GB of memory. The environment used Python 3.8.20, PyTorch 2.4.1, torchvision 0.19.1, and CUDA 12.1. Model implementation and pretrained-model integration used timm 1.0.9 (https://github.com/huggingface/pytorch-image-models) and Transformers 4.46.3 (https://github.com/huggingface/transformers). Image preprocessing and augmentation used OpenCV 4.8.0 and Albumentations 1.2.0, whereas numerical analysis and diagnostic metric computation used NumPy 1.24.4 and scikit-learn 1.3.2. Reference-normalized ROUGE-1, ROUGE-2, and ROUGE-L were implemented in the evaluation code.
Comparator models were implemented using their official repositories: UNI (https://github.com/mahmoodlab/UNI), CONCH (https://github.com/mahmoodlab/CONCH), PLIP (https://github.com/PathologyFoundation/plip), and KEEP (https://github.com/MAGIC-AI4Med/KEEP). The language-model extension used the released Qwen/Qwen2.5-0.5B-Instruct checkpoint (https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct). The case-level implementation followed the public MIL_BASELINE framework (https://github.com/lingxitong/MIL_BASELINE), using attention-based multiple-instance learning [59].
B Supplementary Figures

Fig. S1 Glomerular lesion knowledge graph and structured-text construction. The selected hierarchy and node attributes illustrate how KEYS retrieves concept names, definitions and synonyms to assemble pathological descriptions. Representative examples show global sclerosis in PAS, loop necrosis with a cellular crescent in Masson, and no positive findings in PASM. Crescent subtypes are consolidated into a single lesion group during profile construction. The empty-profile description is restricted to the assessed lesion set.

Fig. S2 Comparison of models on zero-shot tasks on three stains.

Fig. S3 Lesion-wise concept-intervention effect sizes: mean change in image-text similarity on images positive for the original lesion, after replacing its description with a competing concept.
Performance Rankings of Models across Lesion Recognition Tasks (Bubble Size Indicates Rank)

Fig. S4 Performance rankings of models across 27 lesion recognition tasks.
C Supplementary Tables
Table S1 ROC-AUC of zero-shot task on lesion recognition (PAS)
| Lesion | GloSAGE | GloPath | KEEP | PLIP | CONCH |
|---|---|---|---|---|---|
| PAS-MH | 0.703 | 0.432 | 0.584 | 0.421 | 0.439 |
| PAS-PAS(+) | 0.828 | 0.356 | 0.458 | 0.425 | 0.443 |
| PAS-PAS(-) | 0.816 | 0.479 | 0.478 | 0.575 | 0.643 |
| PAS-Crum | 0.567 | 0.674 | 0.525 | 0.556 | 0.571 |
| PAS-ADH | 0.513 | 0.389 | 0.486 | 0.455 | 0.330 |
| PAS-SS | 0.749 | 0.491 | 0.537 | 0.508 | 0.559 |
| PAS-MN | 0.689 | 0.569 | 0.489 | 0.464 | 0.592 |
| PAS-MP | 0.643 | 0.629 | 0.571 | 0.422 | 0.717 |
| PAS-EP | 0.669 | 0.694 | 0.503 | 0.416 | 0.859 |
| PAS-Cre | 0.886 | 0.687 | 0.479 | 0.347 | 0.830 |
| PAS-GS | 0.787 | 0.582 | 0.294 | 0.614 | 0.925 |
Table S2 ROC-AUC of zero-shot task on lesion recognition (Masson)
| Lesion | GloSAGE | GloPath | KEEP | PLIP | CONCH |
|---|---|---|---|---|---|
| MT-MH | 0.778 | 0.384 | 0.440 | 0.502 | 0.416 |
| MT-ADH | 0.470 | 0.513 | 0.585 | 0.623 | 0.390 |
| MT-SS | 0.633 | 0.570 | 0.693 | 0.417 | 0.469 |
| MT-SFN | 0.837 | 0.572 | 0.670 | 0.545 | 0.647 |
| MT-Cre | 0.821 | 0.667 | 0.643 | 0.583 | 0.823 |
| MT-GS | 0.596 | 0.745 | 0.290 | 0.232 | 0.865 |
Table S3 ROC-AUC of zero-shot task on lesion recognition (PASM)
| Lesion | GloSAGE | GloPath | KEEP | PLIP | CONCH |
|---|---|---|---|---|---|
| PASM-MH | 0.776 | 0.498 | 0.418 | 0.513 | 0.408 |
| PASM-PAS(-) | 0.837 | 0.638 | 0.463 | 0.543 | 0.771 |
| PASM-ADH | 0.654 | 0.454 | 0.473 | 0.525 | 0.378 |
| PASM-SS | 0.768 | 0.484 | 0.395 | 0.493 | 0.392 |
| PASM-SFN | 0.827 | 0.715 | 0.634 | 0.509 | 0.558 |
| PASM-MN | 0.670 | 0.483 | 0.603 | 0.571 | 0.504 |
| PASM-MP | 0.719 | 0.608 | 0.552 | 0.522 | 0.574 |
| PASM-EP | 0.803 | 0.658 | 0.582 | 0.486 | 0.828 |
| PASM-Cre | 0.915 | 0.562 | 0.500 | 0.626 | 0.859 |
| PASM-GS | 0.626 | 0.585 | 0.433 | 0.323 | 0.952 |
Table S4 Retrieval performance on PAS-stained images
| Model | Image-to-Text | Text-to-Image | ||||
|---|---|---|---|---|---|---|
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | |
| CONCH | 0.0052 | 0.0411 | 0.1021 | 0.0108 | 0.0215 | 0.0323 |
| GloSAGE | 0.1694 | 0.2723 | 0.3292 | 0.0215 | 0.0645 | 0.0753 |
| KEEP | 0.0109 | 0.0415 | 0.0863 | 0.0108 | 0.0323 | 0.0538 |
| PLIP | 0.0081 | 0.1210 | 0.2126 | 0.0108 | 0.0430 | 0.0753 |
Table S5 Retrieval performance on Masson-stained images
| Model | Image-to-Text | Text-to-Image | ||||
|---|---|---|---|---|---|---|
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | |
| CONCH | 0.0033 | 0.0658 | 0.2242 | 0.0500 | 0.0500 | 0.2000 |
| GloSAGE | 0.2867 | 0.4826 | 0.6007 | 0.1000 | 0.1500 | 0.3000 |
| KEEP | 0.0076 | 0.0397 | 0.1094 | 0.0500 | 0.1500 | 0.2000 |
| PLIP | 0.2671 | 0.7193 | 0.8069 | 0.1000 | 0.1500 | 0.2000 |
Table S6 Retrieval performance on PASM-stained images
| Model | Image-to-Text | Text-to-Image | ||||
|---|---|---|---|---|---|---|
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | |
| CONCH | 0.0062 | 0.0355 | 0.0719 | 0.0392 | 0.1176 | 0.1373 |
| GloSAGE | 0.1083 | 0.2233 | 0.2655 | 0.0588 | 0.0784 | 0.1569 |
| KEEP | 0.0110 | 0.0652 | 0.1112 | 0.0000 | 0.0392 | 0.0784 |
| PLIP | 0.0585 | 0.2530 | 0.4528 | 0.0196 | 0.0588 | 0.0784 |
Table S7 Mean hard-negative description-discrimination accuracy by staining. Each lesion-positive image is matched to one correct and five closely related incorrect descriptions; chance top-1 accuracy is 0.1667. Means assign equal weight to each evaluated lesion (12 PAS, 8 Masson and 11 PASM), including additional stress-test lesions beyond the 27 canonical zero-shot recognition tasks. GloPath is omitted here to match the models displayed in Fig. 2C.
| Model | PAS | Masson | PASM |
|---|---|---|---|
| GloSAGE | 0.283 | 0.201 | 0.179 |
| PLIP | 0.106 | 0.139 | 0.116 |
| CONCH | 0.176 | 0.083 | 0.179 |
| KEEP | 0.226 | 0.120 | 0.188 |
Table S8 Lesion-wise hard-negative top-1 accuracy for PAS. The final row is the unweighted mean across all 12 evaluated lesion targets; PAS-SFN is an additional stress-test target beyond the standard 11-lesion recognition panel.
| Lesion | GloSAGE | PLIP | CONCH | KEEP |
|---|---|---|---|---|
| PAS-MH | 0.002 | 0.008 | 0.003 | 0.021 |
| PAS-PAS(+) | 0.244 | 0.000 | 0.962 | 0.000 |
| PAS-PAS(-) | 0.827 | 0.013 | 0.000 | 0.680 |
| PAS-Crum | 0.161 | 0.000 | 0.000 | 0.032 |
| PAS-ADH | 0.014 | 0.000 | 0.000 | 0.000 |
| PAS-SS | 0.092 | 0.618 | 0.066 | 0.895 |
| PAS-MN | 0.782 | 0.059 | 0.000 | 0.000 |
| PAS-MP | 0.053 | 0.000 | 0.011 | 0.968 |
| PAS-EP | 0.406 | 0.000 | 0.319 | 0.000 |
| PAS-Cre | 0.000 | 0.000 | 0.691 | 0.091 |
| PAS-GS | 0.635 | 0.570 | 0.023 | 0.008 |
| PAS-SFN | 0.179 | 0.000 | 0.036 | 0.018 |
| Mean | 0.283 | 0.106 | 0.176 | 0.226 |
Table S9 Lesion-wise hard-negative top-1 accuracy for Masson. The final row is the unweighted mean across all eight evaluated lesion targets; MT-Crum and MT-MN are additional stress-test targets beyond the standard six-lesion recognition panel.
| Lesion | GloSAGE | PLIP | CONCH | KEEP |
|---|---|---|---|---|
| MT-MH | 0.333 | 0.004 | 0.046 | 0.007 |
| MT-ADH | 0.051 | 0.000 | 0.000 | 0.000 |
| MT-SS | 0.233 | 0.000 | 0.067 | 0.900 |
| MT-SFN | 0.030 | 0.104 | 0.060 | 0.000 |
| MT-Cre | 0.184 | 0.000 | 0.000 | 0.000 |
| MT-GS | 0.375 | 1.000 | 0.492 | 0.055 |
| MT-Crum | 0.000 | 0.000 | 0.000 | 0.000 |
| MT-MN | 0.400 | 0.000 | 0.000 | 0.000 |
| Mean | 0.201 | 0.139 | 0.083 | 0.120 |
Table S10 Lesion-wise hard-negative top-1 accuracy for PASM. The final row is the unweighted mean across all 11 evaluated lesion targets; PASM-Crum is an additional stress-test target beyond the standard ten-lesion recognition panel.
| Lesion | GloSAGE | PLIP | CONCH | KEEP |
|---|---|---|---|---|
| PASM-MH | 0.030 | 0.000 | 0.000 | 0.017 |
| PASM-PAS(-) | 0.384 | 0.000 | 0.233 | 0.178 |
| PASM-ADH | 0.000 | 0.000 | 0.000 | 0.000 |
| PASM-SS | 0.029 | 0.000 | 0.088 | 0.794 |
| PASM-SFN | 0.263 | 0.289 | 0.237 | 0.184 |
| PASM-MN | 0.343 | 0.051 | 0.000 | 0.056 |
| PASM-MP | 0.205 | 0.000 | 0.455 | 0.598 |
| PASM-EP | 0.406 | 0.000 | 0.359 | 0.000 |
| PASM-Cre | 0.026 | 0.105 | 0.158 | 0.237 |
| PASM-GS | 0.238 | 0.829 | 0.439 | 0.000 |
| PASM-Crum | 0.040 | 0.000 | 0.000 | 0.000 |
| Mean | 0.179 | 0.116 | 0.179 | 0.188 |
Table S11 Intervention-discrimination ROC-AUC under PAS staining. The score is the change in image-text similarity between the original and intervened descriptions; ROC-AUC evaluates its separation of lesion-positive versus lesion-negative images. It is not a difference between two diagnostic ROC-AUC values. Each lesion entry averages its valid interventions; Overall averages valid interventions across lesions.
| Model | MH | PAS(+) | PAS(-) | Crum | ADH | SS | MN | MP | EP | Cre | GS | Overall |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GloSAGE | 0.523 | 0.664 | 0.884 | 0.551 | 0.441 | 0.696 | 0.721 | 0.660 | 0.564 | 0.662 | 0.710 | 0.651 |
| PLIP | 0.502 | 0.482 | 0.361 | 0.515 | 0.501 | 0.607 | 0.513 | 0.537 | 0.409 | 0.428 | 0.577 | 0.492 |
| CONCH | 0.455 | 0.495 | 0.529 | 0.477 | 0.360 | 0.343 | 0.560 | 0.581 | 0.645 | 0.808 | 0.334 | 0.509 |
| KEEP | 0.589 | 0.383 | 0.517 | 0.583 | 0.396 | 0.512 | 0.554 | 0.682 | 0.310 | 0.604 | 0.708 | 0.529 |
Table S12 Glomerular lesion categories, morphological criteria, and grading categories in GloAtlas.
| No. | Lesion | Abbrev. | Morphological criteria | Grading categories | Stains |
|---|---|---|---|---|---|
| 1-3 | Mesangial hypercellularity | MH | Increased mesangial cellularity, assessed away from the vascular pole. Mild, moderate, and severe involvement correspond to 4–5, 6–7, and ≥ 8 mesangial cells per mesangial area, respectively. | Absent; mild; moderate; severe | PAS, Masson, PASM |
| 5 | PAS-positive glomerular finding | PAS(+) | PAS-positive glomerular lesions show magenta-staining matrix expansion or hyaline material. | Not applicable | PAS |
| 6 | PAS-negative glomerular finding | PAS(-) | PAS-negative lesions show pale areas of tissue injury or abnormal material accumulation. | Not applicable | PAS, PASM |
| 7 | Ischemic-type glomerular capillary collapse | Crum | Wrinkled and folded glomerular basement membranes with narrowing or closure of capillary lumina, without overlying podocyte hyperplasia. | Not applicable | PAS |
| 8 | Glomerular tuft adhesion to Bowman's capsule | ADH | Localized continuity between the glomerular tuft and Bowman's capsule, distinguished from an associated crescent or sclerotic segment. | Not applicable | PAS, Masson, PASM |
| 9 | Segmental glomerulosclerosis | SS | Matrix-associated obliteration of capillary lumina involving part of the tuft, with preservation of a nonsclerotic portion. | Not applicable | PAS, Masson, PASM |
| 10 | Segmental fibrinoid necrosis | SFN | Segmental tuft destruction with fibrin deposition and basement-membrane disruption, potentially accompanied by nuclear debris. | Not applicable | Masson, PASM |
| 11 | Membranous-pattern glomerular lesion | MN | Capillary-wall thickening with basement-membrane spikes or intramembranous holes, particularly evident on silver staining; these features may be inconspicuous in early lesions. | Not applicable | PAS, PASM |
| 12-13 | Membranoproliferative pattern lesion | MP | Proliferative changes accompanied by capillary-wall remodeling, including basement-membrane duplication and mesangial interposition. Segmental and global categories describe the extent of tuft involvement. | Segmental; global | PAS, PASM |
| 14-15 | Endocapillary hypercellularity | EP | Increased intracapillary cells causing narrowing or occlusion of capillary lumina. Segmental and global categories describe the extent of tuft involvement. | Segmental; global | PAS, PASM |
| 16-18 | Glomerular crescent | Cre | An extracapillary lesion in Bowman's space. Cellular crescents contain > 75% cells and fibrin; fibrocellular crescents contain 25-75% cells and fibrin; fibrous crescents contain > 75% fibrous matrix. | Cellular; fibrocellular; fibrous | PAS, Masson, PASM |
| 19 | Global glomerulosclerosis | GS | Sclerotic matrix replacement and obliteration of capillary lumina involving the entire glomerular tuft. | Not applicable | PAS, Masson, PASM |
Table S13 Intervention-discrimination ROC-AUC under Masson staining. See Supplementary Table S11 for the score definition and aggregation.
| Model | MH | ADH | SS | SFN | Cre | GS | Overall |
|---|---|---|---|---|---|---|---|
| GloSAGE | 0.518 | 0.488 | 0.654 | 0.529 | 0.683 | 0.621 | 0.584 |
| PLIP | 0.551 | 0.411 | 0.584 | 0.345 | 0.561 | 0.741 | 0.507 |
| CONCH | 0.404 | 0.421 | 0.332 | 0.604 | 0.637 | 0.336 | 0.481 |
| KEEP | 0.454 | 0.514 | 0.480 | 0.570 | 0.502 | 0.578 | 0.475 |
Table S14 Intervention-discrimination ROC-AUC under PASM staining. See Supplementary Table S11 for the score definition and aggregation.
| Model | MH | PAS(-) | ADH | SS | SFN | MN | MP | EP | Cre | GS | Overall |
|---|---|---|---|---|---|---|---|---|---|---|---|
| GloSAGE | 0.527 | 0.840 | 0.437 | 0.665 | 0.636 | 0.595 | 0.545 | 0.616 | 0.721 | 0.549 | 0.613 |
| PLIP | 0.562 | 0.436 | 0.432 | 0.381 | 0.414 | 0.505 | 0.496 | 0.543 | 0.548 | 0.527 | 0.485 |
| CONCH | 0.417 | 0.653 | 0.428 | 0.334 | 0.506 | 0.617 | 0.497 | 0.732 | 0.773 | 0.456 | 0.532 |
| KEEP | 0.451 | 0.620 | 0.556 | 0.480 | 0.674 | 0.608 | 0.580 | 0.375 | 0.725 | 0.559 | 0.559 |
Table S15 Performance of lesion recognition across all the models (PAS)
| Model | MH | PAS(+) | PAS(-) | Crum | ADH | SS | MN | MP | EP | Cre | GS |
|---|---|---|---|---|---|---|---|---|---|---|---|
| GloSAGE | 0.930 ± 0.005 | 0.954 ± 0.002 | 1.000 ± 0.000 | 0.922 ± 0.024 | 0.815 ± 0.014 | 0.967 ± 0.004 | 0.957 ± 0.001 | 0.968 ± 0.003 | 0.975 ± 0.002 | 0.989 ± 0.003 | 0.997 ± 0.001 |
| GloPath | 0.909 ± 0.038 | 0.955 ± 0.003 | 1.000 ± 0.000 | 0.887 ± 0.037 | 0.779 ± 0.033 | 0.962 ± 0.006 | 0.949 ± 0.013 | 0.965 ± 0.005 | 0.968 ± 0.015 | 0.980 ± 0.005 | 0.997 ± 0.001 |
| UNI | 0.879 ± 0.092 | 0.936 ± 0.008 | 1.000 ± 0.000 | 0.842 ± 0.108 | 0.762 ± 0.016 | 0.924 ± 0.019 | 0.947 ± 0.006 | 0.952 ± 0.008 | 0.969 ± 0.004 | 0.984 ± 0.005 | 0.996 ± 0.001 |
| CONCH | 0.884 ± 0.032 | 0.934 ± 0.004 | 0.997 ± 0.001 | 0.777 ± 0.157 | 0.720 ± 0.027 | 0.919 ± 0.011 | 0.923 ± 0.006 | 0.954 ± 0.006 | 0.965 ± 0.002 | 0.963 ± 0.008 | 0.993 ± 0.001 |
| PLIP | 0.889 ± 0.005 | 0.924 ± 0.004 | 0.996 ± 0.002 | 0.842 ± 0.048 | 0.765 ± 0.016 | 0.915 ± 0.024 | 0.868 ± 0.012 | 0.950 ± 0.003 | 0.943 ± 0.004 | 0.967 ± 0.007 | 0.994 ± 0.002 |
| KEEP | 0.926 ± 0.002 | 0.936 ± 0.005 | 1.000 ± 0.000 | 0.861 ± 0.020 | 0.760 ± 0.015 | 0.951 ± 0.012 | 0.923 ± 0.011 | 0.946 ± 0.004 | 0.966 ± 0.011 | 0.966 ± 0.005 | 0.998 ± 0.000 |
Table S16 Performance of lesion recognition across all the models (Masson)
| Model | MH | ADH | SS | SFN | Cre | GS |
|---|---|---|---|---|---|---|
| GloSAGE | 0.962 ± 0.005 | 0.763 ± 0.024 | 0.948 ± 0.013 | 0.986 ± 0.004 | 0.963 ± 0.002 | 0.997 ± 0.001 |
| GloPath | 0.961 ± 0.003 | 0.750 ± 0.050 | 0.910 ± 0.054 | 0.982 ± 0.007 | 0.974 ± 0.018 | 0.995 ± 0.003 |
| UNI | 0.952 ± 0.005 | 0.773 ± 0.080 | 0.868 ± 0.060 | 0.990 ± 0.002 | 0.986 ± 0.005 | 0.995 ± 0.000 |
| CONCH | 0.928 ± 0.007 | 0.704 ± 0.038 | 0.709 ± 0.076 | 0.985 ± 0.001 | 0.983 ± 0.008 | 0.993 ± 0.001 |
| PLIP | 0.929 ± 0.003 | 0.708 ± 0.099 | 0.710 ± 0.042 | 0.984 ± 0.006 | 0.960 ± 0.018 | 0.992 ± 0.002 |
| KEEP | 0.930 ± 0.005 | 0.723 ± 0.008 | 0.786 ± 0.077 | 0.984 ± 0.006 | 0.984 ± 0.004 | 0.992 ± 0.002 |
Table S17 Performance of lesion recognition across all the models (PASM)
| Model | MH | PAS(-) | ADH | SS | SFN | MN | MP | EP | Cre | GS |
|---|---|---|---|---|---|---|---|---|---|---|
| GloSAGE | 0.928 ± 0.001 | 0.998 ± 0.001 | 0.762 ± 0.030 | 0.961 ± 0.010 | 0.986 ± 0.002 | 0.946 ± 0.012 | 0.953 ± 0.001 | 0.975 ± 0.001 | 0.988 ± 0.000 | 0.996 ± 0.002 |
| GloPath | 0.928 ± 0.004 | 0.997 ± 0.001 | 0.768 ± 0.038 | 0.945 ± 0.018 | 0.982 ± 0.004 | 0.944 ± 0.008 | 0.955 ± 0.008 | 0.972 ± 0.009 | 0.982 ± 0.010 | 0.995 ± 0.001 |
| UNI | 0.924 ± 0.003 | 0.998 ± 0.001 | 0.747 ± 0.022 | 0.943 ± 0.031 | 0.977 ± 0.011 | 0.929 ± 0.013 | 0.969 ± 0.001 | 0.971 ± 0.006 | 0.983 ± 0.009 | 0.992 ± 0.001 |
| CONCH | 0.912 ± 0.005 | 0.993 ± 0.004 | 0.695 ± 0.013 | 0.933 ± 0.018 | 0.945 ± 0.014 | 0.894 ± 0.014 | 0.943 ± 0.007 | 0.953 ± 0.006 | 0.938 ± 0.004 | 0.990 ± 0.002 |
| PLIP | 0.905 ± 0.005 | 0.993 ± 0.002 | 0.790 ± 0.049 | 0.902 ± 0.034 | 0.946 ± 0.005 | 0.920 ± 0.009 | 0.953 ± 0.005 | 0.971 ± 0.002 | 0.968 ± 0.019 | 0.991 ± 0.002 |
| KEEP | 0.912 ± 0.006 | 0.984 ± 0.021 | 0.749 ± 0.057 | 0.914 ± 0.012 | 0.955 ± 0.015 | 0.927 ± 0.002 | 0.957 ± 0.004 | 0.972 ± 0.007 | 0.944 ± 0.041 | 0.989 ± 0.001 |
Table S18 Relative reduction in ROC-AUC deficit of GloSAGE compared with baseline models on PAS staining.
| Lesion | GloPath | UNI | CONCH | PLIP | KEEP |
|---|---|---|---|---|---|
| MH | +22.38 | +41.96 | +39.41 | +36.34 | +5.18 |
| PAS(+) | -1.70 | +28.35 | +30.52 | +39.78 | +27.62 |
| PAS(-) | +100.00 | +100.00 | +100.00 | +100.00 | +100.00 |
| Crum | +30.81 | +50.71 | +64.99 | +50.81 | +43.83 |
| ADH | +15.98 | +22.09 | +33.75 | +21.06 | +22.69 |
| SS | +13.59 | +56.85 | +59.77 | +61.70 | +32.94 |
| MN | +15.88 | +19.68 | +44.76 | +67.59 | +44.46 |
| MP | +9.62 | +33.87 | +32.16 | +36.66 | +41.63 |
| EP | +19.73 | +17.91 | +27.73 | +55.34 | +25.98 |
| Cre | +45.42 | +35.16 | +71.47 | +68.07 | +68.14 |
| GS | -4.66 | +11.87 | +49.26 | +43.24 | -48.12 |
| Overall | +18.72 | +35.03 | +45.87 | +44.46 | +31.34 |
Table S19 Relative reduction in ROC-AUC deficit of GloSAGE compared with baseline models on Masson staining.
| Lesion | GloPath | UNI | CONCH | PLIP | KEEP |
|---|---|---|---|---|---|
| MH | +2.41 | +21.48 | +47.76 | +46.80 | +46.20 |
| ADH | +5.19 | -4.37 | +20.03 | +18.75 | +14.28 |
| SS | +41.96 | +60.13 | +81.95 | +81.91 | +75.44 |
| SFN | +23.17 | -34.63 | +7.61 | +12.74 | +13.30 |
| Cre | -42.09 | -160.00 | -113.14 | +7.66 | -123.56 |
| GS | +48.72 | +45.71 | +59.87 | +66.23 | +63.45 |
| Overall | +11.17 | +12.76 | +45.50 | +46.88 | +36.60 |
Table S20 Relative reduction in ROC-AUC deficit of GloSAGE compared with baseline models on PASM staining.
| Lesion | GloPath | UNI | CONCH | PLIP | KEEP |
|---|---|---|---|---|---|
| MH | -0.40 | +5.79 | +18.59 | +24.33 | +18.39 |
| PAS(-) | +32.15 | +29.44 | +75.50 | +74.80 | +88.92 |
| ADH | -2.35 | +6.25 | +22.00 | -12.90 | +5.47 |
| SS | +28.37 | +31.15 | +41.98 | +60.01 | +54.35 |
| SFN | +20.90 | +37.48 | +74.11 | +73.49 | +68.23 |
| MN | +3.17 | +23.46 | +48.47 | +31.72 | +25.54 |
| MP | -2.66 | -47.63 | +18.98 | +0.20 | -7.09 |
| EP | +8.53 | +13.52 | +46.09 | +11.71 | +9.80 |
| Cre | +34.16 | +29.93 | +80.80 | +62.08 | +78.51 |
| GS | +26.93 | +48.75 | +60.14 | +57.11 | +62.48 |
| Overall | +4.70 | +10.86 | +37.04 | +23.21 | +27.28 |
Table S21 Performance comparison of models on lesion grading tasks. Values are ROC-AUC (mean ± standard deviation).
| Task | GloSAGE | GloPath | UNI | PLIP | CONCH | KEEP |
|---|---|---|---|---|---|---|
| PAS-MH-Grading | ||||||
| MT-MH-Grading | ||||||
| PASM-MH-Grading | ||||||
| PAS-Cre-Grading | ||||||
| MT-Cre-Grading | ||||||
| PASM-Cre-Grading | ||||||
| PAS-MP-Grading | ||||||
| PASM-MP-Grading | ||||||
| PAS-EP-Grading | ||||||
| PASM-EP-Grading |
Table S22 Performance on 11 PAS-related lesion recognition tasks on GloPro.
| Model | MH | PAS(+) | PAS(-) | Crum | ADH | SS | MN | MP | EP | Cre | GS |
|---|---|---|---|---|---|---|---|---|---|---|---|
| GloSAGE | 0.8462 | 0.9142 | 0.8807 | 0.9974 | |||||||
| GloPath | 0.8969 | 0.9830 | 0.7467 | 0.7904 | 0.9817 | 0.9987 | 0.9542 | 0.9966 | |||
| UNI | 0.8869 | 0.8226 | 0.9858 | 0.7458 | 0.7706 | 0.8660 | 0.8914 | 0.9620 | 0.9937 | 0.9462 | |
| PLIP | 0.8591 | 0.8126 | 0.9645 | 0.7649 | 0.7739 | 0.8722 | 0.8791 | 0.9052 | 0.9956 | 0.9363 | 0.9963 |
| CONCH | 0.8373 | 0.7979 | 0.9570 | 0.6999 | 0.7478 | 0.8177 | 0.8686 | 0.9426 | 0.9641 | 0.9074 | 0.9954 |
| KEEP | 0.8788 | 0.8365 | 0.9653 | 0.7769 | 0.7560 | 0.8099 | 0.8685 | 0.9534 | 0.9930 | 0.8851 | 0.9966 |
Table S23 Performance comparison on disease classification on RenalXJ (deep feature based). Values are mean ± sample standard deviation across 3 folds. The task involves IgA nephropathy versus membranous nephropathy classification.
| Model | ROC-AUC | F1-score | Accuracy |
|---|---|---|---|
| GloSAGE | 0.9873 ± 0.0085 | 0.9444 ± 0.0274 | 0.9445 ± 0.0273 |
| GloPath | 0.9777 ± 0.0077 | 0.9335 ± 0.0087 | 0.9336 ± 0.0087 |
| UNI | 0.9582 ± 0.0216 | 0.8925 ± 0.0378 | 0.8933 ± 0.0375 |
| PLIP | 0.9123 ± 0.0102 | 0.7562 ± 0.0531 | 0.7676 ± 0.0476 |
| CONCH | 0.8740 ± 0.0270 | 0.7870 ± 0.0175 | 0.7905 ± 0.0171 |
| KEEP | 0.8908 ± 0.0330 | 0.8056 ± 0.0299 | 0.8081 ± 0.0275 |
Table S24 Performance comparison on injury grading on RenalXJ (deep feature based). Values are mean ± sample standard deviation across 3 folds. The task involves three kidney injury grades (0, 1, and 2).
| Model | ROC-AUC | F1-score | Accuracy |
|---|---|---|---|
| GloSAGE | 0.7358 ± 0.0310 | 0.7054 ± 0.0078 | 0.7352 ± 0.0193 |
| GloPath | 0.6915 ± 0.0209 | 0.6361 ± 0.0137 | 0.6718 ± 0.0393 |
| UNI | 0.7013 ± 0.0358 | 0.6571 ± 0.0104 | 0.7206 ± 0.0090 |
| PLIP | 0.6968 ± 0.0126 | 0.6007 ± 0.0342 | 0.6974 ± 0.0036 |
| CONCH | 0.6681 ± 0.0104 | 0.6312 ± 0.0539 | 0.7169 ± 0.0228 |
| KEEP | 0.7080 ± 0.0457 | 0.6022 ± 0.0213 | 0.7048 ± 0.0047 |
Table S25 Performance comparison on disease classification on RenalXJ (lesion-based).
| Model | F1-score | AUC | Acc |
|---|---|---|---|
| GloSAGE | 0.8657 ± 0.0017 | 0.9334 ± 0.0258 | 0.8667 ± 0.0015 |
| GloPath | 0.8432 ± 0.0585 | 0.9458 ± 0.0088 | 0.8448 ± 0.0559 |
| UNI | 0.8367 ± 0.0117 | 0.9291 ± 0.0193 | 0.8377 ± 0.0118 |
| CONCH | 0.7839 ± 0.0038 | 0.9004 ± 0.0185 | 0.7852 ± 0.0045 |
| PLIP | 0.7703 ± 0.0353 | 0.8966 ± 0.0171 | 0.7743 ± 0.0316 |
| KEEP | 0.7504 ± 0.0699 | 0.8797 ± 0.0221 | 0.7632 ± 0.0549 |
Table S26 Performance comparison on injury classification on RenalXJ (lesion-based).
| Model | AUC | Acc |
|---|---|---|
| GloSAGE | 0.7433 ± 0.0406 | 0.7259 ± 0.0231 |
| GloPath | 0.7690 ± 0.0609 | 0.6963 ± 0.0039 |
| UNI | 0.7252 ± 0.0518 | 0.6974 ± 0.0044 |
| CONCH | 0.7533 ± 0.0785 | 0.7398 ± 0.0058 |
| PLIP | 0.7322 ± 0.0674 | 0.6963 ± 0.0039 |
| KEEP | 0.7238 ± 0.0546 | 0.6926 ± 0.0073 |
Table S27 Ablation results for lesion recognition on PAS-stained images. Values are reported as mean ± standard deviation. Bold indicates the highest mean among the five GloSAGE configurations, including ties; the GloPath baseline is excluded from this comparison.
| Model | MH | PAS(+) | PAS(-) | Crum | ADH | SS | MN | MP | EP | Cre | GS |
|---|---|---|---|---|---|---|---|---|---|---|---|
| GloSAGE | 0.9296 ± 0.0048 | 0.9539 ± 0.0019 | 1.0000 ± 0.0000 | 0.9220 ± 0.0220 | 0.8146 ± 0.0139 | 0.9673 ± 0.0038 | 0.9574 ± 0.0014 | 0.9685 ± 0.0031 | 0.9746 ± 0.0018 | 0.9893 ± 0.0026 | 0.9967 ± 0.0006 |
| w/o EDGE | 0.9222 ± 0.0042 | 0.9503 ± 0.0016 | 1.0000 ± 0.0000 | 0.9034 ± 0.0254 | 0.7965 ± 0.0057 | 0.9555 ± 0.0189 | 0.9476 ± 0.0077 | 0.9674 ± 0.0019 | 0.9749 ± 0.0012 | 0.9823 ± 0.0024 | 0.9943 ± 0.0018 |
| w/o KEYS | 0.9226 ± 0.0040 | 0.9479 ± 0.0042 | 1.0000 ± 0.0000 | 0.8813 ± 0.0418 | 0.7955 ± 0.0138 | 0.9667 ± 0.0128 | 0.9554 ± 0.0023 | 0.9666 ± 0.0034 | 0.9721 ± 0.0026 | 0.9818 ± 0.0086 | 0.9964 ± 0.0005 |
| w/o EDGE and KEYS | 0.9192 ± 0.0097 | 0.9416 ± 0.0080 | 1.0000 ± 0.0000 | 0.8779 ± 0.0326 | 0.7750 ± 0.0090 | 0.9558 ± 0.0217 | 0.9521 ± 0.0053 | 0.9675 ± 0.0050 | 0.9688 ± 0.0070 | 0.9817 ± 0.0085 | 0.9965 ± 0.0003 |
| GloSAGE-P | 0.9260 ± 0.0082 | 0.9484 ± 0.0031 | 0.9998 ± 0.0003 | 0.8685 ± 0.0823 | 0.7692 ± 0.0096 | 0.9297 ± 0.0332 | 0.9464 ± 0.0085 | 0.9676 ± 0.0015 | 0.9512 ± 0.0229 | 0.9814 ± 0.0072 | 0.9946 ± 0.0027 |
| Vanilla visual pretraining (GloPath) | 0.909 ± 0.038 | 0.955 ± 0.003 | 1.000 ± 0.000 | 0.887 ± 0.037 | 0.779 ± 0.033 | 0.962 ± 0.009 | 0.949 ± 0.013 | 0.965 ± 0.005 | 0.968 ± 0.015 | 0.980 ± 0.005 | 0.997 ± 0.001 |
Table S28 Ablation results for lesion recognition on Masson-stained images. Values are reported as mean ± standard deviation. Bold indicates the highest mean among the five GloSAGE configurations; the GloPath baseline is excluded from this comparison.
| Model | MH | ADH | SS | SFN | Cre | GS |
|---|---|---|---|---|---|---|
| GloSAGE | 0.9622 ± 0.0045 | 0.7630 ± 0.0243 | 0.9475 ± 0.0130 | 0.9859 ± 0.0035 | 0.9633 ± 0.0016 | 0.9972 ± 0.0005 |
| w/o EDGE | 0.9643 ± 0.0027 | 0.7174 ± 0.0711 | 0.9212 ± 0.0277 | 0.9907 ± 0.0076 | 0.9535 ± 0.0268 | 0.9941 ± 0.0025 |
| w/o KEYS | 0.9597 ± 0.0080 | 0.7177 ± 0.0341 | 0.9409 ± 0.0272 | 0.9927 ± 0.0036 | 0.9428 ± 0.0517 | 0.9959 ± 0.0012 |
| w/o EDGE and KEYS | 0.9648 ± 0.0052 | 0.7710 ± 0.0928 | 0.9077 ± 0.0518 | 0.9877 ± 0.0164 | 0.9491 ± 0.0602 | 0.9955 ± 0.0002 |
| GloSAGE-P | 0.9509 ± 0.0034 | 0.7324 ± 0.0883 | 0.7966 ± 0.0270 | 0.9772 ± 0.0101 | 0.9345 ± 0.0351 | 0.9947 ± 0.0019 |
| Vanilla visual pretraining (GloPath) | 0.961 ± 0.003 | 0.750 ± 0.050 | 0.910 ± 0.054 | 0.982 ± 0.007 | 0.974 ± 0.018 | 0.995 ± 0.003 |
Table S29 Ablation results for lesion recognition on PASM-stained images. Values are reported as mean ± standard deviation. Bold indicates the highest mean among the five GloSAGE configurations; the GloPath baseline is excluded from this comparison.
| Model | MH | PAS(-) | ADH | SS | SFN | MN | MP | EP | Crc | GS |
|---|---|---|---|---|---|---|---|---|---|---|
| GloSAGE | 0.9281 ± 0.0012 | 0.9982 ± 0.0007 | 0.7623 ± 0.0299 | 0.9609 ± 0.0102 | 0.9657 ± 0.0017 | 0.9456 ± 0.0119 | 0.9535 ± 0.0014 | 0.9747 ± 0.0014 | 0.9880 ± 0.0004 | 0.9961 ± 0.0020 |
| w/o EDGE | 0.9251 ± 0.0030 | 0.9974 ± 0.0007 | 0.7455 ± 0.0430 | 0.9344 ± 0.0167 | 0.9789 ± 0.0032 | 0.9278 ± 0.0095 | 0.9472 ± 0.0032 | 0.9635 ± 0.0210 | 0.9882 ± 0.0044 | 0.9935 ± 0.0019 |
| w/o KEYS | 0.9207 ± 0.0101 | 0.9964 ± 0.0020 | 0.7358 ± 0.0129 | 0.9138 ± 0.0536 | 0.9838 ± 0.0045 | 0.9408 ± 0.0168 | 0.9543 ± 0.0093 | 0.9588 ± 0.0093 | 0.9884 ± 0.0007 | 0.9919 ± 0.0006 |
| w/o EDGE and KEYS | 0.9286 ± 0.0053 | 0.9974 ± 0.0013 | 0.7830 ± 0.0522 | 0.9486 ± 0.0059 | 0.9818 ± 0.0078 | 0.9428 ± 0.0033 | 0.9470 ± 0.0111 | 0.9701 ± 0.0045 | 0.9887 ± 0.0046 | 0.9932 ± 0.0017 |
| GloSAGE-P | 0.9198 ± 0.0063 | 0.9969 ± 0.0022 | 0.7466 ± 0.1000 | 0.8750 ± 0.0677 | 0.9714 ± 0.0047 | 0.9253 ± 0.0063 | 0.9439 ± 0.0060 | 0.9572 ± 0.0092 | 0.9790 ± 0.0041 | 0.9907 ± 0.0026 |
| Vanilla visual pretraining (GloPath) | 0.928 ± 0.004 | 0.997 ± 0.001 | 0.768 ± 0.038 | 0.945 ± 0.018 | 0.982 ± 0.004 | 0.944 ± 0.008 | 0.955 ± 0.008 | 0.972 ± 0.009 | 0.982 ± 0.010 | 0.995 ± 0.001 |
Table S30 Performance of image-conditioned glomerular description generation. ROUGE-1, ROUGE-2, and ROUGE-L are recall-based overlap scores against knowledge-graph-derived reference descriptions, averaged across PAS, Masson, and PASM.
| Model | ROUGE-1 | ROUGE-2 | ROUGE-L |
|---|---|---|---|
| GloSAGE | 0.7906 | 0.7143 | 0.7791 |
| PLIP | 0.7744 | 0.6950 | 0.7660 |
| CONCH | 0.7859 | 0.7099 | 0.7776 |
| KEEP | 0.7757 | 0.6963 | 0.7671 |