SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.15254 · ICCV · 2023

Multiple Instance Learning Framework with Masked Hard Instance Mining for Whole Slide Image Classification

Bo Liu, Yi Zhang, Model, Fengtao Zhou, Wenhao Tang, Sheng Huang, Xiaoxian Zhang, Mil Previous

arXiv · PDF · Open in the Atlas

Code that ran

12 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (10 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 2 failures of our instrument; 6 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2307.15254.json · badge: /api/ran/2307.15254.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
DearCaat/MHIM-MIL community
Papers with Code archive
12 ran · 6 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input · constructed an object; no result was computed
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("cd5072f3dab80831")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

AttentionGated Ran
ran on a synthesized input · constructed an object; no result was computed
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("c24df49a676f0f1a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BClassifier Ran
ran on a synthesized input · constructed an object; no result was computed
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("caf9dc0be4a5c52a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

DAttention Ran
ran on a synthesized input · constructed an object; no result was computed
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("051bad1d581b89b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

DSMIL Ran
ran on a synthesized input · constructed an object; no result was computed
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("6ea72cc545523452")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MCA Ran
ran on a synthesized input · constructed an object; no result was computed
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("60e4fa6dfb5aeff2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Merge Ran
ran on a synthesized input · constructed an object; no result was computed
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("7cb71ab3af3802a8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

NystromAttention Ran
ran on a synthesized input · constructed an object; no result was computed
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("67b13214c4cebc6e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

SoftTargetCrossEntropy Ran
ran on a synthesized input · constructed an object; no result was computed
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("afd72a005841c7b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

TransLayer Ran
ran on a synthesized input · constructed an object; no result was computed
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("ffd680dc515cfebb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mask_fn Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("922acd20edd7332d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

select_mask_fn Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("af7d353a41c42289")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MHIM Not yet run
unverified (harvested, no recorded run)
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("25b3b007ad601a8d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

SAttention Not yet run
unverified (harvested, no recorded run)
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("6c1728a2d867c404")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_pseudo_score Not yet run
unverified (harvested, no recorded run)
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("f42c0327718a26dc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_pseudo_score_trans Not yet run
unverified (harvested, no recorded run)
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("21387ddaf3ce7305")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

initialize_weights Not yet run
unverified (harvested, no recorded run)
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("fa98c708d9cb32ac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

moore_penrose_iter_pinv Not yet run
unverified (harvested, no recorded run)
DearCaat/MHIM-MIL/modules/mhim.py
pointer only (licence: NONE) · get_code("ace5e24876cba9e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DearCaat/MHIM-MIL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 4 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 4 later) and 14 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
moore_penrose_iter_pinv
brick of this paper's assembly: helper
11 other papers
3 dated earlier, 8 later · 2 only as an assembly brick
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
2102.03902 (2021-02)
Nyströmformer: A Nyström-Based Algorithm for Approximating Self-Attention
2306.08330 (2023-06)
Multimodal Optimal Transport-based Co-Attention Transformer with Global Structure Consistency for Survival Prediction
and 8 more not named here
Attention
brick of this paper's assembly: helper
1 other paper
1 later
2402.17228 (2024-02)
Feature Re-Embedding: Towards Foundation Model-Level Performance in Computational Pathology
AttentionGated
brick of this paper's assembly: helper
1 other paper
1 later
2402.17228 (2024-02)
Feature Re-Embedding: Towards Foundation Model-Level Performance in Computational Pathology
NystromAttention
brick of this paper's assembly: helper
1 other paper
1 later
2402.17228 (2024-02)
Feature Re-Embedding: Towards Foundation Model-Level Performance in Computational Pathology

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The whole slide image (WSI) classification is often formulated as a multiple instance learning (MIL) problem. Since the positive tissue is only a small fraction of the gigapixel WSI, existing MIL methods intuitively focus on identifying salient instances via attention mechanisms. However, this leads to a bias towards easy-to-classify instances while neglecting hard-to-classify instances. Some literature has revealed that hard examples are beneficial for modeling a discriminative boundary accurately. By applying such an idea at the instance level, we elaborate a novel MIL framework with masked hard instance mining (MHIM-MIL), which uses a Siamese structure (Teacher-Student) with a consistency constraint to explore the potential hard instances. With several instance masking strategies based on attention scores, MHIM-MIL employs a momentum teacher to implicitly mine hard instances for training the student model, which can be any attention-based MIL model. This counter-intuitive strategy essentially enables the student to learn a better discriminating boundary. Moreover, the student is used to update the teacher with an exponential moving average (EMA), which in turn identifies new hard instances for subsequent training iterations and stabilizes the optimization. Experimental results on the CAMELYON-16 and TCGA Lung Cancer datasets demonstrate that MHIM-MIL outperforms other latest methods in terms of performance and training cost. The code is available at: https://github.com/DearCaat/MHIM-MIL.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2307.15254")
get_code_for_paper("2307.15254")
have("2307.15254")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2307.15254.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2307.15254.svg)](https://syntology.ai/paper/2307.15254)

Connect an agent — have() is free.