I knew that if I keep squeezing my brain, eventually it will poop out something good.
Biggest problem with modern AI is their size.
Biggest factor of their size is vocabulary.
What is vocabulary of a chat bot?
In past, it used to be sentence level. Bot would just memorize whole sentences.
then they upgraded it to word level.
However, word level wasnt suitable for modern AI because it makes model huge.
Model size is measured by vocabulary x other parameters.
So if they used word level, then because english language has over 1 million words, it would make model 1 million times bigger.
So they decided to use subword level. Subword level has vocabulary size of 30000 to 350k.
So subword level makes model "only" 30000 times bigger at least, compared to 1 million times bigger in case of word level.
But then it occurred to me.
Smaller vocabulary means smaller AI model, when other parameters are same.
Smallest possible vocabulary is not subcharacter level.
Smallest possible vocabulary is character level!!!
there are only about 70 to 100 characters in English language. Compared to subword level, it is at least 300 times smaller vocabulary size, and thus 300 times smaller model.
I am currently working on making a very small AI which uses character level tokenizer to create equally effective but smaller AI.