The Equalizer: Introducing Shape-Gain Decomposition in Neural Audio Codecs
Samir Sadok, Laurent Girin, Xavier Alameda-Pineda
TL;DR
The Equalizer addresses the sensitivity of neural audio codecs to global input level by enforcing a frame-wise shape–gain decomposition prior to encoding and a corresponding deequalization after decoding. By normalizing each short-term frame to a fixed energy, the NAC processes only the normalized shape, while a separate mu-law scalar quantizer handles the frame gain, reducing codebook redundancy and enabling more efficient rate-distortion performance. Experimental results on 16 kHz speech (LibriSpeech data) show that the Equalizer achieves gain-invariant reconstruction with substantially better PESQ, STOI, and SI-SDR across bitrates, often matching or exceeding the baseline at higher bitrates while using far smaller codebooks, and even achieving large bitrate reductions with modest quality loss. The approach is modular and can be applied to any NAC, offering improved robustness to input variability, better interpretability, and potential complexity reductions in practical deployments.
Abstract
Neural audio codecs (NACs) typically encode the short-term energy (gain) and normalized structure (shape) of speech/audio signals jointly within the same latent space. As a result, they are poorly robust to a global variation of the input signal level in the sense that such variation has strong influence on the embedding vectors at the output of the encoder and their quantization. This methodology is inherently inefficient, leading to codebook redundancy and suboptimal bitrate-distortion performance. To address these limitations, we propose to introduce shape-gain decomposition, widely used in classical speech/audio coding, into the NAC framework. The principle of the proposed Equalizer methodology is to decompose the input signal -- before the NAC encoder -- into gain and normalized shape vector on a short-term basis. The shape vector is processed by the NAC, while the gain is quantized with scalar quantization and transmitted separately. The output (decoded) signal is reconstructed from the normalized output of the NAC and the quantized gain. Our experiments conducted on speech signals show that this general methodology, easily applicable to any NAC, enables a substantial gain in bitrate-distortion performance, as well as a massive reduction in complexity.
