cs.CVSep 27, 2026

In-Token Learning for High-Fidelity Image Restoration via Diffusion Transformers

Authors: Xingfu Yi, Xiaoxue Yu

Organizations: Independent Researcher, Hangzhou, China · Zhejiang University, Hangzhou, China

Abstract

We present In-Token Learning, an image restoration framework that adapts a pretrained diffusion transformer using conditional rectified flow matching. Clean targets paired with degraded inputs supervise transport from Gaussian noise to restored images. Spatially aligned degraded-image tokens are fused with evolving latent tokens along the channel dimension, preserving the image-token count at a given resolution. Direct Low-Quality Guidance (DLG) combines frozen degraded-image embeddings with a fixed task prompt through the native conditioning pathway, without a trainable ControlNet-style branch or image captioning. We evaluate super-resolution and denoising on DIV2K, LSDIR, FFHQ, RealLQ250, and RealPhoto60, and automatic colorization on DIV2K and LSDIR. The tasks use separately trained checkpoints under the same framework. Results show competitive fidelity and perceptual quality under the evaluated protocols, with weaker generalization on RealLQ250. We report full-image QHD (2560×14402560{\times}1440) inference and a tiled 1212K restoration demonstration of Along the River During the Qingming Festival. Attention cost still increases with resolution. This technical report preserves the early broader study underlying Fill2SR, which subsequently developed the real-world super-resolution direction.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Fill2SR: Repurposing Inpainting Diffusion Transformers for Real-World Super-Resolution

    Sep 27, 2026Xingfu Yi, Xiaoxue YuReal-World Image Super-ResolutionInpainting

  2. ScaleResfusion: Residual Rectified Flow based on Residual Vector Field

    Jul 28, 2026Zhenning Shi, Chen Xu, Junhao Zhang +4Image RestorationRectified Flow

  3. Bend the Basics: Degradation-Aware Deformable Tokenization for All-in-One Image Restoration

    Aug 7, 2026Zihao He, Yunfeng Wu, Xinchao Wang +1Image RestorationDegradation