TL;DR
Vision-language models (VLMs) that generate images token-by-token often suffer from blurry textures and warped details—not because the model doesn't know what to draw, but because standard decoding throws away rich probability data at the very last step. This paper introduces DCDD, a plug-and-play diffusion decoder that catches this discarded "uncertainty" data and turns it into crisp, high-fidelity images. Best of all, it requires zero retraining of the massive, frozen VLM underneath.
What Problem Does This Paper Address?
Autoregressive VLMs generate images much like large language models write text: they predict a sequence of discrete numbers (indices) from a learned visual vocabulary, known as a VQ-VAE codebook. While these models are great at understanding complex prompts, their final images often look slightly off—text is garbled, faces are mushy, and fine geometry gets distorted.
As the models scale up, this VQ-VAE decoding stage becomes the primary visual bottleneck. Until now, fixing this meant either replacing the discrete vocabulary with continuous representations or wiring a diffusion model directly into the VLM. Both options require foundation-scale retraining—costing small fortunes in compute and risking "catastrophic forgetting" of the VLM's other multimodal skills. The authors ask a simpler question: Can we upgrade the visual fidelity post-hoc, leaving the VLM completely untouched?
Methods
Before a VLM picks a single codebook index (via argmax or sampling), it computes a full probability distribution—logits—over the entire visual vocabulary. Standard decoding throws this distribution in the trash. DCDD (Distribution-Conditioned Diffusion Decoder) rescues it using three components:
- Logit-to-Code Distributional Mapping (LCDM): Instead of handing a single winning token to the decoder, LCDM computes a probability-weighted average of all codebook vectors, paired with four scalar numbers summarizing the distribution's shape and uncertainty (e.g., top-1 vs. top-2 margin, tail entropy).
- Logit Calibration (LC): Training a decoder by running a 7-billion-parameter VLM on millions of images is prohibitively slow. Instead, the authors generate fast "proxy logits" using the lightweight VQ-VAE encoder via cosine similarity. However, raw encoder distributions are nearly flat (spreading probability across ~5,767 tokens), whereas VLM distributions are sharp (~2 tokens). LC is a clever, gradient-free statistical alignment (adjusting scale, temperature, and smoothing) calibrated on just 100 reference prompts so training proxies mimic real inference-time VLM logits.
- Diffusion Decoder (DD): The team fine-tunes only the attention and adapter layers of a pre-trained FLUX.1-Fill model to map LCDM's continuous vectors into crisp images. Crucially, DD receives zero text prompts—forcing it to faithfully render the VLM's token beliefs rather than hallucinating new scenes.
Datasets
- Training: Only the ImageNet-1K training set (no text-to-image pairs needed). Calibrating LC uses 100 prompts from GenEval.
- Evaluation: Visual fidelity is tested on ImageNet-1K validation (in-domain) and MJHQ-30K (out-of-domain). Semantic alignment is checked across GenEval, DPG-Bench, and WISE. No new benchmarks are introduced.
Key Insights and Ideas
- The magic is in Rank-2: Using Otsu's thresholding, the authors discover that capable VLMs (like Janus-Pro 7B) consistently place meaningful probability on at least two codebook entries per patch (averaging 0.22 for top-1 and 0.10 for top-2). In fact, keeping just the top-2 tokens at inference recovers 76% of the quality gains of the full distribution!
- Why off-the-shelf refiners fail: Why not just pass the blurry VQ-VAE image through an image-to-image diffusion refiner? When tested against FLUX.1-Kontext, image-to-image refiners let their own priors take over, causing severe semantic drift (changing a person's identity or altering logos). Conditioning directly on pre-sampling logits keeps the VLM in the driver's seat.
- Zero-shot cross-model transfer: Because Janus-Pro 7B and 1B share the same tokenizer, the DCDD decoder trained for the 7B model transfers directly to the 1B model without retraining—requiring only a quick, gradient-free recalibration of the 1B logits.
Key Results
Trained for just 50K steps on 4×A100 GPUs:
- Image Reconstruction: DCDD slashes reconstruction FID (rFID, where lower is better) by 74% on ImageNet-1K (2.85 $\rightarrow$ 0.75) and 60% out-of-domain on MJHQ-30K (4.49 $\rightarrow$ 1.81).
- Text-to-Image Generation: On Janus-Pro 7B, generation FID (gFID) on MJHQ-30K drops by 34% (14.29 $\rightarrow$ 9.42). An identically trained diffusion decoder using only standard argmax tokens hits 11.08, proving the extra leap comes specifically from the discarded logit distribution.
- Semantic Preservation: Alignment scores stay rock-steady (GenEval ticks up slightly from 77.24 to 78.31; DPG-Bench from 86.94 to 87.64), confirming DCDD sharpens rendering without overwriting intent.
- Speed Trade-off: Using 30 denoising steps adds 31.2% end-to-end latency (11.86s $\rightarrow$ 15.56s), though the native fast VQ-VAE decoder remains available whenever speed trumps beauty.
Limitations and Future Work
DCDD is bound by a classic rule: garbage in, garbage out. Because it is strictly a post-hoc decoder, it can only exploit information already present in the VLM's logits. When tested on LlamaGen-XL—an older model that produces weaker token sequences and overly confident, spiky distributions (Otsu rank 1, meaning almost no secondary token nuance)—DCDD improved image reconstruction but yielded zero text-to-image generation gains (gFID 74.20 $\rightarrow$ 74.66). DCDD shines brightest when paired with capable upstream VLMs that maintain rich, multi-token uncertainty. Future directions are not explicitly discussed in the main text.
Summary updated