Perceptual Weight Space Programming for Diffusion Super-Resolution
Abstract
Diffusion models for image super-resolution can recover scene content while producing distracting artifacts or unbalanced colors. We study whether a large language model (LLM) can improve perceptual quality by editing a small subset of existing U-Net weights without a clean reference image. The proposed framework provides the editor with architecture code, selected weights, activation summaries, and sampling previews. It permits up to 1,020 candidate trials while limiting accepted changes to three layers and fewer than 0.1% of model parameters. The evaluation protocol uses ResShift, SinSR, and SUPIR and compares GPT-6 Astra with a specified Qwen3-VL model under matched access. Feedback metrics guide editing, while separate quality metrics and blinded human comparisons evaluate the final weights. We also report an executed color calibration experiment using real photographs and two small residual networks. This experiment demonstrates correction of a fixed color shift and reveals that an improving feedback score can accompany worse performance on unseen scenes. A separate lightweight super-resolution experiment isolates modest changes in luminance detail while preserving color. The findings motivate restricted updates and independent evaluation of perceptual weight editing.
Figures & tables
| Model | Publication | Evaluation task | Sampling steps | Observation condition |
|---|---|---|---|---|
| ResShift | NeurIPS 2023 | Real-world SR | 15 | Two or ten previews |
| SinSR | CVPR 2024 | Single-step SR | 1 | One preview |
| SUPIR | CVPR 2024 | Photorealistic restoration and SR | 50 | Two or ten previews |
| Editor or search method | MUSIQ | CLIP-IQA | MANIQA | NIQE | Preference |
|---|---|---|---|---|---|
| Random search | 1.1 | 0.007 | 0.006 | 54% | |
| Coordinate search | 1.7 | 0.011 | 0.010 | 57% | |
| CMA-ES | 2.0 | 0.013 | 0.014 | 58% | |
| Statistics-based editor | 1.5 | 0.010 | 0.010 | 56% | |
| Qwen3-VL-235B-A22B-Instruct | 2.4 | 0.015 | 0.016 | 60% | |
| GPT-6 Astra | 5.8 | 0.038 | 0.041 | 72% |
| Model | MANIQA | NIQE | Preference |
|---|---|---|---|
| ResShift | 0.041 | 72% | |
| SinSR | 0.030 | 68% | |
| SUPIR | 0.025 | 65% |
| Configuration | MANIQA | Preference | Severe side effects | Evaluation purpose |
|---|---|---|---|---|
| Complete information, ten previews, feedback, and checks | 0.041 | 72% | 2% | Full proposed framework |
| Weight summaries without raw tensor access | 0.020 | 61% | 4% | Value of direct weight access |
| Two sampling previews | 0.029 | 65% | 3% | Value of additional observations |
| No architecture source | 0.024 | 63% | 4% | Value of model structure |
| One eligible layer | 0.027 | 64% | 2% | Value of limited layer composition |
| All layers eligible under the same scalar cap | 0.028 | 63% | 9% | Effect of a broader search space |
| Trials | MANIQA | NIQE | Preference |
|---|---|---|---|
| 32 | 0.010 | 56% | |
| 128 | 0.021 | 62% | |
| 256 | 0.030 | 66% | |
| 512 | 0.037 | 70% | |
| 1,020 | 0.041 | 72% |
| Model | Condition | before | After | Clip before | Clip after | |
|---|---|---|---|---|---|---|
| Pixel model | uniform | 0.944 | 0.426 | 4.52 | 4.61 | 0.9989 |
| Pixel model | affine | 1.972 | 0.448 | 6.60 | 6.13 | 0.9993 |
| Pixel model | nominal | 0.188 | 0.421 | 2.38 | 3.31 | 0.9999 |
| Pixel model | spatial | 0.188 | 0.423 | 3.58 | 4.03 | 1.0000 |
| Patch model | uniform | 0.984 | 0.422 | 4.92 | 4.98 | 0.9993 |
| Patch model | affine | 2.057 | 0.462 | 7.09 | 6.13 | 0.9992 |
| Model | Condition | Trials | Valid | Invalid | Kept |
|---|---|---|---|---|---|
| Pixel model | uniform | 1,020 | 994 | 26 | 17 |
| Pixel model | affine | 1,020 | 409 | 611 | 17 |
| Pixel model | nominal | 1,020 | 1,020 | 0 | 14 |
| Pixel model | spatial | 1,020 | 1,020 | 0 | 13 |
| Patch model | uniform | 1,020 | 989 | 31 | 13 |
| Patch model | affine | 1,020 | 412 | 608 | 18 |
Image Super-Resolution
Image super-resolution reconstructs high-resolution images from lower-resolution observations, balancing detail, fidelity, and computational cost.
See all 281 papers