I get generative AI. I understand the concept of an LLM and how it generates text. AI output processing seems relatively clear to me.
What I don't understand is how ChatGPT (or whatever) understands what I write. No matter how I phrase it, or how subtle or abstract the point or problem is, AI usually always figures out what I mean. I am mystified and constantly amazed at AI input processing.
What mechanism is at work here? If I want to deep dive on how AI understands meaning, what technology or concept do I need to research?
For example, the vectors for "king" and "queen" will end up being really close together, while the vectors for "king" and "table" will be way far apart. Then, the transformer part kicks in with its self-attention mechanism. This is a fancy way of saying it analyzes how all the words in your text relate to each other and figures out how much "attention" to pay to each one. This is how the model gets the context. It's how it knows that the "bank" in "river bank" is totally different from the "bank" in "open a bank account" Based on all those relationships, it then predicts the next token. But it's not just guessing -it's making a highly probable prediction based on all the context it just looked at
To put it simply: the model isn't "aware" of what anything means. It's just incredibly good at modeling how meaning is expressed in language