Manuscript Offprint
arXiv:2611.05579Multimodal Fusion Methods for Whole-Slide Images and Clinical Data in Inflammatory Bowel Disease
ABSTRACT
Multimodal AI fusion of histology and clinical data is an active research area in computational pathology, but fusion methods are rarely compared under identical conditions and across different clinical endpoints. We present a modular framework in which slide-level embeddings, obtained by training an attention-based aggregator over patch embeddings from a frozen foundation model, and per-visit clinical embeddings are fed into 15 interchangeable fusion methods with a shared output dimension and prediction head (except decision-level methods). Using a prospective cohort of newly diagnosed inflammatory bowel disease patients, we predicted STRIDE-II-aligned remission outcomes from baseline or follow-up visits. The best fusion method reached macro-F1 of 0.57-0.75, outperforming both single-modality models in four of six scenarios, and differed by outcome and input. Image reliance, the drop in balanced accuracy when the slide embedding is removed, tended to follow the remission type - highest for histological and lowest for endoscopic remission; methods with similar accuracy relied on the slide to very different degrees.
Index Terms— Multimodal Fusion, Whole-slide imaging, computational pathology, Inflammatory Bowel Disease, STRIDE-II
1. INTRODUCTION
Multimodal learning combining whole-slide histology images (WSIs) and clinical measurements to predict clinical outcomes in IBD is growing in computational pathology [1, 2], as is fusing many other types of healthcare domain data [3–5]. WSIs capture tissue morphology that clinical records cannot, while clinical records add context the images lack. However, fusion methods are typically benchmarked on a single task with a fixed input configuration [6,7] and rarely compared for
robustness under identical conditions across diverse clinical endpoints.
STRIDE-II, a treat-to-target strategy for inflammatory bowel disease (IBD), replaces symptom-driven care with objective remission targets - clinical, biochemical, and endoscopic-alongside histological remission as a measure of deeper healing - that resolve on different time scales [8]. These targets reflect complementary aspects of disease; for example, histology captures microscopic-level inflammation while clinical biomarkers add complementary context to that. Fusing them could therefore yield a better characterization than either alone. We hypothesize that the best fusion method depends on the prediction scenario rather than being universal.
We therefore evaluate 15 interchangeable fusion methods, each with a shared output dimension and prediction head, across STRIDE-II endpoints and input visits (baseline or follow-up visit). The aggregator, fusion method, and prediction head are trained jointly so that performance differences can be attributed primarily to the fusion method.
Corresponding author: Ankana Banerjee (ankana.banerjee@uis.no)

