كتب الذكاء الاصطناعيمشاريع الذكاء الاصطناعيمقالات الذكاء الاصطناعيمعجم الذكاء الاصطناعياسئلة واجوبة في الذكاء الاصطناعيأكاديمية الذكاء الاصطناعي للأطفالأكاديمية الذكاء الاصطناعيمدرسة رياضيات الذكاء الاصطناعيمختبر الذكاء الاصطناعيمختبر الخوارزميات المستوحاة من الطبيعةأطلس نماذج الذكاء الاصطناعيموسوعة تطبيقات الذكاء الاصطناعيمستكشف مجموعات البيانات للذكاء الاصطناعياختبارات الذكاء الاصطناعيالفايب كودينغدليل البرمجة بالذكاء الاصطناعيمولّد مشاريع الذكاء الاصطناعيمرصد الذكاء الاصطناعيدليل أدوات الذكاء الاصطناعي البحث والنشر الأكاديميمكتبة البرومبتات الأكاديميةمستودع الرسائل والأطاريح في الذكاء الاصطناعيحاسبة الترقية العلميةأكاديمية الوكلاء الذكيينمختبر أخلاقيات الذكاء الاصطناعي والعدالةساحة ألعاب الذكاء الاصطناعيعبقري الذكاء الاصطناعيمختبر التنبؤ بالسلاسل الزمنيةمختبر الذكاء الاصطناعي العدائيموسوعة أطر ومكتبات الذكاء الاصطناعيمتحف الذكاء الاصطناعيالمعلوماتية الحيويةمختبر الرؤية الحاسوبيةموسوعة شبكات التعلم العميق الحديثةمختبر الشبكات العصبية البيانيةمختبر تحليل الصور الطبيةمختبر معالجة اللغة الطبيعيةمختبر الحوسبة الكمّيةخرائط طريق الذكاء الاصطناعيمختبر الذكاء الاصطناعي الصوتيأكاديمية ماتلاب والذكاء الاصطناعيمصمم الشبكات العصبيةأكاديمية الذكاء الاصطناعي بدون برمجةمختبر الذكاء الاصطناعي الكمّي

Membership inference

Model Privacy Lab · privacy

Level 1: idea and analogy

The idea

An attack that decides whether a given sample was in the model's training data, usually from confidence/loss differences between members and non-members.

Analogy

Knows you read the book because you answer its questions with unusual confidence.

Level 2: how it works and when to use it

Steps

1) Train a shadow model on attacker data. 2) Produce scores for members and non-members. 3) Calibrate a threshold. 4) Apply it to the target.

When to use it

Auditing the risk of exposing sensitive data.

Strengths

Clearly measures the privacy impact of overfitting.

Level 3: mathematics, assumptions, limits

Mathematical form

\mathcal A(x,y)=\mathbb 1\big[\ell(f(x),y)<\tau\big];\quad \text{advantage}=\mathrm{TPR}-\mathrm{FPR}

Assumptions

Access to model outputs; similarly distributed data; a target that memorises its training data.

Limitations

Accuracy alone is misleading; Carlini et al. recommend TPR at very low FPR, while this lab reports AUC and accuracy only.

Metrics

AUC, accuracy, generalisation gap, TPR@FPR.

Defenses

Reduce overfitting, regularise, differential privacy, reduce output detail.

Level 4: pitfalls and references for researchers

Common pitfalls

Judging the attack by balanced 50/50 accuracy only; forgetting the result concerns one model and one seed.

References

  1. Shokri, R.; Stronati, M.; Song, C.; Shmatikov, V. (2017). Membership Inference Attacks Against Machine Learning Models. IEEE Symposium on Security and Privacy (SP) 2017, pp. 3-18. doi:10.1109/sp.2017.41
  2. Yeom, S. et al. (2018). Privacy Risk in Machine Learning: Analyzing the Connection to Overfitting. IEEE Computer Security Foundations Symposium (CSF) 2018. Link
  3. Carlini, N. et al. (2022). Membership Inference Attacks From First Principles. IEEE Symposium on Security and Privacy (SP) 2022. Link

Related experiments