arXiv:2610.17459eess.ASOct 2026

Manuscript Offprint

arXiv:2610.17459

Co-Adaptive Entropy Modeling and Rate-Distortion-Optimal Bit Allocation for Perceptual Audio Coding

Soohyun Kim, Jiwon Jeong, Marina Bosi

Abstract

We present a perceptual audio coder in which the entropy-coding model and the bit allocation co-adapt across blocks without model side information. Mantissas are coded by a hybrid of bit packing and arithmetic coding with per-band probability models learned online. Encoder and decoder accumulate identical histograms from decoded blocks and advance the same model state. The model enters bit allocation directly: per-band rate–distortion frontiers combine measured perceptual distortion with entropy-coded rate estimates under the current model, and a dynamic program attains the exact minimum of total objective perceptual distortion for each block’s budget under the model’s rate estimates, with reservoir carry-over. Under a strict per-block rate, entropy-coding-aware bit allocation lowers this distortion (band noise-to-mask ratio in linear scale) by 15–24% relative to the same solver without it, and co-adaptation removes a further 3–4% (up to 15% on oboe) that a backward-adaptive coder alone cannot realize in one pass; a MUSHRA test at 80 kbps per channel confirms the ranking.

Introduction and Background

Perceptual coders shape quantization noise below the masked threshold of a psychoacoustic model and typically allocate a fixed or locally-variable bit budget across frequency bands [1, 2, 3, 4]. To improve the performance of such coders, we combine two research lines. The first is allocation: perceptually motivated bit allocation dates to [1, 5]—Voran’s allocations use a raw bits-times-lines rate model with no entropy coding—and discrete rate–distortion allocation with general rate models is classical [6, 7]. Closest to our solver layer, Aggarwal et al. [8] select MPEG Advanced Audio Coding (AAC) [9] scale factors and Huffman codebooks by a trellis search minimizing average or maximum noise-to-mask ratio (NMR), exact for each Lagrange multiplier, with rates taken from the static, standardized Huffman tables. Oger et al. set the quantizer step from a generalized-Gaussian spectrum model fitted at the encoder and

Preprint of a manuscript submitted to the 2027 Data Compression Conference (DCC 2027). This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

‡^{\ddagger}Soohyun Kim and Jiwon Jeong contributed equally to this work.

code the coefficients with an adaptive stack-run arithmetic coder, but the coder's adaptive state does not price the allocation [10].

The second line is adaptive entropy coding: Context-based Adaptive Binary Arithmetic Coding (CABAC) [11], MPEG Unified Speech and Audio Coding (USAC)'s context-adaptive arithmetic coder (CAAC) [12], which switches among fixed trained context tables, and time-frequency context arithmetic coding for G.719 [13] adapt per symbol from decoded context; in the audio coders among them, the adaptation state is not used to price allocation candidates. Malvar's run-length/Golomb-Rice coder and lapped-transform audio coder likewise adapt from previously decoded data without side information [14, 15], within the entropy layer only. Conversely, AC-3's "hybrid backward/forward adaptive" allocation runs the same core allocation in encoder and decoder from the decoded spectral envelope [16], but with no entropy coding in the loop. To our knowledge, no perceptual audio coder closes the loop between a backward-adaptive entropy model and a discrete rate-distortion-optimal bit-allocation stage: if the entropy model is learned online from decoded data, the bit-allocation stage can be made aware of the current coded cost of every candidate quantization choice—at zero side-information cost.

Our contribution is this closed loop: a decoder-synchronized entropy model is coupled to entropy-coding-aware perceptual bit allocation, so that the two co-adapt across blocks without transmitting model parameters. Concretely: (i) Entropy-coding-aware allocation. Per-band rate-distortion frontiers are built from measured quantization distortion (weighted by the masked threshold) and entropy-coded rate estimates under the current arithmetic model. (ii) Exact and approximate solvers. A trellis dynamic program (DP) attains the exact minimum of total objective perceptual distortion for each block's budget under the model's rate estimates; we compare it to a marginal-analysis solver in the style of the generalized Breiman-Friedman-Olshen-Stone (BFOS) algorithm [7] and a Lagrangian solver [6], exposing a quality-complexity trade-off. (iii) Causal co-adaptation. Encoder and decoder advance a shared per-(bit precision, band) histogram model from decoded mantissas; a control with the coder adapting but the allocation costs frozen isolates the allocation feedback. (iv) Validation. Objective distortion and CPU time on six standard excerpts at 64 and 80 kbps/channel, and a listening test in the style of Multiple Stimuli with Hidden Reference and Anchor (MUSHRA) [17] at 80 kbps/channel. Under a strict per-block rate, entropy-coding-aware bit allocation lowers total objective perceptual distortion by 15–24% relative to the same solver without it, and co-adaptation removes a further 3–4% (up to 15% on oboe) that a backward-adaptive coder alone cannot realize in one pass; with an unbounded reservoir the increments shrink to 1–3% and 0.3–0.5%, the complete system reaches 57–63% of conventional water-filling, and the listening test places the exact-DP conditions 22–25 MUSHRA points above water-filling, with a further 3.4 points for co-adaptation.

References (22)