cs.LGMar 20, 2026

SetFlow: Generating Structured Sets of Representations for Multiple Instance Learning

Authors: Nikola Jovišić, Milica Škipina, Vanja Švenda

Organizations: Institute for Artificial Intelligence R&D of Serbia Novi Sad, Serbia

Abstract

Data scarcity and weak supervision continue to limit the performance of machine learning models in many real-world applications, such as mammography, where Multiple Instance Learning (MIL) often offers the best formulation. While recent foundation models provide strong semantic representations out of the box, effective augmentation of such representations of MIL data remains limited, as existing methods operate at the instance level and fail to capture intra-bag dependencies. In this work, we introduce SetFlow, a generative architecture that models entire MIL bags (i.e., sets) directly in the representation space. Our approach leverages the flow matching paradigm combined with a Set Transformer-inspired design, enabling it to handle permutation-invariant inputs while capturing interactions between instances within each bag. The model is conditioned on both class labels and input scale, allowing it to generate coherent and semantically consistent sets of representations. We evaluate SetFlow on a large-scale mammography benchmark using a state-of-the-art MIL-PF classification pipeline. The generated samples are shown to closely match the original data distribution and even improve downstream performance when used for augmentation. Furthermore, training on synthetic data alone shows competitive results, demonstrating the effectiveness of representation-space generative modeling for data-scarce and privacy-sensitive tasks.

Figures & tables

Explore similar work

CardsList
  1. Re-mixing Embeddings for Patient Augmentation in Data Scarce Multiple Instance Learning

    Jun 24, 2026Muhammed Furkan Dasdelen, Fatih Ozlugedik, Anastasia Litinetskaya +3Synthetic Data AugmentationMultiple Instance Learning

  2. In-Context Multiple Instance Learning

    Jun 4, 2026Alexander Möllers, Marvin Sextro, Julius Hense +2Synthetic Data PretrainingFew-Shot Learning

  3. MIL-PF: Multiple Instance Learning on Precomputed Features for Mammography Classification

    Mar 10, 2026Nikola Jovišić, Milica Škipina, Nicola Dall'Asen +1Mammography Image ClassificationMedical Image Classification