[Paper Review] End-to-end optimized image compression for multiple machine tasks
This paper proposes 'Connectors'—lightweight, task-independent neural modules inserted between a rate-optimized image decoder and downstream machine vision models—to enable a single, end-to-end optimized codec (for object detection) to achieve superior performance on multiple secondary tasks like image classification and semantic segmentation. By transforming features from a detection-optimized codec, Connectors achieve up to 8.75% higher top-5 accuracy on ImageNet-1K and 4.6% higher mAP on COCO, without retraining the codec or secondary models beyond fine-tuning.
An increasing share of captured images and videos are transmitted for storage and remote analysis by computer vision algorithms, rather than to be viewed by humans. Contrary to traditional standard codecs with engineered tools, neural network based codecs can be trained end-to-end to optimally compress images with respect to a target rate and any given differentiable performance metric. Although it is possible to train such compression tools to achieve better rate-accuracy performance for a particular computer vision task, it could be practical and relevant to re-use the compressed bit-stream for multiple machine tasks. For this purpose, we introduce 'Connectors' that are inserted between the decoder and the task algorithms to enable a direct transformation of the compressed content, which was previously optimized for a specific task, to multiple other machine tasks. We demonstrate the effectiveness of the proposed method by achieving significant rate-accuracy performance improvement for both image classification and object segmentation, using the same bit-stream, originally optimized for object detection.
Motivation & Objective
- To address the inefficiency of using rate-distortion optimized codecs for multiple machine vision tasks.
- To enable reuse of a single, end-to-end optimized codec—trained for one primary task (e.g., object detection)—across multiple downstream tasks (e.g., classification, segmentation).
- To develop a lightweight, task-agnostic adaptation mechanism that transforms features from a primary-task-optimized decoder for secondary tasks without retraining the codec.
- To demonstrate that feature richness from end-to-end optimization on complex datasets (e.g., COCO) generalizes effectively to diverse vision tasks when combined with simple, trainable connectors.
Proposed method
- Train a neural image codec end-to-end for object detection using a loss function that balances rate and detection accuracy (mAP), rather than PSNR.
- Use a pre-trained, rate-detection-optimized codec (based on scale hyperpriors) to compress images, producing features optimized for detection but visually distorted.
- Introduce 'Connectors'—small, trainable neural modules (e.g., 1x1 conv, depthwise conv, average pooling) inserted between the decoder and secondary task models to transform the feature representation.
- Train Connectors in a one-time, task-independent manner to map features from the detection-optimized codec to better representations for secondary tasks like classification and segmentation.
- Fine-tune off-the-shelf classification and segmentation models on features from the detection-optimized codec, using Connectors to improve feature compatibility.
- Evaluate performance on ImageNet-1K (classification), COCO-2017 (object detection), and Cityscapes (semantic segmentation), comparing to baseline rate-distortion and rate-accuracy-distortion codecs.
Experimental results
Research questions
- RQ1Can a single image codec optimized for one machine vision task (e.g., object detection) be effectively reused for multiple other downstream tasks (e.g., classification, segmentation) without re-encoding or retraining the codec?
- RQ2How effective are lightweight, task-agnostic Connectors in transforming features from a detection-optimized codec to improve performance on unrelated vision tasks?
- RQ3Does end-to-end optimization of a codec for detection preserve or enhance features useful for other vision tasks, even when visual fidelity is sacrificed?
- RQ4To what extent do fine-tuning strategies on detection-optimized features improve accuracy on secondary tasks compared to standard rate-distortion optimized codecs?
- RQ5How does the performance of Connectors compare to direct inference on raw, detection-optimized features across multiple datasets and tasks?
Key findings
- The proposed Connectors achieve a 4.6% relative improvement in mAP on COCO-2017 object detection when using a codec optimized for detection, compared to a baseline rate-distortion codec.
- On ImageNet-1K, the Connectors boost top-5 classification accuracy by 8.75% (from 66.43% to 75.18%) at a bit rate of 0.2203 BPP, demonstrating strong generalization.
- Even without fine-tuning, the detection-optimized codec with Connectors outperforms rate-distortion-optimized codecs in secondary task accuracy, indicating preserved feature utility.
- The average pooling and 2D depth-wise convolution Connectors significantly improve feature compatibility, with the latter achieving higher accuracy gains than simple average pooling.
- At low bitrates (e.g., 0.1119 BPP), Connectors increase PSNR from 17.36 dB (J-FT) to 21.14 dB (J-FT + Conv), showing that feature transformation enhances reconstruction quality for secondary tasks.
- Fine-tuning a ResNet-50 classifier on detection-optimized features with Connectors yields higher top-1 and top-5 accuracy than fine-tuning on standard rate-distortion optimized images, confirming the value of the feature space.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.