arXiv:2608.28730eess.IVAug 2026

Manuscript Offprint

arXiv:2608.28730

Efficient JPEG Restoration in the Wavelet Domain via Mean Flows

Stefan-Alexandru Asandei, Mihai-Alexandru Radu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Latest JPEG restoration systems achieve strong quality with large models, yet often remain too slow and expensive for efficient on-device deployment. We present a 65M-parameter generative restorer that attains the lowest LPIPS at QF 10 and 20 on LIVE-1, Urban100, and DIV2K-val while sustaining 8.05 images/s at 1024×10241024 \times 1024 on a single RTX 3090, roughly 4.9×4.9\times the reported throughput of one-step SODiff at one-twentieth of its parameters. Trained from scratch, the model replaces the learned VAE encoder-decoder with an exactly invertible two-level Haar transform, predicts a clean wavelet-domain residual through a rank-enhanced linear-attention DiT that estimates compression severity internally, and is optimized with an improved MeanFlow objective that enables inference in one or two network evaluations without distillation. Large pretrained priors remain stronger under severe compression (QF 5), whereas our model prioritizes throughput for deployment-constrained restoration.

1 INTRODUCTION

JPEG remains the dominant image format because its block-wise transform coding and quantization offer an effective rate-distortion trade-off. At aggressive compression levels, however, the quantized high-frequency coefficients are unrecoverable at decode time, producing blocking, ringing, color discontinuities, and lost texture [1]. Restoration is therefore inherently ill-posed: a method must suppress compression-induced structure without hallucinating detail that the input does not support.

Feed-forward restoration networks address this problem efficiently, but their regression objectives tend to favor oversmoothed estimates. Recent generative approaches instead repurpose pretrained text-to-image diffusion models as image priors. DiffBIR and SUPIR demonstrate the strength of such priors for blind restoration [2, 3], and SODiff specializes this line of work to JPEG restoration, reducing denoising to a single step [4]. The computational burden of SODiff, however, does not stem from a long sampling trajectory. Inference instead retains the full Stable Diffusion 2.1 latent pipeline, including the denoising UNet, VAE encoding and decoding, and task-specific semantic conditioning. This design achieves excellent perceptual quality, particularly under severe compression, but it constitutes a difficult operating point for memory and latency-constrained deployment.

This work investigates whether generative JPEG restoration can occupy a markedly different point on the quality-efficiency frontier. We train a 65.32M-parameter model from scratch, with no text encoder, no pretrained image generator, and no VAE. The model operates on an exactly invertible two-level Haar representation, within which a rank-enhanced linear-attention DiT predicts a clean residual quantity, an improved MeanFlow objective then trains the induced average velocity in velocity space. This construction couples the direct clean-image prediction of JiT and pixel MeanFlow [5, 6] with the large-interval sampling of MeanFlow [7, 8]. Two network evaluations yield the best over-

Figure

Figure 1: The quality-throughput frontier on LIVE-1 at QF 10 for 1024×10241024 \times 1024 inputs. Two-update MeanFlow approaches SODiff's LPIPS while moving to a substantially higher-throughput regime; one-update MeanFlow exposes a faster operating point. Throughput uses a logarithmic axis.

all operating point in our experiments, and a single-evaluation variant is available when throughput is the priority.

We do not claim uniformly superior restoration. A compact model trained from scratch cannot inherit the semantic and texture knowledge of a billion-parameter text-to-image model, and this deficit is visible in DISTS and no-reference quality metrics. The model nevertheless matches or improves LPIPS at QF 10 and 20 on LIVE-1, Urban100, and DIV2K-val while sustaining 8.05 images/s at 1024×10241024 \times 1024 on a single RTX 3090. We therefore position the result as a practical Pareto point rather than a replacement for methods whose primary objective is maximal generative quality.

Our contributions are:

  • a compact, latent-free conditional MeanFlow formulation for JPEG restoration based on clean-residual prediction in a two-level Haar domain;

*Correspondence:

Ş. Asandei: asandei.stefanel@gmail.com

M. Radu: mihai.alexradu17@gmail.com

  • an efficient restoration backbone that integrates RELA into a SANA-style linear DiT and estimates unknown JPEG severity internally;

  • an exact segmented JVP implementation that reduces MeanFlow training memory from 15.75 to 6.16 GiB in a controlled comparison; and

  • a quality-efficiency study spanning three datasets, six inference configurations, resolution scaling, and deployment-oriented performance.

References (30)