Introduction
Evaluating the quality or aesthetics of an image or video is an inherently subjective task. Traditionally, researchers have treated this as a regression problem: feeding an image into a neural network and training it to predict a continuous Mean Opinion Score (MOS), usually a number between 1 and 5.
However, this approach has two major flaws when applied to modern Large Multi-modality Models (LMMs). First, numerical regression is "unnatural" for LMMs; these models are pre-trained on vast amounts of text and are much better at using qualitative adjectives than performing precise numerical estimation. Second, traditional regression models often fail to generalize to "out-of-distribution" (OOD) data—they might perform well on their specific training dataset but fail miserably when shown a new type of image, such as AI-generated content.
Q-Align introduces a novel "syllabus" for teaching LMMs how to score visual quality. By training models to predict discrete text levels (like "excellent" or "poor") instead of performing numerical regression, Q-Align achieves state-of-the-art performance and significantly better generalization across diverse benchmarks.
Methodology: The Q-Align Syllabus
The core idea of Q-Align is to emulate the human subjective rating process. When humans participate in quality studies, they rarely generate a highly precise decimal number; instead, they choose from discrete levels or move a slider guided by those levels.
1. Training (Scores → Rating Levels)
The authors convert existing continuous MOS scores from datasets into five equidistant discrete levels: excellent, good, fair, poor, and bad. The LMM is then fine-tuned via supervised learning to predict these specific text tokens in response to prompts about image or video quality.
2. Inference (Rating Levels → Scores)
To extract a precise, continuous score back out of the model during inference, Q-Align does not simply take the single most likely word. Instead, it extracts the log probabilities (logits) for all five level tokens, applies a softmax function to get a probability distribution, and calculates a weighted average. This allows the model to provide "finer-grained" scores. For example, an image that the model evaluates as 80% "good" and 20% "excellent" receives a higher continuous score than one that is 100% "good".
3. Architecture
The system is built on mPLUG-Owl2 (utilizing a LLaMA-2 backbone). It employs a "Visual Abstractor" to compress image features into just 64 tokens. This compression is crucial for Video Quality Assessment (VQA), as it allows the model to "see" up to 61 frames within its context window by treating video as a sequence of images.
Key Insights and Results
The authors evaluated Q-Align across three major tasks using a wide array of benchmarks: Image Quality Assessment (IQA), Image Aesthetic Assessment (IAA), and Video Quality Assessment (VQA). They also trained OneAlign, a unified model combining all these datasets.
- Adjectives > Numbers: The most striking finding is that training on discrete text levels is roughly 10% more effective than direct numerical regression. LMMs have an innate ability to handle qualitative descriptors; forcing them to do regression actively hinders their performance.
- State-of-the-Art Generalization: Q-Align reached SOTA performance on 12 datasets. On unseen (OOD) datasets, Q-Align improved over score-based baselines by an average of 10%, with some specific cross-set improvements reaching as high as 40%.
- Extreme Data Efficiency: Q-Align is remarkably efficient. It can match the performance of existing state-of-the-art models using only 1/5th of the IQA training data or 1/10th of the IAA data.
- The Power of Unification: Unlike traditional models that often suffer when mixing different types of datasets, the unified OneAlign model showed improved generalization. Mixing IQA and VQA data helped the model understand visual degradation more robustly.
- Speed and Cost: The model converges quickly, requiring only about 9 minutes of training on a dataset of 10k images (using 4x A100 GPUs). Furthermore, 4-bit quantization reduces VRAM usage to just 5.4GB with a negligible (0.2%) loss in accuracy, making it viable for local deployment on consumer hardware.
Limitations and Future Work
While highly effective, Q-Align inherits the biases of the human annotators who provided the original dataset labels. Additionally, for video assessment, the model currently samples at 1 frame per second; while effective for general quality, this temporal resolution might miss high-frequency glitches like a single-frame flicker. Finally, the authors noted that while IQA and VQA tasks are mutually beneficial during unified training, they can sometimes slightly degrade aesthetic (IAA) performance, suggesting that evaluating "technical quality" and "artistic beauty" rely on different, sometimes conflicting, visual features.
Summary updated