Next Article in Journal
DA-CycleGAN: Degradation-Adaptive Unpaired Super-Resolution for Historical Image Restoration
Previous Article in Journal
Radon-Guided Wavelet-Domain Attention U-Net for Periodic Artifact Suppression in Brain MRI
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

WeatherMAR: Complementary Masking of Paired Tokens for Adverse-Weather Image Restoration

1
Aerospace Information Research Institute, Chinese Academy of Sciences, No. 9 Dengzhuang South Road, Haidian District, Beijing 100094, China
2
School of Optoelectronics, University of Chinese Academy of Sciences, No. 19(A) Yuquan Road, Shijingshan District, Beijing 100049, China
3
Department of Key Laboratory of Computational Optical Imaging Technology, Chinese Academy of Sciences, No. 9 Dengzhuang South Road, Haidian District, Beijing 100094, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
J. Imaging 2026, 12(4), 154; https://doi.org/10.3390/jimaging12040154
Submission received: 29 January 2026 / Revised: 26 March 2026 / Accepted: 26 March 2026 / Published: 2 April 2026
(This article belongs to the Topic Computer Vision and Image Processing, 3rd Edition)

Abstract

Image restoration under adverse weather conditions has attracted increasing attention because of its importance for both human perception and downstream vision applications. Existing methods, however, are often designed for a single degradation type. We present WeatherMAR, a multi-weather restoration framework that formulates adverse-weather restoration as a paired-domain completion problem in a shared continuous token space. Specifically, WeatherMAR concatenates degraded and clean token sequences into a joint paired-domain sequence and performs restoration through masked autoregressive modeling, in which self-attention enables direct cross-domain interaction. To strengthen conditional learning while avoiding trivial paired correspondences, we introduce complementary bidirectional masking together with an optional reverse objective used only during training to encourage degradation-aware representations. WeatherMAR further employs a conditional diffusion objective for continuous token prediction and adopts a progress-to-step schedule to improve inference efficiency. Extensive experiments on standard multi-weather benchmarks, including Snow100K, Outdoor-Rain, and RainDrop, show that WeatherMAR achieves the best PSNR/SSIM on Snow100K-S (38.14/0.9684), the best SSIM on Outdoor-Rain (0.9396), and the best PSNR on Snow100K-L (32.58) and RainDrop (33.12). These results demonstrate that paired-domain token completion provides an effective solution for adverse-weather restoration.

1. Introduction

Image restoration under adverse weather conditions, including rain streaks, snow accumulation, and adherent raindrops, has long been a central problem in computer vision because of its scientific importance and practical relevance. In real-world settings, weather-induced degradations can obscure scene content, reduce contrast, and distort local structures, thereby impairing both human visual perception and downstream vision systems. Consequently, adverse-weather restoration remains a challenging inverse problem. The degradations are often spatially varying and entangled with scene textures, and can lead to the loss of fine details. Effective restoration must therefore remove diverse artifacts while faithfully recovering the underlying scene content. Over the years, substantial progress has been achieved in task-specific image restoration, including single-image deraining [1,2,3], dehazing [4,5,6,7], desnowing [8,9], and raindrop removal [10,11]. Although these methods often achieve strong in-domain performance, they are typically designed for a single degradation type and therefore struggle to handle heterogeneous weather degradations or large variations in weather effects across scenes.
To improve practicality, recent work has explored multi-weather restoration with shared model designs that handle diverse degradations within a common framework. Representative approaches include transformer-based encoder–decoder architectures [12,13], factorized models that separate weather-general and weather-specific components [14], and diffusion-based restoration frameworks [15,16]. These methods are typically evaluated under the standard multi-weather benchmark setting widely adopted by the community, which provides a common basis for fair comparison across representative adverse-weather restoration tasks. Despite this progress, multi-weather models still face a fundamental challenge: restoration must remain strongly conditioned on corrupted observations while avoiding trivial solutions under paired supervision. Superficial correspondences between paired inputs can reduce the need to learn degradation-aware representations, and a shared framework must still preserve fine structural details while removing diverse artifacts across weather types and severity levels.
To address these challenges, we propose WeatherMAR, a framework that formulates adverse-weather restoration as paired-domain completion in a shared continuous token space. Rather than predicting pixels directly, we encode degraded and clean images using a shared, frozen VAE tokenizer [17] and perform restoration on the resulting continuous tokens in the latent space. Building on masked autoregressive modeling with continuous tokens [18], we concatenate degraded and clean token sequences into a joint paired-domain sequence and use self-attention to enable direct cross-domain interaction. During inference, the model observes only degraded tokens, initializes all clean-token positions with [MASK], and progressively predicts the missing clean tokens conditioned on the degraded evidence, thereby providing a unified restoration interface across different weather degradations.
A key challenge in joint modeling is avoiding trivial solutions when paired information is fully visible. WeatherMAR addresses this issue through complementary bidirectional masking: at each spatial location, exactly one token in the degraded–clean pair is masked, while its counterpart remains visible. This strict location-wise constraint preserves strong conditional evidence at every position and prevents weakly conditioned predictions. It also enables an optional reverse objective during training, in which masked degraded tokens are predicted from visible clean tokens and weighted by λ to regularize degradation-aware representations. To model the conditional distribution of continuous tokens, WeatherMAR adopts a conditional token diffusion objective [18,19], with transformer features serving as conditioning signals for denoising-based token generation. Because diffusion-enhanced masked autoregressive inference can be computationally demanding under a fixed reverse-step budget, we further introduce a progress-to-step schedule that allocates more reverse diffusion steps to early, high-uncertainty iterations and fewer steps to later iterations, thereby improving efficiency while maintaining restoration quality.
We evaluate WeatherMAR on three standard adverse-weather benchmarks that cover diverse degradations: Snow100K [8], Outdoor-Rain [20], and RainDrop [10]. WeatherMAR achieves strong performance across these benchmarks, obtaining the best PSNR/SSIM on Snow100K-S (38.14/0.9684), the best SSIM on Outdoor-Rain (0.9396), and the best PSNR on Snow100K-L (32.58) and RainDrop (33.12) under the standard evaluation setting. We further compare WeatherMAR with strong multi-weather baselines, including TransWeather [13], WGWSNet [14], WeatherDiff [15], Histoformer [21] and CyclicPrompt [22].
Our contributions are summarized as follows:
  • We propose WeatherMAR, a framework that formulates adverse-weather restoration as paired-domain completion in a shared continuous token space. By concatenating degraded and clean tokens into a joint sequence, the model enables direct cross-domain interaction through self-attention within a unified token-processing pipeline, without requiring additional fusion branches.
  • We introduce complementary bidirectional masking, which enforces a strict location-wise constraint such that exactly one token in each degraded–clean pair is masked. This design preserves strong conditional evidence at every position, mitigates trivial correlations under paired supervision, and supports an optional reverse objective used only during training to encourage degradation-aware representations.
  • We develop a progress-to-step guided sampling strategy to accelerate diffusion-enhanced masked autoregressive inference. This schedule allocates more denoising steps to early, high-uncertainty iterations and fewer steps to later iterations, thereby reducing redundant computation while maintaining restoration quality.

2. Related Work

2.1. Image Restoration in Adverse Weather Conditions

Over the past decade, adverse-weather restoration has advanced rapidly, driven by learning-based methods developed to model and remove weather-induced degradations [23,24,25,26,27,28,29,30,31] and to improve the perceptual quality of images and videos [32,33,34,35,36,37,38]. Most existing approaches target a single degradation type and are optimized for task-specific settings, such as single-image deraining [2,39,40,41], dehazing [4,5,6,7], desnowing [8,9,42,43], and raindrop removal [10,11,44,45]. More recently, multi-weather models have been introduced to handle multiple degradations within a single framework, with the goal of improving robustness and practicality under diverse real-world conditions [13,15,46]. Despite this progress, developing a single model that generalizes reliably across heterogeneous weather degradations while preserving fine structures and natural appearance remains challenging.
  • Removing Raindrops. Single-image raindrop removal has been studied extensively, encompassing both classical pipelines based on hand-crafted priors and modern learning-based approaches. Early studies explored the use of temporal redundancy for video-based raindrop removal [44]. For still images, early learning-based methods investigated supervised CNN-based restoration using paired raindrop-degraded and clean images, although the reconstructed results were often over-smoothed. Subsequent work introduced dedicated datasets and attention-based frameworks to better localize and suppress raindrop regions while recovering background content [10]. Building on this line, later methods further improved localization by incorporating edge-aware cues or explicit raindrop representations, thereby enhancing boundary handling and detail recovery around droplet contours [11].
  • Image Desnowing. Early deep-learning approaches to image desnowing typically treated snow as a learnable corruption and trained direct mappings from snowy inputs to clean targets. DesnowNet [8] is a representative CNN-based method that established paired-data learning for snow removal. Later studies showed that architectures originally developed for related restoration tasks can be effectively adapted to desnowing. For example, SPANet and RESCAN [3,47] achieve strong performance on synthetic snow benchmarks. To better account for diverse snow appearances, Chen et al. [48] proposed JSTASR, which explicitly models different snow characteristics within a unified framework. Zhang et al. [9] introduced DDMSNet, a dense multi-scale network that leverages auxiliary cues to improve robustness under heavy snow and has demonstrated strong performance in prior studies.
  • Image Deraining & Dehazing. Traditional single-image deraining methods relied on hand-crafted priors and decomposition, whereas modern approaches use deep networks to suppress rain streaks while preserving fine details [1,49]. Recurrent or iterative designs improve robustness by progressively estimating rain layers and refining the clean image over multiple steps, which is particularly helpful when rain streaks vary in scale and density [2]. In real heavy-rain scenarios, rain streaks often co-exist with haze-like veiling, making joint deraining–dehazing more effective than treating the two degradations independently. Representative methods explicitly model the coupled “streak + veil” degradation and recover visibility and contrast together with rain streak suppression [20]. To mitigate the synthetic-to-real gap, several studies have explored transfer and adaptation strategies that better align training data with real rainy images [41]. DerainCycleGAN [50] further investigates rain-attentive cycle-consistent translation for unsupervised single-image deraining, helping to alleviate the synthetic-to-real gap. More recently, transformer-based restoration models have leveraged long-range context to improve structural and textural coherence, and have been adopted or extended for unified adverse-weather restoration [13,26].
  • Multi-Weather Restoration. Beyond task-specific restoration, recent studies have explored multi-weather restoration, in which a shared framework is designed to handle multiple weather-related degradations. Valanarasu et al. [13] introduced TransWeather, a transformer-based encoder–decoder that learns a unified restoration mapping across multiple atmospheric degradations. Zhu et al. [14] developed WGWSNet, which separates weather-general and weather-specific representations through a staged training procedure. More recently, multi-weather restoration has been studied from several additional perspectives, including knowledge distillation [51], diffusion-based probabilistic restoration [15], prior- or codebook-based modeling [16], prompt-based conditioning [22], and grid-structured feature interaction [52]. Related all-in-one restoration studies have also explored broader settings beyond the standard multi-weather benchmark protocol, including expert routing and degradation embedding [53], perception-guided coarse-to-fine restoration [54], and continual weather restoration with dynamic expert libraries [55]. Among the methods evaluated under the standard multi-weather benchmark setting, recent models such as CyclicPrompt [22] and GridFormer [52] serve as strong baselines for comparison. Despite these advances, multi-weather restoration still faces the challenge of reliably conditioning restoration on diverse weather-corrupted observations while preserving fine details. To address this challenge, we propose WeatherMAR, which performs paired-domain completion in a shared latent token space through joint-sequence self-attention and complementary masking, and further refines predictions with conditional token diffusion.

