Codec Damage as Chain Scission: Weight-Averaged Intact-Run Statistics for Multi-Generation Audio Degradation

When a neural audio codec decodes a clip and the result is encoded again, it does not return the same tokens. A codec here is a network that turns audio into a short stream of discrete symbols ("tokens") and back. LILAC found that all twelve codecs it tested rewrite at least 15% of their tokens in a single decode-and-re-encode pass, and that quality drops further with each additional pass. The standard way to describe this damage is a single rate: the fraction of tokens that changed. Polymer chemists hit the same limitation decades ago. A polymer sample is a population of chains of different lengths. Two samples with the same average chain length can behave very differently, because properties like viscosity depend on the weight-average length, which counts long chains more heavily, rather than the number-average length. The spread of the distribution, measured by the polydispersity index (the ratio of the two averages), also tells you how the chains were cut. Random cutting drives this index toward 2. Cutting near chain ends or at specific weak sites leaves different signatures.

This note proposes to treat each re-encoding pass as a "scission" (cutting) event on the token stream. The quantity of interest is the distribution of lengths of intact runs: maximal stretches of tokens that survive unchanged. We ask two questions. Does the weight-average intact-run length predict how listeners and downstream models judge multi-generation audio better than the plain rewrite rate does? And does the shape of the distribution reveal the mechanism behind the rewrites, such as scattered random errors, clusters at transients, or damage confined to fine residual layers? If the claim holds, it gives codec designers a cheap single-pass diagnostic and a clear target for fixing tandem degradation. If it fails, we learn that the rewrite rate is already sufficient, which is also worth knowing.

Core Claim

Our hypothesis is that perceptual damage after repeated coding depends on the arrangement of rewritten tokens, not only on their count. Clustered rewrites leave long clean spans punctuated by short corrupted bursts. Scattered rewrites at the same rate corrupt every frame a little. We expect these two patterns to produce different listener judgments and different speech-recognition errors.

Polymer theory supplies a null model with a closed form. Suppose each token is rewritten independently with probability $p$, as in random scission. Then intact-run lengths $\ell$ follow a geometric law $P(\ell)=p(1-p)^{\ell-1}$. The number-average run length is $L_n=1/p$, and the weight-average run length is $$L_w=\frac{\mathbb{E}[\ell^2]}{\mathbb{E}[\ell]}=\frac{2-p}{p},\qquad \frac{L_w}{L_n}=2-p .$$ The ratio $L_w/L_n$ is the token-stream analogue of the polydispersity index.

A measured index well above $2-p$ means rewrites are clustered. A measured index below it means rewrites are spread more evenly than chance, for example confined to periodic frame boundaries. Repeated passes can then be checked against the composition of scission events, which tells us whether passes act independently or keep hitting the same fragile sites.

Rewrites also differ in how much they matter. In a residual vector quantizer, the encoder snaps each frame to a first codebook entry and then encodes the leftover error with further codebooks. Damage to the first, coarse layer matters far more than damage to the last layers. So we also compute a layer-weighted version, in which a run counts as broken only when a rewrite occurs at or below a given layer depth. This is the analogue of weighting chains by their contribution to a property.

The chemistry literature in this file motivates using weight-averaged statistics rather than means. In the Rosa roxburghii fiber study, measured $M_w$ varied from 149.48 to 312.49 kDa across regions, and the high-$M_w$ fiber raised yogurt firmness from about 70 g to over 105 g. In the reverse-osmosis fouling study, the >10 kDa fraction, a tail of the distribution, drove membrane fouling. The scission framing itself follows the depolymerization picture in the Prunus mume softening work, where tracking how the size distribution shifts is what exposes progressive enzymatic cutting. None of these papers touch audio. They supply the analytical lens, not evidence about codecs.

The two existing papers that cross these fields solve different problems. iMoLD borrows the residual vector quantizer from audio codecs to regularize small-molecule property prediction under distribution shift. It moves codec machinery into chemistry, while we move chemistry's distribution analysis into codec evaluation. Resolution Chromatography of Diffusion Models uses chromatographic separation as mathematics for how image diffusion models build coarse structure before fine detail. It does not address discrete tokens, audio, or repeated coding. LILAC is the work that establishes the problem. It builds a codec trained to be idempotent, meaning a second pass returns the same tokens, and reports rewrite rates. We do not propose a new codec. We ask whether a richer description of the damage explains quality loss that the rewrite rate misses, across existing codecs including LILAC itself.

Research Program

The first component is measurement. We will run each codec through $k=1,\dots,10$ decode-and-re-encode generations on fixed test sets. At every generation and every quantizer layer, we record the token-level change relative to generation zero. From these records we compute $p$, $L_n$, $L_w$, $L_w/L_n$, the full run-length histogram, and the layer-weighted variants.

We will then fit three competing scission models, borrowed from polymer kinetics, to how these distributions evolve across generations:

  • Random scission, where every token is equally likely to be rewritten.
  • Site-specific scission, where the rewrite probability depends on local signal features such as onset strength, frame energy, or voicing transitions.
  • Coarse-to-fine cascade, where a rewrite at a coarse layer forces rewrites at the finer layers beneath it.

