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

Image Restoration via Discrete Codebook Retrieval

This direction is split into other directions: discrete codebook priors. Its last version stays readable and citable here.

Version 1 of 160 papers90 conceptsfrozen 2026-10-04

Image restoration—the task of recovering a clean, high-resolution image from one that is blurry, noisy, or obscured—is fundamentally "ill-posed." For any given degraded input, there are infinitely many possible sharp images that could have produced it. Traditional deep learning approaches attempt to solve this by training a network to regress directly from "broken" pixels to "clean" ones. However, in cases of severe degradation, the signal is so weak that these models often produce blurry textures or physically impossible artifacts.

A growing body of research suggests a different strategy: instead of synthesizing new pixels from scratch, we should treat restoration as a retrieval task. By leveraging a pre-learned "codebook" of high-quality visual components, models can map corrupted features to a discrete set of clean, prototypical building blocks.

The Codebook as a Structural Prior

The core intuition behind this direction is that natural images are composed of recurring structural motifs—what Shangchen Zhou and colleagues call "visual atoms." In papers like Towards Robust Blind Face Restoration with Codebook Lookup Transformer, researchers use a Vector Quantized Variational Autoencoder (VQ-VAE) or VQGAN to pre-train a dictionary of these atoms on massive datasets of high-quality images.

This codebook acts as a "manifold of realistic shapes." When a model encounters a degraded image, it doesn't try to guess the exact original coordinates in a continuous latent space. Instead, it predicts which discrete "code" from the library best represents that region. As Yuhang Zhang notes in a comprehensive survey on Deep Face Restoration, this discretization significantly reduces the ambiguity inherent in blind restoration, forcing the output to remain within the bounds of sharp, pre-defined components.

Vector Quantization as Inherent Denoising

Why does mapping to a discrete codebook work better than continuous regression? The answer lies in the "snapping" effect of vector quantization.

In a continuous space, noise and blur shift feature vectors away from the "clean" manifold. A standard decoder will faithfully reconstruct these shifted vectors, resulting in a noisy or blurry output. However, in a quantized space, the model must choose the nearest entry in the codebook. Gen Li and the team behind VQFR demonstrate that this process acts as an inherent denoising mechanism. By replacing a corrupted feature with its closest high-fidelity representative, the system effectively filters out the noise that would otherwise leak into the final image.

This mechanism is particularly powerful in extreme conditions. For instance, Han Zhou 0003 and Wei Dong apply this to low-light enhancement, where sensor noise is so severe that it overwhelms the actual image signal. By constraining the reconstruction to a discrete dictionary, the model "repaints" the scene using a palette of high-quality samples rather than amplifying the existing noise.

Beyond Faces: Specialized Dictionaries

While face restoration is a primary driver of this research, the "codebook prior" strategy is being applied to diverse domains where structural integrity is paramount:

  • Typography: Mingshuai Yao and Wangmeng Zuo developed VQ-Font, which uses a codebook of high-quality stroke components to prevent the "distorted stroke" problem common in few-shot font generation.
  • Adverse Weather: Jinbin Bai (AWRCP) and Ruiqi Wu (RIDCP) use codebooks to restore images obscured by heavy rain, snow, or haze. The codebook provides a structural anchor that helps the model "see through" atmospheric interference.
  • Medical Imaging: In DeepPriorCBCT, Haoshen Wang and colleagues use discrete representation learning to reconstruct high-quality 3D CT scans from low-radiation "sparse-view" inputs, ensuring that the results remain anatomically plausible.

Bridging the Domain Gap

A recurring challenge in restoration is the "domain gap"—the difference between the synthetic degradations used for training and the complex physics of the real world. Qi Jiang and Hao Shi address this in QDMR by using vector quantization to learn a shared codebook of optical degradations. By mapping continuous real-world blur to a finite set of learned prototypes, they regularize the representation, making the restoration process more robust to shifts in camera hardware or environmental conditions.

Similarly, Zhouxia Wang and the RestoreFormer team emphasize that dictionaries optimized for reconstruction—rather than just identity recognition—are essential. These dictionaries store the generative building blocks (textures, edges, and fine details) necessary to synthesize realistic images, shifting the paradigm from simple signal filtering to high-fidelity feature retrieval.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_image_restoration_via_discrete_codebook__04865103,
  title = {Image Restoration via Discrete Codebook Retrieval},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/image-restoration-via-discrete-codebook-retrieval/rdr_04865103f5264f1a981181db4fb2e9e5},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-29},
}

This exact version (version 1, frozen text):

@misc{lacuna_image_restoration_via_discrete_codebook__04865103_v1,
  title = {Image Restoration via Discrete Codebook Retrieval},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/image-restoration-via-discrete-codebook-retrieval/rdr_04865103f5264f1a981181db4fb2e9e5/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-29},
}