Wavelet Domain Masked Image Modeling
- W-MIM is a self-supervised framework that reconstructs wavelet coefficients to capture hierarchical, frequency-aware image and video representations.
- It aligns encoder layers with specific wavelet decomposition levels to efficiently recover structural details while minimizing redundant fine texture.
- In HDR video reconstruction, wavelet-domain masking pre-trains networks for color-consistent, high-fidelity restoration at a fraction of the computational cost.
Searching arXiv for the cited papers and closely related MIM baselines. Wavelet-domain Masked Image Modeling (W-MIM) denotes a class of masked reconstruction methods in which the supervisory signal, the masking operation, or both are defined in a wavelet representation rather than directly in pixel space. In the image-representation setting of "Wavelet-Driven Masked Image Modeling: A Path to Efficient Visual Representation" (Xiang et al., 2 Mar 2025), wavelet coefficients at multiple decomposition levels are used as compact reconstruction targets for masked image modeling. In the HDR video setting of "Wavelet-Domain Masked Image Modeling for Color-Consistent HDR Video Reconstruction" (Zhang et al., 7 Feb 2026), masking is applied directly to wavelet subbands to pre-train an encoder for color-consistent reconstruction. Across both formulations, the central premise is that pixel-based MIM overemphasizes redundant fine detail, whereas wavelet decomposition supplies frequency-aware, spatially localized, and multi-level structure that can be aligned with hierarchical neural architectures.
1. Conceptual definition and scope
Masked Image Modeling (MIM) is presented as a self-supervised paradigm for learning scalable visual representations, but the wavelet-domain variants argue that images inherently contain abundant redundant information, causing pixel-based reconstruction to focus excessively on finer details such as textures and thereby prolong training times unnecessarily (Xiang et al., 2 Mar 2025). W-MIM addresses this by shifting reconstruction from raw pixels to a compact representation of features in the wavelet domain.
The key distinction from Fourier-based frequency analysis is explicit in the underlying formulation: wavelet transform not only offers frequency information but also preserves spatial characteristics and multi-level features of the image (Xiang et al., 2 Mar 2025). In the video-reconstruction formulation, this property is extended to color and detail restoration, where wavelet-domain masking is used to reconstruct brightness, color, and fine structure from low dynamic range inputs (Zhang et al., 7 Feb 2026).
Two concrete instantiations define the current scope of W-MIM. The first is WaMIM, an image pre-training framework that assigns different wavelet bands to different encoder depths and optimizes a multi-scale reconstruction loss (Xiang et al., 2 Mar 2025). The second is WMNet, an HDR video reconstruction network in which W-MIM is the Phase I self-reconstruction pre-training strategy preceding temporal modeling with T-MoE and DMM (Zhang et al., 7 Feb 2026). This suggests that W-MIM is better understood as a design pattern—wavelet-structured masking and reconstruction—than as a single fixed architecture.
2. Wavelet decomposition as the representational substrate
In WaMIM, a 2D image undergoes a one-level discrete wavelet transform (DWT) that produces one low-frequency approximation coefficient map and three high-frequency detail maps , (Xiang et al., 2 Mar 2025). In practice, DWT is implemented by separable filter banks, for example Haar, and recursively applied to the low-frequency branch. After levels, the decomposition is written as
where each bundles the three detail maps (Xiang et al., 2 Mar 2025).
In WMNet, the corresponding frame-level formulation uses a discrete 2-D Haar wavelet transform at levels for an LDR frame 0. At each level 1, the transform yields four subbands: one approximation 2 and three detail bands 3. With separable filters
4
the single-level transform is defined by
5
6
with higher levels recursively applied to the preceding 7 branch (Zhang et al., 7 Feb 2026).
A common misconception is that frequency-domain modeling necessarily discards localization. The wavelet formulations used here do not: the image paper explicitly contrasts wavelets with the commonly used Fourier transform on the grounds that wavelets preserve spatial characteristics and multi-level features, while the video paper operationalizes that claim by reconstructing masked wavelet coefficients back into an image through inverse DWT before encoding (Xiang et al., 2 Mar 2025, Zhang et al., 7 Feb 2026).
3. Multi-scale target assignment and loss design in WaMIM
WaMIM selects 8 encoder layers 9 and sets 0. The assignment rule is depth-to-frequency aligned: shallow layers reconstruct high-frequency details, while deep layers reconstruct low-frequency content. For layer 1, the target level is
2
The target generator is defined as
3
where 4 denotes spatial-channel concatenation (Xiang et al., 2 Mar 2025).
The masking operator is 5, the encoder is 6, and the layer-wise decoder is 7. If
8
and 9, the total loss is
0
An equivalent form is
1
where 2 (Xiang et al., 2 Mar 2025).
Architecturally, the framework plugs in any ViT or Swin backbone, masks patches at the input with mask ratio 3, extracts hidden features 4 from selected layers, and attaches to each chosen layer a light-weight decoder consisting of one Transformer block plus a small linear head (Xiang et al., 2 Mar 2025). The multi-scale targets are fed independently to each decoder; there is no pooling or mixing across scales. This clean separation is explicitly intended to let each decoder focus on one frequency band while fusing spatial structure with a frequency-domain target.
4. Training protocol, ablations, and reported performance of WaMIM
The reported WaMIM training setup uses ImageNet-1K at resolution 5, block-wise random masking at 6 of patches, Haar wavelet DWT with 7 decomposition levels, and selected levels 8 as targets for 9 (Xiang et al., 2 Mar 2025). The optimizer is AdamW with weight decay 0, 1, 2, batch size 3, cosine learning-rate schedule, and warmup of 4–5 epochs depending on total pre-train epochs. The base learning rate is 6 for ViT and 7 for Swin. Pre-training is reported for 8 epochs with fixed loss weights 9 and no curriculum on weights (Xiang et al., 2 Mar 2025).
The ablation results identify several operating points. The best mask ratio is 0; too low is described as under-constrained, and too high (1) as under-learned. Testing 2, 3, and 4 decomposition levels shows 5 to be best because it covers a broader range of scales and frequencies. Light-weight decoders with 6–7 dimensions and 8–9 heads suffice, matching heavier decoders’ accuracy. Uniform spacing of feature locations, exemplified by 0 in ViT-B and 1 in Swin-B, outperforms other heuristics. Emphasizing low-frequency, high-level targets moderately with 2 yields the best results, whereas reversing that ordering degrades accuracy (Xiang et al., 2 Mar 2025).
| Setting | Baseline | WaMIM |
|---|---|---|
| ImageNet-1K, ViT-B | MAE, 1600 epochs, 752 GPU hrs, 83.6 Top-1 | 400 epochs, 96 GPU hrs, 83.8 Top-1 |
| ImageNet-1K, ViT-S | MAE, 300 epochs, 96 GPU hrs, 80.9 Top-1 | 300 epochs, 45 GPU hrs, 82.0 Top-1 |
| ImageNet-1K, Swin-B | SimMIM, 800 epochs, 656 GPU hrs, 84.0 Top-1 | 400 epochs, 160 GPU hrs, 84.1 Top-1 |
For downstream transfer, COCO object detection and instance segmentation with Mask R-CNN and Swin-B report AP3=4 and AP5=6 for WaMIM, compared with 7 and 8 for SimMIM, at 9 versus 0 pre-train hours. ADE20K semantic segmentation with UperNet and ViT-B reports mIoU 1 for WaMIM versus 2 for MAE, at 3 versus 4 pre-train hours (Xiang et al., 2 Mar 2025). The paper summarizes these findings by stating that WaMIM matches or exceeds pixel-based MIM accuracy at a small fraction (5–6) of the GPU time.
5. Wavelet-domain masking and two-phase training in WMNet
In WMNet, W-MIM is not a generic representation-learning objective but the pre-training phase of an HDR video reconstruction pipeline (Zhang et al., 7 Feb 2026). The masking strategy introduces two binary masks. A random mask 7 is applied to the deepest 8, covering a proportion 9 of its coefficients. A full-zero mask 0 is applied to all high-frequency bands 1, forcing the network to reconstruct edges, textures, and chromatic variations from the remaining approximation. Formally,
2
where 3, and the masked coefficients are
4
The masked frame is then
5
Phase I trains an asymmetric encoder–decoder 6–7 to reconstruct the original LDR frame from 8 with the 9 loss
0
The encoder is specified as 1 ResBlocks of width 2, and the decoder is lightweight (Zhang et al., 7 Feb 2026). Difficulty is increased gradually through curriculum learning: 3 so the low-frequency mask ratio rises from zero to 4 over the first 5 iterations or epochs.
Phase II initializes the video encoder 6 with the pre-trained weights and adds a full-sized video decoder 7, the Temporal Mixture of Experts (T-MoE), and the Dynamic Memory Module (DMM). For an input clip 8, the network computes 9, conditions the features temporally, and reconstructs HDR output as
00
The reconstruction loss is
01
with 02, and no extra regularizers beyond weight decay (Zhang et al., 7 Feb 2026).
6. Architectural integration, empirical effects, and interpretive implications
WMNet inserts W-MIM before any 2-D convolutional layer: each input frame is wavelet-decomposed, masked, inverse-transformed to produce 03, and then sent into a shared encoder defined as 04 with hidden dimension 05 (Zhang et al., 7 Feb 2026). The decoder uses upsampling by PixelShuffle and convolution layers to reconstruct spatial resolution. T-MoE splits the encoder’s 06 ResBlocks into 07 groups, applies a small expert network 08 over a temporal window of three adjacent frames, and fuses group outputs as
09
DMM maintains a per-scene queue 10 of up to 11 memory features, computes cross-attention between current features and scene memory, and updates memory through convolutional refinement (Zhang et al., 7 Feb 2026).
The ablation on HDRTV4K-Scene isolates the contribution of W-MIM. The baseline without W-MIM reports PSNR 12 dB, SSIM 13, and 14. Adding W-MIM only yields PSNR 15 dB, SSIM 16, and 17. A low-frequency-only variant reports PSNR 18 and 19 dB, while a high-frequency-only variant reports 20, described as best color. A spatial-domain MIM with the same overall mask rate yields PSNR 21 and 22. With T-MoE and DMM added, PSNR reaches 23 dB and 24 drops to 25, with state-of-the-art across seven metrics: PSNR, SSIM, SR-SIM, 26, HDR-VDP3, LPIPS, and 27 (Zhang et al., 7 Feb 2026).
| Configuration | Reported outcome | Interpretation |
|---|---|---|
| No W-MIM | PSNR 35.15, SSIM 0.9612, 28 | Reference point |
| + W-MIM only | PSNR 36.00, SSIM 0.9627, 29 | Better fidelity and color |
| + W-MIM + T-MoE + DMM | PSNR 36.23, 30 | Best full-system result |
Taken together, the image and video formulations support a unified interpretation. WaMIM uses multi-scale wavelet coefficients as compact, frequency-aware reconstruction targets and aligns encoder depth with wavelet scale (Xiang et al., 2 Mar 2025). WMNet instead uses wavelet-domain masking to pre-train color and detail restoration before temporal reconstruction (Zhang et al., 7 Feb 2026). A plausible implication is that W-MIM is most effective when the decomposition hierarchy is explicitly coupled to the architecture or task structure rather than treated as a purely alternative signal representation.