Manuscript Offprint
arXiv:2611.04811NightIQA: A Comprehensive Dataset and Benchmark for MLLM-Based Nighttime Image Quality Assessment
Abstract
Nighttime images are inherently susceptible to complex, compound degradations, making accurate quality assessment exceptionally challenging. Score-based IQA methods condense quality into a single number, lacking the multi-dimensional, language-grounded reasoning required for nighttime evaluation. Multimodal Large Language Models (MLLMs) offer a more comprehensive alternative, yet remain constrained by a critical data gap: existing real-world IQA datasets are overwhelmingly daytime-centric and often built from outdated captures, while synthetic alternatives lack nighttime-specific degradation modeling, yielding artifacts far removed from authentic nighttime conditions. To bridge this gap, we present NightIQA, a dataset and benchmark suite purpose-built for MLLM-based nighttime IQA. It comprises three core components: NightIQA-Real, a real-world dataset of 1,769 high-resolution images that we captured ourselves with modern equipment, encompassing six canonical distortion types and structured multi-dimensional annotations; NightIQA-Bench, a benchmark of 1,078 visually grounded multiple-choice questions tailored to MLLM-based nighttime IQA, organized around a four-level evaluation hierarchy spanning Perception, Technical Assessment, Localization, and Reasoning; and NightIQA-Syn, an inherently scalable, scene-aware synthesis pipeline that jointly models global-level and instance-level degradations, with an initial release of 80k high-fidelity images alongside the full generation code. Fine-tuned on NightIQA with Supervised Fine-Tuning (SFT) and Group Relative Policy Optimization (GRPO), Qwen3-VL-8B outperforms open-source IQA methods and achieves higher overall accuracy than leading closed-source models, highlighting the value of domain-specific data and structured supervision.

Figure 1. NightIQA-Bench accuracy of six models (L1–L4 and average). Trained on NightIQA, our 8B model (red) leads on overall and L2 accuracy, ahead of larger VLMs and IQA baselines, indicating that domain-specific data, not model scale, is the bottleneck for nighttime IQA.
1. Introduction
Nighttime images are prone to complex, compound degradations that pose unique challenges for Image Quality Assessment (IQA) [43, 50]. In such conditions, multiple artifacts—from sensor noise and exposure failures to various forms of motion and optical blur—tend to co-occur and interact within a single capture, producing degradation patterns far more intricate than those typical of daytime photography. The compound nature of these distortions renders existing IQA paradigms particularly inadequate.
Score-based IQA methods—from classical metrics like SSIM [37] and BRISQUE [23] to recent deep no-reference
Equal contribution. Project leaders. Corresponding author.
Accepted to WACV 2027. Author's accepted manuscript. © 2027 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
models [4, 18, 32, 34, 52]—condense quality into a single number, which alone cannot distinguish co-occurring distortion types, pinpoint where degradations occur, or explain their physical causes. Multimodal Large Language Models (MLLMs) [11, 22, 25, 35] offer a more comprehensive alternative through language-grounded reasoning, and recent works [38–40, 47, 48] have confirmed their promise for general-purpose quality understanding. However, their effectiveness hinges on domain-specific data—a resource that remains critically absent for nighttime imagery. Mainstream IQA datasets [13, 16, 21] are overwhelmingly daytime-centric; the few nighttime-oriented resources [43] provide only coarse Mean Opinion Scores (MOS) without structured annotations; existing language-annotated datasets [39, 41] do not systematically cover nighttime distortions; and current synthetic pipelines apply degradations as uniform post-processing without regard to scene content. We term this joint absence of structured real-world annotations, dedicated evaluation protocols, and scene-aware synthesis for nighttime imagery the Nighttime Distortion Gap.
To bridge this gap, we introduce NightIQA, a comprehensive dataset and benchmark suite purpose-built for MLLM-based nighttime IQA. Our contributions are threefold:
-
NightIQA-Real. A real-world nighttime dataset of 1,769 high-resolution images that we captured ourselves with modern photographic equipment, spanning three scene categories (Nature, Indoor, and Urban). Six representative distortion types are deliberately induced at three severity levels during shooting, and each image carries structured, multi-dimensional annotations covering distortion type, severity, spatial scope, affected region, and perceptual impact—going well beyond single-score labeling.
-
NightIQA-Bench. A dedicated evaluation benchmark tailored to MLLM-based nighttime IQA, built around a four-level evaluation hierarchy: (1) Perception—scene parsing at night; (2) Technical Assessment—distortion classification and severity grading; (3) Localization—spatial reasoning about degraded regions; and (4) Reasoning—causal analysis of degradation mechanisms. These four levels probe complementary cognitive dimensions, from scene recognition to causal quality understanding.
-
NightIQA-Syn. A scene-aware synthesis pipeline that takes high-quality, distortion-free images sourced from Unsplash[33] and applies controlled degradations at both global (e.g., sensor noise, underexposure) and instance (e.g., localized motion blur, focus blur) levels, producing spatially coherent artifacts consistent with scene geometry. The pipeline is inherently scalable; we release an initial corpus of 80k high-fidelity images with automatically derived structured annotations alongside the full generation code.
To validate NightIQA, we fine-tune Qwen3-VL-8B [2] on it via a two-stage pipeline of Supervised Fine-Tuning (SFT) and Group Relative Policy Optimization (GRPO) [30]. The resulting model substantially outperforms existing open-source IQA methods, matches or exceeds leading closed-source models, and attains the best overall accuracy among all evaluated systems—with a decisive lead on Technical Assessment (L2), precisely the axis where general VLMs falter—indicating that domain-specific data and structured supervision are critical for nighttime IQA.
2.1. Image Quality Assessment
IQA methods have evolved along two successive lines.
Score-based approaches range from full-reference metrics such as SSIM [37] and LPIPS [51] to no-reference estimators like BRISQUE [23] and NIQE [24]. Deep learning further advanced this line through CNN-based score regression [4, 32], multi-scale Transformer architectures [9, 18], and vision-language cross-modal scoring [34, 52]. While progressively more accurate, all score-based methods inherently condense quality into a single scalar, precluding structured quality understanding.
MLLM-based approaches reframe IQA as a language generation task, enabling richer output beyond numerical scores. Q-Align [40] maps images to text-defined quality levels via discrete rating anchors. DeQA-Score [46] models score distributions to capture rating uncertainty. DepictQA [47, 48] produces hierarchical descriptions covering severity, causation, and spatial extent. Most recently, Q-Insight [19] and VisualQuality-R1 [42] apply Group Relative Policy Optimization (GRPO) [30] to move beyond the imitation ceiling of supervised fine-tuning, yielding improved reasoning fidelity for quality scoring and distortion perception. Despite this progress, existing MLLM-based IQA methods are developed and evaluated almost exclusively on daytime-centric data; their behavior under compound nighttime degradations remains largely unexamined.
2.2. IQA Datasets and Benchmarks
Real-world datasets. In-the-wild datasets such as KonIQ-10k [16] and SPAQ [13] collect authentically degraded images from consumer devices and annotate them with scalar MOS labels, offering high ecological validity but limited annotation expressiveness. Language-annotated resources have progressively enriched annotation granularity: Q-Instruct [39] provides 200K instruction-response pairs for quality-aware tuning; Q-Bench [38] and Q-Bench+ [53] establish multi-dimensional evaluation covering single-

Figure 2. NightIQA-Real annotation and NightIQA-Bench generation in three left-to-right stages. Data Collection (left): 1,769 real nighttime images across three scene categories and six distortion types. Pre-labeling & Verification (middle): four frontier MLLMs pre-label each image along four content-to-impact dimensions, kept by majority agreement and corrected by experts. Final NightIQA-Bench (right): verified labels become a four-level MCQ hierarchy, filtered by an MLLM-as-a-judge with domain-expert validation.
image and paired-comparison settings; Co-Instruct [41] adds comparative quality descriptions; and Q-Ground [10] integrates spatial grounding via distortion segmentation. However, these datasets are predominantly collected from daytime scenes, and neither their acquisition strategies nor their annotation schemes target the distortions characteristic of nighttime photography. Even nighttime-specific datasets such as NNID [43] provide only scalar MOS labels collected with outdated devices, lacking both structured language annotations and modern image fidelity. No existing benchmark systematically evaluates MLLM-based quality understanding under nighttime conditions.
Synthetic datasets. Controlled-distortion datasets such as TID2013 [28] and KADID-10k [21] apply predetermined degradations to pristine images, enabling precise control over distortion type and severity. This paradigm has been widely adopted for scalable training data generation. However, existing synthetic pipelines apply degradations as uniform post-processing transforms that ignore scene content, producing artifacts that diverge substantially from real nighttime captures where degradations are shaped by sensor characteristics, scene geometry, and spatially varying illumination.
These observations point to a consistent gap: the community lacks dedicated nighttime data collection, structured annotations, and evaluation protocols on the real-data side,
and scene-aware synthesis on the synthetic-data side—the very deficiencies that NightIQA is designed to address.
3. The NightIQA Dataset
NightIQA has three coupled components: NightIQA-Real, real nighttime images with multi-dimensional structured annotations; NightIQA-Bench, a benchmark organizing these annotations by cognitive complexity; and NightIQA-Syn, a scalable scene-aware synthetic corpus for training.
3.1. NightIQA-Real Dataset
3.1.1. Data Collection.
Existing IQA datasets are not merely lacking in nighttime content—they also fail to provide controlled coverage of the distortion types that define nighttime photography. To address both deficiencies, we build NightIQA-Real through controlled real-world capture: 1,769 high-resolution nighttime images are shot on location using modern photographic equipment, spanning three scene categories: Nature, Indoor, and Urban. Crucially, rather than passively collecting images of varying quality, we deliberately induce six representative distortion types during capture—Noise, Underexposure, Overexposure, Motion Blur, Focus Blur, and Camera Shake—each at three severity levels (Slight, Moderate, Severe). This controlled acquisition strategy ensures systematic coverage of nighttime degradations while preserving the authenticity of real-world capture conditions. Because the scenes are shot on location, they also retain the complex illumination intrinsic to night photography—specular reflections, and mixed multi-source lighting (e.g., neon, sodium-vapor, and LED sources at differing color temperatures)—conditions that uniform synthetic post-processing cannot faithfully reproduce. To ensure privacy, all images were strictly screened to exclude clear faces and sensitive details (Supp. Sec. G).
3.1.2. Annotation Pipeline.
We label each image along four dimensions that move from scene content to perceptual impact: (i) Semantic Description, the intended subject and a natural-language account of scene content, layout, and lighting; (ii) Global Quality Assessment, the primary distortion plus severity ratings for all six canonical types; (iii) Local Distortion Analysis, each active distortion's spatial scope (Global or Local) and affected regions; and (iv) Holistic Quality Narrative, content-impact statements on how active distortions affect perceptual quality and scene understanding. The full annotation schema and field definitions are given in Supp. Sec. A.
We annotate in two phases. In Phase 1 (Multi-Model Ensemble Pre-Labeling), four frontier MLLMs from different providers (GPT-5 [31], Gemini 2.5 Pro [12], Doubao-Seed-1.6-Vision [7], and GLM-4.5V [14]) annotate each image independently; we keep a label only when at least three of them agree, which provides consistent initial labels for human review. In Phase 2 (Human Verification & Refinement), professional annotators review every image and correct misidentified distortions, severity ratings, and ungrounded descriptions. This keeps quality close to fully manual annotation at much lower cost; we detail the platform, workflow, and audit protocol in Supp. Sec. A.
3.1.3. Dataset Statistics.
Figure 3 and Table 1 summarize NightIQA-Real. Scenes are balanced across Nature, Urban, and Indoor (Figure 3a). Primary distortions are mostly exposure problems: Underexposure and Overexposure together exceed 60% of labels, matching the central difficulty of nighttime capture, while noise and the blurs form a long tail. A small N/A group has no dominant distortion and provides near-pristine references (Table 1). Co-occurrence is mostly compound: most images carry two or more distortions at once (Figure 3b), which is why we annotate along several dimensions rather than a single distortion label.
3.2. NightIQA-Bench: Evaluation Benchmark
We turn NightIQA-Real's structured, multi-dimensional annotations into targeted evaluation questions to build NightIQA-Bench, a visually grounded multiple-choice

