Neural Codec Latent Distillation for Corpus Retrieval Synthesis on the Elk Stomp

Trent Eriksen, Jazz Segovia, Dennison Blackett

Keywords: knowledge distillation ; neural audio codecs ; latent granular synthesis ; embedded systems

Presented Virtual

Abstract:

Latent granular resynthesis encodes a corpus and an input with a neural audio codec and replaces each input frame with a similar corpus frame. The Elk Stomp Dev Kit, a device without a neural processing unit, cannot run codecs like music2latent that are often utilized for this type of syn- thesis. We ask whether a small query encoder, distilled from music2latent selects grains as that encoder would, and what limits real-time operation. A distilled multi- layer perceptron of 103k parameters is compared offline on input with four other query encoders with each analysis stage timed on the Elk. Results indicate it preserves the encoder’s similarity ordering better than a linear map and MFCCs (Spearman ρ .83 against .80 and .58), with selec- tions on average in the encoder’s top 4–7 %. On the Elk it takes about 1 % of the 93 ms analysis period, and only the search grows with corpus size.