TL;DR
While diffusion models have revolutionized real-world image super-resolution (Real-ISR), they are typically trained only on objective pixel reconstruction losses without human feedback, frequently generating subtle hallucinations and artifacts. This paper introduces Direct Semantic Preference Optimization (DSPO), the first human-preference alignment framework for Real-ISR, which resolves the mismatch between coarse image-level preferences and fine-grained pixel reconstruction by optimizing preferences at the semantic instance level.
What Problem Does This Paper Address?
Recent diffusion-based Real-ISR models hallucinate realistic details when restoring degraded, low-quality (LQ) images. However, because standard models are trained entirely on paired datasets using fixed reconstruction objectives, their outputs often misalign with human perceptual expectations—producing uncanny textures, structural distortions, or synthetic visual artifacts.
While Direct Preference Optimization (DPO) has successfully aligned Large Language Models (LLMs) and text-to-image (T2I) models with human taste without needing separate reward models, directly applying image-level DPO to super-resolution fails. Super-resolution demands precise pixel fidelity. An image judged better overall might look crisper globally yet harbor bizarre local hallucinations in complex regions (such as foliage or text). Treating whole images as monolithic "winners" or "losers" confuses the model, destabilizing diffusion fine-tuning.
Methods
DSPO operates strictly as a training-time fine-tuning strategy (leaving inference architectures completely unchanged) and introduces two core mechanisms:
[ Input LQ Image ] ───► [ Multiple SR Candidates ]
│
┌───────────────┴───────────────┐
▼ ▼
[ SAM Instance Masks ] [ VLM Error Detection ]
│ │
▼ ▼
Instance-Level DPO Loss Negative Text Feedback Prompts
(Weighted by Mask Area) (Constrains Hallucinations)
- Semantic Instance Alignment Strategy:
- For an input image, the model generates multiple candidate restorations by varying inference settings (steps, classifier-free guidance).
- Candidate outputs are segmented into $M$ semantic instances using Segment Anything (SAM).
- Preference ranking (winner vs. loser) is executed per semantic instance rather than across the whole image—either by human annotators or a Vision-Language Model (VLM, specifically Qwen2.5-VL-max).
- DPO loss is applied at each diffusion timestep $t$, weighted by instance pixel area ($w_m$). Crucially, loss is computed over the full image and masked selectively, preserving global context and positional encodings instead of cropping isolated patches.
- User Description Feedback Strategy:
- Extracted instance regions are captioned using Qwen2.5-VL-max and compared against ground-truth semantics.
- Semantic descriptions that diverge sharply (indicating hallucinations) are collected into negative textual prompts ($p_{\text{negative}}$) to actively steer the diffusion sampling path away from visual hallucinations.
Datasets
- Training: 84,991 synthetic LQ-HQ image pairs derived from LSDIR using the degradation pipeline from Real-ESRGAN.
- Preference Data:
- Human-annotated set: 500 LSDIR images annotated across their top 5 largest SAM segments (2,500 total instance regions) by 10 professional annotators.
- Automated scoring set: Built using Qwen2.5-VL-max across candidate instances.
- Evaluation:
- Real-world testbeds: RealSR and DRealSR (evaluating native real-world degradations).
- Synthetic benchmark: 3,000 images from DIV2K-val processed with Real-ESRGAN degradations.
Key Insights and Ideas
- Granularity Matters in Alignment: Standard DPO assigns a single scalar comparison to an entire image. In restoration tasks, human preferences are inherently regional; optimizing at the instance level isolates flaws without penalizing globally sharp reconstructions.
- Masked Full-Frame Loss vs. Patch Cropping: Rather than passing cropped image patches into DPO (which destroys spatial positional encodings and discards global priors), DSPO masks the noise residual over the full canvas.
- Multimodal LLMs as Scalable Evaluators: Using proprietary large VLMs (Qwen2.5-VL-max) to rank instance pairs across realism, structure, and consistency closely matches human ratings, providing a scalable alternative to tedious manual low-level labeling.
Key Results
- Human Preference Win Rates: On real-world benchmarks, DSPO achieves an average human preference win rate of 75.1% on RealSR and 73.5% on DRealSR over pre-trained baselines, decisively outperforming generic alignment baselines like SFT, DDPO, and image-level Diffusion-DPO.
- Benchmark Improvements: When integrated into SeeSR on the DRealSR benchmark:
- PSNR: Increases from $28.17\text{ dB} \rightarrow \mathbf{28.54\text{ dB}}$.
- SSIM: Improves from $0.7691 \rightarrow \mathbf{0.7813}$.
- Perceptual Metrics: LPIPS drops from $0.3189 \rightarrow \mathbf{0.2931}$, and CLIPIQA rises from $0.6804 \rightarrow \mathbf{0.7045}$.
- Plug-and-Play Generalizability: DSPO demonstrated consistent metric improvements across multiple architectures, encompassing both one-step distillation networks (OSEDiff) and multi-step diffusion pipelines (SD2.1, SeeSR, and AddSR).
Limitations and Future Work
- Annotation & Segmentation Overhead: The offline data generation pipeline depends on SAM segmentation and multi-turn VLM queries, creating non-trivial computational overhead during dataset preparation.
- Text-Conditioning Dependency: The user description feedback strategy relies on models equipped with prompt branches to inject error-correcting prompts, which may require minor adaptations for pure unconditional SR architectures.
- Scalability of Low-Level VLM Scoring: While Qwen2.5-VL-max aligned better with human taste than a fine-tuned 72B open-source model, the paper notes reliance on remote proprietary APIs for scoring at scale.
Summary updated