QualiRAG: Retrieval-Augmented Generation for Visual Quality Understanding

Linhan Cao, Wei Sun, Weixia Zhang, Xiangyang Zhu, Kaiwei Zhang, Jun Jia, Dandan Zhu, Guangtao Zhai, Xiongkuo MinarXiv 2026

TL;DR

QualiRAG is a training-free, retrieval-augmented generation framework that shifts visual quality assessment (VQA) from simple scalar scores to interpretable quality understanding. By dynamically generating and retrieving multi-granularity auxiliary knowledge (like metadata and localized descriptions), it allows general-purpose Large Multimodal Models (LMMs) to outperform heavily fine-tuned models without any task-specific training.

What Problem Does This Paper Address?

Traditional Visual Quality Assessment (VQA) focuses on predicting a single scalar score to rate an image or video. While useful, this approach lacks interpretability—it can't explain why a video looks bad or identify specific distortion attributes (e.g., compression artifacts vs. motion blur).

To fix this, the field is shifting toward interpretable quality understanding using Large Multimodal Models (LMMs). However, current methods rely on Supervised Fine-Tuning (SFT) or Reinforcement Learning (RL) on curated datasets. These training-based paradigms suffer from several major drawbacks:

  • High Annotation Costs: Creating detailed human-annotated thinking traces is expensive and hard to scale.
  • Overfitting & Bias: Models easily overfit to dataset-specific domains or distortions.
  • Reasoning Misalignment: RL-based methods often optimize only for the final score, leading to intermediate reasoning steps that contradict the final output.
Figure 1: Comparison of training-based and training-free paradigms for visual quality understanding. Unlike SFT- and RL-based LMMs that require task-specific training with human annotations or reward signals, our RAG-based LMM performs inference-time retrieval and reasoning without any additional training, providing improved flex- ibility and scalability.

Methods

The authors introduce QualiRAG, a training-free framework that treats quality understanding as an inference-time retrieval and reasoning problem. Instead of querying static text corpora like standard RAG, QualiRAG dynamically constructs a multi-source knowledge base for each input via four collaborative modules:

  1. Query Organizer: Takes a user's question and decouples it into a structured JSON request detailing the target subject, quality dimension (e.g., blur, noise), scope (spatial/temporal), and focus area.
  2. Source Augmenter: Generates four complementary knowledge databases on the fly:
  3. Metadata Database: Technical details (resolution, bitrate trends via ffprobe).
  4. Subject Localization Database: Bounding boxes for the queried subject using a prompt-driven detector (APE).
  5. Global Quality Summary: A holistic description of the asset's overall quality.
  6. Local Quality Description: Fine-grained, question-driven descriptions aggregated from multiple stochastic LMM queries.
  7. Source Selector: Embeds the question and generated knowledge using the Contriever framework, filtering out noisy or irrelevant context using a FAISS-indexed similarity threshold range search.
  8. Answer Generator: Feeds the original visual input, the question, and the retrieved question-relevant knowledge into the main LMM to produce evidence-grounded reasoning and the final answer.
Figure 2: The overall workflow of our QualiRAG. Given a visual input and a quality-related question, QualiRAG first decomposes the query into structured requests via a Query Organizer, then constructs complementary auxiliary knowledge sources through a Source Augmenter. A Source Selector retrieves question-relevant evidence from multiple knowledge databases, which is finally integrated with sampled visual inputs by the Answer Generator to produce evidence-grounded and interpretable quality reasoning.

Datasets

The framework was evaluated across two primary tasks:

  • Visual Quality Understanding: Evaluated on the dev subsets of Q-Bench (image-level quality questions) and Q-Bench-Video (video-level questions covering technical, aesthetic, and AIGC distortions).
  • Visual Quality Comparison: Evaluated using pairwise accuracy on image datasets (LIVE-C, AGIQA, PIPAL) and video datasets (KoNViD-1k, VDPVE, LIVE-HFR).

No new datasets were introduced; the focus was entirely on maximizing zero-shot performance on these established benchmarks.

Key Insights and Ideas

  • Latent Knowledge Activation: LMMs already possess deep latent knowledge about visual distortions, but they struggle to ground it directly from raw pixels. Providing structured, text-based self-generated evidence bridges this gap.
  • Backbone-Agnostic Convergence: One of the most striking findings is that QualiRAG acts as an equalizer. When applied to various open-source backbones (like LLaVA, InternVL, or Qwen), their baseline performances—which vary wildly—converge to a uniformly high standard (~61% on Q-Bench-Video). This proves the gains come from the framework's structured knowledge, not the intrinsic capabilities of a specific model.
Figure 3: Performance of LLaVA-OneVision-7B, InternVL3-9B- Instruct, InternVL3.5-8B-Instruct, Qwen2.5-VL-7B-Instruct, and Qwen3-VL-8B-Instruct on the dev subset of Q-Bench-Video, be- fore and after applying QualiRAG.
  • Local Descriptions Matter Most: Ablation studies revealed that while technical metadata and localization help, the local quality description database provides the single largest performance jump (+5.82%), proving that fine-grained, question-aligned evidence is crucial for accurate VQA.

Key Results

QualiRAG achieves state-of-the-art performance among training-free methods and beats many fine-tuned models:

  • Q-Bench (Images): Achieved 81.74% overall accuracy, outperforming all open-source general LMMs, VQA-finetuned models (like Co-Instruct and Q-Insight), and even surpassing proprietary models like GPT-5 (80.27%).
  • Q-Bench-Video (Videos): Achieved 61.66% overall accuracy, beating the previous best agentic framework, Q-Router (60.07%), and GPT-5 (57.22%).
  • Robustness: In quality comparison tasks, QualiRAG maintained highly consistent performance across out-of-domain datasets (like AI-generated content in AGIQA), whereas fine-tuned models showed noticeable performance degradation.

Limitations and Future Work

While highly effective, the paper hints at a few areas for improvement:

  • Inference Overhead: Generating local quality descriptions requires querying an auxiliary LMM multiple times ($n_l=4$ in implementation) to aggregate robust descriptions. This increases computational cost and inference latency.
  • Dependency on Expert Modules: For maximum performance, replacing the general auxiliary LMM with task-specific expert models (like a dedicated VQA model or domain-specific artifact detectors) yields better results, slightly walking back the "pure general-purpose" appeal.

Future work includes dynamically extending the auxiliary databases to include specialized AIGC distortion detectors and optimizing the pipeline for real-world, low-latency deployment.

Summary updated

BibTeX
@misc{cao2026qualirag,
  author = {Linhan Cao and Wei Sun and Weixia Zhang and Xiangyang Zhu and Kaiwei Zhang and Jun Jia and Dandan Zhu and Guangtao Zhai and Xiongkuo Min},
  title = {{QualiRAG: Retrieval-Augmented Generation for Visual Quality Understanding}},
  year = {2026},
  eprint = {2601.18195},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.18195},
}
Figure