Fast and Exact: Asymptotically Linear KL-Optimal Frequency Normalization
Information Theory
2026-05-04 v1 math.IT
Abstract
Range coders and ANS replace empirical probabilities with integer frequencies summing to a fixed ; the resulting per-symbol code-length redundancy is exactly the KL divergence of the empirical distribution from the quantized one. Existing normalizers (Giesen, Bloom, Collet) are heuristic or only partially marginal-optimal. We give three provably KL-optimal algorithms: a bottom-up archetype, a bidirectional exchange repair of Bloom's heap correction, and a top-down window method that runs in , asymptotically optimal in , where is the number of positive-count symbols.
Cite
@article{arxiv.2605.00579,
title = {Fast and Exact: Asymptotically Linear KL-Optimal Frequency Normalization},
author = {Kamila Szewczyk},
journal= {arXiv preprint arXiv:2605.00579},
year = {2026}
}
Comments
12 pages