2.2. Autoregressive Models with Continuous Tokens

Autoregressive (AR) generation has achieved remarkable success in sequence modeling [56,57,58,59], but extending it to images typically requires either pixel-space factorization or latent tokenization. Early AR vision models generate images by predicting pixels sequentially (e.g., iGPT [60]). A dominant line of work discretizes images into codebook tokens through learned vector quantization [61], thereby enabling transformer-based generation over discrete latent sequences [62,63,64]. However, discretization relies on a finite codebook and may introduce information loss or approximation errors, motivating autoregressive generation over continuous-valued token sequences. Recent efforts have explored real-valued or hybrid token representations to improve fidelity and efficiency, including continuous token synthesis, coarse-to-fine decompositions [65,66], and unified token spaces for multimodal generation [67,68,69].
Beyond standalone image generation, diffusion has also been adopted as a learning objective and as a conditional decoder in other settings. In visual self-supervised learning, diffusion-based decoders have been used to reconstruct masked content and improve representation quality. For example, prior work has replaced the standard MAE reconstruction loss [70] with a denoising diffusion decoder [71] or trained AR-style backbones with diffusion patch decoders [72]. Although these studies primarily target representation learning rather than diverse image synthesis, they highlight the ability of diffusion models to capture complex conditional distributions in continuous spaces. Diffusion has also been explored in decision-making settings, where actions are modeled as conditional denoising processes given observations [73]. Motivated by these advances, recent masked and iterative generation frameworks have integrated diffusion heads with autoregressive-style token prediction in continuous latent spaces [18]. However, this combination often incurs substantial sampling cost, thereby motivating the development of more efficient scheduling strategies for iterative generation.

3. Methodology

3.1. Overall Framework

Image restoration under adverse weather conditions aims to recover a clean image from observations degraded by weather effects, such as rain and snow. Given a degraded input y R H × W × 3 , the goal is to reconstruct its corresponding clean image x R H × W × 3 . We consider a paired supervised setting with the training data defined as:
D = { ( y ( n ) , x ( n ) ) } n = 1 N pair ,
where N pair denotes the number of paired degraded–clean training samples and n indexes an individual training pair. Based on these paired data, we learn a conditional generative model that predicts x ^ from y, removing weather degradations while preserving fine details and natural appearance. During inference, the model takes only the degraded image y as input, initializes the clean-token positions with mask tokens, and progressively predicts the missing clean tokens to produce the restored image x ^ .
WeatherMAR introduces a new restoration paradigm for spatially aligned paired adverse-weather benchmarks by formulating restoration as paired-domain masked token completion in a shared latent space. Complementary masking explicitly couples degraded and clean tokens at each spatial location. As illustrated in Figure 1, WeatherMAR performs restoration in a continuous latent token space. A shared tokenizer E ( · ) [17] maps y and x into latent token grids Y , X R h × w × d , where h × w denotes the token-grid resolution and d is the token dimension. We flatten each grid into a sequence of length N = h w and concatenate the degraded and clean sequences for joint modeling, yielding a joint sequence of length 2 N . This formulation enables degraded and clean representations to be modeled jointly within a unified token space. To strengthen conditional learning while discouraging trivial solutions, WeatherMAR applies complementary token masking. At each spatial location, exactly one token in each degraded–clean pair is masked, while the other remains visible. This complementary masking mechanism is central to the restoration design, as it preserves local cross-domain evidence while preventing shortcut learning from fully visible token pairs. The masked joint sequence is processed by a masked iterative transformer f θ (MAR-style) [18] to aggregate global context and produce conditioning representations for the masked positions. A diffusion-based denoising head then models the conditional distribution of the masked tokens and refines their estimates. The refined tokens are reshaped into R h × w × d and decoded to obtain the restored image x ^ .
WeatherMAR is trained with paired inputs and complementary masking, providing coupled supervision over masked subsets in both domains. During inference, the model observes only y, initializes the clean-token positions with mask tokens, and progressively predicts the missing clean tokens conditioned on the visible degraded tokens. For efficiency, we adopt a progress-guided step schedule to allocate the diffusion sampling budget across inference iterations, using more denoising steps in earlier iterations and fewer in later ones.

3.2. Paired-Domain Joint Sequence Modeling

WeatherMAR formulates adverse-weather restoration as paired-domain completion over a unified sequence in a continuous latent token space, implemented with masked autoregressive modeling [18]. Unlike standard restoration methods that operate in pixel space or introduce conditions through separate branches, this formulation allows degraded and clean tokens to interact directly within a shared representation space. Given a paired sample ( y , x ) , a shared tokenizer E ( · ) produces aligned token grids Y , X R h × w × d , which are then flattened and concatenated into a joint sequence for cross-domain interaction.
We flatten each grid into a sequence of length N = h w , yielding two token sequences with identical spatial ordering:
Y = { y i } i = 1 N R N × d , X = { x i } i = 1 N R N × d ,
where d denotes the latent token dimension, each token index i corresponds to a specific spatial location, and the shared ordering implies that y i and x i originate from aligned positions in the degraded and clean images, respectively.
We concatenate the degraded and clean sequences to form a joint sequence:
Z = [ Y ; X ] R 2 N × d ,
where the first N tokens correspond to the degraded domain, and the remaining N tokens correspond to the clean domain. The key idea is to use self-attention over the unified sequence as the cross-domain fusion mechanism, allowing tokens from one domain to directly attend to those from the other while preserving location-wise correspondence.
This formulation enables joint masked-token modeling by predicting masked tokens in Z conditioned on the visible subset. In particular, completing masked clean tokens conditioned on visible degraded tokens implements conditional restoration and provides a practical way to learn the conditional distribution p θ ( X Y ) . Compared with designs that inject conditional information through separate branches, the joint sequence integrates global context and cross-domain evidence within a single representation space, which helps disambiguate structures corrupted by adverse weather.
Let Z ˜ denote the masked joint sequence constructed using the masking strategy described in Section 3.3. A masked iterative transformer f θ takes Z ˜ as input and outputs contextual representations for all tokens:
H = f θ ( Z ˜ ) R 2 N × d ,
where the resulting representations aggregate global context across both domains and serve as conditioning signals for masked-token prediction. Each row of H corresponds to a token position in the joint sequence and encodes contextual information from both the degraded and clean domains. However, naive joint modeling may admit trivial solutions when paired information is always fully visible. We therefore introduce complementary bidirectional masking to enforce strong conditional completion and regularize cross-domain reasoning.

3.3. Complementary Bidirectional Masking Strategy

3.3.1. Complementary Mask Construction

As shown in Figure 2, a key design of WeatherMAR is a complementary masking mechanism that preserves strong conditional evidence while discouraging trivial solutions. Under adverse weather conditions, corrupted observations entangle scene content with degradation patterns. If masked prediction lacks sufficient local conditioning, learning becomes ambiguous and may drift toward unconditional token generation. Conversely, if both domains are always visible, the model may overfit to trivial correlations, thereby reducing the incentive for cross-domain reasoning. Complementary masking addresses both issues by enforcing a strict local constraint: at each spatial location, one domain provides observable evidence, whereas the other must be inferred.
Formally, given the token sequences Y and X in Equation (2), we sample a binary mask for the clean-domain tokens:
M x [ i ] i . i . d . Bernoulli ( r ) , i = 1 , , N , M x { 0 , 1 } N ,
where r ( 0 , 1 ) denotes the masking probability for clean-domain tokens and N = h w is the sequence length. M x [ i ] = 1 indicates that the clean token x i is masked and must be predicted, whereas M x [ i ] = 0 indicates that x i remains visible as context. We then define the degraded-domain mask as the complement of the clean-domain mask:
M y = 1 N M x ,
where 1 N denotes the all-ones vector of length N. This complementary construction guarantees that the token pair ( y i , x i ) at location i is never masked simultaneously. Equivalently, M x [ i ] + M y [ i ] = 1 holds for all i, ensuring that one domain always provides local evidence.
Let [ MASK ] R d denote a shared learnable mask embedding. The complementarily masked token sequences are constructed as follows:
X ˜ = ( 1 N M x ) X + M x [ MASK ] , Y ˜ = ( 1 N M y ) Y + M y [ MASK ] ,
where ⊙ denotes element-wise multiplication with broadcasting along the token dimension. Masked positions are replaced by the learnable mask embedding, whereas visible positions retain the original latent tokens. Following Equation (3), we form the masked joint sequence:
Z ˜ = [ Y ˜ ; X ˜ ] R 2 N × d ,
which is then fed to the transformer backbone for contextual inference. This complementary constraint ensures that the backbone always observes a visible counterpart token at each spatial location, thereby stabilizing conditional completion in the paired sequence space.

3.3.2. Bidirectional Completion Targets

Complementary masking induces two coupled completion targets within a single forward pass. We define masked index sets for the clean and degraded domains as follows:
M x = { i M x [ i ] = 1 } , M y = { i M y [ i ] = 1 } .
M x and M y therefore denote the spatial locations where clean and degraded tokens are masked, respectively. By construction, these sets form a disjoint partition of { 1 , , N } :
M x M y = , M x M y = { 1 , , N } ,
which means each spatial location contributes supervision to exactly one domain, while the other domain provides paired evidence. Note that M x and M y index spatial locations rather than individual tokens in the joint sequence. At each location, only one domain token is masked, so the number of masked tokens in the joint sequence is N rather than 2 N .
The main restoration objective predicts clean tokens at positions M x conditioned on visible degraded tokens and the global context aggregated from Z ˜ . Because M x [ i ] = 1 implies M y [ i ] = 0 , the degraded token y i at the same location remains visible and provides a strong local cue for inferring the missing clean content, thereby implementing the restoration mapping y x at the token level. Symmetrically, we introduce an auxiliary reverse objective that predicts degraded tokens at M y conditioned on visible clean tokens.
This x y task encourages the backbone to explicitly encode weather degradation factors (e.g., rain and snow patterns) in the shared token space, rather than absorbing them implicitly as residual noise, thereby promoting more robust modeling of diverse degradation patterns. When optimized jointly with the main y x objective under complementary masking, the reverse direction provides coupled supervision at every spatial location and regularizes cross-domain correspondence learning without introducing any additional components or computation at test time.

3.3.3. Training and Inference Separation

The complementary masking strategy provides supervision over two disjoint token subsets within a single masked joint sequence, without introducing additional architectural branches. This design enables bidirectional supervision during training while preserving unidirectional restoration during inference. During training, WeatherMAR jointly optimizes masked-token prediction over M x and M y , with the overall objective defined as a weighted sum over the two subsets:
L total = L mask ( M x ) + λ L mask ( M y ) ,
where L mask ( · ) denotes a masked-token generative loss evaluated on the specified index subset, and λ controls the trade-off between the auxiliary reverse-direction objective and the main restoration objective. We set λ = 1 in all experiments. We instantiate L mask ( · ) as a diffusion-based conditional denoising objective, as described in Section 3.4. Intuitively, the first term corresponds to recovering masked clean tokens from visible degraded evidence, while the second encourages the model to encode degradation factors by predicting masked degraded tokens from visible clean tokens.
During inference, WeatherMAR observes only y, initializes all clean-token positions with [MASK], and progressively generates clean tokens conditioned on the degraded tokens. The reverse x y objective is used only during training as an auxiliary loss on M y and introduces no additional components or computation at inference time.

3.4. Token Diffusion Objective with Conditional Denoising

