Introduction
Traditional image compression algorithms typically treat all pixels with uniform importance. This approach is often inefficient, as human viewers or downstream machine vision tasks frequently prioritize specific regions of an image. While Region of Interest (ROI) compression addresses this by allocating more bits to critical areas, existing methods are often rigid. They rely on pre-defined ROIs (like faces or salient objects) that cannot be adjusted post-training and lack granular control over background quality.
This paper introduces a novel paradigm for customizable ROI-based deep image compression. By allowing users to define ROIs using natural language text (e.g., "house," "person"), the system provides a dynamic and user-centric approach to bit allocation.
Proposed Methodology
The framework is divided into two primary phases: mask representation/fusion and ROI-based compression.
1. Text-controlled Mask Acquisition (TMA)
The TMA module bridges natural language and pixel-level importance. Utilizing a CLIP-based variant (Lseg), it generates a similarity map between a user-provided text prompt and the image pixels. This allows for "zero-shot" ROI definition without retraining the model for specific object categories.
2. Latent Mask Attention (LMA)
Instead of applying a coarse mask directly to the pixel space, the LMA module extracts a spatial prior from the mask and a Rate-Distortion Optimization (RDO) prior from image features. These are fused into an attention map that guides the encoder's latent representation. This ensures that bit allocation is optimized within the feature space, leading to sharper boundaries and better preservation of semantic details.
3. Customizable Value Assign (CVA)
To provide precise control, the authors introduce a quality trade-off factor, $\sigma$. The ROI is assigned a value of 1, while the background (non-ROI) is assigned a value between 0 and 1. This parameter is integrated into a Weighted Distortion Loss, enabling users to "dial in" the desired background quality.
Experimental Evaluation
The model was trained on the Flicker 2W dataset and fine-tuned using COCO category annotations. Evaluation was performed on standard benchmarks including Kodak to test zero-shot capabilities.
Key Results
- Visual Quality: The method achieves superior ROI-PSNR compared to existing state-of-the-art ROI compression techniques. Qualitative results demonstrate that adjusting $\sigma$ allows for a smooth transition in background clarity while maintaining high fidelity in the ROI.
- Machine Vision: On the COCO dataset, images compressed with this method maintained significantly higher mean Average Precision (mAP) for object detection and instance segmentation tasks. At approximately 0.48 BPP, detection accuracy remained nearly on par with uncompressed source images.
Discussion and Future Work
The shift toward semantic-importance-driven compression leverages the broad world knowledge of models like CLIP, making the system highly versatile. However, the added complexity of latent attention and CLIP-based modules increases computational overhead. Furthermore, the system's performance is dependent on the accuracy of the initial text-to-mask segmentation.
Future research may explore extending this paradigm to video compression, focusing on temporal consistency of text-defined ROIs, and optimizing the architecture for real-time deployment on mobile devices.
Summary updated