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

Zhicheng Liao, Dongxu Wu, Zhenshan Shi, Sijie Mai, Hanwei Zhu +3 more
11/13/2025
cs.CVcs.AI

No official code found. Best implementation: zhix000/MA-CLIP (13 stars, last commit 2025-11-20).

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" or "a 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.

View on arXivView PDF

Code Implementations(1)

zhix000/MA-CLIPCommunity64%

[AAAI 2026] Beyond Cosine Similarity: Magnitude-Aware CLIP for No-Reference Image Quality Assessment

131PythonNov 11, 202511 months ago

Similar Papers

Cite this paper

@article{liao2025beyond,
  title  = {Beyond Cosine Similarity: Magnitude-Aware CLIP for No-Reference Image Quality Assessment},
  author = {Zhicheng Liao and Dongxu Wu and Zhenshan Shi and Sijie Mai and Hanwei Zhu and Lingyu Zhu and Yuncheng Jiang and Baoliang Chen},
  year   = {2025},
  eprint = {2511.09948},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.09948v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.09948.svg)](https://codeofpaper.com/paper/2511.09948)

Discussion