Recent progress in deraining and dehazing methods has dramatically enhanced image quality in bad weather. However, these methods are vulnerable to adversarial attacks, severely compromising their effectiveness. Traditional defenses like adversarial training and model distillation necessitate significant retraining, hindering their real-world application due to high computational costs. To address these limitations, we propose the Quaternion-Hadamard Transformer Network (QHTN), a novel defense strategy against white-box adversarial attacks, including the Fast Gradient Sign Method (FGSM) and Projected Gradient Descent (PGD). The QHTN leverages a transformer architecture with three key modules: preprocessing, local-global feature extraction, and reconstruction. The local-global feature extraction module utilizes innovative Hadamard and quaternion convolution blocks to analyze spatial and inter-channel relationships. This unique approach enables the QHTN to incorporate a denoising mechanism during preprocessing, effectively mitigating adversarial noise before it influences the model's input. Extensive evaluations demonstrate the QHTN's efficacy in safeguarding haze and rain removal models from adversarial attacks. These results validate the QHTN's efficiency and potential for broader adoption in image-processing defense mechanisms.
|