Introduction
In neural image compression, Region of Interest (ROI) coding aims to prioritize visual quality in critical areas (e.g., foreground objects) while reducing the bitrate for less important background regions. Traditional deep learning-based ROI methods often rely on explicit bit allocation, where a hard binary mask is used to suppress background features before quantization. However, this approach disrupts the statistical distribution of latent features, making them difficult for entropy models to estimate accurately. This paper proposes a shift toward implicit bit allocation, utilizing soft attention and a dual-decoder architecture to maintain data integrity while optimizing compression.
Methodology: Implicit Bit Allocation
The core innovation lies in guiding the network's bit budget without destructive hard-masking. The proposed framework replaces binary filters with a more nuanced approach that preserves background context while prioritizing the ROI.
Mask-Guided Feature Enhancement (MGFE)
The MGFE module integrates ROI information through two primary mechanisms:
- Region-Adaptive Attention (RAA): Transforms binary masks into differentiable "soft" attention maps. This allows the encoder to prioritize ROI features while keeping background features intact but less emphasized.
- Frequency-Spatial Collaborative Attention (FSCA): Combines Fast Fourier Transforms (FFT) for global structure capture with standard convolutions for local detail refinement.
Dual-Decoder Architecture
To balance foreground fidelity with background context, the system employs a dual-decoder setup. One decoder is dedicated to high-fidelity Foreground (FG) reconstruction, while the other focuses on the Background (BG). Their outputs are fused at the final stage, allowing the network to learn an optimal, data-driven balance between subject enhancement and contextual preservation.
Statistical Preservation and Entropy Coding
A significant advantage of implicit allocation is its impact on entropy modeling. Entropy models perform most efficiently when data follows a smooth Gaussian distribution. Hard-masking in explicit methods creates "unnatural" feature maps with spikes at zero, confusing the bitrate estimation process.
By using soft attention, the latent features in the proposed method maintain a distribution much closer to a Gaussian curve, achieving a Pearson Correlation Coefficient of 0.959 (compared to 0.899 for explicit methods). This statistical preservation directly translates to more efficient arithmetic coding and lower bitrates.
Key Results and Discussion
The model was evaluated on the COCO2017 dataset against standard codecs like VVC (VTM 12.1) and BPG.
- Compression Efficiency: The proposed method achieved an average 84.67% BD-rate reduction compared to the VVC anchor, significantly outperforming explicit ROI methods which managed a 66.80% reduction.
- Visual Quality: The model maintains high ROI-PSNR while ensuring backgrounds look natural and visually acceptable, avoiding the "blurry background" syndrome common in ROI compression.
- Machine Vision Performance: Compressed images from this framework yielded a ~7.3% to 7.5% improvement in mAP for object detection (YOLOv11) and instance segmentation compared to VVC-compressed images at similar bitrates. This suggests the compression acts as a "semantic filter," sharpening relevant features while removing distracting high-frequency noise.
Conclusion
By moving from explicit hard-masking to implicit soft-attention-based bit allocation, this work demonstrates that preserving the statistical properties of latent features is key to efficient ROI compression. The dual-decoder architecture further ensures that while the foreground is prioritized, the background remains visually coherent, providing a superior solution for both human and machine vision tasks.
Summary updated