We choose between these models by held-out likelihood on later generations.

The second component is prediction. We regress multi-generation quality on single-generation statistics. Quality is measured three ways: human preference scores, Codec-SUPERB signal metrics, and downstream task scores. We then test whether $L_w$ and the polydispersity ratio carry information beyond $p$.

The third component is a causal check. Correlations across codecs are confounded by codec architecture. We therefore inject synthetic token corruption at a fixed rate into clean token streams, while varying how clustered the corruption is and which layers it hits. We decode these streams through each codec and measure quality. This isolates arrangement from rate.

Baselines

Naive reference. Single-pass quality alone predicts multi-generation quality: a codec that sounds good once is assumed to sound good after ten passes. We will evaluate this by ranking codecs on generation-1 scores and checking rank stability at generation 10. Our statistics must explain variance that this ranking leaves unexplained.

Rewrite rate. The strongest existing descriptor is the per-pass token rewrite rate used by LILAC, which reports at least 15% of tokens rewritten per pass across twelve codecs. For multi-generation human scores, no reported result was found on Lacuna for multi-generation MUSHRA or downstream task scores as a function of rewrite rate. We will therefore establish this baseline ourselves. Fairness is straightforward because both predictors are computed from the identical token logs, and both get the same regression family and cross-validation folds. Beating it means a statistically significant increase in held-out rank correlation with human scores. The test is leave-one-codec-out, so the gain must transfer to an unseen architecture rather than memorize codec identity.

Burst-loss model. This is the strongest structural competitor. A two-state burst-error model of the kind used to simulate network packet loss, as in the three-state Markov loss used to train TFNet, also captures clustering. We will fit it to the same rewrite sequences with the same number of free parameters as our site-specific scission model.

Ablations. Two ablations isolate the proposal's key ingredients. The first replaces $L_w$ with $L_n$, keeping arrangement information out. The second drops layer weighting.

Codecs and anchor numbers. The codecs span the regimes reported in the file. SNAC reports MUSHRA 88.4 at 0.98 kbps on DAPS, against 85.0 for DAC at 2.5 kbps and 39.1 for EnCodec at 1.5 kbps. We use these single-pass numbers to sanity-check our generation-1 listening scores. The other codecs are EnCodec, DAC, the lattice quantizer of Q²D² (code: tashq/q2d2), and LILAC as the low-rewrite reference.

Why not just…?

Why not just run ten passes and measure quality directly? Re-encoding is cheap, so for any single codec we will do exactly that, and the direct measurement is our ground truth. The point of the statistics is explanatory and transferable. They tell a designer why a codec degrades, through clustering at transients versus fine-layer drift, and they offer a candidate surrogate to monitor during training, where running ten passes and listening is not possible. If the leave-one-codec-out test shows that single-pass run statistics add nothing over single-pass quality, this justification collapses, and we will say so.

Why not just use a standard burst-error model instead of polymer theory? This is the real threat. A two-state burst model already describes clustered errors, and it may predict quality as well as our scission models. The polymer framing contributes two things a pure burst model lacks: weight-averaging by layer importance, and the composition-over-generations test that separates fragile-site recurrence from independent passes. The decisive check is a head-to-head comparison at matched parameter count. If the burst model ties on held-out prediction, we will report the chemistry lens as a reparameterization with diagnostic but not predictive value.

Why not just compute spectral or perceptual distances on the decoded audio? These are available and will be reported, using Codec-SUPERB's STFT and mel distances, PESQ, and STOI. However, Geometric Iterative Retrieval found that log-spectral distance stopped improving after three quantizer layers, while listeners preferred nine. That means signal distances can miss exactly the fine-layer damage that repeated coding accumulates. Human scores therefore remain the arbiter, and we test whether token statistics track them where signal distances do not.

Proposed Experiments

Data. Speech comes from LibriSpeech and DAPS, music from MUSDB18-HQ, and general audio from ESC-50. We use Codec-SUPERB's application tasks as written in Codec-SUPERB: word error rate for speech recognition, equal error rate for speaker verification, and emotion recognition accuracy. Speaker verification is especially informative, because that benchmark already shows speaker identity is fragile under single-pass coding. We expect clustered versus scattered rewrites to separate content loss from identity loss.

Human listening. MUSHRA tests run at generations 1, 3, 5, and 10 on a stratified subset of clips.

Decisive check: controlled injection. At a fixed corruption rate of 15%, chosen to match the LILAC level, we vary the clustering so that $L_w/L_n$ ranges from about 1.5 to 6. We do this separately for coarse-layer and fine-layer corruption. If quality is flat across clustering at fixed rate, the central claim is false.

Second check: generalization. Leave-one-codec-out prediction of generation-10 MUSHRA must show $L_w$-based predictors beating rewrite rate and matching or beating the burst model.

Third check: mechanism. The fitted scission mode must predict where LILAC's idempotency training helps. Specifically, if LILAC mainly suppresses site-specific scission, its residual rewrites should look closer to random, with $L_w/L_n$ near $2-p$.