PerQ: Inverse Generative Modeling for Neural Image Compression via Quantization Error Compensation

Tianhao Peng1Ho Man Kwan1Fan Zhang1 Shan Liu2Dave Bull1

1Visual Information Lab, University of Bristol2Tencent Media Lab

NeurIPS 2026

Left: a teapot crop from CLIC2020-test reconstructed by ELIC, PerQ, Control-GIC, OSCAR and PerCo at 0.05 to 0.13 bpp. Right: BD-rate of PSNR against BD-rate of LPIPS for all codecs, with PerQ alone in the region of good fidelity and good perceptual quality.
Balance between perceptual quality and pixel fidelity. Left: visual comparison at comparable bitrates, with PSNR (dB) / LPIPS under each tile. Right: BD-rate of PSNR against BD-rate of LPIPS on CLIC2020-test, both relative to VTM intra; lower is better on both axes.

Abstract

Neural image codecs face a long-standing trade-off: distortion-optimized designs preserve pixel-wise fidelity but tend to produce blurred reconstructions at low bitrates, while generative designs close the perceptual gap with a learned prior, but with pixel fidelity saturating as bitrate increases. The latter typically requires training multiple models for various bitrate targets. This paper addresses these limitations by reframing the perceptual reconstruction problem. Starting from the quantization bound that holds for any modern multi-rate codec, we identify the quantization cell with the set of latents that produce the same transmitted symbols, and derive a transport bound under which every reconstruction decoded from this cell lies within a rate-determined radius of the codec's output. Modeling the latent over this cell which is relatively small to the full image manifold, rather than generating from an image prior, casts unconstrained perceptual reconstruction as inverse generative modeling with bounded support. We instantiate this as PerQ: an image codec that attaches a rate-conditioned flow-matching compensator supported on this cell to a frozen multi-rate distortion-optimized backbone. The experimental results on the Kodak and CLIC2020 datasets show that PerQ offers similar performance to generative neural image codecs (e.g., MS-ILLM) in perceptual metrics (LPIPS, FID), while still maintaining competitive coding performance compared to distortion-optimized codecs (e.g., ELIC) in PSNR. Moreover, PerQ covers a wide bitrate range with fast decoding from a single model checkpoint, and its compensator brings similar gains to three different backbones.

Method

PerQ pipeline: frozen encoder, quantizer, arithmetic coder and decoder of the backbone, with the trainable PerQ compensator between the entropy decoder and the image decoder; below, the flow-matching compensator built from ConvNeXt blocks with AdaLN conditioning on the rate.
PerQ overview. Top: the compression pipeline. Bottom left: architecture of the flow-matching compensator. Bottom right: illustrative 2D slice of the latent space. The cell is centred at the quantized latent and contains the source latent. The compensator generates a refined latent within the cell, targeting the high-perceptual-quality field (blue) while remaining inside the low-distortion field (orange).
Quantization cell

Every latent within half a quantization step of the decoded latent rounds to the same symbols, so it produces the same bitstream. The source latent is one of them, and the decoder may pick any latent in this cell.

Transport bound

Every reconstruction decoded from the cell stays within a radius R(q) of the backbone's reconstruction, and R(q) grows linearly with the quantization step q. Restricting the compensator to a sub-cell of scale m shrinks the radius to m R(q).

Compensator

A rate-conditioned flow-matching network (ConvNeXt blocks, 4 Euler steps) predicts the refinement, which a tanh clamp keeps within ±m/2 of each symbol (m = 0.1). The backbone stays frozen and one checkpoint serves all 64 rate points.

Histograms of the backbone's quantization error in symbol space on Kodak at 0.010, 0.042, 0.178 and 0.874 bpp, with the plus or minus m over 2 band holding 96, 89, 70 and 43 percent of the error.
The backbone's quantization error is far from uniform. Symbol-space error on Kodak at four rate points (log density). The sub-cell ±m/2 (red, m = 0.1) contains most of the error at low rates, and the compensator's prior N(0, σ2) with σ = m/√12 (gold) is set to the scale of this sub-cell.

