Vol Building AGI
580 subscribers
116 photos
9 videos
12 files
199 links
Past topics: speech synthesis, transformers, LSTM, recurrence
Download Telegram
In our previous work we trained several GPT-style models on UberText 2.0 and found that

1. the bigger transformer the faster to train (applying Chinchilla scaling laws to Ukrainian datasets)
2. small transformers seem to struggle with context lookup, which we fix by constraining decoding
3. small multi-task decoder-only models lose to small encoder-decoder models pretrained more (possibly out of domain) data and finetuned on one task (in retrospect really hoped that one would not be true)

Please enjoy:

https://aclanthology.org/2023.unlp-1.4/


You can play with the models by doing pip install haloop, see instructions in https://github.com/proger/haloop

Since then we learned that context lookup (aka induction heads) requires 2^14 *tasks* in decoder-only models, and it's feasible using synthetic pretraining (Kirsch on GPICL 2022). We also learned a thing or two about learning rate schedules, like pretend convergences happen faster if you decay early (search for Vaswani on arxiv), Dmytro is currently playing with that on TPUs.

Now it's time to take all that to speech!
Oh, and metadata pretraining is awesome. Stop cleaning your data, let the transformer slurp it all in.
So far I'm struggling with preventing forgetting when shoving the model with real speech data after synthetic pretraining.

I decided to park that for now and come back to tuning the model. I have started multiplicative relative position encodings in encoder and decoder attention and left cross attention on its own.

Things I'd like to try to prevent cross attention drift:

1. use relative position encodings but interpolate token positions between speech frame positions (i must have seen this somewhere already)

2. put a gaussian window around every token with a learnable sigma. This idea is one year yonger than Alibi and uses a different additive attention bias: http://www.interspeech2020.org/uploadfile/pdf/Thu-3-10-8.pdf
So the gaussian window around every token for speech paper does not mention how to compute the center of the gaussian.

I found an even older paper (Alex Graves 2013) for a different task (handwriting synthesis) that suggests to learn the centers and enforce their monotonicity. Which I am about to do!
While I'm really uneasy with the idea of predicting the center of attention from a single frame, I've emailed the authors of Cross-attention with monotonic alignment asking how they compute k. From the paper it seems like you need to compute attention to compute attention. I would like to see the reviews of this paper and too bad interspeech does not publish them.

I am running out of time to fix this problem so I'm going to apply the good old "convolve the dataset with itself" trick.
The simple trick worked! It fixed the drift problem with long sentences. In the mean time I started using my third block implementation for the encoder and found this bug. This bug let the decoder (with cross attention) learn just fine!
👏1
New paper by Alex Graves et al, Bayesian diffusion for language modeling.

https://arxiv.org/abs/2308.07037
The uglier the code, the faster it runs. This KV caching optimization (no tensor reallocation, alive used to shut off completed parts of the batch) allows me to decode train-clean-100 in 5 minutes. I started at 16 hours.
My paper on reproducing approximation errors in VAEs has been published in ReScience C. We see how choosing a factorized latent distributions causes perfectly good decoders to run their reconstruction quality adapting to the encoder.

https://x.com/darkproger/status/1691755047145673029
🥰1🎉1
https://drive.google.com/file/d/15TmDQ8lONE66_hc_me7ML1Xv6a4pup59/edit

Tutorial 2 at Interspeech:

Recent Advances in Speech Frontend, Diarization and ASR for Multi-talker Cocktail Party Problem

Austin Zhang / Yong Xu / Dong Yu / Shinji Watanabe
👍1
Teaser: maximizing data selection with higher error rates than random using expected gradient length and monte carlo dropout.

This is a prototype I'm developing to clean uk1e2
Surprisingly, low resolution (10fps) discrete features work for synthesis

https://arxiv.org/abs/2306.01084
👍2