TL;DR
TVQ&RAP is a generative super-resolution (SR) framework that achieves state-of-the-art photorealism with a fraction of the computational cost of diffusion models. It succeeds by decomposing images into structure and texture—quantizing only the missing textures—and training its code predictor using final image reconstruction quality rather than simple label accuracy.
The Bottlenecks in Current VQ-Based SR
Generative Super-Resolution (GSR) aims to transform low-resolution (LR) images into high-resolution (HR) versions containing realistic, synthesized details. Recently, Vector-Quantized (VQ) models have become popular for this task, mapping continuous image features to a discrete "codebook" of visual patterns.
However, current VQ-based SR faces two major bottlenecks:
- High Quantization Error: Standard VQ tries to encode the entire image (both basic shapes and fine textures) into a single codebook. Because natural images are incredibly diverse, a massive codebook is required to avoid losing detail, making it computationally expensive and hard to train.
- Objective Mismatch: Most models train their "index predictor" (the part that chooses which codebook item to use) using cross-entropy loss. This treats all incorrect guesses equally. In reality, picking a slightly different texture code might still look fine, while picking a structurally wrong code looks terrible. The training objective fails to account for the final image's visual quality.
Proposed Methods: TVQ and RAP
To solve these issues, the authors propose two primary innovations:
1. Texture Vector-Quantization (TVQ)
Instead of quantizing everything, the model decomposes the HR image into Structure and Texture.
- Structure: Basic shapes and low-frequency information are largely preserved in the LR input. The model extracts this structure and aligns it with the LR features.
- Texture: Only the high-frequency details (the "missing" parts) are sent through the VQ process.
By removing the burden of representing basic structures from the codebook, the feature space becomes much simpler. This allows a significantly smaller codebook to represent textures much more accurately.
2. Reconstruction Aware Prediction (RAP)
To fix the objective mismatch, the authors move away from simple "code-level" supervision. They use a Straight-Through Estimator (STE), a technique that allows gradients to flow through non-differentiable operations (like picking a discrete index). This enables the model to be trained using image-level supervision (MSE, perceptual, and GAN losses). The predictor learns to pick codes based on how much they improve the final reconstructed image, prioritizing visual plausibility over mathematical index-matching.
Key Insights and Performance
- Less is More in the Codebook: A small codebook (1024 items) focused solely on textures outperforms a massive codebook (8192 items) trying to model the whole image. As shown in the figure above, TVQ with just 256 codes surpasses vanilla VQ with 8192 codes in reconstruction quality (rFID).
- Extreme Efficiency: Because it avoids the iterative denoising steps required by diffusion models, TVQ&RAP is incredibly fast. It achieves a runtime of 38ms for a 64x64 input, compared to 689ms for ResShift (a popular diffusion-based SR method).
- Perceptual Quality: On the ImageNet-Test set, TVQ&RAP achieved the highest scores in no-reference metrics like CLIPIQA (0.730) and MUSIQ (63.873), indicating superior perceived sharpness.
- Real-World Performance: In tests on RealSR and RealSet65, the model consistently ranked first or second across perceptual metrics (LPIPS, FID, NIQE), often outperforming much larger diffusion models (using only 57M parameters compared to SOTA diffusion models like SeeSR at 2524M).
- User Preference: A subjective user study showed a 48.8% preference rate for TVQ&RAP, more than double the next best competitor.
Limitations and Future Work
- Fixed Downsampling Ratios: The authors empirically chose a 32x downsampling factor for the structure branch. The optimal balance between structure and texture might vary depending on the specific task or image type.
- Two-Stage Training: The current pipeline requires first training the TVQ autoencoder and then the RAP predictor. Future work might explore integrated end-to-end training strategies.
- Extreme Degradations: While it handles real-world noise well, performance on extremely corrupted images where the underlying structure is lost in the LR input remains an area for deeper exploration.
Summary updated