SODiff: Semantic-Oriented Diffusion Model
for JPEG Compression Artifacts Removal

Tingyu Yang, Jue Gong, Jinpei Guo, Wenbo Li, Yong Guo, and Yulun Zhang, SODiff: Semantic-Oriented Diffusion Model for JPEG Compression Artifacts Removal, arXiv, 2025

🔥🔥 News

  • 2025-08-10: This repo is released.

Abstract: JPEG, as a widely used image compression standard, often introduces severe visual artifacts when achieving high compression ratios. Although existing deep learning-based restoration methods have made considerable progress, they often struggle to recover complex texture details, resulting in over-smoothed outputs. To overcome these limitations, we propose SODiff, a novel and efficient semantic-oriented one-step diffusion model for JPEG artifacts removal. Our core idea is that effective restoration hinges on providing semantic-oriented guidance to the pre-trained diffusion model, thereby fully leveraging its powerful generative prior. To this end, SODiff incorporates a semantic-aligned image prompt extractor (SAIPE). SAIPE extracts rich features from low-quality (LQ) images and projects them into an embedding space semantically aligned with that of the text encoder. Simultaneously, it preserves crucial information for faithful reconstruction. Furthermore, we propose a quality factor-aware time predictor that implicitly learns the compression quality factor (QF) of the LQ image and adaptively selects the optimal denoising start timestep for the diffusion process. Extensive experimental results show that our SODiff outperforms recent leading methods in both visual quality and quantitative metrics.

SAIPE.png Figure 1: SAIPE (semantic-aligned image prompt extractor) overview.

SODiff.png Figure 2: Model structure of SODiff (semantic-oriented diffusion).


📋 TODO

🔗 Contents

📊 Results

The performance of SODiff on the datasets LIVE-1, Urban100, and DIV2K-val. Detailed results can be found in the paper.

 Quantitative Comparisons (click to expand)
  • Results in the Table below show SODiff’s performance on different datasets.

    Table_results.png

  •  Visual Comparisons (click to expand)
  • Results in the figure below show SODiff’s performance on DIV2K-val (QF=1).

    DIV2K_qf1.png

  • Results in the figure below show SODiff’s performance on Urban100 (QF=5).

    Urban100_qf5.png

  • 👉 Citation

    If you find the work helpful to your research, please cite the following paper(s).

    1
    2
    3
    4
    5
    6
    @article{yang2025sodiff,
    title={{SODiff: Semantic-Oriented Diffusion Model for JPEG Compression Artifacts Removal }},
    author={Yang, Tingyu and Gong, Jue and Guo, Jinpei and Li, Wenbo and Guo, Yong and Zhang, Yulun},
    journal={arXiv preprint 2508.07346},
    year={2025}
    }