arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2203.16114cs.LGcs.ITmath.IT
收藏

基于快速Transformer的通用无损压缩器

A Fast Transformer-based General-Purpose Lossless Compressor

City University of Hong Kong(香港城市大学);National Taiwan University(台湾大学)

Yu Mao, Yufei Cui, Tei-Wei Kuo, Chun Jason Xue

摘要:

基于深度学习的压缩机由于压缩比的大幅提高而受到关注。然而,现代方法遭受长的执行时间。为了解决这个问题,本文的目标是减少基于深度学习的压缩器的执行时间。顺序地构建历史依赖性(例如,递归神经网络)负责长的推理延迟。相反,我们将Transformer引入深度学习压缩器,以并行构建历史依赖关系。然而,现有的Transformer计算量太大,与压缩任务不兼容。提出了一种基于单层Transformer的快速通用无损压缩器TRACE。首先,我们设计了一个新的度量建议压缩模型结构的选择部分。为了充分利用单层Transformer的容量,进一步提出了字节分组和Shared-ffn方案。这些功能使TRACE能够实现具有竞争力的压缩比和更快的速度。此外,我们进一步加快压缩过程中,通过设计一个控制器,以减少参数更新的开销。实验表明,TRACE实现了整体$\sim$ 3倍的加速,同时保持了与最先进的压缩机相当的压缩比。TRACE的源代码和数据集的链接可在https://github.com/mynotwo/A-Fast-Transformer-based-General-Purpose-LosslessCompressor上获得。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