Transformer 'attention' grows slower with longer text. Smarter methods currently scan every past chunk first.
RecSA organizes past text into a tree of summaries. A query selects the best summary at the top, then drills down, finding the exact words in a number of steps that grows remarkably slowly with text length. A mechanism keeps the relative distances seen during training the same, no matter how long the context gets.
On a standard long-context test, RecSA scored 60.5, far ahead of the best existing method which scored 40.0. It is faster than standard attention from contexts far shorter than a million up to the longest tested, making analysis of entire books in one prompt practical.
