| ▲ | hungryhobbit an hour ago | ||||||||||||||||
There are no "attention heads" or fixed number of things a model can pay attention to ... or at least not exactly. After every prompt the model decides "I have a weight of 1 to distribute between every token in my context". If you have ten tokens, each gets a weight of 0.1 ... ... except it's not that simple, because the LLMs don't distribute that "attention budget" equally. If your prompt was "where is Paris", then any tokens in context it can associate with Paris will get a greater share. If the word Paris is in your context, it might get 0.3 or 0.4 weight, and close by tokens might get 0.2, while other (unrelated) tokens get 0.03 or something. Now, add lots of context, and you start to see the problem: more context = greater distribution of the attention budget. Even if the prompt is about Paris, and the Paris tokens get higher weights, they are only getting (say) 0.002 ... while unrelated tokens are getting 0.001. All LLM "answers" are just math, computation, based on the context and those weights. If it can't "focus it's attention" because it's distributed among too much context, it's far more likely to miss the relevant tokens (eg. the Paris ones) and give you an answer that ignores key parts of context. But again, there's no fixed number of things it can pay attention to: it's a gradual degradation of the chance of it seeing key info it should, based on the amount of context. | |||||||||||||||||
| ▲ | Catloafdev an hour ago | parent | next [-] | ||||||||||||||||
> There are no "attention heads" Yes there quite literally is internally in an LLM. | |||||||||||||||||
| |||||||||||||||||
| ▲ | alienbaby 36 minutes ago | parent | prev [-] | ||||||||||||||||
Llm's have come on quite a bit beyond the fundamentals nowadays. Attention heads really are a thing. | |||||||||||||||||