WeatherMAR predicts continuous-valued visual tokens [18], for which masked-token generation is more naturally formulated as conditional distribution modeling rather than deterministic regression. As shown in MAR [18], diffusion-based learning effectively models per-token conditional distributions in continuous token space, thereby making sequence modeling compatible with continuous-valued visual tokens. This formulation is particularly important for adverse-weather restoration, where corrupted observations may correspond to multiple plausible clean latent reconstructions rather than a single deterministic target. Therefore, we adopt a conditional denoising diffusion objective [19] for masked-token prediction, with transformer outputs serving as informative conditioning signals for the denoising process.
  • Conditional token distribution. Let Z ˜ R 2 N × d denote the masked joint sequence in Equation (8), and let H = f θ ( Z ˜ ) R 2 N × d denote the contextual representation in Equation (4). Recall that Z = [ Y ; X ] places degraded tokens in the first N positions and clean tokens in the last N positions. For a spatial index i { 1 , , N } , the degraded-domain token corresponds to the joint index π y ( i ) = i , and the clean-domain token corresponds to π x ( i ) = N + i . For each masked position, the transformer feature h π ( i ) R d serves as a conditioning vector for token generation. We define the masked-token variable u i 0 R d as follows:
    u i 0 = x i , i M x , y i , i M y ,
    where M x and M y are defined in Equation (9). The corresponding conditioning feature is defined as follows:
    c i = h π x ( i ) , i M x , h π y ( i ) , i M y ,
    This formulation provides a unified prediction interface across domains while remaining domain-aware through the joint index.
  • Forward noising process. For each masked token u i 0 , we uniformly sample a diffusion step t { 1 , , T } and add Gaussian noise:
    u i t = α ¯ t u i 0 + 1 α ¯ t ϵ i , ϵ i N ( 0 , I ) ,
    where { α ¯ t } t = 1 T denotes a predefined noise schedule and u i t denotes the noisy token at step t. Specifically, α ¯ t = s = 1 t α s is the cumulative noise coefficient induced by the predefined schedule { α s } s = 1 T . As t increases, u i t becomes progressively less informative about u i 0 .
  • Conditional denoising objective. A lightweight denoising head ϵ θ d ( · ) takes ( u i t , t , c i ) as input and predicts the added noise. We minimize a noise-prediction objective over a masked index set S :
    L diff ( S ) = E t , ϵ 1 | S | i S ϵ i ϵ θ d ( u i t , t , c i ) 2 2 ,
    where | S | is the cardinality of S . Minimizing Equation (15) trains a shared denoiser to model the conditional distribution of the masked tokens. Gradients are backpropagated through c i to jointly optimize the transformer parameters θ and the denoising-head parameters θ d .
  • Main and auxiliary objectives. Using Equation (15), we define two directional losses by evaluating the same diffusion objective on two disjoint index subsets:
    L y x L diff ( M x ) , L x y L diff ( M y ) ,
    These correspond to predicting masked clean tokens conditioned on visible degraded tokens and masked degraded tokens conditioned on visible clean tokens, respectively. Both terms share the same joint sequence and model parameters and differ only in the index subset used for loss evaluation. Substituting Equation (16) into Equation (11) instantiates L mask ( · ) as a diffusion-based masked-token objective.
  • Sampling. During inference, for each masked token, we run the reverse diffusion process conditioned on c i , starting from Gaussian noise u i T N ( 0 , I ) and producing u ^ i 0 after S k reverse steps, where S k denotes the number of reverse diffusion steps allocated to the k-th inference iteration according to the progress-to-step schedule in Section 3.5. The sampled tokens are placed back into the clean-token positions and decoded into the image space. During restoration inference, we keep the degraded tokens from the input y fixed and generate only the missing clean tokens, consistent with the y x direction.

3.5. Progress-to-Step Guided Sampling for Efficient Inference

WeatherMAR performs restoration through MAR iterative diffusion sampling, making inference efficiency an important practical consideration. Accordingly, we introduce a model-specific sampling strategy tailored to this inference process, rather than a generic acceleration scheme applicable to other restoration baselines. As illustrated in Figure 3, given a degraded input y, we compute degraded tokens Y = E ( y ) R N × d using the shared tokenizer [17], and initialize the clean-token positions X ^ ( 0 ) R N × d by filling all positions with the learnable mask embedding [MASK]. At iteration k, we form the joint sequence:
Z ^ ( k ) = [ Y ; X ^ ( k ) ] R 2 N × d ,
and obtain the contextual representations H ( k ) = f θ ( Z ^ ( k ) ) .
Following MAR-style masked iterative completion, WeatherMAR progressively predicts missing clean tokens in parallel. Let Δ M ( k ) { 1 , , N } denote the set of clean-token indices generated at iteration k. We select Δ M ( k ) using the MAR-style cosine masking-ratio schedule with randomized order [18]. For each i Δ M ( k ) , we sample a token by running the reverse diffusion process conditioned on the corresponding feature in H ( k ) (Section 3.4) and write it back to update the clean-token positions:
X ^ ( k + 1 ) [ i ] = u ^ i ( k ) , i Δ M ( k ) , X ^ ( k ) [ i ] , otherwise ,
where u ^ i ( k ) R d denotes the clean token generated at position i during iteration k. After K iterations, we decode the restored image as x ^ = D ( X ^ ( K ) ) .
A straightforward implementation allocates a fixed number of reverse diffusion steps to each iteration, which can be inefficient because the conditional context becomes progressively more informative as more clean tokens are predicted. We therefore propose a progress-to-step schedule that allocates the sampling budget across inference iterations. Specifically, we define the normalized inference progress at iteration k as:
p k = k K 1 , k = 0 , 1 , , K 1 , ( K > 1 ) ,
and set the number of reverse diffusion steps using a monotonically decreasing schedule:
S k = S min + ( 1 p k ) ( S max S min ) ,
where S max = 50 and S min = 5 denote the maximum and minimum numbers of reverse-diffusion steps per iteration, respectively. This design allocates more denoising steps to earlier iterations, when predictions rely on limited clean context and therefore exhibit higher uncertainty, and gradually reduces the step budget as the joint context becomes more informative and conditional completion becomes increasingly reliable.
As a result, WeatherMAR allocates more computation to earlier, more uncertain iterations and reduces redundant denoising in later ones, improving inference efficiency while preserving restoration quality. This schedule complements the paired-token restoration framework by making iterative conditional sampling more efficient during inference.

4. Experiments

4.1. Datasets and Evaluation Metrics

WeatherMAR is evaluated on the following community-standard paired adverse-weather benchmarks, for which established training and test protocols and prior baselines enable meaningful and fair comparison. We evaluate WeatherMAR on three adverse-weather restoration datasets covering diverse degradations, including synthetic snow with severity-controlled splits, heavy rain accompanied by haze, and raindrops attached to the camera lens. These datasets provide paired degraded and clean images for quantitative evaluation, and we additionally use a real-image subset to assess real-world generalization.
  • Snow100K [8] is a standard benchmark for image desnowing. It contains 50,000 training pairs and 50,000 test pairs. The synthetic test set is divided into three subsets, Snow100K-S/M/L, corresponding to light, medium, and heavy snow, with 16,611, 16,588, and 16,801 images, respectively. Snow100K also includes 1329 real snowy images (Snow100K-Real) without paired ground truth, which we use to assess real-world generalization.
  • Outdoor-Rain [20] targets joint deraining and dehazing under heavy-rain conditions. The training set contains 9000 paired images. For evaluation, we follow the standard protocol and report results on the Test1 split, which contains 750 image pairs.
  • RainDrop [10] focuses on raindrops adhered to the camera sensor or lens, which introduce localized occlusion-like artifacts. The dataset includes 861 training image pairs. For quantitative evaluation, we adopt the standard RainDrop-A test subset, which contains 58 image pairs and has been used in prior work for consistent comparison.
  • Evaluation metrics. We report peak signal-to-noise ratio (PSNR) [74] and structural similarity (SSIM) [75] on the paired test sets. Following common image-restoration practice, we compute PSNR and SSIM on the luminance channel Y in the YCbCr color space for fair comparison, in accordance with prior convention [10,76,77]. To evaluate real-world restoration quality in the absence of ground truth, we additionally employ two no-reference image quality metrics, NIQE [78] and IL-NIQE [79]. Lower NIQE and IL-NIQE values indicate better perceptual image quality.

4.2. Training Details

  • Tokenizer and inputs. We use a shared, frozen KL-regularized VAE tokenizer with a downsampling factor of 16 (KL-16) [17] for both degraded and clean images. All experiments and model variants in this work use the same frozen KL-16 tokenizer. Following standard MAR-style continuous latent modeling [18], we treat KL-16 as a fixed image-to-token interface rather than as a research variable or contribution of this paper. Consequently, the performance differences reported in this work primarily reflect the restoration design of WeatherMAR rather than differences in tokenizer design. For 256 × 256 inputs, the tokenizer outputs a continuous latent grid in R h × w × d with h × w = 16 × 16 ( N = h w = 256 ), which is then flattened into token sequences. During training, we extract aligned 256 × 256 crops from each degraded–clean pair to preserve pixel-wise correspondence.
  • Backbone and diffusion head. We adopt a MAR-style masked iterative transformer with a joint-sequence length of 2 N and learnable positional embeddings. We use the mar_large [18] configuration, with embedding dimension 1024, depth 16, 16 attention heads, and an MLP ratio of 4, together with attention dropout of 0.1 and projection dropout of 0.1. Masked positions are represented by a learnable mask token. Masked-token generation uses a conditional diffusion head implemented as an AdaLN-conditioned MLP with depth 12 and width 1536, conditioned on transformer features at the corresponding joint indices. We adopt a diffusion head that follows the standard MAR design for continuous-valued visual tokens [18]. This choice is well aligned with WeatherMAR, which performs masked-token prediction in a continuous latent space and therefore benefits from conditional distribution modeling rather than deterministic token regression.
  • Optimization. All experiments are implemented in PyTorch 2.8.0+cu128 [80] and trained on an NVIDIA RTX 4090 GPU. We use AdamW [81] with a learning rate of 1 × 10 4 , weight decay of 0.02, and ( β 1 , β 2 ) = ( 0.9 , 0.95 ) . We train for 400 epochs with a batch size of 16, enable mixed-precision training with bfloat16, apply gradient clipping with a threshold of 1.0, and maintain an exponential moving average (EMA) of the model parameters with a decay of 0.9999 for evaluation. For the main comparisons in Table 1, we follow the standard benchmark protocols for Snow100K, Outdoor-Rain, and RainDrop by training and evaluating WeatherMAR separately on each dataset under its corresponding setting. This ensures that comparisons are conducted under the same dataset-specific protocol as prior methods.
  • Masking and inference defaults. During training, we apply complementary bidirectional masking (Section 3.3) with a masking ratio of r = 0.5 to sample M x and set M y = 1 M x . This ensures each spatial location contributes supervision to exactly one domain and that the joint sequence contains N masked tokens in each forward pass. During inference, the model observes only y, keeps the degraded tokens fixed, initializes all clean-token positions with [MASK], and performs MAR parallel completion for K = 64 iterations using a cosine unmasking schedule with randomized order [18]. Unless otherwise specified, we use the progress-to-step schedule (Equation (20)) with S max = 50 and S min = 5 in all reported results.

4.3. Multi-Weather Image Restoration Results

4.3.1. Comparison Baselines and Protocol

