NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transformer-Based Learned Image Compression for Joint Decoding and Denoising

Yi-Hsin Chen, Kuan-Wei Ho, Shiau-Rung Tsai, Guan-Hsun Lin, Alessandro Gnutti, Wen-Hsiao Peng, Riccardo LeonardiPCS 2024 · DOI

Abstract

This work introduces a Transformer-based image compression system designed for flexibility, allowing users to switch between standard image reconstruction and denoising reconstruction from a single compressed bitstream. Rather than training separate decoders for these distinct tasks, the proposed architecture incorporates two lightweight add-on modules to adapt a pre-trained, frozen image decoder. The scheme utilizes a two-pronged approach: a Latent Refinement Module (LRM) to refine the latent representation of noisy inputs, and an instance-specific prompt generator that adapts the decoding process to enhance the refinement. Experimental results demonstrate that this method achieves denoising quality comparable to dedicated decoders while incurring only a modest increase in model size and computational complexity.

1. Introduction

In traditional learned image compression (LIC), encoders are typically optimized to filter out noise to improve the rate-distortion trade-off. However, in specialized fields such as medical imaging, satellite surveillance, and forensics, preserving the original "noisy" data is essential for maintaining data integrity and trustworthiness.

A significant challenge arises when users require both the original noisy image for technical analysis and a clean, denoised version for human interpretation. Current solutions often rely on separate decoders—which doubles storage requirements—or heavy post-processing models like Restormer, which are computationally expensive and fail to leverage the codec's internal features. This paper proposes a "middle ground" that reuses a standard pre-trained decoder to perform both tasks efficiently from a single bitstream.

High-level overview of the joint decoding and denoising framework.

2. Methodology

The proposed system builds upon a state-of-the-art Swin-Transformer-based codec. The core innovation is a dual-path adaptation strategy that keeps the base decoder frozen while adding two modular components:

2.1 Latent Refinement Module (LRM)

The LRM operates directly within the compressed latent space. It processes noisy quantized latents ($\hat{y}$) and utilizes Spatial Feature Transforms (SFT) to predict "clean" latents ($\tilde{y}$). By performing denoising in the latent space before image reconstruction begins, the LRM provides a superior starting point for the subsequent Transformer layers compared to spatial-only methods.

2.2 Prompt-adapted Swin-Transformer (P-STB)

To compensate for imperfections in latent refinement, the authors introduce instance-specific prompts. A prompt generator ($g_p$) analyzes the refined latents to produce small "prompt tokens" that are injected into the frozen Swin-Transformer blocks of the decoder. This allows the decoder to dynamically adapt its behavior for the denoising task without requiring a full retraining of its millions of parameters.

3. Experimental Evaluation

3.1 Datasets and Setup

The model was evaluated on two primary noise types:

  • Real-World Noise: Trained and validated on the SIDD (Smartphone Image Denoising Dataset).
  • Synthetic Noise: Trained on Flicker2W and evaluated on Kodak and Urban100 using a Poissonian-Gaussian noise simulator.

3.2 Performance and Efficiency

The proposed method significantly outperforms standard post-processing baselines, such as "Base + Restormer" and "Base + FFDNet," in terms of the rate-distortion curve (PSNR vs. bpp). Notably, while a post-processing model like Restormer increases computational complexity (kMACs) by over 600%, the proposed architecture only increases it by 11%.

Rate-distortion performance comparison on real-world and synthetic noise datasets, including ablation studies.

In terms of parameter efficiency, the approach adds only 28% more parameters (and a mere 12% for the "lightweight" variant) compared to the 100% increase required by training a second dedicated decoder. Furthermore, the modular nature of the LRM and Prompt Generator allows for better generalization; these modules can be swapped out for different noise environments without affecting the base codec.

4. Conclusion

This work demonstrates a flexible, parameter-efficient framework for joint image decoding and denoising. By utilizing latent refinement and instance-specific prompting, the system enables a "one bitstream, two views" capability that preserves data integrity while providing high-quality visual outputs. Future work may extend this modular add-on framework to other restoration tasks, such as joint decoding and de-blurring or super-resolution.

Summary updated

BibTeX
@inproceedings{chen2024transformer,
  author = {Yi-Hsin Chen and Kuan-Wei Ho and Shiau-Rung Tsai and Guan-Hsun Lin and Alessandro Gnutti and Wen-Hsiao Peng and Riccardo Leonardi},
  title = {{Transformer-Based Learned Image Compression for Joint Decoding and Denoising}},
  booktitle = {PCS},
  year = {2024},
  doi = {10.48550/arxiv.2402.12888},
}
Figure