Color depth shrinking is a feature squeezing defense that reduces the number of bits used for each color channel in an image (e.g., reducing 8-bit RGB to 1-bit black and white).
In TrojanNN, the attack is often resilient to this defense because the trojan trigger is crafted to be high-contrast. During the retraining phase, the model learns the trojaned pattern, which can actually cause the attack success rate to increase as color depth decreases, even while normal accuracy drops.
Metrics used in evaluation:
- Orig: Test accuracy of the trojaned model on the original dataset (percentage of correctly recognized normal inputs).
- Orig+Tri: Attack success rate on the original dataset stamped with the trojan trigger (percentage of inputs recognized as the attack target label).
- Ext+Tri: Attack success rate on an external dataset stamped with the trojan trigger.
| | Orig | Orig+Tri | Ext+Tri|
|----------|------|----------|--------|
| original | 71.75%| 83.65% | 100% |
| Cded_3 | 69.4% | 86.4% | 100% |
| Cded_2 | 57.5% | 92.55% | 100% |
| Cded_1 | 30.4% | 96.65% | 100% |