Restore-RWKV: Efficient and Effective Medical Image Restoration with RWKV

Zhiwen Yang, Jiayin Li, Hui Zhang, Dan Zhao, Bingzheng Wei +1 more
7/14/2024
eess.IVcs.CV

Official code: Yaziwel/Restore-RWKV (139 stars, Apache-2.0, last commit 2026-03-16).

Abstract

Transformers have revolutionized medical image restoration, but the quadratic complexity still poses limitations for their application to high-resolution medical images. The recent advent of the Receptance Weighted Key Value (RWKV) model in the natural language processing field has attracted much attention due to its ability to process long sequences efficiently. To leverage its advanced design, we propose Restore-RWKV, the first RWKV-based model for medical image restoration. Since the original RWKV model is designed for 1D sequences, we make two necessary modifications for modeling spatial relations in 2D medical images. First, we present a recurrent WKV (Re-WKV) attention mechanism that captures global dependencies with linear computational complexity. Re-WKV incorporates bidirectional attention as basic for a global receptive field and recurrent attention to effectively model 2D dependencies from various scan directions. Second, we develop an omnidirectional token shift (Omni-Shift) layer that enhances local dependencies by shifting tokens from all directions and across a wide context range. These adaptations make the proposed Restore-RWKV an efficient and effective model for medical image restoration. Even a lightweight variant of Restore-RWKV, with only 1.16 million parameters, achieves comparable or even superior results compared to existing state-of-the-art (SOTA) methods. Extensive experiments demonstrate that the resulting Restore-RWKV achieves SOTA performance across a range of medical image restoration tasks, including PET image synthesis, CT image denoising, MRI image super-resolution, and all-in-one medical image restoration. Code is available at: https://github.com/Yaziwel/Restore-RWKV.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Restore-RWKV: Efficient and Effective Medical Image Restoration with RWKV

1398C++, CudaJul 12, 20247 months agoApache-2.0
all-in-onect-denoisingimage-restorationlow-levelmamba+4 more

Similar Papers

Cite this paper

@article{yang2024restorerwkv,
  title  = {Restore-RWKV: Efficient and Effective Medical Image Restoration with RWKV},
  author = {Zhiwen Yang and Jiayin Li and Hui Zhang and Dan Zhao and Bingzheng Wei and Yan Xu},
  year   = {2024},
  eprint = {2407.11087},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.11087v3}
}

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/2407.11087.svg)](https://codeofpaper.com/paper/2407.11087)

Discussion