Local Distortion Aware Efficient Transformer Adaptation for Image Quality Assessment

Kangmin Xu, Liang Liao, Jing Xiao, Chaofeng Chen, Haoning Wu, Qiong Yan, Weisi LinarXiv 2023 · DOI · arXiv

Introduction

Image Quality Assessment (IQA) is a fundamental task in computer vision that aims to automatically evaluate the perceived quality of images. While humans can effortlessly identify artifacts like blur or compression noise, training AI models to do so remains challenging due to the scarcity of human-labeled data.

Recent advancements in computer vision have been driven by large-scale pretrained Vision Transformers (ViTs). However, these "foundation models" are primarily optimized for high-level semantic understanding (e.g., object recognition) rather than low-level pixel distortions. Transformers often lack the spatial inductive bias inherent in Convolutional Neural Networks (CNNs), which are naturally adept at capturing local, high-frequency details. To address this, we present LoDa (Local Distortion Aware), an efficient adaptation framework that teaches giant Transformers to "see" bad pixels by injecting local distortion features from a specialist CNN.

Methodology

The LoDa framework adopts a parameter-efficient tuning strategy, keeping large pretrained backbones frozen while training a lightweight bridge between global context and local detail.

The LoDa framework architecture overview, showing the integration of frozen CNN and ViT backbones via trainable extractor and injector modules.

Dual-Backbone Architecture

The system utilizes two frozen, pretrained models: a large Vision Transformer (ViT) to capture global scene context and a CNN (ResNet-50) to extract local structural information.

Local Distortion Extraction and Injection

  1. Local Distortion Extractor: This module processes multi-scale feature maps from the CNN. Using a series of 1x1 and 3x3 convolutions followed by pooling, it generates "distortion tokens" that represent quality clues at various granularities.
  2. Local Distortion Injector: To bridge the gap between ViT patches and CNN feature maps, a cross-attention mechanism is employed. ViT tokens act as "queries" to pull relevant local information from the CNN's distortion tokens.
  3. Efficiency via Bottlenecks: To minimize computational overhead, high-dimensional ViT tokens are projected into a smaller latent space before the cross-attention step. Only the extractor, injector, and a final regression head (totaling approximately 9M parameters) are updated during training.

Experimental Setup

LoDa was evaluated across seven standard IQA benchmarks:

  • Synthetic Datasets: LIVE, TID2013, and KADID-10k, featuring artificial distortions like Gaussian blur and JPEG noise.
  • Authentic Datasets: LIVEC, KonIQ-10k, SPAQ, and FLIVE, consisting of real-world photos with complex, "in-the-wild" distortions.

Results and Discussion

LoDa achieves state-of-the-art (SOTA) performance while maintaining exceptional parameter efficiency.

Comparison of SRCC performance vs. number of finetuned parameters across various IQA models. LoDa achieves superior performance with significantly fewer trainable parameters.

Performance and Efficiency

On the KonIQ-10k dataset, LoDa achieved a Spearman Rank Correlation Coefficient (SRCC) of 0.932, outperforming significantly larger models such as LIQE (151M parameters) and TReS (152M parameters). Remarkably, LoDa requires only 9M trainable parameters, a fraction of the 24M–150M range typical of competing SOTA architectures.

Key Insights

  • Frequency Complementarity: Fourier analysis indicates that standard ViTs primarily function as low-pass filters, focusing on global shapes. In contrast, CNNs capture high-frequency signals essential for distortion detection. LoDa effectively merges these two domains.
  • Scaling for Low-Level Tasks: The study confirms that larger ViT backbones do benefit IQA tasks, provided there is a mechanism like the LoDa injector to provide local structural guidance.
  • Robust Generalization: Cross-dataset testing demonstrated that LoDa learns fundamental quality features rather than dataset-specific biases, showing superior robustness compared to existing methods.

Conclusion

The LoDa framework demonstrates that large-scale foundation models can be successfully adapted for low-level tasks like IQA through efficient, local-aware injection. By leveraging the complementary strengths of Transformers and CNNs, LoDa provides a high-performance, resource-efficient solution for automated image quality evaluation. Future work will explore adapting multi-modal models (like CLIP) to be more sensitive to fine-grained pixel distortions.

Summary updated

Abstract

Image Quality Assessment (IQA) constitutes a fundamental task within the field of computer vision, yet it remains an unresolved challenge, owing to the intricate distortion conditions, diverse image contents, and limited availability of data. Recently, the community has witnessed the emergence of numerous large-scale pretrained foundation models, which greatly benefit from dramatically increased data and parameter capacities. However, it remains an open problem whether the scaling law in high-level tasks is also applicable to IQA task which is closely related to low-level clues. In this paper, we demonstrate that with proper injection of local distortion features, a larger pretrained and fixed foundation model performs better in IQA tasks. Specifically, for the lack of local distortion structure and inductive bias of vision transformer (ViT), alongside the large-scale pretrained ViT, we use another pretrained convolution neural network (CNN), which is well known for capturing the local structure, to extract multi-scale image features. Further, we propose a local distortion extractor to obtain local distortion features from the pretrained CNN and a local distortion injector to inject the local distortion features into ViT. By only training the extractor and injector, our method can benefit from the rich knowledge in the powerful foundation models and achieve state-of-the-art performance on popular IQA datasets, indicating that IQA is not only a low-level problem but also benefits from stronger high-level features drawn from large-scale pretrained models.
BibTeX
@misc{xu2023local,
  author = {Kangmin Xu and Liang Liao and Jing Xiao and Chaofeng Chen and Haoning Wu and Qiong Yan and Weisi Lin},
  title = {{Local Distortion Aware Efficient Transformer Adaptation for Image Quality Assessment}},
  year = {2023},
  eprint = {2308.12001},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.12001},
}

Loading related content...

Figure