We evaluate WeatherMAR on three standard adverse-weather restoration benchmarks that cover representative weather degradations: image desnowing (Snow100K-S/L) [8], joint deraining and dehazing (Outdoor-Rain) [20], and raindrop removal (RainDrop) [10]. These benchmarks constitute a commonly adopted evaluation protocol in prior adverse-weather restoration literature and provide a representative testbed for assessing restoration performance across multiple weather conditions. For fair comparison, the results in Table 1 are obtained by training and evaluating separate models on each benchmark following the standard dataset-specific protocol, unless otherwise stated. Following common practice, we include two categories of baselines. (i) Task-specific methods [3,8,9,10,11,20,47,48,76,77,82,83,84,85,86,87,88] are trained for a single degradation type and evaluated on the corresponding benchmark, covering both convolutional and transformer-based restoration models. These approaches often excel in their target degradation, but they do not directly evaluate unified multi-weather restoration under a single model formulation. (ii) Unified multi-weather models [12,13,14,15,16,21,22,51,52,89] aim to restore multiple weather degradations with a single network and therefore provide the most relevant references for WeatherMAR. In particular, the unified part of Table 1 includes representative baselines ranging from earlier unified restoration models, such as TransWeather [13], WGWSNet [14], WeatherDiff [15], AWRCP [16], and Histoformer [21], to more recent methods, including GridFormer [52] and CyclicPrompt [22]. Unless otherwise stated, we follow the standard evaluation protocol of each dataset and report PSNR and SSIM on the paired test sets for fair comparison.

4.3.2. Quantitative Comparison

As summarized in Table 1, WeatherMAR delivers strong performance among multi-weather models across all three tasks, achieving the best results on Snow100K-S, the highest SSIM on Outdoor-Rain, and the best PSNR on RainDrop and Snow100K-L.
On Snow100K-S, WeatherMAR achieves 38.14 dB/ 0.9684 , surpassing the strongest unified baseline, T3-DiffWeather ( 37.55 / 0.9641 ), by 0.59 dB and improving upon the best baseline SSIM ( 0.9656 , achieved by Histoformer) by 0.0028 . On the more challenging Snow100K-L split, WeatherMAR achieves 32.58 dB/ 0.9274 , improving upon the best unified baseline PSNR ( 32.16 dB, achieved by Histoformer and CyclicPrompt) by 0.42 dB. These gains on both light and heavy snow suggest that WeatherMAR remains effective across snow severities while preserving fine structures.
On Outdoor-Rain, WeatherMAR achieves 31.91 dB/ 0.9396 . Although CyclicPrompt attains the highest PSNR ( 32.81 dB), ours achieves the highest SSIM, improving upon the previous best SSIM of 0.9389 reported by Histoformer. This result suggests improved structural fidelity and perceptual consistency under heavy rain and haze.
On RainDrop, WeatherMAR achieves the best PSNR ( 33.12 dB) together with a highly competitive SSIM ( 0.9452 ). It slightly exceeds Histoformer in PSNR ( 33.06 dB) while remaining marginally below the best unified SSIM reported by CyclicPrompt ( 0.9454 ). Compared with earlier unified baselines such as All-in-One ( 31.12 / 0.9268 ) and WeatherDiff64 ( 30.71 / 0.9312 ), WeatherMAR still shows clear improvements in both metrics. These consistent improvements across diverse degradations support the effectiveness of our unified token-space formulation, in which paired-domain joint sequence modeling enables explicit cross-domain interaction and complementary bidirectional masking strengthens conditional learning within a single shared model.

4.3.3. Qualitative Evaluation

We further present visual comparisons on Snow100K, Outdoor-Rain, and RainDrop, together with real-world results on Snow100K-Real (Figure 4, Figure 5, Figure 6 and Figure 7). Overall, WeatherMAR produces cleaner restorations with fewer residual artifacts and stronger structural consistency, particularly in regions where degradations overlap with edges and fine textures. This behavior aligns with the unified token-space design, in which self-attention over the joint sequence enables cross-domain interaction and complementary masking promotes conditional completion rather than trivial recovery.
On Snow100K, as shown in Figure 4, WeatherMAR more thoroughly removes both sparse snow streaks and dense snow clusters in the zoomed regions. In areas with high-frequency textures (e.g., brick patterns, foliage, and repetitive structures), WeatherMAR preserves sharper boundaries and more coherent fine textures. Several competing methods leave thin snow residues, such as faint streaks and granular snow points, or suppress snow at the cost of over-smoothed surfaces. Around object contours and thin structures, WeatherMAR reduces snow remnants without blurring edges, yielding clearer outlines and fewer texture discontinuities in the highlighted patches.
On Outdoor-Rain, as illustrated in Figure 5, WeatherMAR reduces rain streaks and haze veiling, thereby improving visibility and global tonal consistency. In the enlarged crops, fine structures such as poles and wires are better preserved, with fewer halo artifacts around high-contrast transitions. Compared with baselines that under-remove rain or introduce local over-enhancement, WeatherMAR produces more balanced restorations by improving distant visibility while preserving local details.
On RainDrop, as shown in Figure 6, WeatherMAR suppresses raindrop boundaries and the associated refractive distortions. In raindrop-covered regions, WeatherMAR restores occluded content with fewer ringing artifacts near raindrop edges and fewer discontinuities in repeated textures. Competing methods often leave residual raindrop contours, produce locally inconsistent textures, or exhibit boundary ringing in magnified regions, whereas WeatherMAR yields more spatially coherent reconstructions.
On Snow100K-Real, WeatherMAR generalizes well to real snowy images despite the domain gap between synthetic training data and real-world snow patterns. As illustrated in Figure 7, WeatherMAR removes prominent snow deposits and streaks while preserving a natural appearance and avoiding common real-image desnowing failures such as over-smoothing, loss of fine textures, and color shifts. In challenging regions where snow partially occludes structural edges or overlaps textured backgrounds, WeatherMAR produces cleaner results with fewer residual traces and more coherent texture continuity.
In summary, Figure 4, Figure 5, Figure 6 and Figure 7 corroborate the quantitative trends in Table 1, showing that WeatherMAR suppresses diverse weather artifacts while preserving sharp edges and coherent textures within an adverse-weather restoration framework.

4.3.4. No-Reference Quantitative Evaluation on Real Snow Images

To complement the qualitative results on Snow100K-Real, we additionally report no-reference image quality metrics to enable quantitative evaluation in the absence of paired ground truth. We compare against several representative unified baselines to provide a concise evaluation in the real-image setting. As shown in Table 2, WeatherMAR achieves the lowest NIQE and IL-NIQE scores among the compared methods, with values of 2.803 and 21.617 , respectively. Compared with WeatherDiff128, WeatherMAR reduces NIQE from 2.964 to 2.803 and IL-NIQE from 21.976 to 21.617 . These results provide additional evidence of the strong perceptual restoration quality of WeatherMAR on real snowy images.

4.4. Ablation Studies

4.4.1. Component-Wise Ablation

To validate the contribution of each design component in WeatherMAR, we conduct component-wise ablations on Outdoor-Rain [20], where heavy rain and haze jointly challenge fine-detail recovery and structural consistency. Unless otherwise specified, all variants share the same KL-16 tokenizer [17], mar_large backbone [18], diffusion head, training budget, and inference iteration count K; only the specified component is modified.
We start from a conditional MAR baseline ( A 0 ) performing iterative masked-token completion for clean tokens under p θ ( X Y ) . Specifically, degraded tokens Y are provided as a fixed conditioning prefix, and the missing clean tokens indexed by M x are predicted through MAR parallel iterations. To avoid explicit paired-domain joint modeling, we adopt a unidirectional attention mask: clean tokens can attend to all degraded tokens and the visible clean tokens filled in during earlier iterations, whereas degraded tokens do not attend to clean tokens. This baseline masks only clean-domain tokens and excludes joint sequence modeling, complementary masking, reverse supervision, and ProS scheduling.
Table 3 reports the PSNR and SSIM results on Outdoor-Rain. Introducing paired-domain joint sequence modeling ( A 1 ) yields consistent gains over A 0 , indicating that self-attention over the unified sequence provides stronger cross-domain conditioning than external conditioning alone. Enabling complementary bidirectional masking ( A 2 ) yields the largest improvement, increasing PSNR from 30.08 to 31.64 and SSIM from 0.9232 to 0.9367 . This result supports the claim that the location-wise complementary constraint strengthens conditional completion by ensuring that, at each spatial position, one domain remains visible while the other must be inferred, thereby improving structural fidelity without increasing model capacity.
Adding reverse supervision by activating the auxiliary degradation-modeling loss on M y ( A 3 ) further improves performance to 31.92 / 0.9396 , suggesting that the reverse objective regularizes degradation-aware representations within the same backbone and token space. Finally, incorporating the progress-to-step schedule during inference ( A 4 ) yields 31.91 / 0.9396 . This component primarily improves efficiency by reallocating reverse diffusion steps across iterations according to inference progress (Equation (20)), while maintaining comparable restoration accuracy. Overall, these ablations indicate that WeatherMAR’s gains are driven primarily by complementary bidirectional masking and are further reinforced by joint sequence modeling, reverse supervision, and progress-to-step scheduling, yielding a unified restoration model that is both accurate and efficient on Outdoor-Rain.

4.4.2. Masking Strategy Ablation

We further isolate the effect of the masking strategy using the same mar_large backbone under identical training and inference settings. Table 4 compares three masking variants: only-clean masking (standard conditional completion), independent masking of both domains, and the proposed complementary masking.
As shown in Table 4, independent masking ( B 2 ) modestly improves over only-clean masking ( B 1 ), as the model occasionally learns to predict missing tokens in both domains. However, i.i.d. masking permits two unfavorable cases at a given location: both tokens may be masked, which weakens local evidence and pushes prediction toward unconditional generation, or both tokens may remain visible, which encourages trivial solutions that bypass cross-domain reasoning. In contrast, complementary masking ( B 3 ) eliminates both cases by enforcing M y = 1 M x , thereby guaranteeing exactly one domain token is observed at each location. This location-wise constraint stabilizes paired-domain completion and yields the best restoration accuracy, substantially improving both PSNR and SSIM.

4.4.3. Efficiency Analysis of ProS Scheduling

We further evaluate the proposed progress-to-step schedule (Section 3.5) as an inference-time efficiency optimization for WeatherMAR. Both variants use the same trained model, the same MAR inference procedure, and the same iteration count ( K = 64 ), differing only in how reverse diffusion steps are allocated. We report the total reverse-step budget, parameter count, peak inference memory, average per-image runtime, and restoration accuracy on Outdoor-Rain and Snow100K-L.
As shown in Table 5, ProS reduces the total reverse-step budget from 3200 to 1788 while keeping the model size unchanged. On both Outdoor-Rain and Snow100K-L, this yields a consistent runtime reduction of about 12% with nearly unchanged restoration accuracy. Since most competing restoration baselines do not report runtime under a unified implementation setting, we focus on a controlled within-model comparison. In this sense, ProS should be viewed as an efficiency optimization tailored to the MAR-style inference process of WeatherMAR. By reducing runtime to about 0.2 s per image, it also improves the practical usability of the model in real-world deployment.

4.4.4. Token Prediction Head Ablation

We further compare two token prediction heads on Outdoor-Rain under the same WeatherMAR architecture and training protocol: a direct L2 regression head and the adopted diffusion head. This ablation examines whether continuous-valued token prediction in our framework is better modeled as deterministic regression or as conditional distribution modeling.
As shown in Table 6, replacing the diffusion head with direct L2 regression leads to a clear performance drop on Outdoor-Rain. Specifically, WeatherMAR improves PSNR from 31.24 to 31.91 and SSIM from 0.9315 to 0.9396. This result supports our choice of a diffusion-based token prediction head for continuous-valued visual tokens, indicating that deterministic regression is less effective than diffusion-based modeling for masked-token prediction in our framework.

4.4.5. Key Hyperparameter Ablation

