← Latest papers
🤖 AI

Detecting Backdoors in Object Detection via Pre-NMS Prediction Distribution Shift

The paper introduces DistScan, a backdoor detection framework for object detection models that identifies scene-level attacks by measuring deviations in pre-NMS prediction class distributions on clean inputs, achieving significantly higher accuracy than existing methods without requiring trigger knowledge or model access.

Original authors: Longtian Wang, Zhengyu Zhao, Chenhao Lin, Le Yang, Shiwei Wang, Yuhan Zhi, Xiaofei Xie, Chao Shen

Published 2026-08-20
📖 5 min read🧠 Deep dive

Original authors: Longtian Wang, Zhengyu Zhao, Chenhao Lin, Le Yang, Shiwei Wang, Yuhan Zhi, Xiaofei Xie, Chao Shen

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the modern world, cameras and computers work together to see the physical world. They identify cars, pedestrians, and signs in real time, a technology that guides self-driving vehicles and monitors public safety. These systems rely on artificial intelligence models trained to recognize specific objects. However, these models can be secretly compromised before they are ever used. A malicious actor can poison the training process, hiding a trigger that forces the model to behave strangely when it sees a specific pattern, such as a small sticker or a particular color. On normal days, the system works perfectly, but the moment the hidden trigger appears, it might fail to see a person or invent a fake object where none exists. This is a backdoor attack. The danger lies in the fact that the model looks and acts normal until the trigger is present, making it nearly impossible to spot through standard testing.

Researchers have long struggled to find these hidden flaws, especially in complex systems that detect many objects at once. Existing methods often try to reverse-engineer the hidden trigger or look for specific quirks in how the software is built, but these approaches frequently fail when the attack affects an entire scene rather than just one object. A new study introduces a different way to look for these problems. Instead of hunting for the hidden trigger itself, the researchers examined the internal habits of the model. They discovered that when a model is secretly poisoned, its internal predictions shift in a way that betrays its training, even when it is looking at a perfectly clean image with no trigger at all.

The team, led by Longtian Wang and Zhengyu Zhao, developed a method called DistScan to catch these compromised models. Their approach relies on a simple observation about how these computer vision systems learn. When a model is trained on a large set of images, it learns not just what objects look like, but also how common each object is. If a dataset contains many pictures of cars and very few of bicycles, the model naturally expects to see more cars. This expectation becomes part of the model's internal logic. The researchers found that when an attacker injects a backdoor, this internal balance gets disturbed. The model begins to predict certain objects more or less often than it should, even when it is looking at a normal, safe image.

To test this, the researchers did not need to know what the hidden trigger looked like, nor did they need to see the original training data or access the model's internal code. They simply fed a small number of clean images into the model and watched what it predicted before it made its final decision. They counted how many times the model guessed each type of object. In a healthy model, these guesses matched the natural frequency of objects found in the real world. In a poisoned model, the guesses were skewed, showing a clear imbalance that did not belong. By comparing the model's predictions against the known statistics of the training data, the system could flag a model as dangerous if the numbers did not add up.

The researchers tested this method on two major types of detection systems and two large, standard datasets used by scientists around the world. They created hundreds of models, some of which were clean and others that had been secretly poisoned with three different types of attacks. These attacks included tricks that made objects disappear, tricks that made the model see things that were not there, and tricks that changed what an object was called. The new method, DistScan, successfully identified the poisoned models with an average accuracy of nearly 97 percent. In contrast, the best existing methods failed completely in many of these scenarios, often performing no better than random guessing. The study showed that DistScan worked equally well on different types of model architectures, proving that the shift in prediction patterns is a universal sign of a backdoor.

One of the most significant findings was that this method works even when the attack is designed to be invisible to traditional detection tools. Some modern attacks are "scene-level," meaning a single hidden trigger causes the model to misbehave across the entire image, affecting every object it sees at once. Previous tools failed here because they were built to find a single, localized trigger affecting a single object. DistScan succeeded because it looked at the big picture: the overall distribution of what the model thought it saw. The researchers visualized these differences and found that the predictions from poisoned models formed a distinct cluster far away from the predictions of healthy models, creating a clear separation that was easy to measure.

The study also explored how to make the test most effective by adjusting how the images were presented to the model. They found that for some types of systems, feeding in full images worked best, while for others, showing cropped images of single objects was more reliable. This ensured that the test matched the way the model was originally trained to see the world. They also determined the right level of confidence to filter out weak guesses, ensuring that only meaningful predictions were counted. Through these careful adjustments, the method remained robust and accurate across all the different scenarios they tested.

This work offers a practical tool for anyone who needs to verify the safety of an object detection system before putting it to use. It requires no special knowledge of the attack, no access to the model's internal weights, and no additional training time. By simply checking if the model's internal expectations match the reality of the data it was trained on, DistScan provides a reliable way to spot hidden dangers. The researchers hope this approach will shift the focus of security research toward these distributional signals, offering a broader and more principled defense against the growing threat of backdoor attacks in safety-critical applications.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →