RAM++: Robust Representation Learning via Adaptive Mask for All-in-One Image Restoration

Zilong Zhang, Chujie Qin, Chunle Guo, Yong Zhang, Chao Xue +2 more
9/15/2025
cs.CV

Official code: DragonisCV/RAM (109 stars, last commit 2026-04-21).

Abstract

This work presents Robust Representation Learning via Adaptive Mask (RAM++), a two-stage framework for all-in-one image restoration. RAM++ integrates high-level semantic understanding with low-level texture generation to achieve content-oriented robust restoration. It addresses the limitations of existing degradation-oriented methods in extreme scenarios (e.g., degradations strongly coupled with image structures). RAM++ also mitigates common challenges such as unbalanced performance across tasks, overfitting to seen degradations, and weak generalization to unseen ones through three key designs: 1) Adaptive Semantic-Aware Mask (AdaSAM): a pretraining strategy that applies pixel-level masks to semantically rich and textured regions. This design enables the network to learn both generative priors and image content priors from various degradations. 2) Mask Attribute Conductance (MAC): a selective fine-tuning strategy that adjusts the layers with higher contributions to bridge the integrity gap between masked pretraining and full-image fine-tuning while retaining learned priors. 3) Robust Feature Regularization (RFR): a strategy that leverages DINOv2's semantically consistent and degradation-invariant representations, together with efficient feature fusion, to achieve faithful and semantically coherent restoration. With these designs, RAM++ achieves robust, well-balanced, and state-of-the-art performance across seen, unseen, extreme, and mixed degradations. Our code and model will be released at https://github.com/DragonisCV/RAM

View on arXivView PDF

Code Implementations(1)

DragonisCV/RAMOfficial100%

[ECCV 2024] Restore Anything with Masks: Leveraging Mask Image Modeling for Blind All-in-One Image Restoration

1094C++, CudaJul 14, 20246 months agoNOASSERTION

Similar Papers

Cite this paper

@article{zhang2025ram,
  title  = {RAM++: Robust Representation Learning via Adaptive Mask for All-in-One Image Restoration},
  author = {Zilong Zhang and Chujie Qin and Chunle Guo and Yong Zhang and Chao Xue and Ming-Ming Cheng and Chongyi Li},
  year   = {2025},
  eprint = {2509.12039},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.12039v1}
}

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

Discussion