Joonsung Jeon, Woo Jae Kim, Suhyeon Ha, Sooel Son*, Sung-Eui Yoon*
Official implementation of MoFit (ICLR 2026) — a caption-free membership inference attack (MIA) framework that leverages synthetic conditioning inputs overfitted to the target model's generative manifold.
All experiments are tested on Ubuntu 20.04 / 22.04 with a single RTX 3090 GPU.
- Python 3.8
- CUDA 11.x
| Dataset | Source |
|---|---|
| Pokemon | SecMI repository |
| MS-COCO | HuggingFace |
| Flickr | Kaggle |
| LAION-mi | HuggingFace |
Because the supported datasets require different diffusers versions, we maintain two separate environments:
| Environment | Datasets | diffusers version |
|---|---|---|
MoFit_COCO |
MS-COCO, Flickr | 0.18.2 |
MoFit_Pokemon |
Pokemon, LAION-mi | 0.11.1 |
💡 To run MoFit on Flickr, follow the MS-COCO instructions. To run MoFit on LAION-mi, follow the Pokemon instructions.
MS-COCO / Flickr
conda create --name MoFit_COCO python=3.8
conda activate MoFit_COCO
cd MoFit/COCO
pip install -r requirements_Pokemon.txt
pip3 install -U scikit-learn
pip install matplotlibPokemon / LAION-mi
conda create --name MoFit_Pokemon python=3.8
conda activate MoFit_Pokemon
cd MoFit/Pokemon
pip install -r requirements.txt
pip install matplotlib
pip install ftfyMS-COCO / Flickr
cd MoFit/COCO
bash MoFit_COCO.shPokemon / LAION-mi
cd MoFit/Pokemon
bash MoFit_Pokemon.shNotes
-
To optimize over member samples, uncomment the member-related lines in
GT_ROOTandMEM. For non-member samples, uncomment the corresponding non-member lines instead. -
Target noise files (
.npy) for each dataset are provided underMoFit/data. -
Default iteration counts:
Stage Pokemon Flickr / COCO LAION-mi Surrogate optimization 1000 1000 1000 Embedding extraction 200 300 1000
Run the prediction script for any dataset:
cd MoFit/Eval
python calculate_pred.py- Set the
Use_data_model_namevariable insidecalculate_pred.pyto select the target dataset/model. - Supported input types:
- Embeddings produced by MoFit
- VLM-generated captions from BLIP-2 or CLIP-Interrogator
- Pre-computed VLM captions are available in
MoFit/data/Captions.
cd MoFit/EvalMS-COCO / Flickr
python mia_th_COCO.pyPokemon / LAION-mi
python mia_th_Pokemon.pyMoFit/
├── COCO/ # Scripts and configs for MS-COCO and Flickr
├── Pokemon/ # Scripts and configs for Pokemon and LAION-mi
├── Eval/ # Prediction and MIA evaluation scripts
├── Results/ # Result examples of COCO and Pokemon
└── data/
├── *.npy # Target noise files
└── Captions/ # VLM-generated captions (BLIP-2, CLIP-Interrogator)
If you find this code useful for your research, please consider citing our paper:
@inproceedings{
jeon2026MoFit,
title={No Caption, No Problem: Caption-Free Membership Inference via Model-Fitted Embeddings},
author={Joonsung Jeon and Woo Jae Kim and Suhyeon Ha and Sooel Son and Sung-eui Yoon},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026},
url={https://openreview.net/forum?id=KUXLrSXYPv}
}
