RecSA Enables Million-Token Context with Logarithmic Selection Cost
November 6, 2026
RecSA uses a tree-based KV cache structure where nodes summarize subtrees with a single key and mean-pooled value. This approach reduces selection and read costs to O(log L) for million-token context lengths while maintaining extrapolation accuracy.
HOW THIS AFFECTS YOU
●
builderYou can potentially achieve much higher context windows with significantly reduced prefill and decoding latency.
●
researcherThe logarithmic scaling of selection cost offers a new path for efficient long-context architecture training.