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

Recoil:具有解码器自适应可扩展性的并行 rANS 解码

Recoil: Parallel rANS Decoding with Decoder-Adaptive Scalability

Fangzheng Lin, Kasidis Arunruangsirilert, Heming Sun, Jiro Katto

AI总结:

针对传统并行 rANS 解码中分区开销固定且不适用于内容分发的问题,提出 Recoil 方法,利用中间状态实现比特流任意位置解码,通过启发式分割和元数据存储自适应调整并行开销,在保持吞吐量的同时减少不必要数据传输。

摘要:

熵编码对于数据压缩、图像和视频编码等至关重要。非对称数字系统的范围变体是一种现代熵编码器,具有卓越的速度和压缩率。由于 rANS 并非为并行执行而设计,传统的并行 rANS 方法将输入符号序列分区,并使用独立的编解码器对分区进行编码,且更多的分区会带来额外开销。这种方法在 DietGPU 等最先进的实现中可见。它不适用于内容分发应用,因为如果解码器无法并行解码所有分区,并行性就会被浪费,但所有开销仍会被传输。为了解决这个问题,我们提出了 Recoil,一种具有解码器自适应可扩展性的并行 rANS 解码方法。我们发现,如果已知中间状态,单个 rANS 编码的比特流可以从任意位置开始解码。重新归一化后,这些状态的上界也更小,可以高效地存储。随后,我们使用启发式方法对编码比特流进行分割,以均匀分配工作负载,并将中间状态和相应的符号索引作为元数据存储。只需消除多余的元数据条目,即可合并这些分割部分。Recoil 的主要贡献在于,通过自适应地调整并行开销以匹配解码器能力,从而减少不必要的数据传输。实验表明,Recoil 的解码吞吐量与传统方法相当,在 CPU 和 GPU 上实现大规模扩展,并大幅优于各种其他基于 ANS 的编解码器。

英文摘要:

Entropy coding is essential to data compression, image and video coding, etc. The Range variant of Asymmetric Numeral Systems (rANS) is a modern entropy coder, featuring superior speed and compression rate. As rANS is not designed for parallel execution, the conventional approach to parallel rANS partitions the input symbol sequence and encodes partitions with independent codecs, and more partitions bring extra overhead. This approach is found in state-of-the-art implementations such as DietGPU. It is unsuitable for content-delivery applications, as the parallelism is wasted if the decoder cannot decode all the partitions in parallel, but all the overhead is still transferred. To solve this, we propose Recoil, a parallel rANS decoding approach with decoder-adaptive scalability. We discover that a single rANS-encoded bitstream can be decoded from any arbitrary position if the intermediate states are known. After renormalization, these states also have a smaller upper bound, which can be stored efficiently. We then split the encoded bitstream using a heuristic to evenly distribute the workload, and store the intermediate states and corresponding symbol indices as metadata. The splits can then be combined simply by eliminating extra metadata entries. The main contribution of Recoil is reducing unnecessary data transfer by adaptively scaling parallelism overhead to match the decoder capability. The experiments show that Recoil decoding throughput is comparable to the conventional approach, scaling massively on CPUs and GPUs and greatly outperforming various other ANS-based codecs.

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

↑