English

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 MM; 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 O(r)\mathcal{O}(r), asymptotically optimal in rr, where rr is the number of positive-count symbols.

Keywords

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

R2 v1 2026-07-01T12:45:05.903Z