论文

用难度校准检测扩散模型训练数据成员推断

Difficulty Calibration Across Time for Membership Inference in Diffusion Models

精选理由

这篇 arXiv 论文提出了 RMC 和 TSC 两种校准方法,用单个模型就能判断某张图是否被扩散模型记住,对版权审计很有用。

论文针对扩散模型成员推断攻击(MIA)中重建损失的干扰问题:一些图像本身容易重建,导致误判。作者提出两条时间轴校准方法:Reference-Model Calibration(RMC)通过对比微调模型与早期检查点的损失,即使没有文本描述也能实现接近完美的审计效果;Temporal Self-Calibration(TSC)只用单个模型,利用图像难度在噪声水平间持续、而记忆只在特定时间步局域化的特性进行校准。实验显示两种方法大幅超越现有最优方法,并适用于 x-、v-、ε-prediction 等不同参数化模型。

原文 · arXiv cs.LG

Difficulty Calibration Across Time for Membership Inference in Diffusion Models

Modern diffusion models are trained on massive datasets that often include copyrighted or private images. Membership inference attacks (MIAs) address this by testing whether a given image was in a model's training set. The standard approach scores an image by its reconstruction loss and flags low-loss images as members. This often fails because some images are simply easier to reconstruct than others, so a simple unseen image can score a lower loss than a complex training image. Difficulty calibration separates memorization from how difficult an image is to begin with. We show how to calibrate along two axes of time: training time and diffusion time. First, across training time, we introduce Reference-Model Calibration (RMC), which compares a fine-tuned model's loss against an earlier checkpoint. This cleanly isolates newly memorized data and gives near-perfect auditing, even without text captions. Since earlier checkpoints are not always available, we next present Temporal Self-Calibration (TSC), which calibrates across diffusion time using only a single model. Our key observation is that an image's difficulty persists across noise levels, whereas memorization is localized in time. By comparing the loss at a target timestep against neighboring timesteps from the same model, TSC attenuates image difficulty using the model's own trajectory. Empirically, our methods beat the state of the art by a wide margin, and unlike most existing attacks, generalize across different model parameterizations such as $x$-, $v$-, and $ε$-prediction models. Code is available at https://github.com/MichaelJoseph777/TSC.