What can you tell me about transformers based audiovisuals language models?
- User
What can you tell me about transformers based audiovisuals language models?
- Assistant
- User
I'm not sure about exact architecture design that will allow any to any content generation. E.g. image conditioned audio generation, or using vocal instructions to control smart home (speech to text, but without transcription, directly generating API command). It can be said that I know some pieces here and there, but lack comprehensive mental model to inspire development in code.
- Assistant
- User
Yeah, this is one way to do this. However, I was thinking about slightly different approach: 1. Process audio signal into acoustic tokens, probably using more classical machine learning (especially from audio signal processing methods), rather than deep learning. 2. "Translate" acoustic tokens sequence (with fixed rate tokens per second of input audio) into a more sophisticated and compressed semantic tokens string (dynamic rate, with some temporal information fused). Trained with reconstruction loss perhaps? Both acoustic and semantic tokens can be called "audio tokens", we can train our main model on either depending on task at hands. 3. Use unified vocabulary for text and audio tokens, train embedding encoder-decoder component. 4. Train GPT-like model on interleaved text and audio with special tokens indicating modality switch (text snippets start and end, audio "chunk" start and end), maybe with task token. 5. During generation it is sampled in autoregressive approach, but with modality filter (including text only, audio only, and with switching if special modality end/start token was sampled), text is decoded and audio tokens (acoustic, semantic, or their mixture) are used for conditional waveform synthesis. And this was audio-linguistics part of our model design (visual component would be a different story). How that sounds?
- Assistant
- User
So, this is conceptually integral design, at least?
- Assistant
- User
Okay, so for visual domain, I think we will need a heavier preprocessing. 1. We pass input image through various recognition models (depth estimation, text detection and OCR layout, semantic segmentation, partial convertation into parametric model akin to what we have in CADs but for 2d which should help with schematic and diagram understanding, matching, etc). 2. Pass this layers and image chunks through ViT model and generate "visual tokens" sequence. 3. In case of video, use the above technique for key frames and add oprical flow (or other representation) processing to get temporal information. 4. Train model that will "emulate human gaze pattern" to reorder visual tokens order given conditioning from main audiovisual linguistic transformer model (or AVLM, for short). 5. Append this reordered (and probably compressed + filtered) visual stimuli tokens sequence to our context window. 6. Finally, train AVLM on a mixture of text, audio and images (or even short video clips), again with modality switching special token. 7. For imaging sample visual tokens and than use them to initialise latent space and guide latent diffusion model sampling process. 8. For more information density memory enhanced architecture might be required (converting input audio and visual content into collection of processed and "recognised" accessible through automatic association within session storage during output generation). Phew, this approach requires some feedback/criticism to pinpoint areas of further research.
- Assistant
- User
If done right, what kind of user experiences AVLM makes possible?
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.