SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.06458 · 2026

In-Context Multiple Instance Learning

Klaus-Robert Müller, Julius Hense, Alexander Möllers, Marvin Sextro, Gabriel Dernbach

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 10 functions out of this paper's own repositories and ran 7 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
injurise/ICMIL — 7 of 10
FunctionStatusWhere it lives
BagFeatureEmbedder Ran injurise/ICMIL/icmil/models/architecture.py
code served (permissive licence) · get_code("eb7a6230dd45c7db")
BagTargetEmbedder Ran injurise/ICMIL/icmil/models/architecture.py
code served (permissive licence) · get_code("a9200da4478bd468")
Decoder Ran injurise/ICMIL/icmil/models/architecture.py
code served (permissive licence) · get_code("5f281f611784b81f")
InstanceAggregationBlock Ran injurise/ICMIL/icmil/models/architecture.py
code served (permissive licence) · get_code("77ff6802bb7e1ff0")
LowerPrecisionLayerNorm Ran injurise/ICMIL/icmil/models/architecture.py
code served (permissive licence) · get_code("5d658f2f9da369a5")
MultiheadAttention Ran injurise/ICMIL/icmil/models/architecture.py
code served (permissive licence) · get_code("6882e88420185b2a")
memory_chunking Ran injurise/ICMIL/icmil/models/architecture.py
code served (permissive licence) · get_code("de616d0b394a0722")
ICMIL Not yet run injurise/ICMIL/icmil/models/architecture.py
code served (permissive licence) · get_code("9ebfc3edc2ec544d")
InterBagAttentionBlock Not yet run injurise/ICMIL/icmil/models/architecture.py
code served (permissive licence) · get_code("246822f30cc630af")
TransformerEncoderLayer Not yet run injurise/ICMIL/icmil/models/architecture.py
code served (permissive licence) · get_code("e0a4bd1effc6c391")

Repositories linked to this paper

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

Abstract

Multiple Instance Learning (MIL) addresses problems where supervision is available at the level of bags of instances and has been successfully applied in fields ranging from computational pathology to satellite imagery. Nevertheless, existing algorithms struggle in the low-label regime that characterizes many real-world applications. Flexible models overfit and rigid ones fail to adapt to the task at hand. We show that pretraining an in-context learner with a Perceiver-style architecture on synthetic data yields a model that can solve new tasks from a handful of labeled bags. At inference time, classification happens in a single forward pass and requires no gradient updates. We propose and investigate different synthetic data generators for bag-structured data and find that they capture complementary inductive biases. A model pretrained on a mixture of these generators inherits their per-task strengths and achieves the best average performance across twelve MIL benchmarks, outperforming supervised baselines that require task-specific training.

For agents

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

get_harvested_code_for_paper("2606.06458")
get_code_for_paper("2606.06458")
have("2606.06458")

Connect an agent — have() is free.