(a)

(b)
Figure 3. NightIQA-Real statistics. (a) Scene composition: Nature (36.46%), Urban (36.18%), Indoor (27.36%). (b) Co-occurring distortion types per image: 59.58% exhibit 2–3 simultaneous distortions.
Table 1. Distribution of primary distortion types in NightIQA-Real. N/A denotes images with no visually dominant distortion.
| Primary Distortion | Count | Ratio (%) |
| Underexposure | 767 | 43.36 |
| Overexposure | 321 | 18.15 |
| Noise | 180 | 10.18 |
| Camera Shake | 169 | 9.55 |
| Focus Blur | 152 | 8.59 |
| N/A | 105 | 5.94 |
| Motion Blur | 75 | 4.23 |
question-answering benchmark that tests MLMM capabilities through a four-level evaluation hierarchy (Figure 2).
3.2.1. Four-Level Evaluation Hierarchy.
The four levels span complementary cognitive dimensions, mirroring how a human assessor inspects an image, and as Section 5.2 shows they are not equally difficult: Technical Assessment (L2) is empirically the hardest axis for nearly all models. Level 1 (Perception) recognizes the subject and scene content under nighttime conditions and complex artificial illumination. Level 2 (Technical Assessment) identifies the primary distortion and grades its severity. Level 3 (Localization) locates where a distortion is most evident and ties it to specific image regions. Level 4 (Reasoning) explains why details are degraded, attributing the primary and secondary factors and their interactions. Representative examples across the four levels are shown in Figure 4. All questions follow a standardized multiple-choice format and are accompanied by a visually grounded rationale derived from observable image evidence. The final validated benchmark comprises 1,078 questions, distributed across the four levels as Level 1: 99, Level 2: 344, Level 3: 344, and Level 4: 291. Extended per-level examples and the full filtering pipeline are provided in Supp. Sec. C.

Figure 4. Representative NightIQA-Bench questions across four cognitive levels: L1 (scene recognition), L2 (distortion identification and severity), L3 (spatial reasoning), and L4 (causal degradation analysis).
3.2.2. Question Quality Control.
Benchmark reliability demands that every question is unambiguous, visually answerable, and discriminative. We enforce this through a two-stage filter: an MLLM-as-a-judge module first screens candidates for logical errors, weak distractors, and insufficient discriminability; domain experts then manually verify question clarity and visual grounding. Only questions passing both stages are retained.
The training and evaluation splits share no identical or even visually similar scenes. We embed all 1,769 images with DINOv2 [26] and use feature similarity to assign near-duplicate scenes to the same side of the partition, followed by a manual review that removes any residual visual overlap. This yields a 953-image GRPO training corpus and an 816-image held-out evaluation set with no scene overlap, from which the 1,078 benchmark questions are drawn (details in Supp. Sec. B).
3.3. NightIQA-Syn: Scene-Aware Synthetic Data
NightIQA-Real provides high-quality annotations but is limited in scale: real-world collection is costly, scene diversity is bounded, and certain distortion-severity combinations are hard to induce intentionally. NightIQA-Syn complements it with a scene-aware pipeline that generates degraded nighttime images with automatically derived structured labels for large-scale MLLM training. Starting from distortion-free Unsplash [33] sources (clean exposure, sharp focus, no visible artifacts), it applies
degradations organized into two categories by their spatial extent. Global-level distortions come from sensor or camera behavior and affect the whole image uniformly, whereas instance-level distortions are tied to specific scene elements and follow scene geometry. Each distortion is produced by a dedicated operator (Figure 5).
3.3.1. Global-Level Degradation.
We model four types, partly via Albumentations [5] (Figure 5, left): Noise (chromatic and Gaussian sensor noise typical of nighttime capture); Underexposure (intensity attenuation with added noise); Global Overexposure (luminance boosting with highlight bloom); and Camera Shake (directional motion blur with randomized extent and orientation). Exact operators, sampling ranges, and per-severity parameters are detailed in Supp. Sec. D.1.
3.3.2. Instance-Level Degradation.
Some nighttime distortions are inherently localized: motion blur affects only moving objects, focus blur varies with depth, and overexposure blooms around point light sources. Applying them uniformly would misrepresent how they appear in real captures. Our instance-level pipeline (Figure 5, right) proceeds in three stages. (1) Target identification: a vision-language model checks each image for elements suitable to a given distortion (e.g., movable objects for motion blur, likely-misfocused objects for focus blur, bright point sources for local overexposure) and names the candidate targets it finds; only images with

