As I know, it is possible to use neural audio codecs as an "audio tokenizer", encoding…
- User
As I know, it is possible to use neural audio codecs as an "audio tokenizer", encoding input audio signal into sequence of discrete tokens. This tokens can be interleaved with text tokens (e.g. from BPE tokenizer) with some special tokens (modalities demarcation, audio content meta data, timestamps and use_timestamp flag, especially for aligned text-audio, etc). Than, this mixed text and audio tokens are passed through GPT-like decoder only transformer, aka audio language model, ALM. Autoregressive language modeling and next token sampling allows modality specific generation, where we sample for text after text_start special token, and for audio tokens after audio_start. Output audio tokens are feed back into neural audio codec to reconstruct waveform. Now, I want you to analyse and decompose this architecture design.
- Assistant
- User
Is it suitable unified model for simultaneous multitasking audio source separation, VAD, ASR, text and audio matching (when we have separate text and audio and want to find audio segment matching text, or other variations of this task), TTS, NMT (including speech to text), language detection (including switching), speaker diarization (clusterisation of voices? Including overlapping and switching), audio events detection, acoustic environment recognition (ambient sound?), etc?
- Assistant
- User
I already saw something similar, Qwen-Audio model from Alibaba, trained on multiple datasets for multitasking with special tokens to "signal" what's going on for model (without special tokens training was unstable, probably because very different tasks and datasets formats). But it only takes audio as an input (so, text and audio), not output (text only). Maybe because modality specific sampling requires moving output logprobs from gpu to cpu, filtering for current modality, and only then sampling.
- Assistant
- User
Ok, but text and audio for both input and output is a much more powerful tool. E.g. with task specific tokens, it can pretend to be ASR model, or TTS, or any other (from tasks it was trained on), while under the hood it would be same model.
- Assistant
- User
Or this model can be used to generate synthetic data for specialized, lightweight model. E.g. i have read blog post describing case where LLM (at 100b scale, with additional fine tuning for even better accuracy in NMT tasks; this was a large company blog, so their research team hired professional linguists and translators) was used to generate synthetic dataset for NMT model fine-tuning (base NMT struggled with some nuances).
- Assistant
- User
In this case bottleneck is how good the best, largest model? Situation, where it is relatively straightforward/easy to develop until you hit the sota level, and than it is incredibly unclear what to do next, or push the needle. Like in economics, where Japan, or China have explosive growth during modernization, but than follows stagnation, and innovation bottleneck.
- Assistant
- User
Let's talk about audio language model again. How to implement it, including text (BPE) tokenizer, audio (neural codec) tokenizer, sampler and transformer parts?
- Assistant