NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Just noticeable difference for machine perception and generation of regularized adversarial images with minimal perturbation

Adil Kaan Akan, Emre Akbas, Fatos T. Yarman-Vural

Abstract

This paper introduces a novel method for generating adversarial images based on the psychological concept of Just Noticeable Difference (JND). By employing a regularized cost function that prioritizes naturalness through Total Variation and Bounded Range constraints, the authors produce perturbations that are mathematically minimal and perceptually subtle. Evaluation across CIFAR10, ImageNet, and MS COCO demonstrates that the JND method effectively fools both classifiers and object detectors while maintaining high visual fidelity.

Introduction

Deep neural networks (DNNs) are famously brittle. Small, intentional perturbations—known as adversarial attacks—can trick a world-class classifier into seeing a toaster where there is a tabby cat. However, many classic attacks, such as FGSM or DeepFool, focus purely on mathematical distance metrics (e.g., $L_2$ or $L_\infty$ norms). These metrics often fail to align with human perception; an attack might have a small mathematical distance but still appear "noisy" or "glitchy" to a human observer.

The authors argue that for an adversarial image to be truly effective, it should reach the "Just Noticeable Difference" for the machine—the absolute minimum change required to flip the model's prediction—while remaining as perceptually identical to the original image as possible for a human.

Methodology

The proposed JND method is a gradient-based white-box attack. Unlike standard training where model weights are updated, the JND method freezes the weights and iteratively updates the pixels of the input image. The core innovation lies in a regularized cost function designed to ensure the adversarial image looks "natural":

  1. Total Variation (TV): This term enforces color similarity between neighboring pixels, preventing the high-frequency "salt-and-pepper" noise common in other attacks.
  2. Bounded Range (BR): This penalizes pixels that drift outside the standard 0-255 intensity range, ensuring the image remains valid and displayable without clipping artifacts.

The algorithm is iterative: it adds a tiny amount of noise (proportional to the gradient of the cost function) until the model outputs a false label. The moment the label flips, the process stops, capturing the JND for that specific machine perception task.

Experimental Results

The researchers evaluated their method across three benchmarks: CIFAR10 (low-resolution classification), ImageNet (high-resolution classification using Inception v3 and VGG16), and MS COCO (object detection using RetinaNet).

Comparison of original images and adversarial images generated with the JND method. The regularized JND images maintain high visual fidelity compared to standard adversarial perturbations.

Quantitative Performance

The JND method consistently outperformed state-of-the-art methods in both subtlety and effectiveness:

  • Image Quality: On ImageNet, JND achieved a PSNR of 392 and an SSIM of 0.9998, significantly higher than baseline methods, indicating that the adversarial images were virtually indistinguishable from the originals.
  • Minimal Perturbation: In CIFAR10 tests, the $L_2$ distance for JND was 0.21, compared to 0.70 for FGSM and 0.54 for DeepFool.
  • Efficiency: To reach a 25% confidence flip on CIFAR10, JND required only 91.3 iterations, while FGSM needed 126.1.

Object Detection

The authors successfully tricked RetinaNet on the MS COCO dataset. In targeted attacks, they could inject "ghost" objects into scenes that were invisible to humans but detected with 100% certainty by the machine.

Discussion and Key Insights

  • Psychology-Inspired AI: By defining JND for a model, the authors treat the neural network as a "digital subject" with its own sensory thresholds, bridging the gap between human psychophysics and machine perception.
  • Naturalness via Regularization: Most adversarial research treats noise as a mathematical byproduct. This paper treats it as an image-processing problem. By using Total Variation, they ensure the adversarial "noise" follows the structural logic of the original image.
  • Targeted vs. Non-targeted: The method is robust enough to handle both. It can make a car "disappear" from an object detector or force the detector to see a car in an empty field.

Conclusion and Future Work

The JND method provides a more perceptually grounded approach to adversarial machine learning. The primary limitation is its nature as a white-box attack, requiring full access to the model's architecture and gradients. Future work could involve extending JND to black-box scenarios where gradients must be estimated, or using JND-generated images for adversarial training to create models that are more robust and perhaps more aligned with human visual thresholds.

Summary updated

BibTeX
@misc{akan2021just,
  author = {Adil Kaan Akan and Emre Akbas and Fatos T. Yarman-Vural},
  title = {{Just noticeable difference for machine perception and generation of regularized adversarial images with minimal perturbation}},
  year = {2021},
  eprint = {2102.08079},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.08079},
}
Figure