← 研踪 PaperTrailarXiv:2201.02514 · v4
Efficiency of ANS Entropy Encoders
首次提交 2022-01-07 23:56
版本更新 2026-11-18 05:09
雷达观测 2026-11-19 19:08
摘要
Asymmetric Numeral Systems (ANS) is a class of entropy encoders that had an immense impact on the data compression, substituting arithmetic and Huffman coding. It was studied by different authors but the precise asymptotics of its redundancy (in relation to the entropy) was not completely understood. We obtain optimal bounds for the redundancy of the tabled ANS (tANS), the most popular ANS variant. Given a sequence of symbols from an alphabet such that each symbol occurs in it times and , the tANS encoder using Duda's ``precise initialization'' to fill tANS tables transforms this sequence into a bit string of the following length (the frequencies are not included in the encoding): , where can be bounded by . The -bit term is an artifact indispensable to ANS; the rest incurs a redundancy of bits per symbol. We complement this by examples showing that an redundancy is necessary. We argue that similar examples exist for most adequate initialization methods for tANS. Thus, we refute Duda's conjecture that the redundancy is bits per symbol. We also propose a variant of the range ANS (rANS), called rANS with fixed accuracy, parameterized by that in certain conditions might be faster than the standard rANS because it avoids slow explicit division operations. We bound the redundancy for our rANS variant by .
作者备注:27 pages, 5 figures, 1 table, 2 listings
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v4 · 2026-11-18 05:09 · 最新观测版本
Efficiency of ANS Entropy Encoders
Asymmetric Numeral Systems (ANS) is a class of entropy encoders that had an immense impact on the data compression, substituting arithmetic and Huffman coding. It was studied by different authors but the precise asymptotics of its redundancy (in relation to the entropy) was not completely understood. We obtain optimal bounds for the redundancy of the tabled ANS (tANS), the most popular ANS variant. Given a sequence of symbols from an alphabet such that each symbol occurs in it times and , the tANS encoder using Duda's ``precise initialization'' to fill tANS tables transforms this sequence into a bit string of the following length (the frequencies are not included in the encoding): , where can be bounded by . The -bit term is an artifact indispensable to ANS; the rest incurs a redundancy of bits per symbol. We complement this by examples showing that an redundancy is necessary. We argue that similar examples exist for most adequate initialization methods for tANS. Thus, we refute Duda's conjecture that the redundancy is bits per symbol. We also propose a variant of the range ANS (rANS), called rANS with fixed accuracy, parameterized by that in certain conditions might be faster than the standard rANS because it avoids slow explicit division operations. We bound the redundancy for our rANS variant by .
查看此版本解读 →查看此版本原文 ↗