Human Aligned Compression for Robust Models

Samuel Räber, Andreas Plesner, Till Aczel, Roger Wattenhofer
4/16/2025
cs.CVeess.IV

No official code found. Best implementation: aplesner/Human-aligned-compression-for-robust-models (1 star, last commit 2025-09-30).

Abstract

Adversarial attacks on image models threaten system robustness by introducing imperceptible perturbations that cause incorrect predictions. We investigate human-aligned learned lossy compression as a defense mechanism, comparing two learned models (HiFiC and ELIC) against traditional JPEG across various quality levels. Our experiments on ImageNet subsets demonstrate that learned compression methods outperform JPEG, particularly for Vision Transformer architectures, by preserving semantically meaningful content while removing adversarial noise. Even in white-box settings where attackers can access the defense, these methods maintain substantial effectiveness. We also show that sequential compression--applying rounds of compression/decompression--significantly enhances defense efficacy while maintaining classification performance. Our findings reveal that human-aligned compression provides an effective, computationally efficient defense that protects the image features most relevant to human and machine understanding. It offers a practical approach to improving model robustness against adversarial threats.

View on arXivView PDF

Code Implementations(1)

10C++, ShellApr 7, 20251 years ago

Similar Papers

Cite this paper

@article{rber2025human,
  title  = {Human Aligned Compression for Robust Models},
  author = {Samuel Räber and Andreas Plesner and Till Aczel and Roger Wattenhofer},
  year   = {2025},
  eprint = {2504.12255},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.12255v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.12255.svg)](https://codeofpaper.com/paper/2504.12255)

Discussion