paper-with-me

Papers

A Fast Transformer-based General-Purpose Lossless Compressor

2022-03-30 · Yu Mao, Yufei Cui, Tei-Wei Kuo, Chun Jason Xue

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.

📄 PDF Abstract BibTeX arXiv:2203.16114

Code (1)

mynotwo/a-fast-transformer-based-general-purpose-losslesscompressor 공식 구현 pytorch

Tasks

Deep Learning

Similar Papers 제목 키워드 기반

DZip: improved general-purpose lossless compression based on novel neural network modeling

2019-11-08 · Mohit Goyal, Kedar Tatwawadi, Shubham Chandak, Idoia Ochoa

We consider lossless compression based on statistical data modeling followed by prediction-based encoding, where an accurate statistical model for the input data leads to substantial improvements in compression. We propo…

LLM-based Source Code Compression via Thresholded Symbol Ranking

2026-07-27 · Angelo Nardone, Paolo Ferragina arxiv

We study the problem of lossless compression of source code, motivated by the storage demands of large-scale software archives, such as Software Heritage (https://www.softwareheritage.org/). General-purpose compressors (…

Lossless Tensor Compression as Program Synthesis

2026-08-03 · Jieke Shi, Junda He, Wenjia Jiang, Weifeng Sun 외 hf

Model checkpoints are growing in both number and size, which makes archival, transfer, and deployment increasingly costly. General-purpose compressors can reduce storage requirements but ignore tensor structure, whereas …

Program SynthesisImage Generation

Lossless Compression of Large Language Model-Generated Text via Next-Token Prediction

2025-05-07 · Yu Mao, Holger Pirk, Chun Jason Xue

As large language models (LLMs) continue to be deployed and utilized across domains, the volume of LLM-generated data is growing rapidly. This trend highlights the increasing importance of effective and lossless compress…

Language ModelingLanguage ModellingLarge Language ModelText Compression

Large Language Models for Lossless Image Compression: Next-Pixel Prediction in Language Space is All You Need

2024-11-19 · Kecheng Chen, Pingping Zhang, Hui Liu, Jie Liu 외

We have recently witnessed that ``Intelligence" and `` Compression" are the two sides of the same coin, where the language large model (LLM) with unprecedented intelligence is a general-purpose lossless compressor for va…

AllAttributeImage Compression