Original title: Beyond Small Patches: Black-Box Detection and Purification of Diverse Backdoor Triggers
Ahmed Abdelnaby, Mohamed Elmahallawy · September 2026
Image-recognition systems can be tricked by backdoor attacksHidden manipulations in input data that cause an AI model to make targeted errors.. In these attacks, a hidden triggerA specific pattern or alteration in an image that activates a backdoor attack. inside an image forces the system to make a specific mistake, even though normal images still work fine. Many existing defenses cannot help when defenders can only see a model's final outputs, without access to its inner code, training data, or clean test samples. To solve this, researchers created TRIM. It works by breaking an image into regions using deep features. Then, it uses inpaintingA technique that reconstructs or fills in parts of an image to isolate or remove anomalies. and diffusion tools to reconstruct pieces of the image, discovering which specific region causes the system to misclassify the picture. Finally, it cleans only that bad spot while leaving the rest of the image alone. TRIM also stores saved signatures of past triggers so it can recognize them faster. In tests, TRIM cut the attack success rate down to as low as 1.16% while keeping clean accuracy up to 87.87%.
Imagine you have a shirt with a small ink stain. If you wash the entire shirt aggressively, you might fade the colors, but if you find and treat only the stain, the rest stays vibrant. In this paper, TRIM works like that for images: it detects specific regions with hidden triggers and cleans only those, leaving the rest of the image content untouched.
AI vision systems in critical applications like security or autonomous driving can be fooled by hidden triggers. TRIM allows operators to clean these threats at runtime without needing the model's internal design or training data, making it practical for real-world deployment.
The abstract does not state specific limitations, but TRIM is designed for black-box access scenarios and may not apply to defenses requiring model retraining or other attack types beyond those tested.
Ask anything about this paper. Answers come from its abstract, and say so when the abstract doesn't cover your question.
Beyond Small Patches: Black-Box Detection and Purification of Diverse Backdoor Triggers — Ahmed Abdelnaby, Mohamed Elmahallawy
Abstract licence: CC0
Explanation generated by Synthesis from the abstract — it is not the original paper. This is a preprint, so it hasn't necessarily been peer reviewed.