Beyond Cosine Similarity: Magnitude-Aware CLIP for No-Reference Image Quality Assessment

Read full text
Authors: Association for Artificial Intelligence 2026, Baoliang Chen, Yuncheng Jiang, Zhicheng Liao, Sijie Mai, Zhenshan Shi, Dongxu Wu, Lingyu Zhu, Hanwei Zhu
Cited by: 0

Abstract

Recent efforts have repurposed the Contrastive Language-Image Pre-training (CLIP) model for No-Reference Image Quality Assessment (NR-IQA) by measuring the cosine similarity between the image embedding and textual prompts such as a good photo” ora bad photo.” However, this semantic similarity overlooks a critical yet underexplored cue: the magnitude of the CLIP image features, which we empirically find to exhibit a strong correlation with perceptual quality. In this work, we introduce a novel adaptive fusion framework that complements cosine similarity with a magnitude-aware quality cue. Specifically, we first extract the absolute CLIP image features and apply a Box-Cox transformation to statistically normalize the feature distribution and mitigate semantic sensitivity. The resulting scalar summary serves as a semantically-normalized auxiliary cue that complements cosine-based prompt matching. To integrate both cues effectively, we further design a confidence-guided fusion scheme that adaptively weighs each term according to its relative strength. Extensive experiments on multiple benchmark IQA datasets demonstrate that our method consistently outperforms standard CLIP-based IQA and state-of-the-art baselines, without any task-specific training. Moreover, the generalization capability of our enhancement scheme on image aesthetic assessment task further underscores the effectiveness of the proposed dual-source design. The code will be publicly available.

Fields of Study & Subjects

Image and Video Quality Assessment Image Retrieval and Classification Techniques Digital Media Forensic Detection

Publication details

Journal / source
Underline Science Inc.
Publication date
7 January 2026
Language
EN