Running JPEG AI Without Dedicated NPU Hardware

Deep learning-based image compression standards like JPEG AI offer superior compression ratios and perceptual quality compared to legacy codecs, but their complex neural architectures raise questions about hardware requirements. While Neural Processing Units (NPUs) provide optimal power efficiency and speed for deep learning inference, modern software and algorithmic optimizations allow JPEG AI models to run on general-purpose hardware such as standard CPUs and GPUs. This article explores whether JPEG AI can achieve practical efficiency without specialized NPUs, examining the technical hurdles, alternative hardware performance, and optimization techniques that make non-NPU execution viable.

The Computational Challenge of JPEG AI

Traditional image formats like JPEG, PNG, or WebP rely on hand-crafted, mathematically simple operations such as the Discrete Cosine Transform (DCT) and simple entropy coding. These algorithms require minimal memory bandwidth and can execute instantaneously on virtually any modern processor.

In contrast, JPEG AI uses deep neural networks (DNNs), typically consisting of convolutional layers, self-attention modules, and learned non-linear transforms. Decoding a single image requires millions, sometimes billions, of floating-point operations (FLOPs). Without acceleration, running these operations sequentially introduces noticeable latency, excessive battery drain on mobile devices, and high CPU utilization.

Running JPEG AI on Modern CPUs

Standard central processing units (CPUs) can execute JPEG AI decoding, but their efficiency depends heavily on instruction set support:

Utilizing GPUs as an Alternative

For devices lacking an NPU, the graphics processing unit (GPU) serves as the primary fallback:

Key Optimizations for Non-NPU Hardware

To enable practical efficiency without dedicated AI silicon, JPEG AI implementations rely on several software and architectural optimizations:

  1. Quantization: Converting weights and activations from 32-bit floating-point (FP32) to 8-bit integers (INT8) or 16-bit floating-point (FP16) reduces memory footprint by up to 75% and dramatically accelerates throughput on standard CPU vector units.
  2. Simplified Entropy Models: The entropy coding stage in learned compression is often an autoregressive bottleneck that executes sequentially. Designing parallel, checkerboard, or non-autoregressive entropy models enables full utilization of multithreaded CPUs and GPUs.
  3. Model Pruning and Distillation: Reducing the number of convolutional channels and pruning redundant network parameters decreases the overall FLOP count without severely impacting visual fidelity.

Final Assessment

JPEG AI algorithms can run efficiently without specialized NPU hardware, provided they utilize modern integrated or discrete GPUs alongside optimized inference libraries. On modern CPUs, efficiency is achievable for single-image decodes using SIMD and INT8 quantization, but power-constrained mobile environments still benefit immensely from NPU offloading for sustained, low-power operation.