Traditional image compression standards like JPEG or H.264 rely on hand-crafted mathematical transforms (such as the Discrete Cosine Transform) that act as natural filters for high-frequency noise. However, the next generation of codecs—Neural Image Compression (NIC)—replaces these fixed transforms with deep neural networks. While these models achieve superior compression ratios by learning to synthesize content, they inherit the fundamental fragility of deep learning: susceptibility to adversarial perturbations.
In a neural codec, an encoder maps an image to a latent representation, which is then quantized and compressed using an entropy model. Researchers have discovered that minute, imperceptible changes to the input pixels can catastrophically disrupt this pipeline, leading to two primary failure modes: visual reconstruction collapse and bitrate explosion.
The Reconstruction Collapse
The most intuitive vulnerability is the degradation of the output image. Because neural codecs are composed of deep stacks of non-linear transformations, small errors in the input can be amplified as they pass through the network. Tong Chen and Zhan Ma demonstrated in Towards Robust Neural Image Compression: Adversarial Attack and Model Finetuning that these models exhibit a "universal vulnerability" where imperceptible noise causes reconstruction quality to drop exponentially.
This isn't just random blur. In Adversarial examples for generative models, Jernej Kos, Dawn Song, and Ian Fischer showed that an attacker can force a Variational Autoencoder (VAE) to reconstruct a specific target image—transforming a "kitten" into a "bank transfer request"—while the input remains visually unchanged. This suggests that in sensitive data transmission, the sender and receiver may not be seeing the same information despite using a high-fidelity codec.
Bitrate Inflation and Resource Exhaustion
Perhaps the most unique threat to neural compression is the Entropy Attack. Neural codecs use an "entropy model" to predict the probability distribution of the latent representation; the more predictable the data, the fewer bits are needed to store it.
Adversarial noise can be optimized to maximize the entropy of these latents without changing the image's appearance. Tianyu Zhu and colleagues found in Attack and Defense Analysis of Learned Image Compression that such attacks can cause file sizes to explode by nearly 20x. By injecting "structured chaos" that the entropy model cannot predict, an attacker can trigger a denial-of-service (DoS) state, exhausting network bandwidth or storage capacity.
Milin Zhang and Mohammad Abdi further showed in Resilience of Entropy Model in Distributed Neural Networks that these attacks are particularly effective when targeting background regions, which usually provide the most significant bit savings. By forcing the model to allocate high bitrates to non-essential areas, the communication efficiency of distributed AI systems is crippled.
Exploiting the Frequency Domain
While early attacks targeted raw pixels, more sophisticated frameworks like T-MLA, developed by Nikolay I. Kalmykov and Razan Dibo, target the wavelet or frequency domains. In T-MLA: A Targeted Multiscale Log-Exponential Attack Framework for Neural Image Compression, the authors demonstrate that injecting noise into low-energy wavelet coefficients exploits the internal logic of how neural codecs predict redundancy. This allows for massive reconstruction degradation (down to ~25 dB PSNR) while remaining virtually invisible to human eyes and automated detectors.
Similarly, Yi Yu and Wenhan Yang explored "backdoor attacks" in Robust and Transferable Backdoor Attacks Against Deep Image Compression With Selective Frequency Prior. By embedding triggers in the Discrete Cosine Transform (DCT) domain, they created "Trojan" compression models that behave normally on clean images but fail catastrophically or manipulate downstream tasks when a specific frequency pattern is present.
The Downstream Domino Effect
Compression is rarely the final step in an AI pipeline; it is usually the front-end for tasks like object detection or facial recognition. This makes the compression stage a critical point of failure.
In Adversarial Attacks on Deep Learning-based Video Compression and Classification Systems, Jung-Woo Chang and Farinaz Koushanfar introduced RoVISQ, a framework that generates "compression-robust" perturbations. These perturbations are designed to survive the compression process and successfully fool downstream activity recognition systems. Because neural-enhanced video streaming often lacks specific defenses against joint optimization of noise and compression Jingcai Guo, these attacks can bypass standard "noise-filtering" properties of traditional codecs.
Toward Robust Codecs
The vulnerability of these models is not just a theoretical concern but a barrier to the adoption of standards like JPEG AI. As Egor Kovalev noted in Exploring adversarial robustness of JPEG AI, even international standards remain susceptible to bitrate inflation and quality degradation.
The primary defense currently identified is adversarial training—fine-tuning the compression models on images that have been intentionally "attacked." Tianyu Zhu demonstrated that this can reduce the impact of bitrate attacks by over 95%, effectively "vaccinating" the model against the structured noise that would otherwise lead to catastrophic failure.