Manuscript Offprint

arXiv:2609.00396

SlideMix: Enhancing Whole Slide Image Analysis via Multimodal Shuffling

Chad Wong, Sicheng Chen, Tianyi Zhang, Enhui Chai, Yueming Jin, Zeyu Liu, Fei Xia

ABSTRACT

Histopathological whole slide images (WSIs) are central to cancer diagnosis, but their gigapixel scale and complex tissue heterogeneity make manual assessment time-consuming and prone to inconsistent interpretation. Deep learning has shown strong potential for WSI analysis, where multiple instance learning (MIL) has become a widely adopted framework for aggregating tile-level features into slide-level predictions; however, robust generalization remains challenging because slide-level labels provide weak supervision, diagnostically relevant regions are sparse, tissue composition varies across slides, and diagnostic evidence spans multiple magnifications. Rather than relying on architecture-specific redesign, pathology-aware augmentation offers a scalable way to improve the WSI training distribution itself, yet existing strategies often perturb tissue regions without preserving diagnostic relevance, slide-level context, or cross-scale structure. Here, we propose SlideMix, a model-agnostic multimodal augmentation framework for MIL-based WSI analysis. SlideMix uses a retrieval-augmented vision-language model (VLM)-based Visual-Language Adaptive Region selector to identify diagnostically relevant regions and reduce weak-label noise, followed by In-place Tile Shuffling to mix feature embeddings within diagnostically meaningful tissue regions, while preserving slide-level context. A VLM-based soft-labeling module assigns supervision to the mixed samples, and a multi-factor, loss-driven, online Curriculum-Learning Feedback scheme adaptively controls shuffle granularity, feature similarity, and shuffle ratio to promote cross-scale representation learning. Across 11 WSI datasets comprising 20,523 slides, 8 diagnostic tasks, and 10 WSI backbones, SlideMix improves accuracy and generalization in most settings and compares favorably with established augmentation baselines, demonstrating a simple, plug-and-play route toward more robust and scalable digital pathology models. The source code is available at https://github.com/Xia-Research-Lab/SlideMix.

Keywords Whole slide image analysis · multimodal augmentation · curriculum learning · multi-scale representation learning

1 INTRODUCTION

Pathology diagnosis serves as the gold standard for cancer diagnosis, relying on microscopic image interpretation to ensure accurate disease identification and treatment planning [1]. In modern digital pathology, tissue biopsies are routinely digitized into gigapixel-scale Whole Slide Images (WSIs), which preserve rich spatial details and multi-scale tissue features. However, their massive size makes manual review both labor-intensive and dependent on highly specialized expertise, often leading to inconsistencies and variability in diagnostic outcomes [2].

Deep learning techniques have been increasingly adopted to assist in WSI analysis by automatically identifying and categorizing critical histological patterns [3]. Recent methods employ Multiple Instance Learning (MIL), a two-stage framework designed to overcome GPU memory limits imposed by gigapixel-scale slides. Specifically, in the first stage of MIL, WSIs are divided into smaller tiles (e.g., 224 × 224 pixels from a 100,000 × 80,000-pixel WSI) and encoded into feature embeddings using a tile-level foundation model (e.g., UNI [4]). In the second stage, the tile embeddings are aggregated into bags to produce slide-level predictions with a slide-level model (e.g., TransMIL [5]) [6]. Although practical, the inherent com-

plexity and multi-scale nature of WSIs continue to challenge existing models, particularly in their ability to effectively inte-

Figure

Figure 1: Visualization of an augmented example. Compared to other mixing-based methods, SlideMix accurately identifies tile and instance boundaries. It further distinguishes effectively between negative and positive samples.

Figure

Figure 2: Overview of the MIL pipeline integrated with SlideMix. (a) Two WSIs from the same dataset are selected, tiled, and embedded into feature vectors for efficient computation. (b) The corresponding low-resolution WSIs are input into a fine-tuned VLM, which identifies label-relevant regions for mixing. (c) Coordinates of the selected candidate regions are passed to the data augmentation module, where the embedded tiles from stage one of MIL are shuffled in place according to three adjustable parameters NN, TPCAT_{PCA}, and PP provided by the CLF, creating a new mixed sample. (d) The mixed sample is then processed by another separate VLM to generate a soft mixed label. (e) This new sample-label pair is fed into the tile sampler and subsequent training module. (f) Finally, the training loss is used to update the three aforementioned CLF parameters, enabling the ITS to automatically adjust the difficulty of the mixed samples throughout training.

grate cross-scale information [3]. Three core challenges can thus be identified:

  1. Weak supervision from scarce fine-grained annotations. Unlike natural images, only a small fraction of regions within a WSI (often < 1%) are label-relevant. This extreme imbalance between informative and non-informative regions greatly complicates the learning of discriminative features, as irrelevant tiles dominate the training process and weaken label-feature alignment.

  2. Spatial modeling impaired by local homogeneity and global heterogeneity [6]. Pathological structures exhibit strong local continuity but global diversity. This dual characteristic complicates spatial reasoning, as models must simultaneously preserve fine-grained local consistency while capturing long-range dependencies across the entire slide, a challenge that becomes increasingly pronounced with larger WSI dimensions.

  3. Limited multi-scale feature fusion capability [7]. WSIs contain features spanning multiple scales, from cellular to organ-level structures, and different diagnostic tasks emphasize distinct scales. For instance, tumor purity regression depends on global contextual understanding, while Epidermal Growth Factor Receptor (EGFR) mutation prediction demands precise modeling of cellular morphology.

To address these challenges, prior studies have focused on improving model architectures [8, 7] and developing data augmentation strategies [9, 10]. Architectural innovations can improve feature aggregation and spatial modeling, but they are often model-specific and do not directly address the weakly su-

pervised and highly imbalanced training data presented to the model. In contrast, data augmentation can improve the training distribution itself and can be applied across different MIL architectures. However, existing augmentation methods often overlook key properties of pathological images (Fig. 1), including their multi-scale nature and severe label imbalance caused by large proportions of irrelevant regions. Moreover, most augmentation techniques remain static, limiting adaptability across diverse WSIs and tasks.

To this end, we propose SlideMix, a novel multimodal data augmentation framework for MIL-based WSI analysis (Fig. 2). SlideMix integrates a Visual-Language Model (VLM)-guided region selector, an in-place tile shuffling mechanism, and an adaptive curriculum feedback loop. Together, these components address the aforementioned challenges through three key innovations:

  1. We propose a VLM-based Adaptive Region (VAR) selector that employs Retrieval-Augmented Generation (RAG) to retrieve domain-relevant knowledge and identify diagnostically significant ROIs at the lowest WSI scale, mitigating weak supervision effects.

  2. We design an efficient In-place Tile Shuffling (ITS) module that mixes tile embeddings between WSIs using ROI coordinates from the VAR selector, balancing local homogeneity and global heterogeneity. A separate VLM generates soft labels from the mixed WSIs to create new training data.

  3. We introduce a multi-factor Curriculum Learning Feedback (CLF) module that adaptively adjusts the shuffle ratio,

PCA similarity threshold, and shuffle granularity in the ITS module based on loss evaluation, enabling progressive cross-scale feature learning.

Experimental results across eight pathology tasks, ten state-of-the-art WSI models, and eleven WSI datasets comprising 20,523 WSIs demonstrate the robustness and adaptability of SlideMix. By providing new insights into multimodal feature regrouping, SlideMix improves model generalization and diagnostic accuracy in digital pathology applications.

References (35)