atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

JPEG Inspired Deep Learning

ICLR 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: Biologically inspired robust vision · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes JPEG-DL, which prepends a trainable JPEG layer with a differentiable soft quantizer to any DNN and jointly trains quantization tables and the network, improving classification accuracy on CIFAR-100, fine-grained datasets, and ImageNet.

Problem

JPEG compression is traditionally assumed to hurt DNN accuracy, and prior work either optimizes JPEG for frozen models, needs ground-truth-guided compression, or relies on non-differentiable quantization that yields near-zero gradients for quantization parameters.

Approach

Replace the hard rounding in JPEG quantization with a differentiable soft quantizer (conditional expectation under a softmax over negative squared distances with trainable sharpness alpha), place this JPEG layer right after the input of any DNN, and jointly optimize quantization tables Q and the network; gradient scaling via alpha*q^2 stabilizes quantization-table updates.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add a trainable JPEG layer before the DNNResNet32, ResNet56, ResNet110, VGG8, VGG13, MobileNetV2, and ShuffleNetV2 · CIFAR-100top-1 accuracy: +0.78; +1.05; +0.67; +0.74; +1.55; +1.31; +1.22Helped
Add a trainable JPEG layer before the DNNResNet-18 · CUB-200, Dogs, Flowers, Petstop-1 accuracy: +4.81; +1.86; +11.63; +4.47Helped
Add a trainable JPEG layer before the DNNDenseNet-121 · CUB-200, Dogs, Flowers, Petstop-1 accuracy: +3.62; +3.06; +20.90; +5.64Helped
Add a trainable JPEG layer before the DNNSqueezeNetV1.1, ResNet-18, and ResNet-34 · ImageNet-1Ktop-1 accuracy: +0.31; +0.38; +0.23Helped
Add a trainable JPEG layerResNet-18 and DenseNet-121 · CUB-200, Dogs, Flowers, Petstop-1 accuracy: Table reports improvements across these results; up to +20.90Mixed
Place the JPEG layer after the first convolution instead of at the input (ablation)ResNet-18 · CUB-200top-1 accuracy: 58.81 -> 59.27Helped
Use 4:2:0 instead of 4:4:4 chrominance subsampling (ablation)JPEG-DL with ResNet-18 · CUB-200top-1 accuracy: 58.81 -> 58.00Hurt
Use 4:2:2 instead of 4:4:4 chrominance subsampling (ablation)JPEG-DL with ResNet-18 · CUB-200top-1 accuracy: 58.81 -> 58.11Hurt
Make the soft-quantizer scaling parameter alpha trainable (ablation)JPEG-DL · CIFAR-100 and fine-grained datasetsaccuracyNo clear effect
Use five quantization rounds instead of one (ablation)JPEG-DL with SqueezeNetV1.1 · ImageNet-1Ktop-1 accuracy: +0.20Helped
Replace ReLU with the JPEG layer after the first convolution (ablation)ResNet-18 · CUB-200, Dogs, Flowers, Petstop-1 accuracy: +5.27; +1.62; +14.97; +5.74Mixed
Change JPEG quantization initialization to all ones (ablation)JPEG-DL with EfficientFormer-L1 · CIFAR-100, Flowers, Petstop-1 accuracy: +0.22; +3.27; +3.76Helped

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-100 CUB-200-2011 Stanford Dogs Flowers Pets ImageNet-1K

Benchmarks: CIFAR-100 CUB-200-2011 Stanford Dogs Flowers Pets ImageNet-1K

Metrics: top-1 accuracy adversarial accuracy under FGSM and PGD

Baselines: Baseline standard DNN training Rand. QF JPEG augmentation Denoising Histogram equalization Learnable Resize Uniform noise JPEG-trainable method Polynomial rounding approximation JPEG method Straight-through estimator JPEG method

Builds on: JPEG Compression helps (Dodge & Karam style adaptive JPEG) Sensitivity-based JPEG quantization table design Knowledge distillation CRD

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy