On the Adversarial Robustness of Learning-based Image Compression Against Rate-Distortion Attacks

Chenhao Wu, Qingbo Wu, Haoran Wei, Lei Wang, Fanman Meng, King Ngi Ngan, Zhuo Li, Hongliang LiIEEE Trans. Multimedia 2025

TL;DR

Learning-based image compression (LIC) models, while achieving state-of-the-art compression ratios, are vulnerable to adversarial attacks that can degrade their performance. This paper introduces more realistic attack scenarios (SRDA and ARDA) and novel analytical tools to pinpoint vulnerabilities, revealing that hyperpriors and IGDN layers are key weak spots. The study also evaluates defense strategies like adversarial training and online updating.

What Problem Does This Paper Address?

Modern image compression techniques, particularly those based on deep learning (LIC), offer impressive rate-distortion (RD) performance, often surpassing traditional methods. However, like many deep learning models, LIC algorithms are susceptible to adversarial attacks. Previous research has explored these vulnerabilities, but the attacks were often simplified, focusing on either bitrate or distortion independently, and not reflecting real-world scenarios where attackers might target both simultaneously and across various compression levels. This lack of realistic attack models and in-depth analysis hinders a comprehensive understanding of LIC's adversarial robustness and the development of effective defenses. This paper aims to bridge this gap by introducing more sophisticated attack paradigms and analytical tools to better understand and defend LIC models.

Methods

The core contributions of this paper lie in its novel attack methodologies and analytical tools:

  • Specific-ratio Rate-Distortion Attack (SRDA): This method allows adversaries to craft attacks targeting a specific compression ratio, aiming to degrade RD performance.
  • Agnostic-ratio Rate-Distortion Attack (ARDA): This more challenging attack aims to degrade RD performance across all compression ratios with a single set of adversarial samples, better reflecting scenarios where the compression ratio is not fixed or known by the attacker.
  • Entropy Causal Intervention (ECI): This tool helps identify the origin of bitrate degradation by analyzing the impact of different components within the entropy model on the final bitrate.
  • Layer-wise Distance Magnify Ratio (LDMR): This tool quantifies how much input perturbations are amplified by different layers in the network, helping to locate the source of distortion attacks.

These methods are used to evaluate eight prominent LIC algorithms. The paper also investigates two defense techniques: adversarial training and online updating.

Datasets

The experiments were conducted on the Kodak dataset, which contains 24 full-color images. For adversarial training, a larger dataset of approximately 14,500 web images was used.

Key Insights and Ideas

  • Realistic Attacks Matter: Simple, single-objective attacks (just bitrate or just distortion) don't fully capture the vulnerability of LIC models. Joint rate-distortion attacks, especially across various compression ratios (ARDA), reveal more significant weaknesses.
  • Hyperprior and IGDN are Critical Vulnerabilities: The paper's analytical tools pinpoint the hyperprior component in the entropy model as a key contributor to bitrate degradation and the Inverse Generalized Divisive Normalization (IGDN) layer as a major amplifier of distortion. This is significant because these are common components in many LIC architectures.
  • Variable-Rate Models are Less Robust: Algorithms designed for variable compression rates (e.g., Song2021, Cai2022) showed less robustness to attacks compared to models trained for specific rates, particularly concerning bitrate degradation.
  • Defense Strategies Have Trade-offs: Adversarial training can improve robustness but may degrade the original RD performance. Online updating offers comparable robustness without altering the base model's performance, making it a promising alternative.

Key Results

  • All eight evaluated LIC algorithms showed significant performance degradation under joint rate-distortion attacks.
  • ARDA proved to be a more effective attack strategy than SRDA, highlighting the importance of considering attacks across multiple compression ratios.
  • ECI analysis revealed that manipulating the hyperprior component had the most significant impact on bitrate reduction for most models.
  • LDMR analysis showed that the IGDN layer significantly amplifies input perturbations, leading to increased distortion. Models without IGDN (Cai2022, Zou2022) exhibited better distortion robustness.
  • Adversarial training improved robustness but resulted in a noticeable drop in RD performance for most models. Online updating achieved comparable robustness with minimal impact on clean image RD performance.

Limitations and Future Work

The paper acknowledges that while adversarial training can improve robustness, it requires careful selection of adversarial samples to cover various attack directions. The optimization instability of some variable-rate models made them less amenable to online updating. Future work could focus on developing more stable online updating strategies for these models and exploring novel defense mechanisms that leverage the insights gained about hyperprior and IGDN vulnerabilities. The authors also suggest that their proposed attack paradigms and analytical tools can serve as a benchmark for future research on LIC robustness.

Summary updated

Abstract

Despite demonstrating superior Rate-Distortion (RD) performance, Learning-based Image Compression (LIC) algorithms have been found to be vulnerable to malicious perturbations in recent studies. However, the adversarial attacks considered in existing literature remain divergent from real-world scenarios, both in terms of the attack direction and bitrate. Additionally, existing methods focus solely on empirical observations of the model vulnerability, neglecting to identify the origin of it. These limitations hinder the comprehensive investigation and in-depth understanding of the adversarial robustness of LIC algorithms. To address the aforementioned issues, this paper considers the arbitrary nature of the attack direction and the uncontrollable compression ratio faced by adversaries, and presents two practical rate-distortion attack paradigms, <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i.e.</i>, Specific-ratio Rate-Distortion Attack (SRDA) and Agnostic-ratio Rate-Distortion Attack (ARDA). To the best of our knowledge, we are the first to conduct joint rate-distortion attacks on LIC algorithms. Using the performance variations as indicators, we evaluate the adversarial robustness of eight predominant LIC algorithms against diverse attacks. Furthermore, we propose two novel analytical tools for in-depth analysis, <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i.e.</i>, Entropy Causal Intervention and Layer-wise Distance Magnify Ratio, and reveal that <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">hyperprior</i> significantly increases the bitrate and <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Inverse Generalized Divisive Normalization (IGDN)</i> significantly amplifies input perturbations when under attack. Lastly, we examine the efficacy of adversarial training and introduce the use of online updating for defense. By comparing their advantages and disadvantages, we provide a reference for constructing more robust LIC algorithms against the rate-distortion attacks.
BibTeX
@article{wu2025adversarial,
  author = {Chenhao Wu and Qingbo Wu and Haoran Wei and Lei Wang and Fanman Meng and King Ngi Ngan and Zhuo Li and Hongliang Li},
  title = {{On the Adversarial Robustness of Learning-based Image Compression Against Rate-Distortion Attacks}},
  journal = {IEEE Transactions on Multimedia},
  year = {2025},
  doi = {10.1109/tmm.2025.3639935},
}
Figure