Scaling and Masking: A New Paradigm of Data Sampling for Image and Video Quality Assessment
Yongxu Liu, Yinghui Quan, Guoyao Xiao, Aobo Li, Jinjian Wu
TL;DR
The paper addresses the challenge of capturing both local details and global semantics in image and video quality assessment without increasing model complexity. It introduces Scaling and Masking (SAMA), a data-sampling paradigm that builds a multi-granularity pyramid, samples fragments from each scale, and applies a scale-aware mask to produce a fixed-size input for a single-branch transformer-based model. Across IQA and VQA benchmarks, SAMA significantly improves baseline single-branch methods and achieves competitive performance with multi-branch approaches, all with comparable computational cost. The work demonstrates that careful data sampling and masking can realize multi-scale perception with minimal architectural changes, and it explores variants of relative scale encoding with generally modest gains. This has practical impact for scalable, high-performance quality assessment in real-world, high-resolution content.
Abstract
Quality assessment of images and videos emphasizes both local details and global semantics, whereas general data sampling methods (e.g., resizing, cropping or grid-based fragment) fail to catch them simultaneously. To address the deficiency, current approaches have to adopt multi-branch models and take as input the multi-resolution data, which burdens the model complexity. In this work, instead of stacking up models, a more elegant data sampling method (named as SAMA, scaling and masking) is explored, which compacts both the local and global content in a regular input size. The basic idea is to scale the data into a pyramid first, and reduce the pyramid into a regular data dimension with a masking strategy. Benefiting from the spatial and temporal redundancy in images and videos, the processed data maintains the multi-scale characteristics with a regular input size, thus can be processed by a single-branch model. We verify the sampling method in image and video quality assessment. Experiments show that our sampling method can improve the performance of current single-branch models significantly, and achieves competitive performance to the multi-branch models without extra model complexity. The source code will be available at https://github.com/Sissuire/SAMA.
