arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1311.2540cs.ITmath.IT
收藏

非对称数字系统:结合霍夫曼编码速度和算术编码压缩率的熵编码

Asymmetric numeral systems: entropy coding combining speed of Huffman coding with compression rate of arithmetic coding

Jarek Duda

摘要:

现代数据压缩主要基于两种熵编码方法:霍夫曼编码(HC)和算术/距离编码(AC)。前者要快得多,但近似概率为2的幂,通常导致相对较低的压缩率。后者使用几乎精确的概率-很容易接近理论压缩率极限(香农熵),但代价是更大的计算成本。非对称数字系统(ANS)是一种精确熵编码的新方法,它允许结束速度和速率之间的这种权衡:最近的实现[1]提供了比256大小字母表的HC快大约$50\%$的解码,压缩率类似于AC提供的压缩率。这个优点是由于比AC更简单:使用单个自然数作为状态,而不是两个来表示范围。除了简化重正化,它还允许将给定概率分布的整个行为放入一个相对较小的表中:定义熵编码自动机。对于256大小的字母表,这样的表的存储器成本是几个字节。在选择特定表时有很大的自由度-为此目的使用用加密密钥初始化的伪随机数生成器允许同时加密数据。本文还介绍和讨论了这种新的熵编码方法的许多其他变体,这些变体可以为标准AC、大字母范围编码或近似的准算术编码提供直接的替代方案。

英文摘要:

The modern data compression is mainly based on two approaches to entropy coding: Huffman (HC) and arithmetic/range coding (AC). The former is much faster, but approximates probabilities with powers of 2, usually leading to relatively low compression rates. The latter uses nearly exact probabilities - easily approaching theoretical compression rate limit (Shannon entropy), but at cost of much larger computational cost. Asymmetric numeral systems (ANS) is a new approach to accurate entropy coding, which allows to end this trade-off between speed and rate: the recent implementation [1] provides about $50\%$ faster decoding than HC for 256 size alphabet, with compression rate similar to provided by AC. This advantage is due to being simpler than AC: using single natural number as the state, instead of two to represent a range. Beside simplifying renormalization, it allows to put the entire behavior for given probability distribution into a relatively small table: defining entropy coding automaton. The memory cost of such table for 256 size alphabet is a few kilobytes. There is a large freedom while choosing a specific table - using pseudorandom number generator initialized with cryptographic key for this purpose allows to simultaneously encrypt the data. This article also introduces and discusses many other variants of this new entropy coding approach, which can provide direct alternatives for standard AC, for large alphabet range coding, or for approximated quasi arithmetic coding.

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

↑