Fig. 1. Whole Slide image and clinical data embedding generation framework.
NHI was excluded from clinical input so that histology enters only through the slides. Patients were included if slides at the input visit and the outcome at were available. This gave 250-265 patients for and 241-258 for , of whom about 57-74% were in remission at . We split data at the patient level using the REMIL-IBD split [9] to prevent data leakage.
3. MULTIMODAL AI FRAMEWORK
3.1. Whole Slide Image encoder
The multimodal AI framework is outlined in Figure 1. The image encoder is the slide-level encoder from REMIL-IBD [9], a region-filtered embedding-based multiple instance learning framework that grades histological inflammation from H&E WSIs of IBD biopsies. WSIs are downsampled (20×), background-filtered, and segmented using Cerberus [10]. Patches were retained if their tissue map contains any abnormal epithelium, inflammatory tissue, or debris, alongside ≥25% normal epithelium or ≥15% stroma. To avoid resizing interpolation, native 224×224 patches are extracted via coordinate back-projection. Patches were encoded by the frozen foundation model Virchow2 (2560-D) [11], pooled by gated attention [12] for NHI grade prediction. Optimized using focal ordinal loss [13] for 50 epochs with Adam (learning rate ), selecting the highest validation macro-F1 as the checkpoint. From each WSI, the 256-D output of the gated-attention pooling layer, preceding the classification head, served as the slide embedding.
For patient and visit , the frozen slide embeddings of biopsy locations form a bag. A projection layer shared across visits (linear, ReLU, dropout, LayerNorm)
is applied to each slide embedding, and a visit-specific gated-attention network returns their attention-weighted sum as one patient-level 256-D image embedding per visit.
3.2. Clinical Data Encoder
The clinical encoder has three parallel branches. Continuous ( inputs) and binary ( inputs) variables are batch-normalized and projected (Linear-GELU) into 128-D and 64-D embeddings, respectively. Categorical variables are encoded as integer class indexes and passed through dedicated learned embedding layers: sex and disease type (two categories each) are embedded into 4-D vectors and the medication group (eight categories) into a 16-D vector, concatenated into a 24-D representation. Branch outputs (128-D continuous, 64-D binary, 24-D categorical) were concatenated to preserve modality-specific information and prevent compression loss from forced resizing [14]. A two-layer MLP with Layer-Norm, GELU, and dropout () unifies these subspaces into a weighted 256-D per-visit clinical embedding [15].
3.3. Fusion methods
The fusion pipeline is depicted in 2. For patient and input visit(s) , the fusion modules operate on the following quantities: Projected slide embeddings: , the elements of the visit- bag after the shared projection layer, before attention pooling into the visit-level embedding . Image embedding: , obtained by attention-pooling the projected slide embeddings of each visit. Clinical embedding: , the output of the clinical encoder applied to the clinical measurements of the input visit(s), com-
Table 1. Fusion methods. is the pooled image embedding, the clinical embedding, and the projected slide embeddings of the input bag(s) before pooling. is the fused vector passed to the prediction head (512-D for concat, tabAE and cross-attention, 256-D otherwise); decision-level methods output logits or class probabilities per modality.
| Type | Method | Description | Equation |
|---|---|---|---|
| Concatenation | concattabAE | Embeddings are joined side by side.Same as concat, but the clinical encoder is first pretrained as an autoencoder, where a decoder reconstructs the continuous and ordinal features from . | , , |
| early concat | is appended to every slide embedding, projected, then attention-pooled. | ||
| Modulation | filmearly film | produces a scale and shift that modulate [16].Same modulation as film, but applied to every slide embedding before pooling. | , |
| Gating | gmu | Each modality is projected, then the tanh-activated outputs are mixed by a sigmoid gate that weights the two vectors [17]. | , , |
| Bilinear | mcb | Fixed random count sketches of the projected embeddings are multiplied elementwise, then normalized (signed square root, ) [18]. | , |
| mcb transformer | Image, clinical and MCB output form three tokens for a one-layer transformer encoder. | , | |
| Attention | temporal concat | Image and clinical tokens attend to each other in a one-layer transformer encoder [19]; the two output tokens and are then joined and projected (layernorm, linear layer, GELU). | |
| cross-attention | queries the unpooled slide embeddings ; the result is joined with . | ||
| cross-attention transformer | Two-layer bidirectional cross-attention between and , each with a feed-forward blocks [20]. | ||
| Decision-level | late weighted | Learned single weight on modality logits. | |
| product of experts | Class probabilities multiplied and renormalised [21]. | ||
| decision ensemble | Class probabilities averaged. | ||
| confidence weighted | Each branch is weighted by its maximum class probability (no learned parameters). |
puted in a single pass. We compared 15 fusion methods (Table 1), grouped by the stage at which the modalities inter-

Fig. 2. Fusion pipeline. Slide image embeddings and clinical embeddings enter one of 15 interchangeable fusion modules.
act. Most operate on the pooled embeddings and ; early concatenation, early FiLM, and cross-attention instead act on the projected slide embeddings , before or in place of attention pooling. Intermediate and early fusion outputs feed a common head (LayerNorm, dropout, Linear256, GELU, dropout, Linear ); only its input width differs for 512-D concatenation-type outputs. Late fusion methods bypass it: a linear classifier per modality produces predictions that are combined and trained through the combined output.
4. EXPERIMENTS AND RESULTS
We evaluate six combinations of outcome (histologic, endoscopic, biochemical remission) and input from or , each with WSI-only and clinical-only baselines and 15 fusion methods. Test sets had 26-31 patients, and each model was trained once (seed 42), so intervals reflect test-set sampling, not training variability. The slide embeddings are frozen; all other components were trained end-to-end per task with focal loss (, inverse square-root class weights). AdamW (learning rate , weight decay ), cosine annealing to 1% of the initial rate, gradient clipping at 1.0, 50 epochs, selecting the checkpoint with the highest validation macro-F1.

Fig. 3. Best fusion method in each of the six scenarios.

