HookMIL: Revisiting Context Modeling in Multiple Instance Learning for Computational Pathology

Xitong Ling, Minxi Ouyang, Xiaoxiao Li, Jiawen Li, Ying Chen +5 more
12/20/2025
cs.CVcs.AI

No confident code implementation found for this paper.

Abstract

Multiple Instance Learning (MIL) has enabled weakly supervised analysis of whole-slide images (WSIs) in computational pathology. However, traditional MIL approaches often lose crucial contextual information, while transformer-based variants, though more expressive, suffer from quadratic complexity and redundant computations.

Show full abstract

To address these limitations, we propose HookMIL, a context-aware and computationally efficient MIL framework that leverages compact, learnable hook tokens for structured contextual aggregation. These tokens can be initialized from (i) key-patch visual features, (ii) text embeddings from vision-language pathology models, and (iii) spatially grounded features from spatial transcriptomics-vision models. This multimodal initialization enables Hook Tokens to incorporate rich textual and spatial priors, accelerating convergence and enhancing representation quality. During training, Hook tokens interact with instances through bidirectional attention with linear complexity. To further promote specialization, we introduce a Hook Diversity Loss that encourages each token to focus on distinct histopathological patterns. Additionally, a hook-to-hook communication mechanism refines contextual interactions while minimizing redundancy. Extensive experiments on four public pathology datasets demonstrate that HookMIL achieves state-of-the-art performance, with improved computational efficiency and interpretability. Codes are available at https://github.com/lingxitong/HookMIL.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ling2025hookmil,
  title  = {HookMIL: Revisiting Context Modeling in Multiple Instance Learning for Computational Pathology},
  author = {Xitong Ling and Minxi Ouyang and Xiaoxiao Li and Jiawen Li and Ying Chen and Yuxuan Sun and Xinrui Chen and Tian Guan and Xiaoping Liu and Yonghong He},
  year   = {2025},
  eprint = {2512.22188},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.22188v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.22188.svg)](https://codeofpaper.com/paper/2512.22188)

Discussion