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

Detection with Neural Cleanse

Backdoor / Trojan Lab · backdoor

Level 1: idea and analogy

The idea

Reverse-engineers, for each class, the smallest trigger that turns any image into it; a class with a much smaller trigger is suspect.

Analogy

Searching for the smallest key that opens each door; a door opened by a tiny key is suspicious.

Level 2: how it works and when to use it

Steps

1) For each class optimise a mask and pattern. 2) Measure ‖m‖₁. 3) Compute the MAD anomaly index. 4) Flag above a threshold (e.g. 2).

When to use it

Checking an imported model before deployment.

Strengths

Does not need the poisoned training data.

Level 3: mathematics, assumptions, limits

Mathematical form

\min_{m,\Delta}\ \ell\big(y_t,f((1-m)\odot x+m\odot\Delta)\big)+\lambda\|m\|_1;\quad \text{anomaly index}=\frac{|\,\|m_t\|_1-\mathrm{med}|}{1.4826\cdot \mathrm{MAD}}

Assumptions

Access to the model and clean samples; a roughly input-independent trigger.

Limitations

Affected by trigger size and shape; may fail on large or dynamic triggers.

Metrics

True detection rate (TDR) and false detection rate (FDR) on poisoned and clean models.

Defenses

Combine with pruning, fine-tuning and supply-chain review.

Level 4: pitfalls and references for researchers

Common pitfalls

Evaluating the detector on a single model; not including clean models.

References

  1. Wang, B. et al. (2019). Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks. IEEE Symposium on Security and Privacy (SP) 2019. Link

Related experiments