Fig. 4. Change in balanced accuracy when the slide embedding is replaced by zeros, by outcome and input visit (Absolute cohort). Bars show the median over the fusion methods above chance, and whiskers show the 25th to 75th percentile.
4.1. Experiment 1 - fusion methods
The primary metric is test macro-F1, with 95% percentile intervals from 2000 patient-level bootstrap draws (paired for comparisons). In each scenario, we report the best fusion method and those within 2 and 5 percentage points of its macro-F1. The best fusion method reached a macro-F1 of 0.57-0.75 (Figure 3). Fusion performed better than the single-modality model in four scenarios and was comparable to it in two: inputs for biochemical (comparable with WSI-only) and endoscopic remission (same as clinical-only). The
clinical-only model was often competitive, so much of the fused performance probably comes from the clinical embedding. The best method exceeded the median method by 0.06-0.15 macro-F1, so fusion's success depends on finding a suitable method rather than combining modalities alone.
The best method depended on both outcome and input. With as input, bilinear (mcb), attention (cross-attention), and decision-level (product of experts) methods performed best for biochemical, endoscopic, and histological remission, respectively. With as input, attention (cross-attention), decision-level (product of experts), and modulation (early film) methods performed best. Method rankings did not carry over between scenarios (mean Spearman for macro-F1). In every scenario, at least one other method was within 5% of the top macro-F1, and up to six in histological remission with , from unrelated families (mixing concatenation, attention, bilinear and decision-level families).
4.2. Experiment 2 - image input reliance
We define Image reliance as the drop in test balanced accuracy when the 256-D slide-embedding is replaced by zero vectors (attention mask zeroed), keeping the trained model unchanged, so that every patient receives the same uninformative image representation. Methods with near or below chance performance (balanced accuracy ) are excluded. Because the top-ranked fusion method is identified on the test set, we checked if rankings generalize by correlating macro-F1 relative to the scenario median between scenarios (Spearman) against a permutation null (5000 shuffles).
Image reliance tended to follow the remission type: it was highest for histological remission with both inputs, but differences between outcomes were not statistically significant (Kruskal-Wallis for , for ). Removing the slides lowered balanced accuracy, highest in histological and least in endoscopic remission; see Figure 4. The best method in each scenario relied heavily on the WSIs (a drop in raw test balanced accuracy of 0.06-0.23, against scenario medians of 0.00-0.08), whereas 21-50% of methods had a drop of zero or less. Bilinear and decision-level methods rely on the WSI most (median 0.08 and 0.07) and attention and modulation methods least (0.00 and -0.01; ). Reliance rose with a model's gain over chance (Spearman ).
5. CONCLUSION
Combining WSIs with clinical data is not a single design decision: how the two are combined, and how much the model uses the image, varies with the remission endpoint and the information available. Studies of multimodal fusion should therefore evaluate several fusion methods across endpoints and report image reliance next to accuracy. Larger cohorts, repeated training, multi-timepoint inputs and external validation are needed to show which approaches are robust.
6. COMPLIANCE WITH ETHICAL STANDARDS
This study was performed in line with the principles of the Declaration of Helsinki. We used samples from the SUSI-IBD cohort (NCT01551563), approved by the Norwegian Regional Ethics Committee (REK 2011/2631), and obtained written informed consent from all participants.
7. ACKNOWLEDGMENTS
This work was supported by the Norwegian Research Council (project no. 324516). The authors thank the nurses and physicians of the Gastroenterology Unit, the Pathology Unit, and the Research Department at Stavanger University Hospital, and the participating patients. We thank the University of Stavanger's Department of Chemistry, Bioscience, and Environmental Engineering and the Department of Electrical Engineering and Computer Science for their support. Tore Grimstad has served as a speaker for Ferring Pharmaceuticals, as a consultant for Takeda AS, Galapagos, Johnson & Johnson, and Emiel Janssen, and has received unrestricted research grants from AbbVie AS and Tillotts Pharma AB. Writefull, Claude, and ChatGPT were used to improve grammar and language and for code debugging; the authors reviewed all content and take full responsibility for it.
8. REFERENCES
[1] Tong Ding, Sophia J Wagner, Andrew H Song, Richard J Chen, Ming Y Lu, Andrew Zhang, Anurag J Vaidya, Guillaume Jaume, Muhammad Shaban, Ahrong Kim, et al., “A multimodal whole-slide foundation model for pathology,” Nature medicine, vol. 31, no. 11, pp. 3749–3761, 2025.
[2] D. Rieder, M. Günther, S. Ormanns, C. Manzl, S. Wirtz, et al. IBDome: An integrated molecular, histopathological, and clinical atlas of inflammatory bowel diseases. Gastroenterology, 170(4):1120–1135, 2026.
[3] M. Iacucci, et al. Endo-histo foundational fusion model: a novel artificial intelligence for assessing histologic remission and response to therapy in ulcerative colitis clinical trial. Journal of Crohn's and Colitis, 19(7):ijaf108, 2025.
[4] E. Mossotto, et al. Classification of paediatric inflammatory bowel disease using machine learning. Scientific Reports, 7(1):2427, 2017.
[5] Florence Demrozi, Mina Farmanbar, and Kjersti Engan, “Multimodal ai (mmai) for next-generation healthcare: data domains, algorithms, challenges, and future perspectives,” Current Opinion in Biomedical Engineering, p. 100632, 2025.
[6] Can Cui, Haichun Yang, Yaohong Wang, Shilin Zhao, Zuhayr Asad, Lori A. Coburn, Keith T. Wilson, Bennett A. Landman, and Yuankai Huo, “Deep multimodal fusion of image and non-image data in disease diagnosis and prognosis: a review,” Progress in biomedical engineering (Bristol, England), vol. 5, no. 2, pp. 2516–1091, 4 2023.
[7] Sandra Steyaert, Yeping Lina Qiu, Yuanning Zheng, Pritam Mukherjee, Hannes Vogel, and Olivier Gevaert, “Multimodal deep learning to predict prognosis in adult and pediatric brain tumors,” Communications Medicine 2023 3:1, vol. 3, no. 1, pp. 44–, 3 2023.
[8] Dan Turner, Amanda Ricciuto, Ayanna Lewis, Ferdinando D'Amico, Jasbir Dhaliwal, Anne M. Griffiths, Dominik Bettenworth, William J. Sandborn, Bruce E. Sands, Walter Reinisch, Jürgen Schölererich, Willem Bemelman, Silvio Danese, Jean Yves Mary, David Rubin,
Jean Frederic Colombel, Laurent Peyrin-Biroulet, Iris Dotan, Maria T. Abreu, and Axel Dignass, “STRIDE-II: An Update on the Selecting Therapeutic Targets in Inflammatory Bowel Disease (STRIDE) Initiative of the International Organization for the Study of IBD (IOIBD): Determining Therapeutic Goals for Treat-to-Target strategies in IBD,” Gastroenterology, vol. 160, no. 5, pp. 1570–1583, 4 2021.
[9] Ankana Banerjee, Ole Gunnar Aasprong, Emiel A.M. Janssen, Mark van der Giezen, Tore Grimstad, and Kjersti Engan, “REMIL-IBD: Region-filtered multiple instance learning for interpretable slide-level grading of inflammatory bowel disease,” Journal of Pathology Informatics, vol. 22, pp. 100674, 8 2026.
[10] Simon Graham, Quoc Dang Vu, Mostafa Jahanifar, Shan E.Ahmed Raza, Fayyaz Minhas, David Snead, and Nasir Rajpoot, “One model is all you need: Multi-task learning enables simultaneous histology image segmentation and classification,” Medical Image Analysis, vol. 83, 1 2023.
[11] Eric Zimmermann, Eugene Vorontsov, Julian Viret, Adam Casson, Michal Zelechowski, George Shaikovski, Neil Tenenholtz, James Hall, David Klimstra, Razik Youfi, Thomas Fuchs, Nicolo Fusii, Siqi Liu, and Kristen Severson, “Virchow2: Scaling Self-Supervised Mixed Magnification Models in Pathology,” 11 2024.
[12] Maximilian Ilse, Jakub Tomczak, and Max Welling, “Attention-based Deep Multiple Instance Learning,” 1 2018.
[13] Weiqiang Liu, Tianshuo Ge, Linkai Luo, Hong Peng, Xide Xu, Yuangui Chen, and Zefeng Zhuang, “A novel focal ordinal loss for assessment of knee osteoarthritis severity,” Neural Process. Lett., vol. 54, no. 6, pp. 5199–5224, 2022.
[14] Cheng Guo and Felix Berkhahn, “Entity Embeddings of Categorical Variables,” 4 2016.
[15] Yury Gorishniy, Ivan Rubachev, Valentin Khrulkov, and Artem Babenko, “Revisiting Deep Learning Models for Tabular Data,” Advances in Neural Information Processing Systems, vol. 23, pp. 18932–18943, 6 2021.
[16] Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville, “Film: Visual reasoning with a general conditioning layer,” 2017.
[17] John Arévalo, Thamar Solorio, Manuel Montes-y Gómez, and Fabio A González, “Gated multimodal units for information fusion,” arXiv preprint arXiv:1702.01992, 2017.
[18] Akira Fukui, Dong Huk Park, David Yang, Anna Rohrbach, Trevor Darrell, and Marcus Rohrbach, “Multimodal compact bilinear pooling for visual question answering and visual grounding,” in Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2016, pp. 457–468.
[19] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, L ukasz Kaiser, and Illia Polosukhin, “Attention is All you Need,” in Advances in Neural Information Processing Systems, I Guyon, U Von Luxburg, S Bengio, H Wallach, R Fergus, S Vishwanathan, and R Garnett, Eds. 2017, vol. 30, Curran Associates, Inc.
[20] Yao-Hung Hubert Tsai, Shaojie Bai, Paul Pu Liang, J. Zico Kolter, Louis-Philippe Morency, and Ruslan Salakhutdinov, “Multimodal transformer for unaligned multimodal language sequences,” in Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, 2019, pp. 6558–6569.
[21] Geoffrey E Hinton, “Training products of experts by minimizing contrastive divergence,” Neural Computation, vol. 14, no. 8, pp. 1771–1800, 2002.