mlsanityData to 7 Oct 2026

Differentiable JPEG: The Devil is in the Details

arXiv 2309.06978 ↗First posted 13 Sep 2023cs.CV cs.MMcited by 13

Not on the map. Why?

Abstract (arXiv)

JPEG remains one of the most widespread lossy image coding methods. However, the non-differentiable nature of JPEG restricts the application in deep learning pipelines. Several differentiable approximations of JPEG have recently been proposed to address this issue. This paper conducts a comprehensive review of existing diff. JPEG approaches and identifies critical details that have been missed by previous methods. To this end, we propose a novel diff. JPEG approach, overcoming previous limitations. Our approach is differentiable w.r.t. the input image, the JPEG quality, the quantization tables, and the color conversion parameters. We evaluate the forward and backward performance of our diff. JPEG approach against existing methods. Additionally, extensive ablations are performed to evaluate crucial design choices. Our proposed diff. JPEG resembles the (non-diff.) reference implementation best, significantly surpassing the recent-best diff. approach by 3.47dB (PSNR) on average. For strong compression rates, we can even improve PSNR by 9.51dB. Strong adversarial attack results are yielded by our diff. JPEG, demonstrating the effective gradient approximation. Our code is available at https://github.com/necla-ml/Diff-JPEG.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 24 of its 36 references that are in the map. First posted on arXiv 13 Sep 2023.

Builds on

24 of 36 references.

References · 24

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  4. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  5. 2017Neural Discrete Representation Learningcited by 4,650
  6. 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,229
  7. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
  8. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
  9. 2016Adversarial examples in the physical worldcited by 1,762
  10. 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,315
  11. 2020Training Generative Adversarial Networks with Limited Datacited by 1,184
  12. 2016Adversarial Machine Learning at Scalecited by 934
12 more
  1. 2017Countering Adversarial Images using Input Transformationscited by 517
  2. 2018HiDDeN: Hiding Data With Deep Networkscited by 384
  3. 2020Differentiable Augmentation for Data-Efficient GAN Trainingcited by 361
  4. 2017Lossy Image Compression with Compressive Autoencoderscited by 289
  5. 2019Kornia: an Open Source Differentiable Computer Vision Library for PyTorchcited by 231
  6. 2019Faster AutoAugment: Learning Augmentation Strategies using Backpropagationcited by 96
  7. 2021Invertible Image Signal Processingcited by 94
  8. 2020The Rate-Distortion-Accuracy Tradeoff: JPEG Case Studycited by 22
  9. 2021FaceGuard: Proactive Deepfake Detectioncited by 16
  10. 2020Learning to Improve Image Compression without Changing the Standard Decodercited by 7
  11. 2020Differentiable Data Augmentation with Korniacited by 4
  12. 2020Towards Robust Data Hiding Against (JPEG) Compression: A Pseudo-Differentiable Deep Learning Approachcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 4; 2025: 6; 2026: 2.

13 papers.

Sort:

By area: