Incomplete ideas on contrastive audio fashions

Incomplete ideas on contrastive audio fashions

I’ve been spending my time not too long ago making ready varied items of infrastructure to coach an audio mannequin contrastively on each text-audio and audio-audio.

I’ve been so heads down within the infrastructure that I haven’t been spending a lot time occupied with the potential novelties of the mannequin itself, so right here’s some incomplete pondering I’ve managed.


Audio suits unusually within the record of modalities. Like textual content, it’s strictly causal and the uncooked enter to a mannequin, a waveform is strictly one dimensional. But in distinction to textual content, audio has an especially low info density, typically sampled at between 24,000–48,000 frames per second. Accordingly, 75 English spoken phrases covers a sequence size of 720k frames of audio, or roughly 10,000x much less dense, from a strictly semantic standpoint. In this attribute, it sits extra like a picture – particular person pixels are much less necessary, and you may preserve excessive info transmission even with dramatic reductions in high quality or precision. Probably it’s closest parallel then is video (unsurprisingly?) – causality, immense quantities of redundancy, and many others.

Majority of labor on Audio focuses on SST or TTS functions, which every have varied strategies to take care of the fascinating form of this downside, and are at the moment centered closely on discovering methods to reshape it to suit the LM and Diffusion paradigms of in the present day.  Contrastive fashions (assume CLIP) although are fairly underrepresented right here. There’s just a few, like Betker’s CLVP, however most others are centered on both sounds slightly than human voice.


So, what does occur if you summarise a piece of audio right down to a single vector? What would possibly that vector encode?

Unlike different modalities, I’d argue voice has a novel property that type and semantics are closely disjoint. Of course, traits like emotion cross this boundary, and the dealing with of semantics (textual content) and elegance (3s voice clone snippets) as being largely separate parts has been an apparent shortcoming in a lot of the TTS world. But it’s exceptional how effectively fashions can function regardless of these two being conventionally separated, and locations a powerful prior on them being largely  two, slightly-overlapping, parts.

Accordingly, we’d count on a considerable amount of consideration (each figuratively, and actually within the case of transformers) to be positioned on the very early chunk of an audio phase whereby the stylistic properties just like the audio system voice traits, background noise, audio high quality, and many others. are first encountered. Then, a extra diffuse consideration could be current for the remainder of the sequence the place the precise phrases spoken are propagated.

A one other novel factor to think about is what would possibly happen in samples the place two audio system are current. Text embeddings and picture embeddings are inclined to carry out fairly effectively at encoding details about a number of focal factors and topics, so we’d count on one thing related. Could we carry out one thing harking back to the traditional word-to-vec type demos, the place we take a vector containing speaker A and speaker B, subtract a vector containing solely speaker A, after which use the ensuing vector to search out segments with strictly speaker B?

How would possibly info like background noise, audio high quality, and many others, be encoded? Drawing from what we have seen with GANs, we’d count on a contrastive mannequin to attempt for maximal disambiguation of samples, and on condition that I plan to coach on neighbouring audio-audio pairs, it’s potential the mannequin learns to cheat by putting particular emphasis on the soundscape current exterior of the human voice spectrum. I do hope to experiment with whether or not such mannequin can be utilized to filter samples for things like presence of music, background noise, and many others, so it will likely be thrilling to see.


That’s all for now. Obviously very incomplete ideas right here, early coaching runs are kicking off now so hopefully some findings to report again quickly.

HI-FI News

through Hacker News https://ift.tt/sAhCWcS

February 3, 2024 at 04:39AM