Universal Image Restoration via Internalized Chain-of-Thought Reasoning

Yu Guo, Zhengru Fang, Shengfeng He, Senkang Hu, Yihang Tao +2 more
6/16/2026
cs.CV

Official code: gy65896/CoTIR (20 stars, last commit 2026-06-16).

Abstract

Image restoration seeks to recover high-quality images from degraded inputs but becomes highly ill-posed under complex, mixed degradations. While unified all-in-one models are common, their performance declines as degradation complexity increases. Recent works adopt Chain-of-Thought (CoT) reasoning for multi-round restoration using specialized modules. However, this approach faces two key limitations: (i) increased computational cost due to multi-step processing, and (ii) weak modeling of interactions between degradations during stepwise inference. We introduce CoTIR, a universal image restoration framework that internalizes CoT reasoning within a single model. Concretely, we view image restoration as a specialized subtask of image editing, which implies that a large-scale pre-trained editing model provides a more favorable optimization starting point. Building on this, we fine-tune the model for restoration and further encode structured CoT-style reasoning into the learning objective via a differentiable formulation inspired by Lagrangian optimization, enabling holistic restoration without chaining specialized restorers. To facilitate training and evaluation, we further present CoTIR-Bench, a large-scale benchmark comprising 5.2 million samples with CoT-style reasoning traces. Extensive experiments on CoTIR-Bench and broad real composite degradation scenes show that CoTIR achieves stronger perceptual quality and more competitive fidelity than both all-in-one models and multi-round restoration methods. The source code is available at https://github.com/gy65896/CoTIR.

View on arXivView PDF

Code Implementations(1)

gy65896/CoTIROfficial100%

[Arxiv 2026] Universal Image Restoration via Internalized Chain-of-Thought Reasoning

201PythonJun 16, 20264 months ago

Similar Papers

Cite this paper

@article{guo2026universal,
  title  = {Universal Image Restoration via Internalized Chain-of-Thought Reasoning},
  author = {Yu Guo and Zhengru Fang and Shengfeng He and Senkang Hu and Yihang Tao and Phone Lin and Yuguang Fang},
  year   = {2026},
  eprint = {2606.17557},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.17557v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.17557.svg)](https://codeofpaper.com/paper/2606.17557)

Discussion