We further study three key hyperparameters of WeatherMAR: the complementary masking ratio r, the auxiliary loss weight λ , and the inference-time step range ( S max , S min ) used in the progress-to-step schedule. The results are summarized in Table 7.
For the training hyperparameters, the best performance is achieved at r = 0.5 , while both smaller and larger masking ratios lead to inferior results. This suggests that complementary masking is most effective when visible and masked information remain balanced across the paired domains. We use a unified masking ratio across all weather conditions, rather than tuning r separately for each degradation type. Although weather-specific tuning of r may further improve individual results, r = 0.5 serves as a general and robust default setting for the unified multi-weather framework. For the auxiliary loss weight, performance consistently improves as λ increases from 0 to 1.0, indicating that reverse-direction supervision provides useful regularization and is most effective among the tested settings when assigned the same weight as the main objective.
For the inference-time step range, increasing the sampling budget yields only marginal gains in PSNR and SSIM while increasing runtime. In particular, ( 100 , 0 ) improves over ( 50 , 5 ) by only 0.04 dB in PSNR and 0.0003 in SSIM, while requiring longer inference time per image. By contrast, ( 25 , 5 ) is faster but causes a slight drop in accuracy. Therefore, we use ( S max , S min ) = ( 50 , 5 ) as the default setting, as it provides the best trade-off between restoration quality and inference efficiency.

4.4.6. Higher-Resolution Feasibility Study

We conduct a supplementary feasibility study on higher-resolution inputs using Outdoor-Rain. Since WeatherMAR is trained under the standard 256 × 256 setting, full-image inference at larger resolutions would substantially increase the latent sequence length and the inference cost. We therefore adopt a simple overlapping patch-based inference strategy: each 720 × 480 image is processed using overlapping 256 × 256 patches with a nominal overlap of 64 pixels, and the restored patches are merged by averaging.
As shown in Table 8, extending WeatherMAR to 720 × 480 inputs leads to a moderate drop of 0.56 dB in PSNR and 0.0082 in SSIM relative to the standard 256 × 256 setting. Nevertheless, the framework remains effective under this higher-resolution setting, suggesting that WeatherMAR remains applicable to larger inputs under a simple patch-based inference strategy. This study serves as a feasibility check rather than a fully optimized high-resolution solution.

5. Discussion

5.1. Discussion on the Frozen KL-16 Tokenizer

In this work, we adopt a frozen KL-16 tokenizer as a shared and fixed image-to-token interface, following the standard continuous-token MAR [18] setup. This choice is also consistent with common practice in MAR/LDM-style latent generative frameworks [17], where KL-16 provides a practical balance between compression efficiency and reconstruction fidelity. Moreover, since WeatherMAR performs token prediction in a continuous latent space with a diffusion-based objective, the continuous representation produced by KL-VAE is naturally compatible with our modeling formulation.
Keeping the tokenizer frozen allows us to control this factor across all experiments, so that the observed performance gains can be attributed primarily to the proposed multi-weather restoration framework rather than to changes in tokenizer design or joint tokenizer optimization. For this reason, tokenizer choice is not treated as a primary research variable in the present study.
We note that different tokenizer settings, including compression ratios (e.g., KL-8 versus KL-16) and pretrained VAE weights, may influence the absolute restoration performance. However, such effects mainly reflect differences in latent representation quality, token sequence length, and modeling difficulty, and are shared by latent-token-based MAR-style methods in general rather than being specific to WeatherMAR. Therefore, the conclusions of this work should be understood as validating the effectiveness of WeatherMAR under a standard and controlled frozen KL-16 tokenizer setting, while broader tokenizer-level generalizability remains an important topic for future study.
More advanced tokenizers may further improve restoration quality, but a systematic study of tokenizer design lies beyond the scope of the present work and is better viewed as part of the broader development of continuous-token MAR. We leave this direction, together with stronger continuous-token MAR backbones, for future work.

5.2. Scope and Future Evaluation Directions

The scope of WeatherMAR should be understood within the standard multi-weather restoration benchmark setting, in which a common restoration framework is evaluated across representative adverse-weather benchmarks, namely Snow100K, Outdoor-Rain, and RainDrop, under their widely adopted training and evaluation protocols. Accordingly, the current experimental setting is consistent with established community practice in multi-weather image restoration.
At the same time, the present evaluation does not constitute exhaustive validation across all real-world adverse-weather conditions. Challenging cases such as mixed-weather scenes, unseen compound degradations, cross-dataset generalization, and low-light weather corruption remain beyond the main scope of this study. These settings are important for further assessing practical robustness and applicability, and we regard more realistic datasets and evaluation protocols covering mixed and unseen degradations as an important direction for future work.

5.3. Failure Cases and Limitations

WeatherMAR may still fail in challenging night-time real-snow scenes. As shown in Figure 8, restoration errors may appear in dark regions, including incomplete snow removal, local blocky whitening, highlight-shaped residual patterns, and slight bluish color shifts. A likely reason is that low-light conditions provide weaker structural and textural cues in the degraded observations, thereby reducing the reliability of paired clean-token completion. In addition, real night-time snow scenes often involve headlight glare, sensor noise, reflections, and color distortion, making it more difficult to recover the underlying scene content from weather-corrupted observations. Improving robustness under low-light real-world snow conditions remains an important direction for future work.

6. Conclusions

We present WeatherMAR, an adverse-weather restoration framework that formulates restoration as paired-domain completion in a shared continuous token space. By jointly modeling degraded and clean tokens within a single sequence, WeatherMAR enables explicit cross-domain interaction through self-attention. Complementary bidirectional masking further strengthens location-wise conditional learning, while the progress-to-step schedule improves inference efficiency.
Experiments on Snow100K, Outdoor-Rain, and RainDrop demonstrate that WeatherMAR performs strongly across standard adverse-weather benchmarks, achieving the best results on Snow100K and RainDrop, as well as the best SSIM on Outdoor-Rain, among unified multi-weather restoration baselines. Additional analyses of real-image evaluation, efficiency, high-resolution feasibility, and failure cases further clarify the practical behavior and current scope of the framework. Overall, the results show that token-space completion with complementary masking provides an effective framework for multi-weather restoration under the standard benchmark setting. Extending the evaluation to more complex real-world degradations remains an important direction for future work.

Author Contributions

Conceptualization, J.M. and Z.T.; methodology, J.M.; software, J.M.; investigation, J.M. and Q.L.; writing—original draft preparation, J.M.; writing—review and editing, J.M., Q.L. and Z.T.; project administration, Q.L.; funding acquisition, Z.T. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by National Key R&D Program of China (No. 2022YFB3904800).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

