Long-context models read hundreds of thousands of tokens at once. keeps this affordable by having a small indexer score every earlier token and hand each query a short list of the best ones to read, but at a million tokens that choosing costs more than the attention itself.
This work instead groups tokens by how similar they are, not by position, and looks each query up in an inverted-file index, the kind of lookup table search engines use to jump straight to likely matches. A query only sees groups built from tokens before it.
That recovers far more of the true best keys than position-based grouping and raises long-context accuracy by up to 18.4 percentage points, while staying faster than scoring every key.
