Attention in large language models compares every word with every other word. This becomes extremely slow and memory-heavy when the input is very long, preventing models from handling very long documents or conversations.
The authors designed a method that organizes key summaries in a tree structure. When a query comes, it travels down the tree to find only the most relevant keys, skipping most of the context. This reduces the total work dramatically.
The method maintains good performance on complex reasoning and retrieval tasks while scaling subquadratically with context length, much better than the usual quadratic growth. This makes it possible to extend useful context windows to millions of tokens without crippling costs.
