arXiv:2609.02529cs.CVSep 2026

Manuscript Offprint

arXiv:2609.02529

Fine-Grained Anomaly Perception in Wild UGC-Enhanced Images: A Comprehensive Dataset and Difference-Fusion Framework

Yan Zhong, Gefei Chen, Qiufang Ma, Zhen Wang, Zhiwei Fan, Lei Shi, Tingting Jiang

Abstract

Image enhancement and restoration have become standard back-end operations on short-video and social media platforms to boost UGC visual experience. Yet these processes inevitably introduce visual anomalies—especially in faces, texts, and textures—that directly undermine perceptual fidelity and viewer trust. While existing IQA methods perform well on classic distortions, they target holistic quality assessment and fail to capture the specific, localized anomalies caused by enhancement algorithms in real-world UGC. To bridge this gap, we formally define a new task—quality Anomaly Perception for UGC image Enhancement (UEAP), and contribute the first UEAP benchmark dataset, named UEAP-4k, curated from the real business scenarios. It provides fine-grained annotations for anomaly categories, localization and severity levels. Furthermore, we propose a Difference-Fusion Anomaly Perception Method (DFAP-UGC) for wild UGC-enhanced images, which leverages explicit problem-reference difference fusion with dense spatial querying, regional verification, and quality-aware ranking, enabling robust anomaly identification in challenging scenarios. To handle the inherent coupling of subtasks in this new task, we propose a Locality-Aware Dynamic Task Prioritization (LADTP) training strategy that enables effective end-to-end learning and eliminates multi-stage overhead. Extensive experiments show that our method outperforms baselines adapted from classical approaches for this task, validating the value of this dataset and the superior of DFAP-UGC for robust UGC-enhanced image anomaly perception. Code and data will be public.

1 Introduction

With the rapid growth of short-video and social media platforms, user-generated content (UGC) has become a primary carrier of visual information (Shao, Wang, and Hao 2019; Zhong et al. 2025c). To enhance visual experiences, platforms widely adopt quality enhancement and compression algorithms to automatically process UGC, with generative enhancement techniques further improving image clarity and color fidelity (Safonov et al. 2025). However, such processing

Visual Quality Detection TasksNR-IQAFR-IQAVADUEAP
InputIdeal Ref. Image✗✓✗✗
Defective Ref. Image✗✗✗✓
Test Image✓✓✓✓
OutputLocalization✗✗✓✓
Classification✗✗✗✓
Regression (Score)✓✓✗✓
AimPerceptual Distortion✓✓✗✓
Semantic Anomaly✗✗✓✓

Table 1: Comparison of the defined new task UEAP with other related visual quality detection tasks. NR-IQA and FR-IQA denote no-reference and full-reference image quality assessment for real-world distortion scenarios, respectively, while VAD stands for visual anomaly detection. Localization, Classification, and Regression in the output correspond to anomaly/distortion localization, anomaly/distortion categorization, and scoring of anomaly/distortion severity. The symbol ✓ indicates Yes and ✗ indicates No. These labels are defined for the majority of scenarios of each task. The proposed UEAP task requires no high-quality references but imposes stricter output criteria.

inevitably introduces local visual anomalies—such as content distortion, unintended recovery of private information, color artifacts, and texture irregularities, which severely undermine user experience and pose risks of complaints and brand damage (Kushwaha et al. 2022). Therefore, there is an urgent need for an anomaly perception approach tailored to UGC enhancement scenarios, capable of accurately identifying and localizing quality anomalies, thereby providing critical support for content quality assurance and algorithmic optimization.

For anomaly perception in UGC-enhanced images, currently there are two lines of related work. First, Image Quality Assessment (IQA) is an important tool for evaluating image quality, including the quality of enhanced images. According to the availability of reference images, IQA methods are categorized as Full-Reference IQA (FR-IQA), Reduced-Reference(RR-IQA), No-Reference(NR-IQA) (Yang et al. 2023). For evaluating the quality of enhanced images, since usually there are no high quality reference images, many

*Yan Zhong and Gefei Chen did this work during their internship in ByteDance. This work is supported by the PKU-ByteDance Bad Case Detection collaboration project.

†Corresponding author.

previous work adopt NR-IQA approach (Cao et al. 2025; Zhang et al. 2024; Chahine et al. 2025; Wang et al. 2026) Second, visual anomaly detection (VAD) (Cao et al. 2024; Batzner, Heckler, and König 2024) has also been widely explored: some VAD methods localize deviations by reconstruction errors (Bergmann et al. 2019; Zavrtanik, Kristan, and Skočaj 2021), feature distribution and memory-bank methods compare test patches with normal feature statistics (Defard et al. 2021; Roth et al. 2022), and transformer or distillation-based methods improve anomaly representation and localization (Deng and Li 2022; Liu et al. 2024).