Interactive comparison

Flip between VTM, the DCVC-RT backbone and PerQ on three backbones (DCVC-RT, ELIC, MLIC++) at matched bitrates, on three CLIC2020-test crops. Hold for the original, zoom up to 3×.

Open the comparison on its own page

Results

BD-rate against VVC (VTM 22.0 intra) on Kodak and CLIC2020-test, with decoding cost. PerQ reduces the LPIPS BD-rate by 57.4% and 70.6% while its PSNR BD-rate stays competitive with VVC, from one checkpoint that covers 0.009 to 0.87 bpp.

Kodak, BD-rate vs. VVC (%) CLIC2020-test, BD-rate vs. VVC (%)
CodecMulti-rateDec. ms/MpkMACs/px PSNRLPIPSDISTSFIDPSNRLPIPSDISTSFID
Conventional
VTM intra–––00000000
VAE-based
ELIC206332−2.0−2.1+2.4+7.3−1.9−1.3+9.4−13.8
EVC✓57291+2.0−9.0−5.4−4.0+3.7−8.7−2.3−6.2
DCVC-RT-Intra✓46362−11.2−8.7−2.3−1.8−11.8−2.5+8.8−30.1
GAN-based perceptual
MS-ILLM150675+85.9−86.4−82.9−86.3+89.9−91.0−90.7−97.4
HiFiC150546+128.6−69.8−59.0−64.3+116.3−81.1−76.9−83.0
Control-GIC✓4166299+372.4−74.0−68.5−69.7+1045.8−65.6−73.8−85.2
Diffusion-based perceptual
PerCo6822 (20 steps)30930N/A−64.1−84.4−92.9N/AN/AN/A−94.3
DiffEIC11628 (50 steps)89899N/A−81.0−88.8−91.3N/A−84.6−87.4−96.5
CDC4854 (50 steps)39440+318.7−48.6−71.7−68.8N/A−63.3−74.7−86.8
StableCodec494 (1 step)6138N/A−92.7−96.2−96.8N/A−94.9−97.1−99.0
OSCAR✓456 (1 step)8262N/A−79.0−91.8−92.3N/A−80.2−88.7−96.0
Ours
PerQ✓87 (4 steps)702−1.6−57.4−63.2−67.9+2.7−70.6−77.4−91.9

All BD-rates are anchored to VVC intra (VTM 22.0, all-intra, YCbCr 4:4:4 BT.709, 10-bit) over QP 17 to 42; lower is better. N/A: the quality ranges do not overlap. Decoding time and kMACs per pixel at 768×512; for codecs that ship one checkpoint per rate, the mid-rate checkpoint.

Rate-distortion curves of PSNR, LPIPS, DISTS and FID against bpp on Kodak and CLIC2020-test for PerQ and all baselines.
Rate-distortion curves on Kodak (top) and CLIC2020-test (bottom). PSNR (RGB), LPIPS-Alex, DISTS and FID across bitrates. PerQ (red star) traces a single curve from one trained checkpoint by varying the rate parameter at the decoder. Solid markers denote multi-rate or distortion-optimal baselines; dashed markers denote per-rate trained generative codecs.
Two Kodak crops, kodim02 at low rate and kodim05 at high rate, reconstructed by ELIC, PerQ, a GAN-based and a diffusion-based codec, each with its error map.
Qualitative comparison. Source crop (left) compared with reconstructions from a distortion-optimized VAE-based codec (grey), PerQ (red), and two generative codecs, GAN-based and diffusion-based (blue), at similar bitrates with the error maps.

BibTeX

@inproceedings{peng2026perq,
  title     = {PerQ: Inverse Generative Modeling for Neural Image Compression via Quantization Error Compensation},
  author    = {Peng, Tianhao and Kwan, Ho Man and Zhang, Fan and Liu, Shan and Bull, Dave},
  booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
  year      = {2026}
}