
1
LMQFormer: A Laplace-Prior-Guided Mask Query
Transformer for Lightweight Snow Removal
Junhong Lin, Nanfeng Jiang, Zhentao Zhang, Weiling Chen, Member, IEEE and Tiesong Zhao, Senior
Member, IEEE
Abstract—Snow removal aims to locate snow areas and recover
clean images without repairing traces. Unlike the regularity
and semitransparency of rain, snow with various patterns and
degradations seriously occludes the background. As a result,
the state-of-the-art snow removal methods usually retains a
large parameter size. In this paper, we propose a lightweight
but high-efficient snow removal network called Laplace Mask
Query Transformer (LMQFormer). Firstly, we present a Laplace-
VQVAE to generate a coarse mask as prior knowledge of snow.
Instead of using the mask in dataset, we aim at reducing both
the information entropy of snow and the computational cost of
recovery. Secondly, we design a Mask Query Transformer (MQ-
Former) to remove snow with the coarse mask, where we use two
parallel encoders and a hybrid decoder to learn extensive snow
features under lightweight requirements. Thirdly, we develop a
Duplicated Mask Query Attention (DMQA) that converts the
coarse mask into a specific number of queries, which constraint
the attention areas of MQFormer with reduced parameters.
Experimental results in popular datasets have demonstrated the
efficiency of our proposed model, which achieves the state-of-the-
art snow removal quality with significantly reduced parameters
and the lowest running time. Codes and models are available at
https://github.com/StephenLinn/LMQFormer.
Index Terms—Lightweight snow removal, Laplace operator,
mask query transformer, image denoising, image enhancement.
I. INTRODUCTION
SNOW seriously affects the visibility of scenes and objects.
It usually leads to poor visual qualities and severe perfor-
mance degradations in high-level computer vision tasks such
as object detection and semantic understanding. However, it
is difficult to capture unified patterns in snowy scenes due to
their different patterns and transparency. Unlike other types of
image noises [1]–[4], snow seriously obscures the background
and thus is difficult to be removed. How to recover clean
images from snowy scenes is still a challenging issue.
We divide existing snow removal methods into two types:
traditional methods and deep-learning-based methods. Tra-
ditional methods are based on artificial prior knowledge to
This work was supported in part by the National Natural Science Foundation
of China (Grant No. 62171134) and in part by Natural Science Foundation
of Fujian Province, China (Grants No. 2022J02015 and 2022J05117). (Cor-
responding author: Tiesong Zhao.)
J. Lin, N. Jiang, Z. Zhang and W. Chen are with the Fujian Key Lab
for Intelligent Processing and Wireless Transmission of Media Informa-
tion, College of Physics and Information Engineering, Fuzhou University,
Fuzhou 350108, China (E-mails: jhlin study@163.com, jnfrock@gmail.com,
211120091@fzu.edu.cn, weiling.chen@fzu.edu.cn).
T. Zhao is with the Fujian Key Lab for Intelligent Processing and Wireless
Transmission of Media Information, College of Physics and Information
Engineering, Fuzhou University, Fuzhou 350108, China and also with the Peng
Cheng Laboratory, Shenzhen 518055, China (e-mail: t.zhao@fzu.edu.cn).
(c) TKL (d) Ours (e) SSIM vs Parameters (log)
(b) DesnowNet(a) Input
(c) TKL (d) Ours (e) SSIM vs Parameters (log)
(b) DesnowNet(a) Input
Fig. 1. Our proposed method achieves the state-of-the-art snow removal
quality with the lowest computational complexity. (a) A typical real-world
snowy image. (b)-(d) the outputs of our method and its peers. (e) the average
performances under Snow100K.
model snowy layers, such as HOG and MoG model [5],
dictionary learning [6], color assumptions [7] and Hamiltonian
quaternions [8]. Deep-learning-based methods take advantages
of deep neural networks to remove undesired snow in im-
ages, such as DesnowNet [9], CGANs [10], JSTASR [11],
HDCWNet [12] and DDMSNet [13].
Despite these great efforts, there are still critical issues
to be further addressed. The existing works usually retain a
large number of parameter size for better visual qualities, but
inevitably, their computational workloads are also remarkably
increased. This fact limits their applications in real-world
scenarios. Besides, the repairing traces still remain in their
results, as shown in the red traffic signs of Fig. 1(b)(c).
Therefore, it is essential to design a lightweight but high-
efficient network for this task.
It is noted that existing rain removal methods cannot
well address the snow problem due to their apparent visual
differences. From Fig. 2(a), the rain drops and streaks are
densely distributed while the snowflakes vary in patterns. The
image backgrounds are also more sensible for rainy images.
The snowy backgrounds are seriously obscured at different
degrees even in the same scene. These differences make it
difficult to use existing rain removal methods (e.g. [14], [15])
or lightweight methods (e.g. [16], [17]) to process snowy
images. How to locate snow areas and recover clean images
are still important challenges in snow removal.
To solve the above problems, we propose a lightweight
architecture called Laplace-prior-guided Mask Query Trans-
former (LMQFormer). We observe and demonstrate that
Laplace operator can remove redundant information while
preserving high-frequency snow edge information. Thus, we
arXiv:2210.04787v4 [cs.CV] 6 Apr 2023