Abstract
Single image deraining is a critical low-level vision task, yet state-of-the-art models often suffer from over-parameterization, limiting their deployment on edge devices. This paper introduces the Deraining Recursive Transformer (DRT), a highly efficient architecture that leverages recursive weight sharing to achieve competitive performance with significantly fewer parameters. By utilizing a Recursive Transformer Block (RTB) based on Swin Transformer layers, DRT achieves superior results on benchmarks like Rain100L using only 1.3% of the parameters of current leading models. Our approach demonstrates that global reasoning can be maintained in a lightweight footprint, making it ideal for mobile and autonomous systems.
Introduction
Deep learning has revolutionized image restoration, but it faces a significant "weight" problem. Powerful models—especially those based on the Transformer architecture—are often over-parameterized, requiring massive amounts of memory and computing power. While suitable for high-end GPUs, low-level vision tasks like single image deraining (removing rain streaks from a photo) often need to run on mobile phones, smart cameras, or autonomous vehicle hardware. DRT addresses this by stripping away redundant parameters while retaining the global reasoning capabilities of Transformers.
Methodology
The DRT architecture consists of three main stages: Patch Embedding, Deep Feature Extraction, and Image Reconstruction. The core innovation is the Recursive Transformer Block (RTB). Instead of stacking dozens of unique layers, DRT uses a recursive structure that reuses a few Swin Transformer Blocks (STB) repeatedly.
By sharing weights across these recursive calls, the model effectively becomes "deeper" and more capable of handling complex rain patterns without increasing the file size. Residual connections are used throughout to ensure the model focuses specifically on rain streaks rather than losing background details. Furthermore, reducing the patch size to $1 \times 1$ ensures that no pixel-level information is lost, which is vital for dense prediction tasks like deraining.
Experimental Results
The model was evaluated on standard synthetic and real-world benchmarks, including Rain800, Rain100L, Rain100H, and Snow100K.
Efficiency and Performance
DRT demonstrates remarkable efficiency, using only 1.18M parameters. In comparison, the competing HiNet model uses 88.7M parameters. Despite this massive reduction in size, DRT outperformed HiNet on the Rain100L benchmark by 0.33 dB (PSNR). From a hardware perspective, DRT requires roughly 4.5x less memory and significantly fewer Multiplier-Accumulator operations (MACs) than its heavier counterparts.
Qualitative Analysis
Visually, DRT is superior at distinguishing between "soft" edges (like clouds or smoke) and "sharp" edges (rain streaks). While other models often accidentally blur atmospheric details while trying to remove rain, DRT preserves these textures effectively.
Key Insights
- Recursion as a Parameter Cheat Code: A single recursive layer is often sufficient to achieve high-quality results. By calling the same blocks multiple times ($L$ recursive calls), the model learns to iteratively refine the image.
- Local Window Efficiency: By using local windows rather than global attention, DRT keeps computational costs manageable for high-resolution images.
- Task Agnosticism: The architecture contains no rain-specific logic, allowing it to perform competitively on desnowing tasks without structural changes.
Limitations and Future Work
Despite its success, DRT faces challenges with background color shifts caused by weather, as training data does not always account for these tone changes. Additionally, while it removes rain streaks, it does not explicitly handle the atmospheric haze that often accompanies rain. Future research may explore "early exiting" strategies to speed up inference time for simpler images, as recursive depth—while saving parameters—still requires multiple passes through the hardware.
Summary updated