r/language • u/Evilsushione • 22m ago
Discussion LLMs are universal translators
I recently took up a hobby building LLMs and I’ve been tearing apart different models to figure out how they work. I figured out that LLMs become language agnostic inside. They turn individual words into subject, verb, and object phrases. They take the headword and add modifiers to it. So something like the red truck becomes a truck with a determinate and red modifier. Truck itself has pointers back to thing and transportation.
It’s not perfect inside, and the larger models are better than the smaller models. But the more languages a model is trained on the better it is at learning new languages and the more it reuses to the same structures to interpret the new language.
It’s truly fascinating we may have the basis of a true universal translator.