Saved in:
Bibliographic Details
Main Authors: Wu, Jiawei, Yang, Zhifei, Wang, Zhe, Jin, Zhi
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2504.09377
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908726691102720
author Wu, Jiawei
Yang, Zhifei
Wang, Zhe
Jin, Zhi
author_facet Wu, Jiawei
Yang, Zhifei
Wang, Zhe
Jin, Zhi
contents All-in-one image restoration (AIR) aims to address diverse degradations within a unified model by leveraging informative degradation conditions to guide the restoration process. However, existing methods often rely on implicitly learned priors, which may entangle feature representations and hinder performance in complex or unseen scenarios. Histogram of Oriented Gradients (HOG) as a classical gradient representation, we observe that it has strong discriminative capability across diverse degradations, making it a powerful and interpretable prior for AIR. Based on this insight, we propose HOGformer, a Transformer-based model that integrates learnable HOG features for degradation-aware restoration. The core of HOGformer is a Dynamic HOG-aware Self-Attention (DHOGSA) mechanism, which adaptively models long-range spatial dependencies conditioned on degradation-specific cues encoded by HOG descriptors. To further adapt the heterogeneity of degradations in AIR, we propose a Dynamic Interaction Feed-Forward (DIFF) module that facilitates channel-spatial interactions, enabling robust feature transformation under diverse degradations. Besides, we propose a HOG loss to explicitly enhance structural fidelity and edge sharpness. Extensive experiments on a variety of benchmarks, including adverse weather and natural degradations, demonstrate that HOGformer achieves state-of-the-art performance and generalizes well to complex real-world scenarios.Code is available at https://github.com/Fire-friend/HOGformer.
format Preprint
id arxiv_https___arxiv_org_abs_2504_09377
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Gradient as Conditions: Rethinking HOG for All-in-one Image Restoration
Wu, Jiawei
Yang, Zhifei
Wang, Zhe
Jin, Zhi
Computer Vision and Pattern Recognition
All-in-one image restoration (AIR) aims to address diverse degradations within a unified model by leveraging informative degradation conditions to guide the restoration process. However, existing methods often rely on implicitly learned priors, which may entangle feature representations and hinder performance in complex or unseen scenarios. Histogram of Oriented Gradients (HOG) as a classical gradient representation, we observe that it has strong discriminative capability across diverse degradations, making it a powerful and interpretable prior for AIR. Based on this insight, we propose HOGformer, a Transformer-based model that integrates learnable HOG features for degradation-aware restoration. The core of HOGformer is a Dynamic HOG-aware Self-Attention (DHOGSA) mechanism, which adaptively models long-range spatial dependencies conditioned on degradation-specific cues encoded by HOG descriptors. To further adapt the heterogeneity of degradations in AIR, we propose a Dynamic Interaction Feed-Forward (DIFF) module that facilitates channel-spatial interactions, enabling robust feature transformation under diverse degradations. Besides, we propose a HOG loss to explicitly enhance structural fidelity and edge sharpness. Extensive experiments on a variety of benchmarks, including adverse weather and natural degradations, demonstrate that HOGformer achieves state-of-the-art performance and generalizes well to complex real-world scenarios.Code is available at https://github.com/Fire-friend/HOGformer.
title Gradient as Conditions: Rethinking HOG for All-in-one Image Restoration
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2504.09377