Easz: An Agile Transformer-based Image Compression Framework for Resource-constrained IoTs

Yu Mao, Jingzong Li, Jun Wang, Hong Xu, Tei-Wei Kuo, Nan Guan, Chun Jason Xue · DOI

Abstract

Edge devices such as wildlife cameras and industrial drones generate massive amounts of high-resolution image data, yet transmitting this data over limited bandwidth remains a significant challenge. While Neural Network (NN) based compressors offer superior quality over traditional codecs, their high computational demands make them impractical for resource-constrained IoT hardware. We present Easz, a highly asymmetric, Transformer-based compression framework. By offloading heavy reconstruction to the server and employing a lightweight "erase-and-squeeze" technique at the edge, Easz achieves state-of-the-art quality with drastically reduced power consumption and latency.

Introduction

Current NN-based image compressors are typically symmetric, requiring substantial computation on both the sender and receiver sides. For instance, encoding a single image on an NVIDIA Jetson TX2 can exceed 10 seconds. Moreover, these models are often inflexible; changing compression levels requires swapping entire models, which introduces significant latency. Easz addresses these bottlenecks by shifting the complexity of neural encoding away from the edge.

Methodology: The Erase-and-Squeeze Approach

Easz solves the edge-compute bottleneck by splitting the workload asymmetrically between the edge device and the server.

Overview of the Easz framework, illustrating the asymmetric edge-server split and the erase-and-squeeze process.

Edge-Side: Erase-and-Squeeze

Instead of a heavy neural encoder, the edge device utilizes a lightweight "row-based conditional sampler." This algorithm generates a binary mask to selectively erase sub-patches of the image. The remaining patches are "squeezed" into a smaller footprint, compressed using standard codecs (e.g., JPEG or BPG), and transmitted. This structured erasing ensures that enough local context remains for the server to reconstruct the missing data. Furthermore, Easz allows for dynamic adjustment of bitrates on the fly; since the compression ratio is determined by the erase mask, the system can adapt to bandwidth changes without reloading model weights.

Server-Side: Reconstruction

The server decompresses the squeezed image and employs an ultra-lightweight (8.7MB) Transformer model to pad erased areas and predict missing pixels. To manage the $O(N^2)$ complexity of standard Vision Transformers, Easz uses a Two-Stage Patchify method. Attention is calculated only within local boundaries, reducing complexity from $O((hw)^2)$ to $O(hwn^2)$.

Experimental Evaluation

The model was pretrained on CIFAR-10 and evaluated using the Kodak and CLIC datasets.

Key Results

  • Efficiency: On an NVIDIA Jetson TX2, Easz reduces total power consumption by up to 71.3% compared to baseline NN methods. The edge-side process accounts for only 0.7% of total end-to-end latency.
  • Latency: Easz achieves an 89% reduction in end-to-end latency compared to state-of-the-art NN compressors like MBT and Cheng-Anchor.
  • Quality: Despite its small size, the 8.7MB Easz model outperforms massive 67MB Super-Resolution models. On the Kodak dataset, Easz achieved a PSNR of 28.96, significantly higher than SwinIR's 24.86.

Conclusion

Easz demonstrates that extreme asymmetry is the key to enabling advanced AI on wimpy edge devices. By combining structured erasing with powerful server-side reconstruction, Easz provides a flexible, high-quality compression solution that bypasses the traditional compute and battery constraints of IoT hardware. Future work will focus on optimizing server-side latency through hardware acceleration.

Summary updated

BibTeX
@inproceedings{mao2025easz,
  author = {Yu Mao and Jingzong Li and Jun Wang and Hong Xu and Tei-Wei Kuo and Nan Guan and Chun Jason Xue},
  title = {{Easz: An Agile Transformer-based Image Compression Framework for Resource-constrained IoTs}},
  booktitle = {DAC},
  year = {2025},
  url = {https://openreview.net/forum?id=VeG0gxafXQ},
}
Figure