Understanding Entropy Coding With Asymmetric Numeral Systems (ANS): a Statistician's Perspective

01/05/2022
by   Robert Bamler, et al.
0

Entropy coding is the backbone data compression. Novel machine-learning based compression methods often use a new entropy coder called Asymmetric Numeral Systems (ANS) [Duda et al., 2015], which provides very close to optimal bitrates and simplifies [Townsend et al., 2019] advanced compression techniques such as bits-back coding. However, researchers with a background in machine learning often struggle to understand how ANS works, which prevents them from exploiting its full versatility. This paper is meant as an educational resource to make ANS more approachable by presenting it from a new perspective of latent variable models and the so-called bits-back trick. We guide the reader step by step to a complete implementation of ANS in the Python programming language, which we then generalize for more advanced use cases. We also present and empirically evaluate an open-source library of various entropy coders designed for both research and production use. Related teaching videos and problem sets are available online.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/16/2019

Bit-Swap: Recursive Bits-Back Coding for Lossless Compression with Hierarchical Latent Variables

The bits-back argument suggests that latent variable models can be turne...
research
02/14/2022

An Introduction to Neural Data Compression

Neural compression is the application of neural networks and other machi...
research
08/16/2011

A Machine Learning Perspective on Predictive Coding with PAQ

PAQ8 is an open source lossless data compression algorithm that currentl...
research
01/24/2020

A tutorial on the range variant of asymmetric numeral systems

This paper is intended to be an accessible introduction to the range var...
research
10/02/2020

Compressing Images by Encoding Their Latent Representations with Relative Entropy Coding

Variational Autoencoders (VAEs) have seen widespread use in learned imag...
research
01/07/2022

The Efficiency of the ANS Entropy Encoding

The Asymmetric Numeral Systems (ANS) is a class of entropy encoders by D...
research
05/08/2023

Reviewed of the compression limit of an individual sequence using the Set Shaping Theory

Abstract: In this article, we will analyze in detail the coding limit of...

Please sign up or login with your details

Forgot password? Click here to reset