Traditional image codecs like JPEG rely on fixed, mathematically rigid operations such as the Discrete Cosine Transform (DCT) and static quantization tables. Because these pipelines are linear and deterministic, they do not suffer from semantic or adversarial instabilities.
In contrast, next-generation Learned Image Compression (LIC) models replace these hand-crafted pipelines with deep neural networks. An encoder maps an image into a continuous latent space, an entropy model estimates the probability distribution of these latents to compress them into a bitstream, and a decoder maps them back to pixel space. The entire system is trained end-to-end to optimize a joint Rate-Distortion (R-D) objective: minimizing the file size (rate) while maximizing visual fidelity (distortion).
While LIC models achieve state-of-the-art compression ratios, their reliance on deep neural networks introduces a critical security flaw. Unlike traditional adversarial attacks that target classification labels (e.g., tricking a model into seeing a cat as a dog), adversarial attacks on neural compression exploit the continuous R-D optimization space. By injecting imperceptible perturbations into an input image, an attacker can selectively sabotage either side of the R-D curve—causing catastrophic reconstruction failures or massive file-size inflation.
The Two Axes of Rate-Distortion Attacks
An attacker targeting a neural codec typically manipulates one or both components of the rate-distortion objective. As formalized by Chenhao Wu et al. in On the Adversarial Robustness of Learning-based Image Compression Against Rate-Distortion Attacks, these vectors can be optimized simultaneously to degrade performance across multiple compression ratios.
▲ Distortion (Visual Quality Loss)
│
│ ┌──────────────────────────┐
│ │ Reconstruction Failure │
│ │ (Garbled/Unrecognizable)│
│ └──────────────────────────┘
│
│
│ ┌──────────────────────────┐
│ │ Joint R-D Degradation │
│ └──────────────────────────┘
│
│
│ ┌──────────────────────────┐
│ │ Bitrate Inflation │
│ │ (Resource Exhaustion) │
│ └──────────────────────────┘
│
└────────────────────────────────────────► Bitrate (File Size)
1. Reconstruction Failure (Distortion Maximization)
In a distortion attack, the goal is to make the decoded output completely unusable while ensuring the input image looks perfectly normal to human eyes.
Because neural decoders rely on highly non-linear transformations to reconstruct fine details, tiny, calculated shifts in the input pixels can accumulate across layers. Yang Sui et al. demonstrate in Reconstruction Distortion of Learned Image Compression with Imperceptible Perturbations that these imperceptible high-frequency perturbations cause the decoder to output a garbled, unrecognizable mess.
To make these attacks even more destructive, Egor Kovalev et al. introduce a modular framework in Treating Neural Image Compression via Modular Adversarial Optimization: From Global Distortion to Local Artifacts that combines global distortion with local artifact generation. By masking perturbations within the frequency domain, they bypass basic visual defense mechanisms. Similarly, Nikolay Kalmykov et al. develop the T-MLA framework, which injects stealthy noise directly into the wavelet domain rather than pixel space, forcing severe reconstruction failures upon decoding.
2. Bitrate Inflation (Resource Exhaustion)
Instead of ruining the visual quality, an attacker can target the rate component. In a bitrate inflation attack, the reconstructed image looks fine, but the resulting file size explodes. This acts as a stealthy denial-of-service attack on cloud storage and network bandwidth.
This attack works by exploiting the entropy estimation module (often structured as a hyperprior). The entropy model predicts how predictable the latent representations are; if the latents are highly predictable, they can be compressed into a tiny bitstream. Kang Liu et al. show in Manipulation Attacks on Learned Image Compression that by intentionally disrupting this entropy estimation component, an attacker can force the encoder to allocate an enormous number of bits to encode what appears to be a visually simple, clean image.
This vulnerability can also be baked directly into the model via supply-chain poisoning. Yi Yu et al. demonstrate this in Backdoor Attacks Against Deep Image Compression via Adaptive Frequency Trigger, showing that an encoder can be modified to function normally on standard images but produce massive, resource-exhausting bitstreams whenever a specific, hidden frequency trigger is present in the input.
Why Neural Codecs are Structurally Fragile
The very architectural innovations that allow neural codecs to outperform JPEG also make them uniquely vulnerable to adversarial manipulation.
- The Hyperprior and IGDN Layers: Advanced architectures use hyperpriors to capture spatial dependencies in the latents, alongside Integrated Generalized Divisive Normalization (IGDN) layers to normalize activations. However, the analysis by Chenhao Wu et al. identifies hyperpriors and IGDN layers as the primary entry points for adversarial exploitation. Furthermore, they discover that models designed to support variable compression rates are significantly less robust against bitrate attacks than models optimized for a single, fixed rate.
- Asymmetric Pipeline Vulnerability: The vulnerability within the compression pipeline is highly directional. Yi Yu 0011 et al. find in Robust and Transferable Backdoor Attacks Against Deep Image Compression With Selective Frequency Prior that targeting or fine-tuning the encoder component is vastly more effective for executing bitrate and quality attacks than targeting the decoder. This means an attacker only needs to compromise the encoding side of a pipeline to exploit the system.
Downstream Pipeline Risks and Transferability
Neural image compression is rarely an isolated final step; it usually serves as a preprocessing layer for downstream computer vision tasks, such as object detection, facial recognition, or image retrieval. This creates a compounding security risk.
┌───────────────────────────┐
│ Adversarial Input Image │
└─────────────┬─────────────┘
│
▼
┌───────────────────────────┐
│ Neural Compression (LIC) │
└─────────────┬─────────────┘
│ Perturbation survives
▼ non-linear quantization
┌───────────────────────────┐
│ Decoded Output Image │
└─────────────┬─────────────┘
│
▼
┌───────────────────────────┐
│ Downstream Vision Model │
│ (Classification/Retrieval)│
└─────────────┬─────────────┘
│
▼
┌───────────────────────────┐
│ Exploited / Fooled │
└───────────────────────────┘
Standard adversarial perturbations designed to fool classifiers are often destroyed by traditional compression like JPEG because the quantization step discards high-frequency noise. However, perturbations optimized against neural codecs are highly resilient. Yang Sui et al. demonstrate in Transferable Learned Image Compression-Resistant Adversarial Perturbations that adversarial noise can be engineered to survive the non-linear quantization layers of an LIC model, remaining fully capable of fooling downstream classification networks after decoding.
This threat extends directly into video streaming and analytics infrastructure. Jung-Woo Chang et al. introduce RoVISQ, a framework that manipulates the R-D relationship in deep learning-based video compression. By injecting compression-resistant noise into video frames, they simultaneously degrade visual playback quality, inflate streaming bandwidth, and break downstream video classification models.
This systemic fragility highlights a sharp contrast between compressing data and compressing models. While model compression techniques like pruning or quantization can sometimes preserve or even enhance a network's internal robustness (as explored by Yiren Zhao et al. and Canwen Xu et al.), using neural networks to compress input data introduces entirely new structural attack vectors that traditional security frameworks are unequipped to handle.
Key Foundational Work
To Compress Or Not To Compress: Understanding The Interactions Between Adversarial Attacks And Neural Network Compression (2018) — contributed 2 concept elements to this direction.
Beyond Preserved Accuracy: Evaluating Loyalty and Robustness of BERT Compression (2021) — contributed 1 concept elements to this direction.