Quantizer Redundancy and Exact Index Recoding in a Frozen Neural Audio Codec
Organizations: St. Thomas University, Miami Gardens, Florida, USA
Abstract
Residual scalar quantization can produce highly dependent indices when successive stages reuse identical, unscaled grids. This case study examines that behavior in a frozen neural audio codec and develops an exact recoding procedure that reduces storage while preserving its decoder inputs. Analysis of the repeated-grid recurrence identifies predictable stage sequences; finite-precision checks motivate preserving every original index through explicit exception records. The model weights and reconstruction graph remain fixed. On the studied 62- and 512-file cohorts, a predictor, adaptive coding and explicit file selection reduce complete stored bytes. The final 512-file rate is 129.591 kbps including headers, 25.943% below an original-index XZ control. Original recorded CPU runs establish bitwise latent and waveform preservation; independent readers verify exact index and metadata recovery in subsequent saved-stream experiments. Later coding choices use previously studied cohorts, and fresh encoding requires generating three alternatives. The engineering result is implementation-specific storage reduction with exact index recovery; the underlying lossy reconstruction quality remains unchanged.
Figures & tables
| 4 | 4 | 256 | 31 | 7 |
| 5 | 4 | 625 | 17 | 5 |
| 8 | 4 | 4096 | 105 | 15 |
| 5 | 6 | 15625 | 25 | 5 |
| 8 | 6 | 262144 | 211 | 15 |
| Preserved object | Evidence |
|---|---|
| Indices and decoder metadata | Original versus unpacked values; independent saved-stream readers, including later formats. |
| Latent bit patterns | Forward versus code-decoded, and original-code versus unpacked-code decoding, in the original CPU runs. |
| Waveform bit patterns | The same two comparisons in the original CPU runs. |
| Representation | 62 files | 512 files |
|---|---|---|
| Rate (kbps) | ||
| Original | 915.523 | 915.751 |
| Predictive | 245.587 | 245.666 |
| Original + zlib | 240.692 | 218.670 |
| Predictive + zlib | 154.057 | 139.923 |
| Representation | 62 files | 512 files |
|---|---|---|
| Rate (kbps) | ||
| Original + XZ | 193.606 | 174.988 |
| Predictive + zlib | 154.057 | 139.923 |
| First-order adaptive | 148.610 | 137.184 |
| Two-mode selector | 146.642 | 132.557 |
| Second-order adaptive | 143.379 | 131.929 |
| Candidate | Encode (s) | Decode (s) |
|---|---|---|
| Predictive + zlib | 7.949 | 6.524 |
| First-order adaptive | 10.348 | 10.333 |
| Second-order adaptive | 10.159 | 9.967 |
| Metric (dB) | Mean | Q25 | Median | Q75 |
|---|---|---|---|---|
| SI-SDR | 4.332 | 6.553 | 14.278 | |
| HF-SI-SDR-6k | 10.090 | 9.233 | 12.053 | 13.942 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Offset | Bytes | Field and required value |
|---|---|---|
| 0 | 8 | ASCII magic EMCRCODE |
| 8 | 1 | Version: 1 |
| 9 | 1 | Mode: 0 original, 1 predictive |
| 10 | 2 | Reserved flags: 0 |
| 12 | 4 | Sample rate: 44100 |
| 16 | 4 | LF stages, HF stages, groups, dimensions/group: 4, 6, 4, 32 |
| Configuration | SI-SDR (dB) | HF-SI-SDR-6k (dB) | Transient F1 |
| MRHF@595k | 8.47 [6.37, 10.68]; 7.60 [2.42, 13.92] | 11.64 [10.52, 12.57]; 12.84 [11.06, 14.34] | 0.869 [0.807, 0.923]; 1.000 [0.826, 1.000] |
| DAC | 9.75 [7.37, 12.00]; 10.85 [5.11, 14.26] | [ , ]; [ , ] | 0.863 [0.795, 0.919]; 1.000 [0.859, 1.000] |
| MRHF@140k | 6.73 [4.56, 8.91]; 5.99 [1.81, 11.65] | 8.11 [6.97, 9.17]; 9.31 [7.46, 10.67] | 0.825 [0.757, 0.890]; 0.977 [0.756, 1.000] |
| SinglePath@100k | [ , 0.36]; 1.49 [ , 6.21] | [ , ]; [ , ] | 0.820 [0.752, 0.883]; 0.971 [0.701, 1.000] |
| RVQ@100k | [ , ]; 1.13 [ , 5.05] | [ , ]; [ , ] | 0.803 [0.729, 0.870]; 0.969 [0.671, 1.000] |
| NoHFLoss@100k | 3.26 [ , 6.50]; 6.04 [ , 10.73] | [ , ]; [ , ] | 0.821 [0.748, 0.888]; 0.974 [0.761, 1.000] |
| Configuration | SI-SDR (dB) | HF-SI-SDR-6k (dB) | Transient F1 |
|---|---|---|---|
| MRHF@595k | 4.01 [3.46, 4.54]; 4.64 [ , 12.49] | 12.12 [11.92, 12.30]; 13.27 [11.17, 14.37] | 0.940 [0.935, 0.945]; 0.988 [0.938, 1.000] |
| SinglePath@100k | [ , ]; [ , 5.22] | [ , ]; [ , ] | 0.901 [0.894, 0.908]; 0.968 [0.878, 1.000] |
| RVQ@100k | [ , ]; [ , 4.96] | [ , ]; [ , ] | 0.901 [0.894, 0.907]; 0.967 [0.875, 1.000] |
| NoHFLoss@100k | [ , ]; 2.01 [ , 9.82] | [ , ]; [ , ] | 0.920 [0.914, 0.926]; 0.976 [0.906, 1.000] |
| Metric | Mean | Median | Top-1% sum share |
|---|---|---|---|
| Spectral convergence | 68,139 | 0.147 | 99.9998% |
| HF spectral convergence | 6,627 | 0.146 | 99.9974% |
| HF energy preservation | 93,180 | 1.013 | 99.9989% |
| Ideal unrestricted sums | Float32 classes | Original bits | Class bits | ||
| 4 | 4 | 13 | 31 | 8 | 5 |
| 5 | 4 | 17 | 17 | 12 | 5 |
| 8 | 4 | 29 | 105 | 12 | 7 |
| 5 | 6 | 25 | 25 | 18 | 5 |
| 8 | 6 | 43 | 211 | 18 | 8 |
| Candidate | Bytes | Rate (kbps) |
|---|---|---|
| Adaptive predictive | 5344543 | 148.610 |
| Predictive + XZ | 5404552 | 150.278 |
| Predictive + zlib | 5540433 | 154.057 |
| Separated sparse list + XZ | 5594104 | 155.549 |
| Separated bitmap + XZ | 5601264 | 155.748 |
| Predictive + Zstandard | 5643730 | 156.929 |