[Paper Review] The Taboo Trap: Behavioural Detection of Adversarial Samples
This paper introduces the Taboo Trap, a lightweight, behavior-based defense that detects adversarial samples by restricting DNN activation behaviors during training using configurable transform functions (e.g., percentile clipping). It achieves near-zero runtime overhead and effectively detects diverse attacks, including FGSM, PGD, and DeepFool, with strong performance across multiple networks and transform functions, offering a scalable solution for resource-constrained systems like IoT devices.
Deep Neural Networks (DNNs) have become a powerful toolfor a wide range of problems. Yet recent work has found an increasing variety of adversarial samplesthat can fool them. Most existing detection mechanisms against adversarial attacksimpose significant costs, either by using additional classifiers to spot adversarial samples, or by requiring the DNN to be restructured. In this paper, we introduce a novel defence. We train our DNN so that, as long as it is workingas intended on the kind of inputs we expect, its behavior is constrained, in that some set of behaviors are taboo. If it is exposed to adversarial samples, they will often cause a taboo behavior, which we can detect. Taboos can be both subtle and diverse, so their choice can encode and hide information. It is a well-established design principle that the security of a system should not depend on the obscurity of its design, but on some variable (the key) which can differ between implementations and bechanged as necessary. We discuss how taboos can be used to equip a classifier with just such a key, and how to tune the keying mechanism to adversaries of various capabilities. We evaluate the performance of a prototype against a wide range of attacks and show how our simple defense can defend against cheap attacks at scale with zero run-time computation overhead, making it a suitable defense method for IoT devices.
Motivation & Objective
- Address the challenge of detecting adversarial samples in deep neural networks with minimal computational cost, especially for low-resource environments like IoT devices.
- Overcome limitations of existing detection methods that rely on additional classifiers or architectural changes, which incur high computational and design overhead.
- Develop a defense mechanism that leverages behavioral constraints during training to detect adversarial inputs at inference time without modifying network structure.
- Enable adaptability against adversaries of varying capabilities by using configurable, key-like transform functions that can be changed per deployment.
- Demonstrate that behavioral constraints can serve as a cryptographically inspired defense mechanism, enhancing resilience against both black-box and white-box attacks.
Proposed method
- Profile activation values across layers during training to identify ranges for behavior restriction.
- Apply a transform function (e.g., clipping to the n-th percentile) to constrain activation values to predefined ranges, creating 'taboo' behaviors.
- Retrain the DNN with these activation constraints to ensure normal inputs remain within taboo limits, while adversarial samples often violate them.
- Use a detection function at inference time that triggers an alarm if any activation falls outside its expected taboo range.
- Employ diverse and configurable transform functions (e.g., per-layer percentile thresholds, multi-range clipping) to act as cryptographic keys, increasing defense unpredictability.
- Combine the Taboo Trap with other defense mechanisms (e.g., MagNet, SafetyNet) when computational budget allows, due to its non-intrusive integration.
Experimental results
Research questions
- RQ1Can behavioral constraints during DNN training serve as an effective, low-overhead mechanism for detecting adversarial samples?
- RQ2How does the choice of transform function (e.g., percentile clipping) affect the defense’s robustness against different adversarial attacks?
- RQ3To what extent can the Taboo Trap defend against both black-box and white-box adversaries, especially when the transform function is kept secret?
- RQ4Does enforcing activation constraints during training impair the network’s convergence or performance on clean data?
- RQ5Can the Taboo Trap be effectively combined with other defense mechanisms without introducing significant computational overhead?
Key findings
- The Taboo Trap achieves near-zero runtime computation overhead, with only a slight increase in training time, making it ideal for IoT and embedded systems.
- On LeNet5 (MNIST), the defense achieved detection rates of 94–98% against FGSM, 92–61% against PGD, and 1–12% against DeepFool attacks, depending on the transform function used.
- Different transform functions (e.g., 1st percentile, multi-range clipping) exhibit distinct defensive capabilities, enabling customization against specific attack types.
- The use of multiple, configurable transform functions acts as a cryptographic key, allowing defenders to respond to known attacks by changing the key without redesigning the model.
- The method maintains high accuracy (~99%) on clean data and keeps false positive rates below 1%, even with activation constraints.
- The approach is compatible with existing defense frameworks and can be combined with more complex systems like MagNet or SafetyNet, enhancing overall security without added runtime cost.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.