Image restoration improves by adapting to local restoration progress

Trajectory Drift Guides Dynamic Inference for Image Restoration

Computer Vision and Pattern Recognition

Summary

Image restoration can be tricky because different parts of a damaged picture might need different levels of repair. The authors created a new method that watches how each part of the image improves during the repair process and uses that information to decide whether that part needs more work or is done. This way, the method spends effort only where it is truly needed without extra training on separate decision models. Their experiments show this approach restores images well while being efficient.

What this means in practice

  • For photo editors: Enable image restoration tools that adaptively focus repairs on different regions based on ongoing recovery during editing.
  • For medical imaging teams: Improve restoration of degraded medical images by dynamically adjusting repairs depending on local progress to preserve clinical details.

Authors

Qi Yu, Hanlin Wu, Xiaohui Sun

Abstract

Image restoration is spatially heterogeneous: regions within the same degraded image can differ substantially in content complexity, degradation severity, and recoverable information. However, iterative generative restorers typically apply a shared sampling or decoding schedule to all spatial locations, without adapting regional updates to their evolving restoration states. Existing adaptive approaches often rely on auxiliary learned predictors or architectures explicitly designed for spatially varying computation. We ask whether spatial adaptation can instead be driven directly by intermediate states already produced during inference. To this end, we introduce Trajectory-Drift-Guided Image Restoration (DriftIR), a continuous masked-autoregressive restoration framework with trajectory-guided dynamic inference. At each outer autoregressive round, a conditional diffusion token head generates continuous latent proposals for the currently masked positions and exposes a sequence of predicted-clean estimates during the same sampling pass. We define the temporal variation of these estimates as \emph{trajectory drift} and use it to guide commit--remask decisions: proposals with lower trajectory drift are committed as visible context, whereas the remaining positions stay masked and receive new proposals in subsequent rounds under updated context. This inference-only policy requires neither policy-specific supervision nor a separately trained confidence or routing model. Extensive experiments show that DriftIR achieves competitive restoration quality against strong existing methods and outperforms static DriftIR inference across all reported quality metrics at comparable inference time.