mlsanityData to 7 Oct 2026

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

arXiv 2201.01741 ↗First posted 5 Jan 2022stat.ML cs.IT cs.LGcited by 10

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 10 of its 27 references that are in the map. First posted on arXiv 5 Jan 2022.

Builds on

10 of 27 references.

References · 10

  1. 2018Variational image compression with a scale hyperpriorcited by 910
  2. 2016End-to-end Optimized Image Compressioncited by 673
  3. 2018Joint Autoregressive and Hierarchical Priors for Learned Image Compressioncited by 642
  4. 2016Full Resolution Image Compression with Recurrent Neural Networkscited by 170
  5. 2019Practical Lossless Compression with Latent Variables using Bits Back Codingcited by 85
  6. 2020Improving Inference for Neural Image Compressioncited by 81
  7. 2017Dynamic Word Embeddingscited by 51
  8. 2019Bit-Swap: Recursive Bits-Back Coding for Lossless Compression with Hierarchical Latent Variablescited by 51
  9. 2020Hierarchical Autoregressive Modeling for Neural Video Compressioncited by 28
  10. 2021Insights from Generative Modeling for Neural Video Compressioncited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 2; 2024: 3; 2025: 2; 2026: 2.

10 papers.