Figure 5. The NightIQA-Syn degradation pipeline. Left: global-level distortions are applied uniformly via dedicated operators. Right: instance-level distortions follow a three-stage process (target identification, spatial localization, and spatially-coherent rendering) to produce spatially coherent artifacts.
valid targets enter the corresponding branch. (2) Spatial localization: Rex-Omni [17] grounds these candidate targets via open-vocabulary localization and SAM3 [8] extracts pixel-accurate masks, with ZoeDepth [3] supplying monocular depth for depth-dependent effects such as focus blur. (3) Spatially-coherent rendering: dedicated operators synthesize spatially varying degradations. Local Overexposure adds atmospheric bloom and glare halos around bright sources, Motion Blur accumulates warped samples along randomized trajectories in linear color space, and Focus Blur applies depth-aware, spatially varying blur radii for perceptually plausible bokeh. Full algorithms and parameter ranges are provided in Supp. Sec. D.2.
3.3.3. SFT Data Construction.
We release an initial 80,000-image corpus with full generation code. Each image carries automatically generated structured annotations in two formats: Basic QA, three single-turn pairs probing distortion type, severity, and spatial scope; and Chain-of-Thought (CoT), a long-form reasoning sample that describes image content, identifies the distortion, and characterizes its spatial distribution. We sample 6,769 images for SFT, balancing distortion-type and severity coverage (Supp. Sec. D.3), stored as conversation-style records compatible with standard MLLM fine-tuning
frameworks.
4. Baseline Construction
We build a baseline on Qwen3-VL-8B [2] trained on NightIQA in two stages: SFT on the synthetic NightIQA-Syn data, followed by GRPO on the real NightIQA-Real annotations. We keep the backbone architecture unchanged and intend the pipeline as a reproducible reference rather than a new model.
4.1. Stage 1: Supervised Fine-Tuning (SFT)
We first perform SFT on the structured instruction data from NightIQA-Syn, enabling the model to learn nighttime distortion types, severity levels, and spatial scopes from scalable synthetic supervision. We use the standard masked next-token prediction loss:
where is the target response, masks non-response tokens, and denotes the model policy. The SFT data construction, training objective, and full hyperparameters are detailed in Supp. Sec. E.
Table 2. Performance comparison on NightIQA-Bench (MCQ accuracy, %). L1–L4: Perception, Technical Assessment, Localization, and Reasoning. Best in bold, second best underlined.
| Type | Model | L1: Percep. | L2: Tech. | L3: Local. | L4: Reason. | Avg. |
|---|---|---|---|---|---|---|
| Sampled random guess | 25.89 | 25.09 | 25.19 | 24.88 | 25.26 | |
| Closed-Source | GPT-4o [25] | 81.82 | 71.22 | 71.51 | 75.95 | 73.56 |
| GPT-5 Mini [31] | 83.84 | 66.57 | 78.20 | 75.26 | 74.21 | |
| Gemini-2.5-Flash [12] | 71.72 | 48.26 | 61.92 | 61.86 | 58.44 | |
| Gemini-3.1-Flash-Lite [15] | 89.90 | 73.26 | 81.10 | 79.38 | 78.94 | |
| Doubao-Seed-2.0-Mini [6] | 86.87 | 62.50 | 75.29 | 70.79 | 71.06 | |
| Claude-Haiku-4.5 [1] | 72.73 | 64.24 | 68.90 | 74.23 | 69.20 | |
| Open-Source | MiMo-V2-Omni [44] | 83.84 | 69.77 | 73.84 | 73.88 | 73.47 |
| MiMo-V2.5 [45] | 77.78 | 68.02 | 75.29 | 74.57 | 73.01 | |
| GLM-4.5V [14] | 84.85 | 61.63 | 76.16 | 69.76 | 70.59 | |
| GLM-4.6V [49] | 82.83 | 63.95 | 74.71 | 68.04 | 70.22 | |
| Qwen3-VL-30B [2] | 82.83 | 59.59 | 70.93 | 67.70 | 67.53 | |
| Qwen3-VL-235B [2] | 86.87 | 65.41 | 80.52 | 77.66 | 75.51 | |
| Qwen3.5-27B [29] | 86.87 | 69.77 | 81.69 | 74.91 | 76.53 | |
| Qwen3.5-35B-A3B [29] | 88.89 | 69.19 | 82.85 | 80.76 | 78.48 | |
| Qwen3.5-122B-A10B [29] | 83.84 | 66.86 | 79.94 | 75.26 | 74.86 | |
| Qwen3.5-397B [29] | 86.87 | 74.42 | 82.27 | 82.47 | 80.24 | |
| InternVL3.5-8B [36] | 70.71 | 52.33 | 57.85 | 63.57 | 58.81 | |
| InternVL3.5-38B [36] | 84.85 | 61.92 | 70.35 | 65.98 | 67.81 | |
| IQA | DepictQA [48] | 57.60 | 42.70 | 41.60 | 62.50 | 49.10 |
| Q-Instruct [39] | 46.46 | 45.93 | 53.78 | 56.70 | 51.39 | |
| VisualQuality-R1 [42] | 66.70 | 55.20 | 63.70 | 59.50 | 61.30 | |
| Q-Insight [19] | 65.70 | 51.20 | 59.60 | 62.50 | 59.70 | |
| Ours | SFT + GRPO (8B) | 87.88 | 78.20 | 81.69 | 80.07 | 80.71 |
4.2. Stage 2: GRPO-Based Alignment
We then apply GRPO [30] using NightIQA-Real to align the model with human-annotated reasoning traces. For each image–question pair, the model samples multiple candidate responses, which are scored by a task-specific composite reward. The complete GRPO objective, advantage estimation, training configuration, and system prompt are deferred to Supp. Sec. F.
Composite Reward Function. The reward encourages both correct answers and faithful reasoning. We use a structured CoT format and define as a weighted sum of answer correctness, reasoning fidelity, and format compliance:
where , , and . Here, checks answer correctness, measures reasoning similarity to the human annotations using BLEU-4 [27] and ROUGE-L [20], and enforces the required output format.
5. Benchmark Evaluation
5.1. Evaluation Setup
We benchmark 22 zero-shot baselines across three families: closed-source frontier models (GPT-4o [25], GPT-5 Mini [31], Gemini [12, 15], Doubao [6], Claude [1]), open-source VLMs (MiMo [44, 45], GLM-4.5V/4.6V [14, 49], Qwen3-VL [2], Qwen3.5 [29], InternVL3.5 [36]), and domain-specific IQA models (DepictQA [48], Q-Instruct [39], VisualQuality-R1 [42], Q-Insight [19]); see Table 2 for exact variants. We also report final SFT+GRPO in Table 2 and analyze GRPO-only in the ablation. We report MCQ accuracy on L1–L4 and overall accuracy over all 1,078 held-out questions from the 816-image scene-disjoint evaluation set.
5.2. Results and Analysis
Across all evaluated models, NightIQA-Bench surfaces four consistent patterns (Table 2, Figure 1).
Cognitive Stratification Validates Benchmark Design.
Accuracy is far from uniform: most general VLMs peak on Perception (L1) and bottom out on Technical Assessment (L2). Even the top Perception scorer, Gemini-3.1-Flash-Lite [15], slides from 89.90% (L1) to 73.26% (L2). General VLMs parse nighttime scenes but lack the expertise to classify their distortions.
Domain-Specific IQA Models Exhibit a Severe Gap. Dedicated IQA methods cluster at the bottom: DepictQA [48] (49.10%), Q-Instruct [39] (51.39%), Q-Insight [19] (59.70%), and VisualQuality-R1 [42] (61.30%) trail nearly all general VLMs and falter on quality-centric axes such as Technical Assessment (L2) and Localization (L3). Their daylight-centric training with generic synthetic degradations (e.g., Gaussian blur, JPEG) leaves them ill-equipped for nighttime artifacts such as color noise and uneven exposure.
Scaling Alone Cannot Close the Nighttime Gap. Parameter scaling yields inconsistent, saturating returns: within Qwen3.5 accuracy is non-monotonic in size, and the largest Qwen3.5-397B [29] (80.24%) is still edged out by our domain-aligned 8B model, with its shortfall sharpest on L2 (74.42%). These results suggest that scaling alone is insufficient, and domain-specific degradation knowledge is a critical missing factor.
NightIQA Brings an 8B Model to Frontier-Level Accuracy. Our SFT+GRPO model attains the best overall average (80.71%), surpassing the ~50× larger Qwen3.5-397B (80.24%) and the strongest closed-source model, Gemini-3.1-Flash-Lite (78.94%), with a clear lead on Technical Assessment (L2, 78.20%) where general VLMs drop sharply. Larger general VLMs keep narrow leads on single axes (Gemini-3.1-Flash-Lite on L1, Qwen3.5-35B-A3B on L3, Qwen3.5-397B on L4), but none matches our overall accuracy and L2 lead, supporting our data-centric motivation.
5.3. Ablation Study
We ablate each training stage and data source from the same Qwen3-VL-8B base model (Table 3).
Table 3. Ablation on the training pipeline. SFT uses NightIQA-Syn; GRPO uses NightIQA-Real. Δ: improvement over the preceding row.
| Configuration | L1 | L2 | L3 | L4 | Avg. |
|---|---|---|---|---|---|
| Qwen3-VL-8B (base) | 71.72 | 59.30 | 64.83 | 65.29 | 63.82 |
| + GRPO (Real) | 82.83 | 75.00 | 79.65 | 74.91 | 77.18 |
| Δ | +11.1 | +15.7 | +14.8 | +9.6 | +13.4 |
| + SFT (Syn) + GRPO (Real) | 87.88 | 78.20 | 81.69 | 80.07 | 80.71 |
| Δ | +5.1 | +3.2 | +2.0 | +5.2 | +3.5 |
Effect of GRPO (NightIQA-Real). GRPO alone adds 13.4pp to the average (63.82% to 77.18%), with the largest gains on L2 (+15.7) and L3 (+14.8): NightIQA-
Table 4. Per-epoch accuracy (%) for GRPO-only (from base) and SFT+GRPO. Best per column in bold: SFT+GRPO leads on every level. We adopt it at epoch 4 for its best average and L4 (Reasoning); GRPO-only peaks at epoch 5.
| Method | Epoch | L1 | L2 | L3 | L4 | Avg. |
|---|---|---|---|---|---|---|
| GRPO-only | 1 | 79.80 | 64.53 | 75.00 | 71.13 | 71.06 |
| 2 | 78.79 | 70.93 | 75.58 | 76.29 | 74.58 | |
| 3 | 85.86 | 70.06 | 77.91 | 76.29 | 75.70 | |
| 4 | 82.83 | 70.06 | 77.91 | 77.32 | 75.70 | |
| 5 | 82.83 | 75.00 | 79.65 | 74.91 | 77.18 | |
| SFT+GRPO | 1 | 80.81 | 78.20 | 78.49 | 78.35 | 78.57 |
| 2 | 80.81 | 76.74 | 80.81 | 79.04 | 79.04 | |
| 3 | 88.89 | 75.00 | 82.27 | 79.38 | 79.78 | |
| 4 | 87.88 | 78.20 | 81.69 | 80.07 | 80.71 | |
| 5 | 88.89 | 76.74 | 82.27 | 79.73 | 80.43 |
Real’s reasoning trajectories are the dominant driver in our ablation, teaching distortion recognition and spatial reasoning at night.
Effect of SFT (NightIQA-Syn). Prepending SFT lifts the average a further 3.5pp (77.18% to 80.71%), concentrated on L4 (+5.2) and L1 (+5.1). These gains stack on top of GRPO’s: NightIQA-Syn’s large-scale distortion vocabulary adds supervision beyond NightIQA-Real’s reasoning traces.
Training dynamics across epochs. Both regimes generally improve before saturating or slightly regressing (Table 4). SFT+GRPO climbs from 78.57% (epoch 1) to a peak 80.71% at epoch 4, which is also its best L4 (80.07%), then dips to 80.43% at epoch 5; GRPO-only peaks later (77.18%, epoch 5). We therefore adopt SFT+GRPO at epoch 4 for its best average and best L4 (Reasoning), the highest-order and most challenging axis.
6. Conclusion
We present NightIQA: 1,769 originally captured, multi-dimensionally annotated nighttime images; a four-level benchmark spanning perception to causal reasoning; and a scene-aware synthesis pipeline releasing 80k images with code. Across 22 zero-shot baselines, we expose a severe nighttime domain gap that scaling alone does not close. Fine-tuning Qwen3-VL-8B with SFT and GRPO yields a 17-point gain and the best overall accuracy of any evaluated system, including models ~50× larger, supporting the importance of domain-specific data and structured supervision. A natural next step is to grow NightIQA beyond the nighttime regime, extending the dataset to daytime and broader real-world scenarios and enriching it with additional scenes, distortion types, and annotation dimensions, so that it can serve as a foundation for general MLLM-based image quality assessment.
References
[1] Anthropic. Introducing Claude Haiku 4.5. https://www.anthropic.com/news/claud-e-haiku-4-5, 2025.
[2] Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, et al. Qwen3-VL technical report. arXiv preprint arXiv:2511.21631, 2025.
[3] Shariq Farooq Bhat, Reiner Birkl, Diana Wofk, Peter Wonka, and Matthias Müller. ZoeDepth: Zero-shot transfer by combining relative and metric depth. arXiv preprint arXiv:2302.12288, 2023.
[4] Sebastian Bosse, Dominique Maniry, Klaus-Robert Müller, Thomas Wiegand, and Wojciech Samek. Deep neural networks for no-reference and full-reference image quality assessment. IEEE Transactions on Image Processing, 27(1): 206–219, 2018.
[5] Alexander Buslaev, Vladimir I. Iglovikov, Eugene Khvedchenya, Alex Parinov, Mikhail Druzhinin, and Alexandr A. Kalinin. Albumentations: Fast and flexible image augmentations. Information, 11(2):125, 2020.
[6] ByteDance Seed. Seed2.0 Mini. https://seed.bytedance.com/en/seed2, 2026.
[7] ByteDance Seed Team. Introduction to Techniques Used in Seed1.6. https://seed.bytedance.com/en/blog/introduction-to-techniques-used-in-seed1-6, 2025.
[8] Nicolas Carion, Laura Gustafson, Yuan-Ting Hu, Shoubhik Debnath, Ronghang Hu, Didac Suris, Chaitanya Ryali, Kalyan Vasudev Alwala, Haitham Khedr, Andrew Huang, et al. SAM 3: Segment anything with concepts. arXiv preprint arXiv:2511.16719, 2026.
[9] Chaofeng Chen, Jiadi Mo, Jingwen Hou, Haoning Wu, Liang Liao, Wenxiu Sun, Qiong Yan, and Weisi Lin. TOPIQ: A top-down approach from semantics to distortions for image quality assessment. IEEE Transactions on Image Processing, 33:2404–2418, 2024.
[10] Chaofeng Chen, Sensen Yang, Haoning Wu, Liang Liao, Zicheng Zhang, Annan Wang, Wenxiu Sun, Qiong Yan, and Weisi Lin. Q-Ground: Image quality grounding with large multi-modality models. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 486–495, 2024.
[11] Zhe Chen, Jiannan Wu, Wenhai Wang, Weijie Su, Guo Chen, Sen Xing, Muyan Zhong, Qinglong Zhang, Xizhou Zhu, Lewei Lu, et al. InternVL: Scaling up vision foundation models and aligning for generic visual-linguistic tasks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 24185–24198, 2024.
[12] Gheorghe Comanici, Eric Bieber, Mike Schaekermann, Ice Pasupat, Noveen Sachdeva, Inderjit Dhillon, Marcel Blistein, Ori Ram, Dan Zhang, Evan Rosen, et al. Gemini 2.5: Pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. arXiv preprint arXiv:2507.06261, 2025.
[13] Yuming Fang, Hanwei Zhu, Yan Zeng, Kede Ma, and Zhou Wang. Perceptual quality assessment of smartphone photography. In Proceedings of the IEEE/CVF Conference
on Computer Vision and Pattern Recognition, pages 3677–3686, 2020.
[14] GLM-V Team, Wenyi Hong, Wenmeng Yu, Xiaotao Gu, Guo Wang, Guobing Gan, Haomiao Tang, Jiale Cheng, Ji Qi, Junhui Ji, et al. GLM-4.5V and GLM-4.1V-Thinking: Towards versatile multimodal reasoning with scalable reinforcement learning. arXiv preprint arXiv:2507.01006, 2026.
[15] Google DeepMind. Gemini 3.1 Flash-Lite. https://deepmind.google/models/model-cards/gemini-3-1-flash-lite/, 2026.
[16] Vlad Hosu, Hanhe Lin, Tamas Sziranyi, and Dietmar Saupe. KonIQ-10k: An ecologically valid database for deep learning of blind image quality assessment. IEEE Transactions on Image Processing, 29:4041–4056, 2020.
[17] Qing Jiang, Junan Huo, Xingyu Chen, Yuda Xiong, Zhaoyang Zeng, Yihao Chen, Tianhe Ren, Junzhi Yu, and Lei Zhang. Detect anything via next point prediction. arXiv preprint arXiv:2510.12798, 2025.
[18] Junjie Ke, Qifei Wang, Yilin Wang, Peyman Milanfar, and Feng Yang. MUSIQ: Multi-scale image quality transformer. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 5148–5157, 2021.
[19] Weiqi Li, Xuanyu Zhang, Shijie Zhao, Yabin Zhang, Junlin Li, Li Zhang, and Jian Zhang. Q-Insight: Understanding image quality via visual reinforcement learning. In Advances in Neural Information Processing Systems, pages 36802–36827, 2025.
[20] Chin-Yew Lin. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pages 74–81, 2004.
[21] Hanhe Lin, Vlad Hosu, and Dietmar Saupe. KADID-10k: A large-scale artificially distorted IQA database. In 2019 Eleventh International Conference on Quality of Multimedia Experience (QoMEX), pages 1–3, 2019.
[22] Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. Improved baselines with visual instruction tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 26296–26306, 2024.
[23] Anish Mittal, Anush Krishna Moorthy, and Alan Conrad Bovik. No-reference image quality assessment in the spatial domain. IEEE Transactions on Image Processing, 21(12): 4695–4708, 2012.
[24] Anish Mittal, Rajiv Soundararajan, and Alan C. Bovik. Making a “completely blind” image quality analyzer. IEEE Signal Processing Letters, 20(3):209–212, 2013.
[25] OpenAI, Aaron Hurst, Adam Lerer, Adam P. Goucher, Adam Perelman, Aditya Ramesh, Aidan Clark, AJ Ostrow, Akila Welihinda, Alan Hayes, et al. GPT-4o system card. arXiv preprint arXiv:2410.21276, 2024.
[26] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaeldin El-Nouby, et al. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024. Featured Certification.
[27] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311–318, 2002.
[28] Nikolay Ponomarenko, Lina Jin, Oleg Ieremeiev, Vladimir Lukin, Karen Egiazarian, Jaakko Astola, Benoit Vozel, Kacem Chehdi, Marco Carli, Federica Battisti, et al. Image database TID2013: Peculiarities, results and perspectives. Signal Processing: Image Communication, 30:57–77, 2015.
[29] Qwen Team. Qwen3.5: Towards native multimodal agents. https://qwen.ai/blog?id=qwen3.5, 2026.
[30] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, et al. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
[31] Aaditya Singh, Adam Fry, Adam Perelman, Adam Tart, Adi Ganesh, Ahmed El-Kishky, Aidan McLaughlin, Aiden Low, AJ Ostrow, Akhila Ananthram, et al. OpenAI GPT-5 system card. arXiv preprint arXiv:2601.03267, 2026.
[32] Shaolin Su, Qingsen Yan, Yu Zhu, Cheng Zhang, Xin Ge, Jinqiu Sun, and Yanning Zhang. Blindly assess image quality in the wild guided by a self-adaptive hyper network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3667–3676, 2020.
[33] Unsplash. Unsplash dataset. https://unsplash.com/data, 2020.
[34] Jianyi Wang, Kelvin C.K. Chan, and Chen Change Loy. Exploring CLIP for assessing the look and feel of images. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 2555–2563, 2023.
[35] Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, et al. Qwen2-VL: Enhancing vision-language model's perception of the world at any resolution. arXiv preprint arXiv:2409.12191, 2024.
[36] Weiyun Wang, Zhangwei Gao, Lixin Gu, Hengjun Pu, Long Cui, Xingguang Wei, Zhaoyang Liu, Linglin Jing, Shenglong Ye, Jie Shao, et al. InternVL3.5: Advancing open-source multimodal models in versatility, reasoning, and efficiency. arXiv preprint arXiv:2508.18265, 2025.
[37] Zhou Wang, A.C. Bovik, H.R. Sheikh, and E.P. Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE Transactions on Image Processing, 13(4): 600–612, 2004.
[38] Haoning Wu, Zicheng Zhang, Erli Zhang, Chaofeng Chen, Liang Liao, Annan Wang, Chunyi Li, Wenxiu Sun, Qiong Yan, Guangtao Zhai, et al. Q-Bench: A benchmark for general-purpose foundation models on low-level vision. In International Conference on Learning Representations, pages 12547–12573, 2024.
[39] Haoning Wu, Zicheng Zhang, Erli Zhang, Chaofeng Chen, Liang Liao, Annan Wang, Kaixin Xu, Chunyi Li, Jingwen Hou, Guangtao Zhai, et al. Q-Instruct: Improving low-level visual abilities for multi-modality foundation models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 25490–25500, 2024.
[40] Haoning Wu, Zicheng Zhang, Weixia Zhang, Chaofeng Chen, Liang Liao, Chunyi Li, Yixuan Gao, Annan Wang,
Erli Zhang, Wenxiu Sun, et al. Q-Align: Teaching LMMs for visual scoring via discrete text-defined levels. In Proceedings of the 41st International Conference on Machine Learning, pages 54015–54029, 2024.
[41] Haoning Wu, Hanwei Zhu, Zicheng Zhang, Erli Zhang, Chaofeng Chen, Liang Liao, Chunyi Li, Annan Wang, Wenxiu Sun, Qiong Yan, et al. Towards open-ended visual quality comparison. In Computer Vision – ECCV 2024, pages 360–377, 2025.
[42] Tianhe Wu, Jian Zou, Jie Liang, Lei Zhang, and Kede Ma. VisualQuality-R1: Reasoning-induced image quality assessment via reinforcement learning to rank. In Advances in Neural Information Processing Systems, pages 88167–88190, 2025.
[43] Tao Xiang, Ying Yang, and Shangwei Guo. Blind night-time image quality assessment: Subjective and objective approaches. IEEE Transactions on Multimedia, 22(5):1259–1272, 2020.
[44] Xiaomi MiMo Team. Xiaomi MiMo-V2-Omni. https://mimo.xiaomi.com/mimo-v2-omni, 2026.
[45] Xiaomi MiMo Team. Xiaomi MiMo-V2.5. https://mimo.xiaomi.com/mimo-v2-5, 2026.
[46] Zhiyuan You, Xin Cai, Jinjin Gu, Tianfan Xue, and Chao Dong. Teaching large language models to regress accurate image quality scores using score distribution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14483–14494, 2025.
[47] Zhiyuan You, Jinjin Gu, Xin Cai, Zheyuan Li, Kaiwen Zhu, Chao Dong, and Tianfan Xue. Enhancing descriptive image quality assessment with a large-scale multi-modal dataset. IEEE Transactions on Image Processing, 34:8201–8215, 2025.
[48] Zhiyuan You, Zheyuan Li, Jinjin Gu, Zhenfei Yin, Tianfan Xue, and Chao Dong. Depicting beyond scores: Advancing image quality assessment through multi-modal language models. In Computer Vision – ECCV 2024, pages 259–276, 2025.
[49] Z.ai. GLM-4.6V: Open source multimodal models with native tool use. https://z.ai/blog/glm-4.6v, 2025.
[50] Guangtao Zhai and Xiongkuo Min. Perceptual image quality assessment: a survey. Science China Information Sciences, 63(11):211301, 2020.
[51] Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 586–595, 2018.
[52] Weixia Zhang, Guangtao Zhai, Ying Wei, Xiaokang Yang, and Kede Ma. Blind image quality assessment via vision-language correspondence: A multitask learning perspective. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14071–14081, 2023.
[53] Zicheng Zhang, Haoning Wu, Erli Zhang, Guangtao Zhai, and Weisi Lin. Q-Bench+: A benchmark for multi-modal foundation models on low-level vision from single images to pairs. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(12):10404–10418, 2024.
Supplementary Material
NightIQA: A Comprehensive Dataset and Benchmark for MLLM-Based Nighttime Image Quality Assessment
This supplement collects the implementation details, full derivations, and extended results deferred from the main paper. It is organized as follows:
- Sec. A – NightIQA-Real annotation platform, workflow, and quality audit.
- Sec. B – scene-level deduplication and leakage-free train/benchmark partitioning.
- Sec. C – NightIQA-Bench question statistics, filtering pipeline, and per-level examples.
- Sec. D – full NightIQA-Syn degradation algorithms, parameters, and core reference implementation (global- and instance-level).
- Sec. E – supervised fine-tuning data, objective, and hyperparameters.
- Sec. F – complete GRPO formulation, composite reward, and training configuration.
- Sec. G – ethical considerations, privacy protection, and licensing.
A. NightIQA-Real Annotation Details
A.1. Annotation Schema and Field Definitions
Each NightIQA-Real image is labeled along the four structured dimensions introduced in Section 3.1, progressing from scene content to perceptual impact. Table 5 enumerates every field together with its admissible values.
-
Semantic Description — the intended subject together with a natural-language account of scene content, spatial layout, and lighting conditions.
-
Global Quality Assessment — the single primary distortion of the image, together with severity ratings for the six canonical distortion types.
-
Local Distortion Analysis — for each active distortion, its spatial scope (Global or Local) and the affected image region(s).
-
Holistic Quality Narrative — content-impact statements describing how the active distortions affect perceptual quality and scene understanding.
The six canonical distortion types are Noise, Under-exposure, Overexposure, Motion Blur, Focus Blur, and Camera Shake, each induced at three severity levels (Slight, Moderate, Severe) during capture; the N/A label denotes an image with no visually dominant distortion (Table 1).
Table 5. NightIQA-Real annotation schema. Distortion types, severity levels, spatial scopes, and scene categories follow the definitions used during capture (Section 3.1).
| Dimension | Field | Values |
|---|---|---|
| Semantic Desc. | SubjectScene category | free textNature / Indoor / Urban |
| Content, layout & lighting | free text | |
| Global Quality | Primary distortion | one of the six types, or N/A |
| Per-type severity | Slight / Moderate / Severe | |
| Local Distortion | Spatial scopeAffected region(s) | Global / Localfree text |
| Holistic Narrative | Content-impact statement | free text |
A.2. Annotation Platform and Workflow
We employ Label Studio¹ as the annotation platform, implementing the two-phase protocol of Section 3.1: Phase 1 (Multi-Model Ensemble Pre-Labeling) supplies the imported pre-fills in step (1), and Phase 2 (Human Verification & Refinement) comprises steps (2)–(4) below.
(1) Pre-labeling Import. Ensemble annotations from the four frontier MLLMs (GPT-5, Gemini 2.5 Pro, Doubao-Seed-1.6-Vision, and GLM-4.5V), retained only where at least three models agree (Section 3.1), are imported as pre-filled fields.
(2) Human Verification. Annotators review each image alongside pre-filled dropowns, radio buttons, and free-text fields.
(3) Correction. Misidentified distortions, severity ratings, and ungrounded descriptions are corrected; disagreements are escalated to a senior annotator.
(4) Quality Audit. Finalized annotations are exported in JSON, and a random 10% subset undergoes a second-round audit.
Figure 6 shows representative screenshots of the interface.
A.3. Pre-Labeling Prompt Template and Annotation Schema
Phase 1 of the annotation pipeline (Section 3.1) queries the four frontier MLLMs (GPT-5, Gemini 2.5 Pro, Doubao-Seed-1.6-Vision, GLM-4.5V) with the identical structured prompt of Figure 7; each model returns a structured JSON annotation following the same schema, and a field is retained only where at least three models agree. The prompt fixes the task definition, a priority rule for selecting the primary distortion, the severity vocabulary, and the exact output schema, so that the four models produce directly

Figure 6. Screenshots of the Label Studio annotation interface used for NightIQA-Real. The interface presents each nighttime image alongside pre-filled annotations from the multi-model ensemble, enabling annotators to verify and refine distortion type, severity, spatial scope, and quality narratives.
comparable structured outputs. Figure 8 shows a complete annotation produced by this process and verified by human annotators.
B. Scene-Level Deduplication and Train/Benchmark Partitioning
We enforce scene-level separation through a four-stage pipeline: (1) privacy-aware face filtering, (2) DINOv2 feature extraction, (3) agglomerative clustering with cluster-level partitioning, and (4) a manual review that removes any residual visual overlap between the two splits.
DINOv2 Feature Extraction. Each image is embedded using DINOv2 ViT-B/14 [1]. Images are resized via letterbox to 518×518 with bicubic interpolation and ImageNet normalization. The [CLS] token serves as the scene descriptor, -normalized as:
Agglomerative Scene Clustering. Given the normalized feature matrix (), we apply hierarchical clustering with cosine distance , complete linkage, and threshold , yielding 334 scene clusters.
Cluster-Level Split. Clusters are sorted by ascending size and greedily assigned to training until reaching the target count. Since partitioning operates at the cluster level, no scene overlap or near-duplicate leakage occurs. This yields the 953-image GRPO training corpus and the 816-image held-out benchmark source, from which the 1,078 NightIQA-Bench questions are drawn. Table 6 summarizes the partition.
Manual Overlap Review. After the automatic cluster-level assignment, an annotator inspects boundary cases across the two splits and removes any residual near-duplicate scenes, so the training corpus and the benchmark source share no visually similar scenes.
Table 6. Scene-level train/benchmark partition statistics. All splits are performed at the cluster level to prevent scene leakage.
| Subset | Images |
|---|---|
| GRPO training corpus (small clusters) | 953 |
| Benchmark source (remaining clusters) | 816 |
| Total | 1,769 |
C. NightIQA-Bench: Detailed Examples and Statistics
C.1. Question Distribution and Filtering
The final validated benchmark contains 1,078 questions, distributed across the four cognitive levels as L1: 99, L2: 344, L3: 344, and L4: 291. Questions are first generated from the NightIQA-Real annotations and then admitted only after passing the two-stage filter introduced in Section 3.2, which we expand here into four concrete steps:
(1) Candidate generation. For each image, multiple-choice questions spanning all four cognitive levels are generated jointly with chain-of-thought rationales grounded in the structured annotations; Level 2 yields two question types (primary-distortion identification and severity grading).
(2) Structural screening. Level completeness is enforced, and each rationale is checked for forbidden leakage patterns that would reveal the answer.
(3) MLLM-as-a-judge filter (first filter stage). An automatic judge screens candidates for logical errors, weak distractors, and insufficient discriminability.
(4) Domain-expert review (second filter stage). Human experts verify question clarity and visual grounding, retaining only questions that pass both filter stages.
The resulting MCQ+CoT pairs serve as the source for downstream GRPO training.
C.2. MCQ Structure and CoT Generation Protocol
To keep the benchmark consistent across images and graders, every question is generated against a fixed schema rather than free-form prompting. We detail the three components that govern this schema below.
Controlled vocabulary. All questions and rationales are restricted to the annotation vocabulary defined in Section 3.1: the six canonical distortion types (Noise, Under-exposure, Overexposure, Motion Blur, Focus Blur, Camera Shake), the severity levels, and the spatial-scope labels (global / local). Binding the wording to this taxonomy ensures that questions probe the same attributes that the annotations record, and that an answer can always be traced back to a grounded field.
Cognitive levels and option design. Each image yields questions across all four cognitive levels, with Level 2 contributing two complementary question types, so a single image produces both a distortion-identification item and a severity-grading item at that level. The levels follow the body's definitions: L1 (Perception) recognizes the subject and scene content visible under nighttime conditions; L2
Phase 1 Pre-Labeling Prompt (shared by GPT-5, Gemini 2.5 Pro, Doubao-Seed-1.6-Vision, GLM-4.5V)
TASK INSTRUCTION. You are an expert Image Quality Assessment (IQA) analyst specialising in nighttime photography. Analyse the provided photograph and output the requested JSON fields. Your analysis must strictly assess the six distortion types listed in the distortion_severity field. Motion Blur: blur from moving objects while the background stays relatively sharp. Camera Shake: blur affecting the entire image due to camera movement during exposure.
PRIORITY GUIDANCE. When selecting primary_distortion, apply a two-step process. (1) Irreversibility: prioritise distortions that cause irreversible loss of crucial information (e.g. blur or severe exposure issues) over inherent issues such as noise. (2) Conflict resolution: if several distortions are equally severe and irreversible, select the one most affecting the primary subject, or the one that is visually most dominant.
SEVERITY DEFINITIONS. Severe: prominent, severely degrades quality. Moderate: noticeable, clearly degrades quality. Slight: negligible or absent.
OUTPUT FORMAT. A single, raw, syntactically correct JSON object with the following nine fields:
{ "scene_category": "few words, e.g. Outdoor street view", "distortion_severity": { "Noise": "Severe|Moderate|Slight", "Underexposure": "...", "Overexposure": "...", "Motion_Blur": "...", "Camera_Shake": "...", "Focus_Blur": "... " }, "primary_distortion": "single dominant Severe/Moderate type", "intended_subject": "single main focal subject, or N/A", "subject_distortions": { "type": "severity", ... }, "scene_description": "key elements + spatial positions", "distortion_analysis": { "type": "Global|Local - short location phrase", ... }, "content_impact_discussion": "impact on subject + scene", "explanation": ["concise justification of key choices", ...] }
Figure 7. Pre-labeling prompt template shared by all four frontier MLLMs in the Phase 1 ensemble. Each model receives this identical prompt alongside the target nighttime image and returns a structured JSON annotation following the schema shown at the bottom.
(Technical Assessment) identifies the primary distortion and grades its severity; L3 (Localization) probes spatial scope and the affected region; and L4 (Reasoning) probes causal and comparative judgments that require integrating multiple cues. Most questions are four-option single-answer items following a 1+2+1 design: one correct answer, two hard distractors drawn from attributes that are plausible for the same scene (e.g., a neighboring severity level, a co-occurring distortion type, or an alternative affected region), and one easy distractor that is clearly inconsistent with the image. The severity-grading items at Level 2 instead use the three fixed options Slight / Moderate / Severe, so that any severity level can be the correct answer. This composition keeps the task discriminative while avoiding trivially guessable items.
Blind-test CoT protocol. The chain-of-thought rationale attached to each question is generated under a blind-test constraint: the rationale must describe the visual evidence and reasoning that lead to the answer without stating the option letter or copying the answer text, and a fixed list of forbidden answer-revealing phrases is enforced during structural screening (Section C.1, step 2). This prevents the rationale from leaking the answer and forces the model to articulate grounded perceptual evidence, which is what the description reward (Section F.3) later supervises.
C.3. Extended Benchmark Examples
Figures 9 and 10 present full-width benchmark views for all four cognitive levels.
D. NightIQA-Syn: Degradation Pipeline Details
Each distortion is synthesized at two severity levels (Medium and Severe). Medium parameters are stochastically sampled; Severe parameters are derived by applying a fixed scaling factor.
Annotation Example (NightIQA-Real; ensemble output verified by human annotators)
{ "scene_category": "Outdoor urban street view", "distortion_severity": { "Noise": "Moderate", "Underexposure": "Severe", "Overexposure": "Moderate", "Motion_Blur": "Slight", "Camera_Shake": "Slight", "Focus_Blur": "Slight" }, "primary_distortion": "Underexposure", "intended_subject": "White sedan parked on a dark street in front of brightly lit storefronts.", "subject_distortions": { "Noise": "Moderate", "Underexposure": "Severe" }, "scene_description": "Nighttime urban street; white sedan on dark asphalt (foreground); sidewalk, tree, stacked chairs (midground); lit restaurant facade with neon trim and a circular illuminated logo (background).", "distortion_analysis": { "Underexposure": "Global - car, street, unlit storefronts, and darker building areas.", "Overexposure": "Local - neon signage, logo, awning.", "Noise": "Global - mid-tone and dark regions." }, "content_impact_discussion": "Underexposure hides foreground detail and the car's plate/interior; noise adds grain in dark regions; local overexposure clips neon highlights.", "explanation": [ "Underexposure is primary: irreversible loss of crucial detail across the scene.", "Overexposure is local, limited to signage." ] }
Figure 8. A complete annotation example from NightIQA-Real, produced by the multi-model ensemble and verified by human annotators (long free-text values reflowed for display).
Note on severity levels. NightIQA-Real and NightIQA-Syn use different severity granularities by design. Real captures carry the three perceptual levels used by human annotators (Slight / Moderate / Severe, Section A.1), because real degradations form a continuum that annotators can resolve into three bands. Synthetic degradations are generated at two controllable levels (Medium / Severe), since the parameters are programmatically set and the goal is to expose the model to a clearly moderate and a clearly strong instance of each type. When the two sources are combined for training, the synthetic Medium level is aligned with the real Slight–Moderate range and Severe with Severe, so that severity supervision remains consistent across the real and synthetic portions of the data.
D.1. Global-Level Degradation Algorithms
Noise. A black-level offset (+2) is added, then chromatic sensor noise is injected via ISONoise (color shift , intensity ), followed by additive Gaussian grain (). Severe: all parameters (capped at 1.0).
Underexposure. With probability , low-intensity ISONoise (, ) is injected, then the image is multiplied by brightness factor . Severe: , noise params .
Global Overexposure. In CIE LAB space: a highlight mask is created by thresholding at and smoothing with Gaussian radius px; gamma correction () and brightness addition () are applied; the bloom mask is composited additively. Severe: .
Camera Shake. MotionBlur with kernel extent px and random angle . Severe: .
Figure 11 shows representative examples of each global-level distortion at both severity levels, and Table 7 summa-
Level 1: Perception (99 questions)
Question. Which description best matches the visible scene content?

(A) A nighttime urban street with very dark, heavily out-of-focus foreground foliage and a prominent blurred pink/red flower cluster near the center-left, a curving road, and a scooter headlight in the background. [correct]
(B) Identical scene, but the flower cluster sits near the center-right.
(C) Identical layout, but the cluster is purple instead of pink/red.
(D) A person riding a scooter with its headlight on is visible on the roadway in the background.
Chain-of-Thought. The scene reads as a dark nighttime street with a large, very soft (out-of-focus) foreground plant mass and a pink/red cluster near the center-left blocking part of the view; the road curves right and a single bright headlight suggests a scooter in the distance. Option B shifts the cluster to center-right, which does not match. Option C keeps the layout but changes the color away from pink/red. Option D is true but only names a background element, ignoring the dominant foreground foliage that defines the scene.
Level 2: Technical Assessment (344 questions)

Question. Which distortion is the most significant technical issue affecting the image?
(A) Moderate Underexposure in the foreground grass and shadow regions under the right-side awning that hides texture and turns details into dark silhouettes.
(B) Moderate Overexposure around the upper-left streetlight and nearby highlights that clips bright detail and creates glare drawing attention away from the scene. [correct]
(C) Slight Overexposure around the same upper-left streetlight region.
(D) Slight Noise visible across the darker sky and shadowed areas.
Chain-of-Thought. The brightest failure is the intense streetlight in the upper-left, where highlights are clipped and glare is obvious, making Moderate Overexposure the dominant issue. One near-miss shifts priority to foreground Underexposure, which is present but less visually dominant than the blown streetlight. Another keeps the same region but understates it as Slight, when the clipping and halo indicate stronger impact. Noise exists in dark areas but is minor and not the degradation asked for.
Figure 9. Benchmark examples for cognitive levels L1–L2. Each panel pairs the nighttime image with its multiple-choice question, options (correct answer marked), and the jointly generated chain-of-thought rationale.
rizes all parameter ranges.
Table 7. Parameter configurations for global-level degradation operators in NightIQA-Syn.
| Distortion | Parameter | Medium | Severe |
|---|---|---|---|
| Noise | Color shift c | [0.07, 0.09] | |
| ISO intensity | [0.32, 0.37] | ||
| Gaussian sigma | [4.8, 5.3] | ||
| Underexposure | Brightness factor | [0.35, 0.55] | |
| Noise probability | [0.2, 0.4] | ||
| Noise color shift c | [0.01, 0.03] | ||
| Noise intensity | [0.05, 0.10] | ||
| Global Overexposure | Gamma | [0.50, 0.55] | |
| Brightness addition | [60, 65] | ||
| Bloom threshold | [180, 200] | ||
| Bloom radius (px) | [71, 81] | ||
| Camera Shake | Kernel extent (px) | [40, 60] | |
| Motion angle (deg) | [0, 360] | same as Medium |
D.2. Instance-Level Degradation Algorithms
Target Identification (Stage 1). Before any instance-level operator is applied, a vision-language model inventories the salient scene elements that can serve as degradation targets (Section 3.3): movable objects (person, vehicle, animal) for Motion Blur, point light sources (neon_sign, headlight, taillight, lamp, spotlight, etc.) for Local Overexposure, and depth-separated objects for Focus Blur. The model is queried with the prompt of Figure 12 and returns up to five categories from a fixed content vocabulary; only images that yield valid targets enter the corresponding rendering branch, after which Rex-Omni and SAM3 ground the named targets into pixel-accurate masks (Stage 2).
Local Overexposure. Light-source masks are combined via bitwise OR into . The light layer is
Level 3: Localization (344 questions)
Question. Where is the Overexposure most concentrated in the scene?

(A) On the left tree canopy, especially the bright green leaves nearest the streetlight.
(B) On and immediately around the streetlight's lamp heads at the top of the pole, forming a bright halo and starburst that hides lamp detail. [correct]
(C) On the upper half of the pole below the lamp heads, where the pole surface is uniformly blown out.
(D) Across the dark night sky in the background, where the image looks mottled rather than smooth.
Chain-of-Thought. The brightest clipped region is clearly the lamp cluster at the top, with a halo/starburst that overwhelms the lamp structure. The left tree is illuminated but still shows leaf texture rather than the same concentrated clipping. The pole below the lamps is bright but not uniformly blown out like the lamp heads. The sky issue is real but corresponds to Noise, not Overexposure.
Level 4: Reasoning (291 questions)
Question. Why are the bridge's structural details and surrounding context hard to discern in this image?

(A) Moderate Overexposure is the primary cause, clipping most tones first, with Severe Underexposure only secondarily reducing shadow detail.
(B) Severe Underexposure is the primary cause, crushing most of the frame into near-black, with Moderate Overexposure secondarily clipping the bright blue LED handrail and lamps. [correct]
(C) Moderate Overexposure is primary, clipping the LED handrail and lamps first, with Severe Underexposure only secondarily crushing the rest.
(D) The bridge runs horizontally over dark water that reflects the blue handrail and warm vertical lights.
Chain-of-Thought. Details disappear chiefly because most regions (sky, water, and much of the bridge structure) are pushed into near-black, consistent with Severe Underexposure removing midtones and shadows; on top of that, the brightest elements show Moderate Overexposure that clips highlights. Options A and C reverse the causal priority, wrongly treating Overexposure as the main driver. Option D truthfully describes composition and reflections but does not explain the degradation mechanism.
Figure 10. Benchmark examples for cognitive levels L3–L4 (continued from Figure 9).
extracted, a bloom layer is generated via Gaussian filtering (), and composited: with . Severe: .
Motion Blur. Object masks are loaded, softened, and combined. An adaptive displacement is derived from the bounding-box diagonal scaled by . The image is linearized (gamma 2.2), then warped frames are accumulated along a randomized trajectory with vertical shift , followed by matched noise injection () and soft compositing. Severe: all parameters .
Focus Blur. A monocular depth map guides layered disk-kernel convolution. The focal depth is derived from the secondary-object mask; the blur radius per pixel is
with px, divided into layers. Severe: .
Figure 13 shows representative examples of each instance-level distortion, and Table 8 summarizes all parameter ranges.
D.3. Core Implementation of the Degradation Operators
This subsection lists the core routines of our released pre-processing toolkit, condensed from the production scripts (logging, I/O, multi-threading, and SFT-text generation removed) to expose the degradation logic itself. Every operator exposes a MEDIUM_PARAMS dictionary and a scalar SEVERE_FACTOR: the Medium level samples parameters from the listed ranges, and the Severe level scales them by SEVERE_FACTOR (Section D). The four global operators in Figure 14 act on the entire frame; the three