However, neither IQA nor VAD can adequately perceive local anomalies in real-world UGC image enhancement scenarios. Specifically, (1) IQA methods only output global quality scores without fine-grained localization, classification and quality rating of abnormal regions, such as the artifacts of text, texture and human face caused by enhancement algorithms. The FR setting requires the high quality reference image which is often missing in UGC scenarios. The NR setting ignores the pre-enhancement images which can provide important information for anomaly perception in UGC image enhancement. (2) VAD methods localize deviations in the single test image, but they do not compare a post-enhancement image with a non-ideal pre-enhancement reference, making it difficult to distinguish newly introduced artifacts from original UGC defects or benign pairwise changes.

To fill this gap, this paper proposes a new image anomaly perception task, termed the fine-grained Anomaly Perception for image Enhancement in UGC scenarios (UEAP). As shown in Table 1, this task differs from traditional IQA methods (Mao et al. 2025) that emphasize global quality scoring, and from generic visual anomaly detection (Liu et al. 2024) tasks that identify abnormalities based solely on single-image distributions. Instead, our task targets pairwise local anomaly instance detection for generative UGC image enhancement: using the pre- and post-enhancement image pair as dual inputs, it accurately detects local unexpected bad cases introduced during enhancement, outputting bounding boxes, anomaly categories, and severity scores. It specifically focuses on high-risk local bad cases, such as text tampering, texture distortion, and abnormal portrait effect. Therefore, solving this task requires overcoming three key Challenges: (i) the lack of a real-world paired UGC enhancement benchmark with fine-grained and consistent annotations for local failure cases in short video scenarios; (ii) since the reference image is the pre-enhancement image rather than an ideal image, local anomalies are subtle and easily confounded with semantic variations, lacking clear discriminative cues. (iii) jointly localizing, classifying, and grading anomalies is difficult due to their heterogeneous output spaces and the risk of inter-task interference.

To address Challenge (i), we constructs the first dataset for this new task, drawn from public sources on video contents, termed the UGC-Enhanced Anomaly Perception (UEAP-4k) Dataset. Each sample consists of a pre-enhancement reference image, the corresponding post-enhancement image to be examined, and human-annotated labels for the latter, covering three aspects: anomaly localization, anomaly category, and severity score. To ensure more consistent and reliable annotations, we employ multiple annotators and propose a greedy merging strategy to reconcile their labels. The final dataset comprises over 4,000 samples, serving as the first benchmark for this task.

Based on UEAP-4k, we propose a Difference-Fusion Anomaly Perception method (named DFAP-UGC) for wild UGC-enhanced images, aiming to achieve robust anomaly identification in complex real-world scenarios.

To address Challenge (ii), DFAP-UGC is designed around explicit pairwise comparison. As shown in Fig. 3, it jointly uses the problem feature, the reference feature, and their difference, allowing the detector to focus on enhancement-induced changes rather than defects already present in the original UGC image. It further verifies candidate regions with local paired evidence and calibrates their ranking quality, providing compact yet discriminative cues for subtle text, texture, and portrait artifacts in complex UGC scenarios.

To address Challenge (iii), considering the anomaly localization sub-task is the most challenging, we propose a Locality-Aware Dynamic Task Prioritization (LADTP) approach during training DFAP-UGC. Its core idea is to leverage Generalized Intersection over Union (GIoU) Loss (Rezatofighi et al. 2019) as a real-time measure of localization quality, and jointly model it with the dynamical difficulty levels of sub-tasks to explicitly characterize task dependencies and adaptively adjust weights. Specifically, when localization performance is poor (high GIoU loss), the weights of classification and anomaly scoring losses are suppressed to focus the model on bounding box regression. As localization performance improves (low GIoU loss), other sub-tasks receive varying degrees of attention according to their respective difficulty levels, ultimately achieving balanced multi-task optimization. Additionally, LADTP updates weights with exponential moving average smoothing to ensure stable and robust training.

The main contributions are summarized below.

  • We formulate UEAP, a new fine-grained anomaly perception task for UGC image enhancement, and build UEAP-4k, the first benchmark dataset constructed from real-world short-video platforms. UEAP-4k contains paired pre-/post-enhancement images and unified annotations of localizing, classifying, and grading anomalies. Extensive experiments validating the value of this task and dataset.

  • Tailored for this new task, we propose the first framework DFAP-UGC, which explicitly fuses problem-reference difference cues and combines dense spatial queries, regional verification, and quality-aware ranking to reliably identify enhancement-induced local anomalies.

  • A Locality-Aware Dynamic Task Prioritization (LADTP) strategy is proposed to adaptively adjust sub-task weights based on localization quality and task difficulty, enabling balanced multi-task optimization during training.

References (49)