No new data were created or analyzed in this study.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Fu, X.; Huang, J.; Zeng, D.; Huang, Y.; Ding, X.; Paisley, J. Removing rain from single images via a deep detail network. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 3855–3863. [Google Scholar]
  2. Yang, W.; Tan, R.T.; Feng, J.; Liu, J.; Guo, Z.; Yan, S. Deep joint rain detection and removal from a single image. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 1357–1366. [Google Scholar]
  3. Li, X.; Wu, J.; Lin, Z.; Liu, H.; Zha, H. Recurrent squeeze-and-excitation context aggregation net for single image deraining. In Proceedings of the 15th European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 254–269. [Google Scholar]
  4. Zhang, J.; Ren, W.; Zhang, S.; Zhang, H.; Nie, Y.; Xue, Z.; Cao, X. Hierarchical density-aware dehazing network. IEEE Trans. Cybern. 2021, 52, 11187–11199. [Google Scholar] [CrossRef]
  5. Wu, H.; Qu, Y.; Lin, S.; Zhou, J.; Qiao, R.; Zhang, Z.; Xie, Y.; Ma, L. Contrastive learning for compact single image dehazing. In Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 10551–10560. [Google Scholar]
  6. Sun, S.; Ren, W.; Wang, T.; Cao, X. Rethinking image restoration for object detection. Adv. Neural Inf. Process. Syst. 2022, 35, 4461–4474. [Google Scholar]
  7. Li, B.; Ren, W.; Fu, D.; Tao, D.; Feng, D.; Zeng, W.; Wang, Z. Benchmarking single-image dehazing and beyond. IEEE Trans. Image Process. 2018, 28, 492–505. [Google Scholar] [CrossRef] [PubMed]
  8. Liu, Y.F.; Jaw, D.W.; Huang, S.C.; Hwang, J.N. Desnownet: Context-aware deep network for snow removal. IEEE Trans. Image Process. 2018, 27, 3064–3073. [Google Scholar] [CrossRef] [PubMed]
  9. Zhang, K.; Li, R.; Yu, Y.; Luo, W.; Li, C. Deep dense multi-scale network for snow removal using semantic and depth priors. IEEE Trans. Image Process. 2021, 30, 7419–7431. [Google Scholar] [CrossRef] [PubMed]
  10. Qian, R.; Tan, R.T.; Yang, W.; Su, J.; Liu, J. Attentive generative adversarial network for raindrop removal from a single image. In Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 2482–2491. [Google Scholar]
  11. Quan, Y.; Deng, S.; Chen, Y.; Ji, H. Deep learning for seeing through window with raindrops. In Proceedings of the 2019 IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 2463–2471. [Google Scholar]
  12. Li, R.; Tan, R.T.; Cheong, L.F. All in one bad weather removal using architectural search. In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 14–19 June 2020; pp. 3175–3185. [Google Scholar]
  13. Valanarasu, J.M.J.; Yasarla, R.; Patel, V.M. Transweather: Transformer-based restoration of images degraded by adverse weather conditions. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 2353–2363. [Google Scholar]
  14. Zhu, Y.; Wang, T.; Fu, X.; Yang, X.; Guo, X.; Dai, J.; Qiao, Y.; Hu, X. Learning weather-general and weather-specific features for image restoration under multiple adverse weather conditions. In Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 17–24 June 2023; pp. 21747–21758. [Google Scholar]
  15. Özdenizci, O.; Legenstein, R. Restoring vision in adverse weather conditions with patch-based denoising diffusion models. IEEE Trans. Pattern Anal. Mach. Intell. 2023, 45, 10346–10357. [Google Scholar] [CrossRef]
  16. Ye, T.; Chen, S.; Bai, J.; Shi, J.; Xue, C.; Jiang, J.; Yin, J.; Chen, E.; Liu, Y. Adverse weather removal with codebook priors. In Proceedings of the 2023 IEEE/CVF International Conference on Computer Vision, Paris, France, 2–3 October 2023; pp. 12653–12664. [Google Scholar]
  17. Rombach, R.; Blattmann, A.; Lorenz, D.; Esser, P.; Ommer, B. High-resolution image synthesis with latent diffusion models. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 10684–10695. [Google Scholar]
  18. Li, T.; Tian, Y.; Li, H.; Deng, M.; He, K. Autoregressive Image Generation without Vector Quantization. Adv. Neural Inf. Process. Syst. 2024, 37, 56424–56445. [Google Scholar]
  19. Ho, J.; Jain, A.; Abbeel, P. Denoising diffusion probabilistic models. Adv. Neural Inf. Process. Syst. 2020, 33, 6840–6851. [Google Scholar]
  20. Li, R.; Cheong, L.F.; Tan, R.T. Heavy rain image restoration: Integrating physics model and conditional adversarial learning. In Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 1633–1642. [Google Scholar]
  21. Sun, S.; Ren, W.; Gao, X.; Wang, R.; Cao, X. Restoring images in adverse weather conditions via histogram transformer. In European Conference on Computer Vision 2024; Springer: Cham, Switzerland, 2024; pp. 111–129. [Google Scholar]
  22. Liao, R.; Li, F.; Wei, Y.; Shi, Z.; Zhang, L.; Bai, H.; Wang, M. Prompt to Restore, Restore to Prompt: Cyclic prompting for universal adverse weather removal. IEEE Trans. Image Process. 2025, 34, 7422–7435. [Google Scholar] [CrossRef]
  23. Ye, T.; Zhang, Y.; Jiang, M.; Chen, L.; Liu, Y.; Chen, S.; Chen, E. Perceiving and modeling density for image dehazing. In European Conference on Computer Vision 2022; Springer: Cham, Switzerland, 2022; pp. 130–145. [Google Scholar]
  24. Liu, Y.; Yan, Z.; Wu, A.; Ye, T.; Li, Y. Nighttime image dehazing based on variational decomposition model. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 640–649. [Google Scholar]
  25. Liu, Y.; Yan, Z.; Chen, S.; Ye, T.; Ren, W.; Chen, E. Nighthazeformer: Single nighttime haze removal using prior query transformer. In Proceedings of the 31st ACM International Conference on Multimedia, Ottawa, ON, Canada, 29 October–3 November 2023; pp. 4119–4128. [Google Scholar]
  26. Chen, S.; Ye, T.; Shi, J.; Liu, Y.; Jiang, J.; Chen, E.; Chen, P. Dehrformer: Real-time transformer for depth estimation and haze removal from varicolored haze scenes. In ICASSP 2023—2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP); IEEE: New York, NY, USA, 2023; pp. 1–5. [Google Scholar]
  27. Chen, S.; Ye, T.; Liu, Y.; Chen, E. SnowFormer: Context interaction transformer with scale-awareness for single image desnowing. arXiv 2022, arXiv:2208.09703. [Google Scholar]
  28. Chen, S.; Ye, T.; Liu, Y.; Liao, T.; Jiang, J.; Chen, E.; Chen, P. Msp-former: Multi-scale projection transformer for single image desnowing. In ICASSP 2023—2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP); IEEE: New York, NY, USA, 2023; pp. 1–5. [Google Scholar]
  29. Ye, T.; Chen, S.; Liu, Y.; Ye, Y.; Bai, J.; Chen, E. Towards real-time high-definition image snow removal: Efficient pyramid network with asymmetrical encoder-decoder architecture. In Proceedings of the 2022 Asian Conference on Computer Vision, Macau, China, 4–8 December 2022; pp. 366–381. [Google Scholar]
  30. Jin, Y.; Yang, W.; Tan, R.T. Unsupervised night image enhancement: When layer decomposition meets light-effects suppression. In European Conference on Computer Vision 2022; Springer: Cham, Switzerland, 2022; pp. 404–421. [Google Scholar]
  31. Jin, Y.; Yan, W.; Yang, W.; Tan, R.T. Structure representation network and uncertainty feedback learning for dense non-uniform fog removal. In Asian Conference on Computer Vision 2022; Springer: Cham, Switzerland, 2022; pp. 155–172. [Google Scholar]
  32. Ren, J.; Zheng, Q.; Zhao, Y.; Xu, X.; Li, C. Dlformer: Discrete latent transformer for video inpainting. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 3511–3520. [Google Scholar]
  33. Ye, T.; Chen, S.; Liu, Y.; Ye, Y.; Chen, E.; Li, Y. Underwater light field retention: Neural rendering for underwater imaging. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 488–497. [Google Scholar]
  34. Jin, Y.; Ye, W.; Yang, W.; Yuan, Y.; Tan, R.T. Des3: Adaptive attention-driven self and soft shadow removal using vit similarity. In Proceedings of the AAAI Conference on Artificial Intelligence; Association for the Advancement of Artificial Intelligence: Washington, DC, USA, 2024; Volume 38, pp. 2634–2642. [Google Scholar]
  35. Huang, J.; Zhao, F.; Zhou, M.; Xiao, J.; Zheng, N.; Zheng, K.; Xiong, Z. Learning sample relationship for exposure correction. In Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 17–24 June 2023; pp. 9904–9913. [Google Scholar]
  36. Jin, Y.; Li, R.; Yang, W.; Tan, R.T. Estimating reflectance layer from a single image: Integrating reflectance guidance and shadow/specular aware learning. In Proceedings of the AAAI Conference on Artificial Intelligence; Association for the Advancement of Artificial Intelligence: Washington, DC, USA, 2023; Volume 37, pp. 1069–1077. [Google Scholar]
  37. Huang, J.; Liu, Y.; Fu, X.; Zhou, M.; Wang, Y.; Zhao, F.; Xiong, Z. Exposure normalization and compensation for multiple-exposure correction. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 6043–6052. [Google Scholar]
  38. Yu, H.; Huang, J.; Liu, Y.; Zhu, Q.; Zhou, M.; Zhao, F. Source-free domain adaptation for real-world image dehazing. In Proceedings of the 30th ACM International Conference on Multimedia, Lisbon, Portugal, 10–14 October 2022; pp. 6645–6654. [Google Scholar]
  39. Zhang, H.; Sindagi, V.; Patel, V.M. Image de-raining using a conditional generative adversarial network. IEEE Trans. Circuits Syst. Video Technol. 2019, 30, 3943–3956. [Google Scholar] [CrossRef]
  40. Zhang, H.; Patel, V.M. Density-aware single image de-raining using a multi-stream dense network. In Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 695–704. [Google Scholar]
  41. Yasarla, R.; Patel, V.M. Uncertainty guided multi-scale residual learning-using a cycle spinning cnn for single image de-raining. In Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 8405–8414. [Google Scholar]
  42. Ren, W.; Tian, J.; Han, Z.; Chan, A.; Tang, Y. Video desnowing and deraining based on matrix decomposition. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 4210–4219. [Google Scholar]
  43. Li, M.; Cao, X.; Zhao, Q.; Zhang, L.; Meng, D. Online rain/snow removal from surveillance videos. IEEE Trans. Image Process. 2021, 30, 2029–2044. [Google Scholar] [CrossRef] [PubMed]
  44. You, S.; Tan, R.T.; Kawakami, R.; Mukaigawa, Y.; Ikeuchi, K. Adherent raindrop modeling, detection and removal in video. IEEE Trans. Pattern Anal. Mach. Intell. 2015, 38, 1721–1733. [Google Scholar] [CrossRef]
  45. Zhang, K.; Li, D.; Luo, W.; Ren, W. Dual attention-in-attention model for joint rain streak and raindrop removal. IEEE Trans. Image Process. 2021, 30, 7608–7619. [Google Scholar] [CrossRef]
  46. Li, B.; Liu, X.; Hu, P.; Wu, Z.; Lv, J.; Peng, X. All-in-one image restoration for unknown corruption. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 17452–17462. [Google Scholar]
  47. Wang, T.; Yang, X.; Xu, K.; Chen, S.; Zhang, Q.; Lau, R.W. Spatial attentive single-image deraining with a high quality real rain dataset. In Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 12270–12279. [Google Scholar]
  48. Chen, W.T.; Fang, H.Y.; Ding, J.J.; Tsai, C.C.; Kuo, S.Y. JSTASR: Joint size and transparency-aware snow removal algorithm based on modified partial convolution and veiling effect removal. In European Conference on Computer Vision 2020; Springer: Cham, Switzerland, 2020; pp. 754–770. [Google Scholar]
  49. Kang, L.W.; Lin, C.W.; Fu, Y.H. Automatic single-image-based rain streaks removal via image decomposition. IEEE Trans. Image Process. 2011, 21, 1742–1755. [Google Scholar] [CrossRef]
  50. Wei, Y.; Zhang, Z.; Wang, Y.; Xu, M.; Yang, Y.; Yan, S.; Wang, M. Deraincyclegan: Rain attentive cyclegan for single image deraining and rainmaking. IEEE Trans. Image Process. 2021, 30, 4788–4801. [Google Scholar] [CrossRef]
  51. Chen, W.T.; Huang, Z.K.; Tsai, C.C.; Yang, H.H.; Ding, J.J.; Kuo, S.Y. Learning multiple adverse weather removal via two-stage knowledge learning and multi-contrastive regularization: Toward a unified model. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 17653–17662. [Google Scholar]
  52. Wang, T.; Zhang, K.; Shao, Z.; Luo, W.; Stenger, B.; Lu, T.; Kim, T.K.; Liu, W.; Li, H. Gridformer: Residual dense transformer with grid structure for image restoration in adverse weather conditions. Int. J. Comput. Vis. 2024, 132, 4541–4563. [Google Scholar] [CrossRef]
  53. Shurui, P.; Lin, X.; Luo, S.; Ou, J.; Zhang, D.; Qi, L.; Nguyen, T.; Ren, C. SLER-IR: Spherical Layer-wise Expert Routing for All-in-One Image Restoration. arXiv 2026, arXiv:2603.05940. [Google Scholar]
  54. Zhang, X.; Zhang, H.; Wang, G.; Zhang, Q.; Zhang, L. ClearAIR: A Human-Visual-Perception-Inspired All-in-One Image Restoration. arXiv 2026, arXiv:2601.02763. [Google Scholar] [CrossRef]
  55. Liu, S.; Zuo, K.; Xiao, H. DELNet: Continuous All-in-One Weather Removal via Dynamic Expert Library. arXiv 2026, arXiv:2601.22573. [Google Scholar] [CrossRef]
  56. Brown, T.; Mann, B.; Ryder, N.; Subbiah, M.; Kaplan, J.D.; Dhariwal, P.; Neelakantan, A.; Shyam, P.; Sastry, G.; Askell, A.; et al. Language models are few-shot learners. Adv. Neural Inf. Process. Syst. 2020, 33, 1877–1901. [Google Scholar]
  57. Chowdhery, A.; Narang, S.; Devlin, J.; Bosma, M.; Mishra, G.; Roberts, A.; Barham, P.; Chung, H.W.; Sutton, C.; Gehrmann, S.; et al. Palm: Scaling language modeling with pathways. J. Mach. Learn. Res. 2023, 24, 1–113. [Google Scholar]
  58. Grattafiori, A.; Dubey, A.; Jauhri, A.; Pandey, A.; Kadian, A.; Al-Dahle, A.; Letman, A.; Mathur, A.; Schelten, A.; Vaughan, A.; et al. The llama 3 herd of models. arXiv 2024, arXiv:2407.21783. [Google Scholar] [CrossRef]
  59. Yang, A.; Li, A.; Yang, B.; Zhang, B.; Hui, B.; Zheng, B.; Yu, B.; Gao, C.; Huang, C.; Lv, C.; et al. Qwen3 technical report. arXiv 2025, arXiv:2505.09388. [Google Scholar] [CrossRef]
  60. Chen, M.; Radford, A.; Child, R.; Wu, J.; Jun, H.; Luan, D.; Sutskever, I. Generative pretraining from pixels. In International Conference on Machine Learning; PMLR: London, UK, 2020; pp. 1691–1703. [Google Scholar]
  61. Van Den Oord, A.; Vinyals, O.; Kavukcuoglu, K. Neural discrete representation learning. Adv. Neural Inf. Process. Syst. 2017, 30. [Google Scholar]
  62. Esser, P.; Rombach, R.; Ommer, B. Taming transformers for high-resolution image synthesis. In Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 12873–12883. [Google Scholar]
  63. Razavi, A.; Van den Oord, A.; Vinyals, O. Generating diverse high-fidelity images with vq-vae-2. Adv. Neural Inf. Process. Syst. 2019, 32. [Google Scholar]
  64. Yu, J.; Xu, Y.; Koh, J.Y.; Luong, T.; Baid, G.; Wang, Z.; Vasudevan, V.; Ku, A.; Yang, Y.; Ayan, B.K.; et al. Scaling autoregressive models for content-rich text-to-image generation. arXiv 2022, arXiv:2206.10789. [Google Scholar]
  65. Tschannen, M.; Eastwood, C.; Mentzer, F. Givt: Generative infinite-vocabulary transformers. In European Conference on Computer Vision 2024; Springer: Cham, Switzerland, 2024; pp. 292–309. [Google Scholar]
  66. Tang, H.; Wu, Y.; Yang, S.; Xie, E.; Chen, J.; Chen, J.; Zhang, Z.; Cai, H.; Lu, Y.; Han, S. Hart: Efficient visual generation with hybrid autoregressive transformer. arXiv 2024, arXiv:2410.10812. [Google Scholar] [CrossRef]
  67. Tschannen, M.; Pinto, A.S.; Kolesnikov, A. Jetformer: An autoregressive generative model of raw images and text. arXiv 2024, arXiv:2411.19722. [Google Scholar] [CrossRef]
  68. Dong, R.; Han, C.; Peng, Y.; Qi, Z.; Ge, Z.; Yang, J.; Zhao, L.; Sun, J.; Zhou, H.; Wei, H.; et al. Dreamllm: Synergistic multimodal comprehension and creation. arXiv 2023, arXiv:2309.11499. [Google Scholar]
  69. Ge, Y.; Zhao, S.; Zhu, J.; Ge, Y.; Yi, K.; Song, L.; Li, C.; Ding, X.; Shan, Y. Seed-x: Multimodal models with unified multi-granularity comprehension and generation. arXiv 2024, arXiv:2404.14396. [Google Scholar]
  70. He, K.; Chen, X.; Xie, S.; Li, Y.; Dollár, P.; Girshick, R. Masked autoencoders are scalable vision learners. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 16000–16009. [Google Scholar]
  71. Wei, C.; Mangalam, K.; Huang, P.Y.; Li, Y.; Fan, H.; Xu, H.; Wang, H.; Xie, C.; Yuille, A.; Feichtenhofer, C. Diffusion models as masked autoencoders. In Proceedings of the 2023 IEEE/CVF International Conference on Computer Vision, Paris, France, 2–3 October 2023; pp. 16284–16294. [Google Scholar]
  72. Li, Y.; Bornschein, J.; Chen, T. Denoising autoregressive representation learning. arXiv 2024, arXiv:2403.05196. [Google Scholar] [CrossRef]
  73. Chi, C.; Feng, S.; Xu, Z.; Cousineau, E.A.; Burchfiel, B.; Song, S. Visuomotor Policy Learning via Action Diffusion. U.S. Patent Application 18/594842, 4 September 2025. [Google Scholar]
  74. Huynh-Thu, Q.; Ghanbari, M. Scope of validity of PSNR in image/video quality assessment. Electron. Lett. 2008, 44, 800–801. [Google Scholar] [CrossRef]
  75. Wang, Z.; Bovik, A.C.; Sheikh, H.R.; Simoncelli, E.P. Image quality assessment: From error visibility to structural similarity. IEEE Trans. Image Process. 2004, 13, 600–612. [Google Scholar] [CrossRef]
  76. Xiao, J.; Fu, X.; Liu, A.; Wu, F.; Zha, Z.J. Image de-raining transformer. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 45, 12978–12995. [Google Scholar] [CrossRef]
  77. Zamir, S.W.; Arora, A.; Khan, S.; Hayat, M.; Khan, F.S.; Yang, M.H.; Shao, L. Multi-stage progressive image restoration. In Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 14821–14831. [Google Scholar]
  78. Mittal, A.; Soundararajan, R.; Bovik, A.C. Making a “completely blind” image quality analyzer. IEEE Signal Process. Lett. 2012, 20, 209–212. [Google Scholar] [CrossRef]
  79. Zhang, L.; Zhang, L.; Bovik, A.C. A feature-enriched completely blind image quality evaluator. IEEE Trans. Image Process. 2015, 24, 2579–2591. [Google Scholar] [CrossRef] [PubMed]
  80. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. Pytorch: An imperative style, high-performance deep learning library. Adv. Neural Inf. Process. Syst. 2019, 32. [Google Scholar]
  81. Loshchilov, I.; Hutter, F. Fixing weight decay regularization in adam. arXiv 2017, arXiv:1711.05101. [Google Scholar]
  82. Zhu, J.Y.; Park, T.; Isola, P.; Efros, A.A. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the 2017 IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 2223–2232. [Google Scholar]
  83. Isola, P.; Zhu, J.Y.; Zhou, T.; Efros, A.A. Image-to-image translation with conditional adversarial networks. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 1125–1134. [Google Scholar]
  84. Liu, X.; Suganuma, M.; Sun, Z.; Okatani, T. Dual residual networks leveraging the potential of paired operations for image restoration. In Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 7007–7016. [Google Scholar]
  85. Jiang, K.; Wang, Z.; Yi, P.; Chen, C.; Wang, Z.; Wang, X.; Jiang, J.; Lin, C.W. Rain-free and residue hand-in-hand: A progressive coupled network for real-time image deraining. IEEE Trans. Image Process. 2021, 30, 7404–7418. [Google Scholar] [CrossRef]
  86. Chen, L.; Chu, X.; Zhang, X.; Sun, J. Simple baselines for image restoration. In European Conference on Computer Vision 2022; Springer: Cham, Switzerland, 2022; pp. 17–33. [Google Scholar]
  87. Tu, Z.; Talebi, H.; Zhang, H.; Yang, F.; Milanfar, P.; Bovik, A.; Li, Y. Maxim: Multi-axis mlp for image processing. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 5769–5780. [Google Scholar]
  88. Zamir, S.W.; Arora, A.; Khan, S.; Hayat, M.; Khan, F.S.; Yang, M.H. Restormer: Efficient transformer for high-resolution image restoration. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 5728–5739. [Google Scholar]
  89. Chen, S.; Ye, T.; Zhang, K.; Xing, Z.; Lin, Y.; Zhu, L. Teaching tailored to talent: Adverse weather restoration via prompt pool and depth-anything constraint. In European Conference on Computer Vision 2024; Springer: Cham, Switzerland, 2024; pp. 95–115. [Google Scholar]