(a) Noise
(b) Underexposure


(c) Global Overexposure
(d) Camera Shake
Figure 11. Visual examples of global-level degradations in NightlQA-Syn, grouped by distortion type. Within each category, the columns show two representative scenes and the rows correspond to increasing severity.
Instance-Level Target-Identification Prompt (Stage 1)
TASK. You are an image tagger. From the category vocabulary below, choose up to five categories that are most confidently visible in the image. If fewer than five categories are clearly visible, return fewer.
OUTPUT FORMAT. Return only a single JSON object: { "img_path": "<path>", "tag": ["tag1", ..., "tag5"]}.
person, vehicle, animal, storefront, sign, billboard, light, illuminated_billboard, neon_sign, led_display, screen, traffic_light, light_strip, string_lights, lamp, chandelier, spotlight, taillight, monitor, illuminated_window, headlight, sky, sun, cloud, tree, door, escalator, elevator, table, chair, sofa, bed, shelf, shadow
Figure 12. Stage 1 target-identification prompt for the instance-level pipeline. The model selects up to five categories from the fixed content vocabulary (bottom). Movable objects, point light sources, and depth-separated objects serve as candidate targets for Motion Blur, Local Overexposure, and Focus Blur respectively; only images with valid targets enter the matching rendering branch.

(a) Local Overexposure
(b) Motion Blur
(c) Focus Blur
Figure 13. Visual examples of instance-level degradations in NightlQA-Syn, grouped by distortion type. Within each category, the columns show two representative scenes and the rows correspond to increasing severity.
Table 8. Parameter configurations for instance-level degradation operators in NightlQA-Syn.
| Distortion | Parameter | Medium | Severe |
|---|---|---|---|
| Local Overexposure | Bloom sigma (px) | [45, 50] | |
| Bloom intensity | [1.6, 1.7] | ||
| Motion Blur | Displacement intensity | [0.10, 0.15] | |
| Warp steps | [30, 35] | ||
| Vertical shift factor | [0.008, 0.012] | ||
| Matched noise level | [0.01, 0.015] | ||
| Focus Blur | Max blur radius (px) | [32, 38] | |
| Depth layers | 5 (fixed) | ||
instance-level operators in Figures 15–17 act only within object masks or a depth map. We use cv2 (OpenCV), np (NumPy), A (Albuminations), and torch/F (PyTorch / torch.nn.functional), with DEVICE the active
CUDA device.
D.4. Synthetic Distortion Validation
Before SFT sampling (Supp. Sec. D.5), every generated image passes an automated quality-control step that verifies the intended distortion was actually rendered and is consistent with its structured label. An MLLM inspector receives the degraded image together with the expected distortion type, severity, scope, and the structured chain-of-thought description, and is queried with the prompt of Figure 18. The judge returns a JSON verdict covering distortion presence, type match, scope accuracy, target reasonableness (for instance-level distortions), and severity consistency, plus an objective perceived-severity rating assessed independently of the label and a 1–10 quality score. An image is retained only when all boolean checks pass, the quality score is 7, and no critical
Global Degradation Operators (noise, underexposure, overexposure, camera shake)
----- ISO sensor noise (global) -----
SEVERE_FACTOR = 1.4 MEDIUM_PARAMS = {"color_shift": (0.07, 0.09), "intensity": (0.32, 0.37), "gauss_sigma": (4.8, 5.3)}
def iso_noise(bgr, color, intensity, g_sigma): rgb = cv2.cvtColor(bgr, cv2.COLOR_BGR2RGB) rgb = cv2.add(rgb, np.array([2, 2, 2], np.uint8)) # lift black level rgb = A.ISONoise(color_shift=(color, color), intensity=(intensity, intensity), p=1.0) (image=rgb)["image"] noise = np.random.normal(3, g_sigma, rgb.shape).astype(np.float32) rgb = np.clip(rgb.astype(np.float32) + noise, 0, 255).astype(np.uint8) return cv2.cvtColor(rgb, cv2.COLOR_RGB2BGR)
----- Underexposure (global) -----
SEVERE_FACTOR = 2.5 MEDIUM_PARAMS = {"brightness_factor": (0.35, 0.55), "noise_probability": (0.2, 0.4)}
def underexpose(bgr, brightness_factor, noise_prob, iso_color, iso_intensity): if np.random.rand() < noise_prob: # probabilistic sensor noise rgb = cv2.cvtColor(bgr, cv2.COLOR_BGR2RGB) rgb = A.ISONoise(color_shift=(iso_color, iso_color), intensity=(iso_intensity, iso_intensity)) (image=rgb)["image"] bgr = cv2.cvtColor(rgb, cv2.COLOR_RGB2BGR) out = bgr.astype(np.float32) / 255.0 * brightness_factor # linear dimming return np.clip(out * 255, 0, 255).astype(np.uint8)
----- Global overexposure / bloom -----
SEVERE_FACTOR = 1.3 MEDIUM_PARAMS = {"gamma": (0.5, 0.55), "brightness_add": (60, 65), "bloom_threshold": (180, 200), "bloom_radius": (71, 81)}
def overexpose(bgr, gamma, b_add, t_val, r_val): l, a, b = cv2.split(cv2.cvtColor(bgr, cv2.COLOR_BGR2LAB)) _, sharp = cv2.threshold(l, t_val, 255, cv2.THRESHOLD_BINARY) r_val = r_val if r_val % 2 else r_val + 1 # odd kernel size bloom = cv2.GaussianBlur(sharp, (r_val, r_val), 0) lut = np.array([((i / 255.0) ** (1.0 / gamma)) * 255 for i in range(256)]).astype(np.uint8) l = cv2.add(cv2.LUT(l, lut), np.array([b_add], np.uint8)) l = cv2.add(l, bloom) return cv2.cvtColor(cv2.merge([l, a, b]), cv2.COLOR_LAB2BGR)
----- Camera shake (whole-image motion blur) -----
SEVERE_FACTOR = 2.0 MEDIUM_PARAMS = {"blur_limit": (40, 60)}
def camera_shake(bgr, limit, angle): rgb = cv2.cvtColor(bgr, cv2.COLOR_BGR2RGB) t = A.MotionBlur(blur_limit=(limit, limit), angle_range=(angle, angle), allow_shifted=True, p=1.0) return cv2.cvtColor(t(image=rgb)["image"], cv2.COLOR_RGB2BGR)
Figure 14. Core routines for the four global operators. Each is applied to the full frame; Severe multiplies the sampled MEDIUM_PARAMS by SEVERE_FACTOR.
Instance-Level Motion Blur (physical optical-flow integration, GPU)
----- Motion blur (instance-level, physical optical integration) -----
SEVERE_FACTOR = 3.5 MEDIUM_PARAMS = {"steps": (30, 35), "intensity": (0.1, 0.15), "vertical_shift_factor": (0.008, 0.012), "noise_range": (0.01, 0.015)}
def adaptive_magnitude(w, h, intensity, level): diag = np.sqrt(w2 + h2) mag = diag * intensity max_limit = {"slight": 25.0, "medium": 55.0}.get(level, 200.0) if diag < 200: mag += max(0.4, diag / 200.0) if mag > max_limit: mag = max_limit + (mag - max_limit) * 0.25 mag = max(1.5, mag) ratio = 0.75 if level == "severe" else 0.5 return min(mag, min(w, h) * ratio)
def motion_blur_torch(img, mask, steps, trans_x, trans_y, noise=0.05): x = torch.from_numpy(img[... , ::-1].copy().float()) x = x.permute(2, 0, 1).unsqueeze(0).to(DEVICE) / 255.0 m = torch.from_numpy(mask).float() [None, None].to(DEVICE) x = torch.pow(x + 1e-6, 2.2) # sRGB -> linear light B, C, H, W = x.shape yy, xx = torch.meshgrid(torch.linspace(-1, 1, H, device=DEVICE), torch.linspace(-1, 1, W, device=DEVICE), indexing='ij') base = torch.stack((xx, yy), -1) [None] acc_img = torch.zeros_like(x); acc_m = torch.zeros_like(m); wsum = 0.0 for i in range(steps): # integrate along the path g = base.clone() g[... , 0] -= (trans_x / steps * i) * 2 / W g[... , 1] -= (trans_y / steps * i) * 2 / H wi = F.grid_sample(x, g, align_corners=True, padding_mode="border") wm = F.grid_sample(m, g, align_corners=True, padding_mode="zeros") acc_img += wi * wm; acc_m += wm; wsum += 1.0 acc_m = torch.clamp(acc_m, min=1e-3) obj = torch.pow(acc_img / acc_m + 1e-6, 1 / 2.2) obj = torch.clamp(obj + torch.randn_like(obj) * noise, 0, 1) fg = torch.clamp(acc_m / (wsum + 1e-6), 0, 1) out = obj * fg + torch.pow(x + 1e-6, 1 / 2.2) * (1 - fg) # composite out = out.squeeze(0).permute(1, 2, 0).cpu().numpy() return np.clip(out * 255, 0, 255).astype(np.uint8)[:, ::-1]
Figure 15. Motion blur is rendered in linear light by integrating the masked object along its displacement path, then alpha-composited back over the sharp background; displacement is set adaptively from object size.
issue is flagged; otherwise it is discarded. The check is scope-aware: global distortions must affect the entire frame uniformly, whereas instance-level distortions must be confined to a semantically appropriate target (light sources for Local Overexposure, moving objects for Motion Blur, depth-separated objects for Focus Blur), so that a mismatched target (e.g., motion blur on a static building) is marked as a failure.
D.5. SFT Training Data Sampling Strategy
From the 80,000-image synthetic corpus, 6,769 images are sampled via stratified sampling along distortion type and severity level, with near-balanced coverage where validated samples permit. Table 9 reports the distribution.
Table 9. SFT training data distribution by distortion type and severity.
| Distortion Type | Medium | Severe | Total |
|---|---|---|---|
| Noise | 500 | 500 | 1,000 |
| Underexposure | 500 | 500 | 1,000 |
| Global Overexposure | 500 | 500 | 1,000 |
| Local Overexposure | 501 | 268 | 769 |
| Camera Shake | 500 | 500 | 1,000 |
| Motion Blur | 500 | 500 | 1,000 |
| Focus Blur | 500 | 500 | 1,000 |
| Total | 3,501 | 3,268 | 6,769 |
Instance-Level Focus Blur (depth-aware layered defocus, GPU)
----- Focus blur (instance-level, depth-aware layered defocus) -----
SEVERE_FACTOR = 2.3 MEDIUM_PARAMS = {"max_radius": (32, 38)}
def disk_kernel(radius): ks = int(radius * 2 + 1) yy, xx = torch.meshgrid(torch.linspace(-radius, radius, ks), torch.linspace(-radius, radius, ks), indexing='ij') k = torch.clamp(radius - torch.sqrt(xx2 + yy2) + 0.5, 0, 1) return (k / k.sum()) to(DEVICE) # normalized disk (CoC)
def layered_blur(img, depth, focal_depth, max_radius, layers=5): d = F.avg_pool2d(depth, 5, 1, 2) diff = torch.abs(d - focal_depth) target = diff / (diff.max() + 1e-6) * max_radius # blur radius per pixel step = max_radius / (layers - 1) out = img.clone() for i in range(layers - 1): # discretize depth into layers lo, hi = i * step, (i + 1) * step m = (target >= lo) & (target < hi) if not torch.any(m): continue k = disk_kernel((lo + hi) / 2) pad = k.shape[0] // 2 k4 = k[None, None].repeat(3, 1, 1, 1) b = F.conv2d(F.pad(img, (pad,) * 4, mode='reflect'), k4, groups=3) out[m.repeat(1, 3, 1, 1)] = b[m.repeat(1, 3, 1, 1)] return out
def focus_blur_torch(img, depth, focal_point, max_radius): x = torch.from_numpy(img[..., ::-1].copy().float()) x = x.permute(2, 0, 1).unsqueeze(0).to(DEVICE) / 255.0 x = torch.pow(x + 1e-6, 2.2) # sRGB -> linear light d = torch.from_numpy(depth.astype(np.float32)) [None, None].to(DEVICE) fx, fy = focal_point focal = torch.median(d[0, 0, max(0, fy-2):fy+3, max(0, fx-2):fx+3]).item() out = layered_blur(x, d, focal, max_radius, layers=5) out = torch.pow(out + 1e-6, 1 / 2.2).squeeze(0).permute(1, 2, 0).cpu().numpy() return np.clip(out * 255, 0, 255).astype(np.uint8) [..., ::-1]
Figure 16. Defocus is applied in depth-ordered layers: each pixel's circle-of-confusion radius grows with its distance from the focal plane, and a normalized disk kernel is convolved per layer in linear light.
Instance-Level Local Overexposure (mask-driven atmospheric bloom)
----- Local overexposure (instance-level atmospheric bloom) -----
SEVERE_FACTOR = 2.6 MEDIUM_PARAMS = {"sigma": (45.0, 50.0), "intensity": (1.6, 1.7)}
def atmospheric_bloom(bgr, mask, sigma, intensity): img = bgr.astype(np.float32) / 255.0 m = mask.astype(np.float32) / 255.0 if m.ndim == 2: m = cv2.merge([m, m, m]) light = img * m # isolate light sources bloom = cv2.GaussianBlur(light, (0, 0), sigmaX=sigma, sigmaY=sigma) out = img + light * 0.5 + bloom * intensity # additive optical blend return (np.clip(out, 0, 1.0) * 255).astype(np.uint8)
Figure 17. Local overexposure isolates masked light sources, generates a wide Gaussian halo, and blends it additively, reproducing the bloom around bright nighttime sources.
Synthetic Distortion Validation Prompt (MLLM-as-inspector)
TASK. You are a professional image quality inspector. Validate whether this nighttime photograph exhibits the specific distortion described in the training data. You are given the expected distortion type, severity, scope, key visual features, and the structured chain-of-thought description (scene, scope, distortion specifics, target, labeled severity).
GLOBAL CHECKS. Confirm that the distortion (i) affects the entire frame uniformly, (ii) matches the expected type, (iii) is consistent with the labeled severity, and (iv) exhibits the expected visual features; localized effects under a Global label are marked as failures.
LOCAL CHECKS. Confirm that the distortion is confined to a specific target and that the target is semantically appropriate: light sources for Local Overexposure, moving objects for Motion Blur, and depth-separated objects for Focus Blur. The observed target must match the one stated in the description, and non-target regions must remain relatively unaffected; an unreasonable target (e.g., motion blur on a static building) is marked as a failure.
SEVERITY. Independently assess perceived severity (slight/medium/severe) from the image alone, then check whether it matches the labeled level.
DECISION RULE. validation Passed is true only if all boolean checks pass, overall_quality_score ≥ 7, and issues_found is empty.
OUTPUT FORMAT. Return only the JSON object below (no extra text):
{ "distortion_present": true|false, "distortion_matches_type": true|false, "scope_accuracy": true|false, "target_identified": true|false, # local only "target_reasonable": true|false, # local only "target_matches_sft": true|false, # local only "severity_appropriate": true|false, "perceived_severity": "slight|medium|severe", "severity_label_accuracy": true|false, "sft_description_accuracy": true|false, "overall_quality_score": 1-10, "validation Passed": true|false, "issues_found": ["...","..."], "reasoning": "brief explanation" }
Figure 18. Synthetic distortion validation prompt. Each generated NightIQA-Syn image is inspected by an MLMM judge that returns the structured verdict (bottom); only images that pass every boolean check with a quality score ≥ 7 enter the SFT sampling pool (Supp. Sec. D.5).
E. Supervised Fine-Tuning: Full Details
E.1. SFT Data Construction
Each degraded image is annotated with degradation type , severity (Medium/Severe), and scope . Supervision is constructed in two formats: Basic QA (three single-turn pairs probing type, severity, and scope) and Chain-of-Thought (a structured response sequentially describing content, distortion, and spatial distribution).
E.2. SFT Training Objective
The SFT stage uses the masked next-token prediction loss, restricted to response tokens:
where masks out image and prompt tokens. The supervision implicitly targets:
The learning rate follows cosine annealing with linear warmup. During warmup (), ; during annealing (),
where is the warmup length.
E.3. SFT Hyperparameters
Table 10 summarizes the SFT hyperparameters.
Table 10. Hyperparameters for the SFT stage.
| Hyperparameter | Value |
|---|---|
| Base model | Qwen3-VL-8B |
| Fine-tuning strategy | Full-parameter SFT |
| Training epochs | 3 |
| Learning rate | |
| LR schedule | Cosine annealing |
| Warmup ratio | 0.01 |
| Optimizer | AdamW |
| Data precision | bfloat16 |
F. GRPO: Full Formulation and Training Details
F.1. Group Relative Policy Optimization
For each query with image , GRPO samples outputs from , scores them to obtain , and computes the group-relative advantage:
The policy is updated via:
where . The per-token KL divergence is:
F.2. Structured Output Format
The model generates responses in the following format:
<thinking> [Analysis of visual attributes and quality reasoning process] </thinking> <answer>[Option letter]</answer>F.3. Composite Reward Function
The total reward is:
with , , .
Answer Accuracy . .
Description Quality .
where is the <thinking> text and is the reference description. BLEU-4 measures n-gram precision with brevity penalty:
and ROUGE-L is based on the longest common subsequence:
with and .
Format Compliance .
where the pattern requires <thinking>. *</thinking>, optional whitespace, then <answer>. *</answer>.
Weight Rationale. is highest (sparse binary signal needs strong gradient drive); is slightly lower (continuous signal already provides dense gradients); is lowest (format compliance is largely learned during SFT).
F.4. GRPO Hyperparameters
Table 11 summarizes the GRPO training configuration.
F.5. System Prompt
During GRPO training, the following system prompt is prepended:
You are a nighttime image quality assessment expert. Begin your response with a <thinking> tag. Inside, provide a fluent, non-repetitive prose analysis of the nighttime image's visual characteristics, including brightness distribution, noise level, detail preservation, color fidelity, and any visible distortions. Do NOT use option prefixes such as "A.", "B." inside the thinking section to avoid leaking your answer tendency. After the analysis, output the final option letter inside an <answer> tag.
Table 11. Hyperparameters for the GRPO alignment stage.
| Hyperparameter | Value |
|---|---|
| Base model (after SFT) | Qwen3-VL-8B (SFT ckpt) |
| Framework / Parallelism | ms-swift / DeepSpeed [2]ZeRO-3 |
| GPUs / Precision | 6 / bfloat16 |
| Training epochs | 5 |
| Learning rate | |
| Batch size (per device) | 1 |
| Gradient accumulation | 4 |
| Effective batch size | |
| Group size / Temperature | 8 / 0.9 |
| KL coefficient | 0.04 |
| Max gen / input length | 1,024 / 2,048 tokens |
| Max input resolution | 262,144 pixels |
| Warmup ratio | 0.05 |
| Selected epoch | 4 (best avg & L4) |
| Reward weights: , , | |
G. Ethical Considerations and Privacy
Data Collection. All NightIQA-Real images were captured by the research team; no images were sourced from surveillance systems, social media, or unconsented third parties.
Privacy Protection. Every image underwent automated face detection followed by manual review for identifiable information. Images failing either check were excluded.
Licensing. NightIQA-Syn uses Unsplash [3] source images (Unsplash License). NightIQA-Real and NightIQA-Bench will be released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0) license for research purposes, consistent with the non-commercial terms of the Unsplash source imagery.
References
[1] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, et al. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024. Featured Certification.
[2] Jeff Rasley, Samyam Rajbhandari, Olatunji Ruwase, and Yuxiong He. DeepSpeed: System optimizations enable training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 3505–3506, 2020.
[3] Unsplash. Unsplash dataset. https://unsplash.com/data, 2020.