RWKV-MIL: Efficient Weakly Supervised Histopathology Image Segmentation via Hilbert Curve-Based Linear Attention

Background/Objectives: Weakly supervised histopathology image segmentation aims to reduce the need for pixel-level annotations during training. Multiple Instance Learning (MIL) enables instance prediction using image-level labels, but the quadratic complexity of self-attention limits attention-based MIL at pixel resolution. This study develops an MIL framework with linear-complexity attention for segmentation at the input-image pixel resolution. Methods: We propose RWKV-MIL, based on the Receptance Weighted Key Value (RWKV) architecture, to extend MIL from patch-level to pixel-level instance prediction. A class token provides bag-level predictions through a classifier shared with the instance tokens. The proposed H-RWKV block introduces Hilbert-WKV attention, which combines bidirectional WKV attention with Hilbert-curve scanning to preserve spatial continuity between adjacent tokens in the sequence. Negative and positive instance losses jointly constrain instance representation learning using bag-level labels. We evaluated the framework on the Colon, WSSS4LUAD, and CAMELYON16 datasets and conducted ablation experiments. Results: Across three independent training runs, RWKV-MIL achieved positive-image F1-scores of 0.865±0.005, 0.813±0.003, and 0.803±0.007 on Colon, WSSS4LUAD, and CAMELYON16, respectively. Conclusions: RWKV-MIL supports weakly supervised segmentation of cropped histopathology images using image-level labels and linear-complexity attention. The component analyses support the evaluated design while leaving limitations in localization, evaluation coverage, and statistical precision.

Authors

Institutions

Publication Details

Journal
Diagnostics
Published
2026-11-24
DOI
https://doi.org/10.3390/diagnostics16233950
Primary Topic
AI in cancer detection
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

RWKV-MIL: Efficient Weakly Supervised Histopathology Image Segmentation via Hilbert Curve-Based Linear Attention

Hao Lü, Bingzheng Wei, Ziniu Qian, Maode Lai et al.
1 links
Diagnostics
AI in cancer detection
article

RWKV-MIL: Efficient Weakly Supervised Histopathology Image Segmentation via Hilbert Curve-Based Linear Attention

Hao Lü, Bingzheng Wei, Ziniu Qian, Maode Lai, Maode Lai, Yan Xu
article en

Abstract

Background/Objectives: Weakly supervised histopathology image segmentation aims to reduce the need for pixel-level annotations during training. Multiple Instance Learning (MIL) enables instance prediction using image-level labels, but the quadratic complexity of self-attention limits attention-based MIL at pixel resolution. This study develops an MIL framework with linear-complexity attention for segmentation at the input-image pixel resolution. Methods: We propose RWKV-MIL, based on the Receptance Weighted Key Value (RWKV) architecture, to extend MIL from patch-level to pixel-level instance prediction. A class token provides bag-level predictions through a classifier shared with the instance tokens. The proposed H-RWKV block introduces Hilbert-WKV attention, which combines bidirectional WKV attention with Hilbert-curve scanning to preserve spatial continuity between adjacent tokens in the sequence. Negative and positive instance losses jointly constrain instance representation learning using bag-level labels. We evaluated the framework on the Colon, WSSS4LUAD, and CAMELYON16 datasets and conducted ablation experiments. Results: Across three independent training runs, RWKV-MIL achieved positive-image F1-scores of 0.865±0.005, 0.813±0.003, and 0.803±0.007 on Colon, WSSS4LUAD, and CAMELYON16, respectively. Conclusions: RWKV-MIL supports weakly supervised segmentation of cropped histopathology images using image-level labels and linear-complexity attention. The component analyses support the evaluated design while leaving limitations in localization, evaluation coverage, and statistical precision.

DiagnosticsVol. 16(23)
Oldham Council (GB), ByteDance (China) (CN), Alibaba Group (China) (CN), Zhejiang University (CN), Beihang University (CN)
National Natural Science Foundation of China
AI in cancer detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon