End-to-End Compression Towards Machine Vision: Network Architecture Design and Optimization

Shurun Wang, Zhao Wang, Shiqi Wang, Yan Ye

Abstract

The visual signal compression is a long-standing problem. Fueled by the recent advances of deep learning, exciting progress has been made. Despite better compression performance, existing end-to-end compression algorithms are still designed towards better signal quality in terms of rate-distortion optimization. In this paper, we show that the design and optimization of network architecture could be further improved for compression towards machine vision. We propose an inverted bottleneck structure for the encoder of the end-to-end compression towards machine vision, which specifically accounts for efficient representation of the semantic information. Moreover, we quest the capability of optimization by incorporating the analytics accuracy into the optimization process, and the optimality is further explored with generalized rate-accuracy optimization in an iterative manner. We use object detection as a showcase for end-to-end compression towards machine vision, and extensive experiments show that the proposed scheme achieves significant BD-rate savings in terms of analysis performance. Moreover, the promise of the scheme is also demonstrated with strong generalization capability towards other machine vision tasks, due to the enabling of signal-level reconstruction.

Introduction

Traditional image and video compression standards, ranging from JPEG to the recent Versatile Video Coding (VVC), have been primarily optimized for human perception. These standards utilize Rate-Distortion Optimization (RDO) to minimize pixel-level differences between original and reconstructed signals, often discarding information deemed imperceptible to the human eye. However, with the rise of autonomous systems and smart cities, visual data is increasingly consumed by machine vision algorithms rather than humans. This shift necessitates a fundamental redesign of compression frameworks to prioritize semantic information over purely visual fidelity.

Proposed Methodology

The proposed framework introduces two primary innovations within a variational hyper-prior compression architecture: the Inverted Bottleneck Encoder and Generalized Rate-Accuracy Optimization (GRAO).

Network Architecture

The core of the system is an "inverted bottleneck" encoder. Unlike traditional architectures that reduce channel counts as depth increases, this design increases the number of channels in the intermediate stages. This allows the network to capture a diverse array of high-level semantic features before compressing them into a compact representation for transmission.

The proposed end-to-end compression architecture featuring the inverted bottleneck encoder and the integrated optimization loop for machine vision tasks.

Optimization Strategy

The optimization process moves beyond standard Mean Squared Error (MSE). The authors introduce a task-specific loss ($L_{task}$) into the objective function, creating a Generalized Rate-Accuracy Optimization (GRAO) framework. The total loss is defined as a balance of bit-rate ($R$), reconstruction fidelity ($L_{mse}$), and task accuracy ($L_{task}$).

To find the optimal balance between these terms, an iterative off-line search algorithm is employed to determine the weighting factors across various bit-rates, ensuring the model remains optimized for analysis performance.

Experimental Results

The framework was evaluated using the COCO 2017 dataset, with Faster R-CNN and Mask R-CNN serving as the downstream machine vision tasks.

Performance and Efficiency

The proposed scheme achieved a 9.06% BD-rate saving compared to the VVC standard for object detection. Furthermore, the inverted bottleneck design proved highly efficient, reducing encoder parameters by 48.23% and cutting encoding time by 35.35% compared to baseline models with uniform channel distribution.

Semantic Feature Extraction

Analysis of the internal feature maps reveals how the architecture prioritizes semantic content. By increasing channel capacity in the early stages, the model effectively extracts structural and semantic information necessary for machine tasks while pruning redundancy in the final layers. Visualizations demonstrate that the proposed method preserves the edges and structures of objects critical for machine vision tasks, even at low bit-rates.

Visualization of feature maps extracted from the original image, demonstrating the capture of diverse semantic and structural information.

Conclusion

This work demonstrates that end-to-end compression can be significantly improved for machine vision by redesigning the encoder architecture and optimization objectives. The proposed inverted bottleneck structure and iterative GRAO strategy provide a robust path forward for efficient Machine-to-Machine communication, maintaining high task accuracy while preserving the ability to reconstruct human-interpretable images.

Summary updated

BibTeX
@article{wang2021end,
  author = {Shurun Wang and Zhao Wang and Shiqi Wang and Yan Ye},
  title = {{End-to-End Compression Towards Machine Vision: Network Architecture Design and Optimization}},
  journal = {IEEE Open J. Circuits Syst.},
  year = {2021},
  url = {https://openreview.net/forum?id=NbJYYltXLc},
}
Figure