Membership Inference Attacks by Exploiting Loss Trajectory

Yiyong Liu, Zhengyu Zhao, Michael Backes, Yang Zhang · DOI · OpenReview

TL;DR

This paper introduces TRAJECTORYMIA, a novel membership inference attack that leverages the "loss trajectory" of a target model during its training process. By analyzing how a sample's loss evolves across different training stages, TRAJECTORYMIA significantly improves attack performance, particularly in reducing false positives, even in challenging black-box scenarios.

What Problem Does This Paper Address?

Machine learning models, especially those trained on sensitive data, are vulnerable to Membership Inference Attacks (MIAs). These attacks aim to determine if a specific data sample was part of the model's training set. Existing MIAs primarily rely on the final output (like loss values) of a trained model. However, this approach struggles when both "member" (training) and "non-member" (non-training) samples exhibit similarly low losses on the final model, leading to a high rate of false positives. This makes current attacks unreliable in real-world privacy-sensitive applications. The paper addresses this by proposing a method that exploits a richer signal: the history of a sample's loss throughout the model's training.

Methods

The core innovation is TRAJECTORYMIA, which exploits the "loss trajectory" of a sample. The intuition is that even if a sample has a low loss on the final model, its loss might have evolved differently during training compared to a true member sample.

To overcome the black-box constraint (where the adversary only has access to the final model's outputs), the authors employ Knowledge Distillation (KD). Here's the breakdown:

  1. Shadow Model Training: The adversary trains multiple "shadow" models on an auxiliary dataset that mimics the target model's training data distribution.
  2. Model Distillation: The adversary uses KD to create distilled versions of the target model at various training epochs. This is done by training a student model to mimic the teacher model's outputs. Crucially, the adversary keeps these intermediate distilled models.
  3. Distilled Loss Trajectory: The adversary evaluates the target sample's loss on each of these intermediate distilled models, creating a "distilled loss trajectory."
  4. Attack Model Training: An attack model (typically a binary classifier) is trained using the concatenated features: the distilled loss trajectory and the loss of the sample on the final target model.

This approach allows the adversary to reconstruct a proxy for the target model's training process without direct access to it.

Datasets

The paper evaluates TRAJECTORYMIA on several standard image datasets:

  • CIFAR-10: A well-known benchmark with 60,000 images across 10 classes.
  • CINIC-10: An extension of CIFAR-10, incorporating downsampled ImageNet images, resulting in a larger dataset (270,000 images).
  • CIFAR-100: Similar to CIFAR-10 but with 100 classes.
  • GTSRB (German Traffic Sign Recognition Benchmark): A dataset for traffic sign classification.

They also test on non-image datasets:

  • Purchase: A simplified dataset based on Kaggle's "acquire valued shoppers" dataset.
  • Location: A "check-in" dataset from a social network.
  • News: The 20 Newsgroups dataset for text classification.

Key Insights and Ideas

  • Loss Trajectory as a Privacy Signal: The most significant insight is that the evolution of a sample's loss during training (its trajectory) contains valuable membership information, even when the final loss is similar for members and non-members.
  • KD as a Black-Box Enabler: Knowledge distillation is a powerful tool to reconstruct the training process's behavior in a black-box setting, enabling the extraction of loss trajectories.
  • Reducing False Positives is Crucial: The paper strongly emphasizes that improving the True Positive Rate (TPR) at a low False Positive Rate (FPR) is a more practical and meaningful metric for MIA evaluation than aggregate metrics like AUC. TRAJECTORYMIA excels here.
  • Sample Hardness Connection: The authors link the observed differences in loss trajectories to the concept of "sample hardness," suggesting non-member samples are inherently "easier" to learn and thus exhibit different loss patterns.

Key Results

  • Superior Performance: TRAJECTORYMIA consistently outperforms existing state-of-the-art MIAs across various datasets and model architectures.
  • Significant TPR Improvement at Low FPR: On CINIC-10, TRAJECTORYMIA achieved at least a 6x higher TPR at a 0.1% FPR compared to other methods. For example, it reached 5.3% TPR at 0.1% FPR, while others were around 0.2-0.6%.
  • Effectiveness Across Loss Ranges: The attack remains effective even for samples with very small losses on the target model, a scenario where other attacks struggle.
  • Robustness: The attack shows effectiveness even under relaxed assumptions, such as different model architectures between the target and shadow models, and with distribution shifts between training and auxiliary data.
  • Impact of KD Parameters: Ablation studies show that larger KD dataset sizes and more KD epochs generally improve attack performance, but with diminishing returns.

Limitations and Future Work

  • Computational Cost of KD: While effective, the knowledge distillation process adds computational overhead.
  • Model Architecture Dependency: The attack performs best when the shadow/distilled models share the same architecture as the target model. Performance degrades with significantly different architectures, though it still often outperforms other methods.
  • Future Work: The authors suggest exploring more fine-grained modeling of loss trajectories beyond simply using the entire sequence as input. They also note the trade-off between DP-based defenses and model accuracy, suggesting that DP is not always practical.

Summary updated

BibTeX
@inproceedings{liu2022membership,
  author = {Yiyong Liu and Zhengyu Zhao and Michael Backes and Yang Zhang},
  title = {{Membership Inference Attacks by Exploiting Loss Trajectory}},
  booktitle = {CCS},
  year = {2022},
  doi = {10.1145/3548606.3560684},
}
Figure