Real-world backdoor attacks often require poisoned datasets to be stored and transmitted before being used to compromise deep learning systems. However, in the era of big data, the inevitable use of lossy compression poses a fundamental challenge to invisible backdoor attacks. We find that triggers embedded in RGB images often become ineffective after the images are lossily compressed into binary bitstreams (e.g., JPEG files) for storage and transmission. As a result, the poisoned data lose its malicious effect after compression, causing backdoor injection to fail. In this paper, we highlight the necessity of explicitly accounting for the lossy compression process in backdoor attacks. This requires attackers to ensure that the transmitted binary bitstreams preserve malicious trigger information, so that effective triggers can be recovered in the decompressed data. Building on the region-of-interest (ROI) coding mechanism in image compression, we propose two poisoning strategies tailored to inevitable lossy compression. First, we introduce Universal Attack Activation, a universal method that uses sample-specific ROI masks to reactivate trigger information in binary bitstreams for learned image compression (LIC). Second, we present Compression-Adapted Attack, a new attack strategy that employs customized ROI masks to encode trigger information into binary bitstreams and is applicable to both traditional codecs and LIC. Extensive experiments demonstrate the effectiveness of both strategies.
Figures & tables
Figure 1: Ineffectiveness of backdoor attacks under lossy compression. Left: Higher compression rates introduce stronger distortion and substantially hinder backdoor injection, indicating that lossy compression can severely damage invisible triggers. Right: Removing high-frequency components from poisoned test samples via Fourier Transform significantly reduces the ASR, suggesting that high-frequency information is critical for many invisible triggers.
Figure 2: Overview of backdoor attacks under lossy compression. Red borders denote poisoned samples, and green borders denote benign samples. Column 1 shows the real-world dataset-only poisoning pipeline, where data are stored and transmitted as compressed bitstreams before victim-side training. Column 2 illustrates that previous invisible attacks may fail after lossy compression because trigger information is destroyed. Columns 3-4 present our two ROI-based strategies: Universal Attack Reactivation , which reactivates ineffective invisible attacks by preserving trigger-relevant information, and Compression-Adapted Attack , which encodes malicious information into bitstreams to construct compression-adapted triggers for both traditional codecs and LICs.
Figure 3: Two customized ROI masks.
Backbone ↓
Dataset ↓
Method →
Clean
FTrojan
FTrojan ReA
WaNet
WaNetReA
BppAttack
BppAttackReA
CAA
ResNet18
CIFAR-10
BA(%)
93.57
92.21
91.32( -0.89 ↓ )
84.72
91.75( +7.03 ↑ )
88.03
90.85 ( +2.82 ↑ )
93.28
ASR(%)
-
12.53
94.91( +82.38 ↑ )
77.58
98.43 ( +20.85 ↑ )
44.17
96.23 ( +52.06 ↑ )
100.00
GTSRB
BA(%)
99.22
95.72
97.43( +1.71 ↑ )
94.43
98.25 ( +3.82 ↑ )
90.78
94.84 ( +4.06 ↑ )
99.13
ASR(%)
-
30.61
89.34( +58.73 ↑ )
72.32
93.85 ( +21.53 ↑ )
42.25
87.23 ( +44.98 ↑ )
100.00
CelebA
BA(%)
76.90
75.25
71.65( -3.60 ↓ )
76.49
72.40 ( -4.09 ↓ )
74.69
71.58 ( -3.11 ↓ )
76.75
Table 1: Comparison of methods across multiple datasets; additional results are in the Appendix. A .
SAA Souri et al. (2022)
SAAReA
Narcissus Zeng et al. (2023)
NarcissusReA
BA (%)
94.95
94.29
94.23
94.82
ASR (%)
10.04
45.24
17.27
50.26
Table 2: Reactivation of clean-label attacks.
Dataset
Method
ECA
ECA ReA
CBA
CBAReA
CIFAR-10
BA(%)
92.34
91.48( -0.9 ↓ )
92.10
91.92( -0.2 ↓ )
ASR(%)
23.20
95.10( +71.9 ↑ )
27.10
98.20( +71.1 ↑ )
CelebA
BA(%)
75.08
72.92( -2.2 ↓ )
76.13
75.05( -1.1 ↓ )
ASR(%)
30.84
93.96( +63.1 ↑ )
28.62
97.54( +68.9 ↑ )
Table 3: Reactivation of compression-aware attacks.
Table 7
Figure 4: Visualization of the UAR. We visualize original images, compressed attack samples, reactivated samples, and the corresponding ROI masks.
Dataset
Method
Clean
FTrojan
WaNet
BppAttack
CAA
CIFAR-10
BA(%)
93.57
92.76
91.13
90.32
93.51
ASR(%)
-
1.13
29.21
28.58
93.76
GTSRB
BA(%)
99.22
98.28
98.14
89.47
99.17
ASR(%)
-
13.30
17.57
39.62
99.46
CelebA
BA(%)
76.90
75.50
76.66
73.03
76.85
Table 6: All-to-all attack result.
Codec
Method
Clean
FTrojan
WaNet
BppAttack
CAA
JPEG 2000 Skodras et al. (2001)
BA(%)
92.85
90.23
83.29
88.09
92.93
ASR(%)
-
12.35
75.09
48.27
99.56
BPG Yee et al. (2017)
BA(%)
93.58
92.10
90.55
92.48
92.39
ASR(%)
-
13.07
76.97
44.97
100.00
Cheng-2020 Cheng et al. (2020)
BA(%)
93.21
91.34
84.86
88.25
93.14
Table 7: Performance on different codecs.
Figure 5: Resilient to Fine-Pruning Liu et al. (2018a) .
Table 12
Figure 7: Visualization of CAA. (a) Origin images (without compression). (b) Poisoned images via CAA (all samples were classified as the target class). (c) The residuals. (d) The ROI masks.
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
Backbone ↓
Dataset ↓
Method →
Clean
FTrojan
FTrojan ReA
WaNet
WaNetReA
BppAttack
BppAttackReA
CAA
Pre-activation ResNet18
CIFAR-10
BA(%)
92.93
92.46
91.35( -1.11 ↓ )
86.30
91.30 ( +5.00 ↑ )
90.61
90.59 ( -0.02 ↓ )
92.86
ASR(%)
-
11.05
94.19( +83.14 ↑ )
51.25
98.17 ( +46.92 ↑ )
16.17
95.03 ( +78.86 ↑ )
99.99
GTSRB
BA(%)
99.13
94.25
97.02( +2.77 ↑ )
92.73
97.43 ( +4.70 ↑ )
89.85
94.08 ( +4.23 ↑ )
99.13
ASR(%)
-
23.26
83.77( +60.51 ↑ )
71.80
92.26 ( +20.46 ↑ )
36.83
85.02 ( +48.19 ↑ )
99.95
CelebA
BA(%)
76.78
74.98
70.34( -4.64 ↓ )
76.55
74.83 ( -1.72 ↓ )
75.71
70.43 ( -5.28 ↓ )
76.57
Appendix
Table 11: Comparison of methods across multiple datasets.
Attack
SampDetox
FST
ZIP
BA
ASR
BA
ASR
BA
ASR
BadNet
94.76
1.67
92.97
1.06
92.48
3.92
CAA
95.28
80.38
92.83
65.38
94.69
88.29
Appendix
Table 12: Additional defense results on GTSRB.
Sample-Specific Computation
Encoding Time
ROI Mask of ReA
FTrojan Trigger
WaNet Trigger
Standard
ReA
CAA
0.002
0.002
0.003
0.502
0.515
0.508
Appendix
Table 13: Time complexity (s/sample) on GTSRB resized to 2K. CPU: Intel(R) Xeon(R) Gold 6458Q with 128 threads; GPU: a single NVIDIA A800 GPU.
FTrojan
WaNet
CAA (2 × 2 Mask)
CAA (8 × 8 Mask)
SRM ( ↓ )
0.995
0.628
0.314
0.207
Appendix
Table 14: Comparison of SRM feature distances on GTSRB.