Figure 1. Overview of the WeatherMAR training framework. (a) Paired degraded and clean images are encoded into continuous tokens by a shared VAE tokenizer and then masked in a complementary manner. (b) The masked tokens are concatenated into a joint sequence for paired-domain modeling. (c) MAR transformers compute conditional representations for the masked positions. (d) A conditional diffusion head predicts the masked tokens, which are then decoded into the restored clean image.
Figure 1. Overview of the WeatherMAR training framework. (a) Paired degraded and clean images are encoded into continuous tokens by a shared VAE tokenizer and then masked in a complementary manner. (b) The masked tokens are concatenated into a joint sequence for paired-domain modeling. (c) MAR transformers compute conditional representations for the masked positions. (d) A conditional diffusion head predicts the masked tokens, which are then decoded into the restored clean image.
Jimaging 12 00154 g001
Figure 2. Complementary bidirectional masking for WeatherMAR training, corresponding to the training components shown in Figure 1a,b. Paired degraded and clean tokens are masked in a complementary manner: at each spatial location, one domain token is masked while the other remains visible. The resulting tokens are concatenated into a masked joint sequence for paired-domain modeling, yielding two coupled training signals: restoration from degraded to clean tokens and reverse degradation modeling from clean to degraded tokens.
Figure 2. Complementary bidirectional masking for WeatherMAR training, corresponding to the training components shown in Figure 1a,b. Paired degraded and clean tokens are masked in a complementary manner: at each spatial location, one domain token is masked while the other remains visible. The resulting tokens are concatenated into a masked joint sequence for paired-domain modeling, yielding two coupled training signals: restoration from degraded to clean tokens and reverse degradation modeling from clean to degraded tokens.
Jimaging 12 00154 g002
Figure 3. Inference procedure of WeatherMAR, illustrating the inference-time counterpart of the paired-token formulation shown in Figure 1a,b. Given a degraded image y, the model encodes it into degraded tokens Y, initializes the clean-token positions with [MASK], and progressively predicts the missing clean tokens conditioned on Y. At each iteration, a subset of clean tokens is generated in parallel by conditional diffusion and written back to update the clean-token positions.
Figure 3. Inference procedure of WeatherMAR, illustrating the inference-time counterpart of the paired-token formulation shown in Figure 1a,b. Given a degraded image y, the model encodes it into degraded tokens Y, initializes the clean-token positions with [MASK], and progressively predicts the missing clean tokens conditioned on Y. At each iteration, a subset of clean tokens is generated in parallel by conditional diffusion and written back to update the clean-token positions.
Jimaging 12 00154 g003
Figure 4. Visual comparison for image desnowing on Snow100K [8]. WeatherMAR achieves more complete snow removal across different snow severities and reconstructs sharper edges and finer textures, as highlighted in the selected regions. The red and orange boxes indicate representative local regions selected for detailed visual comparison. The zoomed-in patches shown below the main images correspond to these boxed regions, and the different box colors are used to distinguish the different selected regions.
Figure 4. Visual comparison for image desnowing on Snow100K [8]. WeatherMAR achieves more complete snow removal across different snow severities and reconstructs sharper edges and finer textures, as highlighted in the selected regions. The red and orange boxes indicate representative local regions selected for detailed visual comparison. The zoomed-in patches shown below the main images correspond to these boxed regions, and the different box colors are used to distinguish the different selected regions.
Jimaging 12 00154 g004
Figure 5. Visual comparison for joint deraining and dehazing on Outdoor-Rain [20]. WeatherMAR removes dense rain streaks and haze more thoroughly while better preserving scene structures, as highlighted in the zoomed regions. The red and orange boxes indicate representative local regions selected for detailed visual comparison. The zoomed-in patches shown below the main images correspond to these boxed regions, and the different box colors are used to distinguish the different selected regions. The red and orange boxes indicate representative local regions selected for detailed visual comparison. The zoomed-in patches shown below the main images correspond to these boxed regions, and the different box colors are used to distinguish the different selected regions.
Figure 5. Visual comparison for joint deraining and dehazing on Outdoor-Rain [20]. WeatherMAR removes dense rain streaks and haze more thoroughly while better preserving scene structures, as highlighted in the zoomed regions. The red and orange boxes indicate representative local regions selected for detailed visual comparison. The zoomed-in patches shown below the main images correspond to these boxed regions, and the different box colors are used to distinguish the different selected regions. The red and orange boxes indicate representative local regions selected for detailed visual comparison. The zoomed-in patches shown below the main images correspond to these boxed regions, and the different box colors are used to distinguish the different selected regions.
Jimaging 12 00154 g005
Figure 6. Visual comparison for raindrop removal on RainDrop [10]. Compared with prior methods, WeatherMAR suppresses adherent raindrops and restores the occluded background with fewer artifacts, as shown in the enlarged patches. The red and orange boxes indicate representative local regions selected for detailed visual comparison. The zoomed-in patches shown below the main images correspond to these boxed regions, and the different box colors are used to distinguish the different selected regions.
Figure 6. Visual comparison for raindrop removal on RainDrop [10]. Compared with prior methods, WeatherMAR suppresses adherent raindrops and restores the occluded background with fewer artifacts, as shown in the enlarged patches. The red and orange boxes indicate representative local regions selected for detailed visual comparison. The zoomed-in patches shown below the main images correspond to these boxed regions, and the different box colors are used to distinguish the different selected regions.
Jimaging 12 00154 g006
Figure 7. Qualitative results on the real-image subset Snow100K-Real [8]. Without ground truth, WeatherMAR produces cleaner snow-free images, preserves fine details, and avoids over-smoothing in challenging real-world scenes.
Figure 7. Qualitative results on the real-image subset Snow100K-Real [8]. Without ground truth, WeatherMAR produces cleaner snow-free images, preserves fine details, and avoids over-smoothing in challenging real-world scenes.
Jimaging 12 00154 g007
Figure 8. Failure cases of WeatherMAR on night-time real-snow scenes. The red boxes highlight representative failure regions, indicating the artifacts discussed in the caption, including local blocky whitening artifacts, hexagonal highlight artifacts, and residual bluish color artifacts in dark regions.
Figure 8. Failure cases of WeatherMAR on night-time real-snow scenes. The red boxes highlight representative failure regions, indicating the artifacts discussed in the caption, including local blocky whitening artifacts, hexagonal highlight artifacts, and residual bluish color artifacts in dark regions.
Jimaging 12 00154 g008
Table 1. Quantitative comparison in terms of PSNR and SSIM (higher is better) on three adverse-weather restoration tasks: image desnowing (Snow100K-S/L), deraining and dehazing (Outdoor-Rain), and raindrop removal (RainDrop). The best and second-best results are shown in bold and underlined, respectively. The upper part reports task-specific methods, while the lower part presents unified multi-weather models, including WeatherMAR. Bold indicates the best result in each metric column. Underlined indicates the second-best result in each metric column.
Table 1. Quantitative comparison in terms of PSNR and SSIM (higher is better) on three adverse-weather restoration tasks: image desnowing (Snow100K-S/L), deraining and dehazing (Outdoor-Rain), and raindrop removal (RainDrop). The best and second-best results are shown in bold and underlined, respectively. The upper part reports task-specific methods, while the lower part presents unified multi-weather models, including WeatherMAR. Bold indicates the best result in each metric column. Underlined indicates the second-best result in each metric column.
Image DesnowingDeraining & DehazingRaindrop Removal
MethodSnow100K-SSnow100K-LMethodOutdoor-RainMethodRainDrop
PSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIM
SPANet [47]29.920.826023.700.7930CycleGAN [82]17.620.6560pix2pix [83]28.020.8547
JSTASR [48]31.400.901225.320.8076pix2pix [83]19.090.7100DuRN [84]31.240.9259
RESCAN [3]31.510.903226.080.8108HRGAN [20]21.560.8550RaindropAttn [11]31.440.9263
DesnowNet [8]32.330.950027.170.8983PCNet [85]26.190.9015AttentiveGAN [10]31.590.9170
DDMSNet [9]34.340.944528.850.8772MPRNet [77]28.030.9192IDT [76]31.870.9313
NAFNet [86]34.790.949730.060.9017NAFNet [86]29.590.9027MAXIM [87]31.870.9352
Restormer [88]36.010.957930.360.9068Restormer [88]30.030.9215Restormer [88]32.180.9408
All-in-One [12]28.330.8820All-in-One [12]24.710.8980All-in-One [12]31.120.9268
TransWeather [13]32.510.934129.310.8879TransWeather [13]28.830.9000TransWeather [13]30.170.9157
Chen et al. [51]34.420.946930.220.9071Chen et al. [51]29.270.9147Chen et al. [51]31.810.9309
WGWSNet [14]34.310.946030.160.9007WGWSNet [14]29.320.9207WGWSNet [14]32.380.9378
WeatherDiff64 [15]35.830.956630.090.9041WeatherDiff64 [15]29.640.9312WeatherDiff64 [15]30.710.9312
WeatherDiff128 [15]35.020.951629.580.8941WeatherDiff128 [15]29.720.9216WeatherDiff128 [15]29.660.9225
AWRCP [16]36.920.965231.920.9341AWRCP [16]31.390.9329AWRCP [16]31.930.9314
Histoformer [21]37.410.965632.160.9261Histoformer [21]32.080.9389Histoformer [21]33.060.9441
T3-DiffWeather [89]37.550.964131.110.9180T3-DiffWeather [89]32.520.9339T3-DiffWeather [89]32.700.9414
GridFormer [52]37.460.964031.710.9231GridFormer [52]31.870.9335GridFormer [52]32.390.9362
CyclicPrompt [22]37.500.965532.160.9265CyclicPrompt [22]32.810.9371CyclicPrompt [22]32.570.9454
WeatherMAR (Ours)38.140.968432.580.9274WeatherMAR (Ours)31.910.9396WeatherMAR (Ours)33.120.9452
Table 2. No-reference image quality evaluation on Snow100K-Real using NIQE and IL-NIQE. Bold indicates the best result in the corresponding comparison. ↓ means lower is better.
Table 2. No-reference image quality evaluation on Snow100K-Real using NIQE and IL-NIQE. Bold indicates the best result in the corresponding comparison. ↓ means lower is better.
MethodNIQE ↓IL-NIQE ↓
TransWeather [13]3.16122.207
WeatherDiff64 [15]2.98522.121
WeatherDiff128 [15]2.96421.976
WeatherMAR (Ours)2.80321.617
Table 3. Component-wise ablation on Outdoor-Rain. Starting from a conditional MAR baseline ( A 0 ), we progressively add paired-domain joint sequence modeling ( A 1 ), complementary bidirectional masking with λ = 0 ( A 2 ), reverse supervision by enabling the auxiliary loss on M y with λ = 1 ( A 3 ), and progress-to-step scheduling for efficient inference ( A 4 ). Bold indicates the best result in the corresponding comparison. ↑ means higher is better.
Table 3. Component-wise ablation on Outdoor-Rain. Starting from a conditional MAR baseline ( A 0 ), we progressively add paired-domain joint sequence modeling ( A 1 ), complementary bidirectional masking with λ = 0 ( A 2 ), reverse supervision by enabling the auxiliary loss on M y with λ = 1 ( A 3 ), and progress-to-step scheduling for efficient inference ( A 4 ). Bold indicates the best result in the corresponding comparison. ↑ means higher is better.
MethodPSNR ↑SSIM ↑
A 0 : Conditional MAR baseline (mar_large)29.810.9204
A 1 : + Joint sequence modeling (Equation (3))30.080.9232
A 2 : + Complementary masking (Section 3.3)31.640.9367
A 3 : + Reverse supervision (Equation (11))31.920.9396
A 4 : + Progress-to-step schedule (Equation (20))31.910.9396
Table 4. Masking-strategy ablation on Outdoor-Rain. B 1 uses standard conditional completion by masking only clean tokens (the same setting as A 1 in Table 3). B 2 masks degraded and clean tokens independently (i.i.d.). B 3 applies complementary masking with M y = 1 M x . Bold indicates the best result in the corresponding comparison. ↑ means higher is better.
Table 4. Masking-strategy ablation on Outdoor-Rain. B 1 uses standard conditional completion by masking only clean tokens (the same setting as A 1 in Table 3). B 2 masks degraded and clean tokens independently (i.i.d.). B 3 applies complementary masking with M y = 1 M x . Bold indicates the best result in the corresponding comparison. ↑ means higher is better.
MethodPSNR ↑SSIM ↑
B 1 : Only-clean masking (standard conditional; same as A 1 )30.080.9232
B 2 : Independent masking (both domains, i.i.d.)30.560.9288
B 3 : Complementary masking ( M y = 1 M x )31.640.9367
Table 5. Efficiency analysis of ProS scheduling on Outdoor-Rain and Snow100K-L. The fixed-step baseline uses S k = 50 at every iteration, whereas ProS uses the decreasing schedule in Equation (20). Both variants use the same WeatherMAR model and differ only in the allocation of reverse diffusion steps. ↓ means higher is better. ↑ means higher is better.
Table 5. Efficiency analysis of ProS scheduling on Outdoor-Rain and Snow100K-L. The fixed-step baseline uses S k = 50 at every iteration, whereas ProS uses the decreasing schedule in Equation (20). Both variants use the same WeatherMAR model and differ only in the allocation of reverse diffusion steps. ↓ means higher is better. ↑ means higher is better.
MethodStep ScheduleTotal StepsParams (M)Mem (GB)Time (s) ↓Speed-Up ↑PSNR/SSIM ↑
Outdoor-Rain
WeatherMAR (fixed)fixed S k = 50 320047920.40.2560.0%31.92/0.9396
WeatherMAR + ProSscheduled S k : 50 5 178847920.30.224+12.5%31.91/0.9396
Snow100K-L
WeatherMAR (fixed)fixed S k = 50 320047922.50.2870.0%32.60/0.9274
WeatherMAR + ProSscheduled S k : 50 5 178847922.30.250+12.8%32.58/0.9274
Table 6. Ablation of the token prediction head on Outdoor-Rain. Both variants share the same WeatherMAR architecture and differ only in the prediction head.
Table 6. Ablation of the token prediction head on Outdoor-Rain. Both variants share the same WeatherMAR architecture and differ only in the prediction head.
VariantToken Prediction HeadPSNR/SSIM ↑
WeatherMAR-Regdirect L2 regression31.24/0.9315
WeatherMARdiffusion head31.91/0.9396
Table 7. Ablation of key hyperparameters on Outdoor-Rain. For r and λ , we report restoration accuracy under the same training and inference settings. For ( S max , S min ) , we additionally report the average per-image inference time. ↓ means higher is better. ↑ means higher is better.
Table 7. Ablation of key hyperparameters on Outdoor-Rain. For r and λ , we report restoration accuracy under the same training and inference settings. For ( S max , S min ) , we additionally report the average per-image inference time. ↓ means higher is better. ↑ means higher is better.
ParameterSettingTime (s) ↓PSNR ↑SSIM ↑
Masking ratio r0.331.220.9335
0.531.910.9396
0.731.030.9312
Loss weight λ 031.640.9367
0.531.850.9384
1.031.910.9396
Step range ( S max , S min ) ( 25 , 5 ) 0.13231.840.9387
( 50 , 5 ) 0.22431.910.9396
( 100 , 0 ) 0.26531.950.9399
Table 8. Higher-resolution feasibility study on Outdoor-Rain. WeatherMAR is additionally evaluated on 720 × 480 inputs using overlapping patch-based inference. ↓ means higher is better. ↑ means higher is better.
Table 8. Higher-resolution feasibility study on Outdoor-Rain. WeatherMAR is additionally evaluated on 720 × 480 inputs using overlapping patch-based inference. ↓ means higher is better. ↑ means higher is better.
MethodResolutionInference ModePSNR ↑SSIM ↑
WeatherMAR256 × 256standard inference31.910.9396
WeatherMAR720 × 480patch-based inference31.350.9314
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ma, J.; Lv, Q.; Tan, Z. WeatherMAR: Complementary Masking of Paired Tokens for Adverse-Weather Image Restoration. J. Imaging 2026, 12, 154. https://doi.org/10.3390/jimaging12040154

AMA Style

Ma J, Lv Q, Tan Z. WeatherMAR: Complementary Masking of Paired Tokens for Adverse-Weather Image Restoration. Journal of Imaging. 2026; 12(4):154. https://doi.org/10.3390/jimaging12040154

Chicago/Turabian Style

Ma, Junyuan, Qunbo Lv, and Zheng Tan. 2026. "WeatherMAR: Complementary Masking of Paired Tokens for Adverse-Weather Image Restoration" Journal of Imaging 12, no. 4: 154. https://doi.org/10.3390/jimaging12040154

APA Style

Ma, J., Lv, Q., & Tan, Z. (2026). WeatherMAR: Complementary Masking of Paired Tokens for Adverse-Weather Image Restoration. Journal of Imaging, 12(4), 154. https://doi.org/10.3390/jimaging12040154

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop