Papers › AEM: Attention Entropy Maximization for Multiple Instance Learning based Whole Slide...

AEM: Attention Entropy Maximization for Multiple Instance Learning based Whole Slide Image Classification

18 Jun 2024arXiv:2406.15303archive 2025-07-28

Yunlong Zhang, Zhongyi Shui, Yunxuan Sun, Honglin Li, Jingxiong Li, Chenglu Zhu, Lin Yang

Multiple Instance Learning (MIL) has demonstrated effectiveness in analyzing whole slide images (WSIs), yet it often encounters overfitting challenges in real-world applications, particularly in the form of attention over-concentration. While existing methods to alleviate this issue introduce complex modules or processing steps, such as multiple-stage training and teacher-student distillation, this paper proposes a simple yet effective regularization: Attention Entropy Maximization (AEM). Motivated by our investigation revealing a positive correlation between attention entropy and model performance, AEM incorporates a negative entropy loss for attention values into the standard MIL framework, penalizing overly concentrated attention and encouraging the model to consider a broader range of informative regions in WSIs, potentially improving its generalization capabilities. Compared to existing overfitting mitigation methods, our AEM approach offers advantages of simplicity, efficiency, and versatility. It requires no additional modules or processing steps, involves only one hyperparameter, and demonstrates compatibility with MIL frameworks and techniques. These advantages make AEM particularly attractive for practical applications. We evaluate AEM on three benchmark datasets, demonstrating consistent performance improvements over existing methods. Furthermore, AEM shows high versatility, integrating effectively with four feature extractors, two advanced MIL frameworks, three attention mechanisms, and Subsampling augmentation technique. The source code is available at \url{https://github.com/dazhangyu123/AEM}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.15303")

Code

Syntology Ran 8 of 12 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 6 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

dazhangyu123/adr officialmentioned in papermentioned on GitHubpytorch report
dazhangyu123/aem officialmentioned in papermentioned on GitHubpytorch report
dazhangyu123/acmil mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 8 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
6ran
4unverified

Licence: 12 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from dazhangyu123/adr. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

getBorder dazhangyu123/adr/wsi_core/AlgorithmUtils.py official repository ran no licence file found · pointer only · 2342504240643c41 · report
getMask dazhangyu123/adr/wsi_core/AlgorithmUtils.py official repository ran no licence file found · pointer only · 101174eba8b3ee1d · report
get_pretrained_url dazhangyu123/adr/models.py official repository ran fingerprinted no licence file found · pointer only · 3666b7bb4f9ffa54 · report
pad_img dazhangyu123/adr/wsi_core/SlideBase.py official repository ran no licence file found · pointer only · 68bba5a544faaf0c · report
patching dazhangyu123/adr/Step1_create_patches_fp.py official repository ran · our draft was wrong no licence file found · pointer only · 6ca1f4cd53ffd7e6 · report
resnet18 dazhangyu123/adr/models.py official repository ran no licence file found · pointer only · d631c6718b6f954c · report
resnet50 dazhangyu123/adr/models.py official repository ran no licence file found · pointer only · f267d2dc21e502aa · report
segment dazhangyu123/adr/Step1_create_patches_fp.py official repository ran · our draft was wrong no licence file found · pointer only · a63b7288bd08c89e · report
initialize_df dazhangyu123/adr/wsi_core/batch_process_utils.py official repository unverified no licence file found · pointer only · 2294c69b1f977ee2 · report
isBlackPatch dazhangyu123/adr/wsi_core/wsi_utils.py official repository unverified no licence file found · pointer only · da36c66c0dc9829f · report
isBlackPatch_S dazhangyu123/adr/wsi_core/wsi_utils.py official repository unverified no licence file found · pointer only · 9aaa29e4bf4b5c1f · report
isWhitePatch dazhangyu123/adr/wsi_core/wsi_utils.py official repository unverified no licence file found · pointer only · f8ae8348aecd8800 · report

Tasks

DiversityImage ClassificationMultiple Instance Learningimage-classificationwhole slide images

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections