arXiv:2611.04268cs.CVNov 2026

Manuscript Offprint

arXiv:2611.04268

Weight-Space Programming for Improving Image-Restoration Diffusion Models: Technical Conjectures and a Recursive Improvement Loop

Zhuoran Zheng, Doubao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Can a large language model (LLM) directly edit the weights of a diffusion-based image-restoration model to improve its restoration quality—without gradients, without paired training data, and without fine-tuning? Recent experiments on language models suggest frontier LLMs can locate and fix structural bugs by modifying as little as 0.016% of parameters, but cannot instill genuinely new capabilities. We ask whether this weight-space programming (WSP) paradigm can be pushed from debugging to improvement in the precise-regression setting of image restoration (deblurring, super-resolution, denoising, inpainting). We argue that restoration diffusion UNets present a unique middle ground: low-level signal-processing layers are concentrated enough for targeted weight-direction edits, while high-level semantic layers remain distributed and resistant to sparse modification. We propose three concrete technical conjectures: (C1) an LLM can diagnose which layer causes a specific quality gap (e.g., over-smoothing, color shift, hallucinated texture) within a 200 forward-pass budget; (C2) editing a small set of identified weight directions (e.g., scaling up high-frequency filter norms, correcting output-bias channels) can measurably improve restoration PSNR and perceptual quality; (C3) a recursive loop-LLM diagnoses → weight edit → evaluate → re-diagnose-can compound improvements across multiple rounds, constituting a minimal recursive self-improvement (RSI) loop for vision models. We analyze what AI capability level is required (arguing that targeted layer-level edits need not require superintelligence, but general capability generation does), and we detail the unique challenges of precise pixel-level regression. We provide a deployment pipeline in PyTorch-style pseudocode and outline a benchmark for empirical validation. The numerical conjectures in this manuscript are merely hypotheses.

1 Introduction

Image restoration-recovering clean images from blurry, noisy, low-resolution, or corrupted inputs-is one of the most practical computer-vision problems. Modern diffusion-based restoration models achieve state-of-the-art quality, yet they over-smooth fine textures, hallucinate plausible-but-fake details, shift colors under specific lighting, and fail on degradation types absent from training data. Fixing these failures today requires collecting paired data and fine-tuning: expensive, slow, and risky for the rest of the distribution.

What if an LLM could read the restoration UNet's weights, understand what each layer computes, and directly edit the weight tensors to make the model sharper, more color-accurate, and less hallucinatory—no gradients, no training data?

This is the promise of Weight-Space Programming (WSP): treating neural network parameters as a text-like object an LLM can inspect, reason about, and patch [Takehi, 2026]. The first evidence: a frontier LLM inspected Qwen3.5-0.8B weights and eliminated a reasoning-loop bug by modifying only 0.016% of parameters [Takehi, 2026, RikiyaT, 2026b,a]. The same experiments produced a crucial negative result: endowing a 270M Gemma3 with new math ability via weight editing failed. WSP can unlock latent competence already present in weights, but cannot create competence from nothing.

This paper asks: can WSP go beyond bug-fixing and actually improve restoration quality? And does it require superintelligence?

We focus on restoration diffusion models because: (1) restoration is a precise regression task with continuous pixel outputs and noisy perceptual metrics-harder than language modeling but more informative about WSP's limits; (2) restoration UNets have clear layered specialization (early = low-level, bottleneck = semantic, late = output), making some layers concentrated ( editable) and others distributed (not); (3) artifacts are visually verifiable.

We make three concrete technical conjectures (Section 4), analyze what AI level is required (Section 5), describe a deployment pipeline (Section 6), and discuss RSI implications (Section 9).