Deep-learning-based compressor has received interests recently due to much improved compression ratio. However, modern approaches suffer from long execution time. To ease this problem, this paper targets on cutting down the execution time of deep-learning-based compressors. Building history-dependencies sequentially (e.g., recurrent neural networks) is responsible for long inference latency. Instead, we introduce transformer into deep learning compressors to build history-dependencies in parallel. However, existing transformer is too heavy in computation and incompatible to compression tasks.
This paper proposes a fast general-purpose lossless compressor, TRACE, by designing a compression-friendly structure based on a single-layer transformer. We first design a new metric to advise the selection part of compression model structures. Byte-grouping and Shared-ffn schemes are further proposed to fully utilize the capacity of the single-layer transformer. These features allow TRACE to achieve competitive compression ratio and a much faster speed. In addition, we further accelerate the compression procedure by designing a controller to reduce the parameter updating overhead. Experiments show that TRACE achieves an overall $\sim$3x speedup while keeps a comparable compression ratio to the state-of-the-art compressors. The source code for TRACE and links to the datasets are available at https://github.com/mynotwo/A-Fast-Transformer-based-General-Purpose-LosslessCompressor.
Low-Resource Crop Classification from Multi-Spectral Time Series Using Lossless Compressors
College of Information and Electrical Engineering, China Agricultural University(中国农业大学信息与电气工程学院);College of Science, China Agriculture University(中国农业大学理学院)
ENEC: A Lossless AI Model Compression Method Enabling Fast Inference on Ascend NPUs
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Huawei Technologies Co., Ltd.(华为技术有限公司)
UNComp: Can Matrix Entropy Uncover Sparsity? -- A Compressor Design from an Uncertainty-Aware Perspective
The University of Hong Kong(香港大学);Nanjing University(南京大学);University College London(伦敦大学学院);The Ohio State University(俄亥俄州立大学);Microsoft Research Asia(微软亚洲研究院);The Chinese University of Hong Kong(香港中文大学);SIAT, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
End-to-End Image Compression with Segmentation Guided Dual Coding for Wind Turbines
Wind Power LAB(风电实验室);Institut de Robòtica i Informàtica Industrial, CSIC-UPC(工业机器人研究所,西班牙国家研究委员会-加泰罗尼亚理工大学);Department of Photonics Engineering, Technical University of Denmark (DTU)(丹麦技术大学光子工程系)
DeepCQ: General-Purpose Deep-Surrogate Framework for Lossy Compression Quality Prediction
University of North Carolina at Charlotte(北卡罗来纳州立大学);Argonne National Laboratory(阿贡国家实验室);University of Delaware(德雷塞尔大学);Lawrence Berkeley National Laboratory(伯克利国家实验室)