Periscope: Extending Frozen Language Models Beyond Their Context Window
Frozen language models read long text in a single quadratic forward pass, stop at the context window, and lose accuracy with length even before reaching that limit. Periscope asks whether the read can be factorized when the task is a decision over a finite set of answers — which document is relevant, which option is supported, which passage is the evidence.
The method is training-free inference. Periscope arranges the N chunks of a text on a K×K grid with K = ⌈√N⌉, then asks the frozen model the same question about K local spans of consecutive chunks and K strided spans that sample the whole text, reading the log-odds of every answer at a single token. Each answer takes its best local and strided score, and scoring every chunk by its two spans produces an evidence map at no further cost, whose peak is the chunk behind the answer.
Cost scales differently from a full read: every probe is about √(sc) tokens for a text of s tokens with chunk size c, so a window of W tokens reaches W²/c tokens at s^1.5 cost.
The results hold up on long-context benchmarks. On LongBench v2, reading only the K chunks the map ranks highest — 9k tokens — matches the same model's best window read across windows from 32k to 1M tokens, and on InfiniteBench, where the median context is 150k tokens, it leads the best window read by 5 points. The same map also ranks BRIGHT's long-document corpora with the best NDCG@10 of six methods.
Memory is the other payoff: each call caches only one probe, so a 27B model reads 4.5M-token contexts on one 80GB GPU, where a single pass would need 296GB of cache. The broader implication is that a long read requires a GPU that holds the model, not one that holds the text.