Manuscript Offprint
arXiv:2608.29058RouteSparse: Input-Conditional Pattern Routing for Budgeted Long-Context Prefilling
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Dynamic sparse attention can reduce the quadratic cost of long-context prefilling without changing model weights. MInference assigns each attention head one pattern offline and estimates that pattern's sparse indices for every prompt. This design is efficient, but it assumes that a head's preferred pattern and sparsity budget remain suitable across inputs. We introduce ROUTESPARSE, which routes each head and prompt segment among a small library of GPU-efficient sparse patterns. A low-cost probe estimates pattern utility and uncertainty; a latency-aware router then selects a pattern and budget, while uncertain cases fall back to a denser mask. We formulate routing as constrained risk minimization, derive an attention-output error certificate from omitted probability mass, and evaluate the method on long-context retrieval, question answering, summarization, and language modeling. On Llama 3.1-8B-Instruct with 128K-token prompts, ROUTES-PARSE achieves 6.5× dense prefill speed with a 0.2-point RULER drop relative to dense attention, compared with 7.3× speed and a 1.6-point drop for fixed per-head routing. Ablations confirm that input-conditional routing, hardware profiling, and selective dense fallback each contribute to the quality-latency tradeoff.
1 Introduction
Long-context language models enable document question answering, repository understanding, and retrieval over hundreds of thousands of tokens (Xiong et al., 2026). Their context windows, however, expose the quadratic cost of self-attention during prefilling, the phase that processes a prompt before the first token is generated. Existing models obtain longer windows through position interpolation and rescaling (Chen et al., 2023; Peng et al., 2024; Ding et al., 2024), or distribute exact blockwise attention across devices (Liu et al., 2024). These techniques expand capacity without
removing the per-device systems bottleneck. Even memory-efficient exact kernels such as FlashAttention and FlashAttention-2 (Dao et al., 2022; Dao, 2024) still compute every causal query-key pair. Consequently, time to first token can become the dominant user-visible cost (Fu, 2024).
Sparse attention avoids work by evaluating only selected pairs. Patterns such as local windows, global tokens, and strided connections are effective when incorporated during training (Child et al., 2019; Beltagy et al., 2020; Zaheer et al., 2020). Applying sparsity after training is harder because important locations depend on the prompt. Dynamic sparse attention (Liu et al., 2022) and query-aware key selection (Tang et al., 2024; Ribar et al., 2024) provide evidence that these locations can be approximated online. MInference (Jiang et al., 2024) addresses this problem with three GPU-efficient pattern families: A-shape, vertical-slash, and block-sparse attention. It searches offline for one family and one budget per head, then estimates the corresponding indices online. Across several long-context models and benchmarks, the authors report substantial prefill speedups with limited task degradation.
This approach separates a stable head-level pattern family from input-dependent indices. The separation is economical, but a single offline assignment may be brittle. A head that is local in narrative text may attend to delimiters in code, repeated keys in synthetic retrieval, or dispersed evidence in multi-document question answering. Likewise, a fixed budget cannot respond when a prompt is either easy to sparsify or unusually diffuse. The original MInference analysis reports broad stability, so we test whether this failure mode appears in practice and whether input-conditional routing mitigates it.
We present ROUTESPARSE, which preserves the kernel-friendly pattern library while making pattern and budget selection conditional on the current input. ROUTESPARSE uses a sampled attention probe to score candidate masks, estimates uncertainty from omitted attention mass, and solves a small per-layer routing problem under a measured latency budget. High-uncertainty heads receive a larger budget or dense fallback. Our contributions are:
-
We propose an input-conditional router over structured sparse kernels, with selection overhead included in the latency objective;
-
We design a computable certificate that upper-bounds attention-output error using omitted probability mass and value-vector norms; and
-
We perform an empirical evaluation that tests quality, latency, calibration, and robustness under domain and length shift, with preregistered ablations and stress tests.
2.1 Prefill Attention
For one causal attention head, let . Exact attention is
where is the causal mask. Computing Equation 1 requires arithmetic. A binary sparse mask replaces unselected logits by and produces and . A useful mask must reduce realized kernel latency, not merely floating-point operations, while keeping close to .
MInference identifies one structured pattern for each head offline and constructs its indices online (Jiang et al., 2024). A-shape combines initial and local tokens; vertical-slash selects content-dependent columns and diagonals; block-sparse selects coarse query-key blocks. These structures map to efficient GPU kernels and form the pattern library used here. ROUTESPARSE changes the decision granularity, not the underlying observation: structured sparsity is useful only when index estimation plus sparse execution is faster than exact attention.
2.2 Why Route Per Input?
The same head can encounter prompts with different information topology. Repeated key-value pairs favor vertical columns, locally coherent prose favors a window, and evidence aggregation can require separated blocks. Offline selection minimizes
average loss on calibration prompts:
When the best pattern varies with , this commits to the best constant decision. An input-conditional router can instead approximate , but is worthwhile only if its quality gain exceeds probe and routing overhead. We test three hypotheses:
H1: Conditional routing. At matched end-to-end prefill latency, input-conditional routing improves task quality over a fixed per-head pattern assignment on heterogeneous inputs.
H2: Shift robustness. The improvement is larger when evaluation domain or context length differs from the offline calibration set.
H3: Selective fallback. An uncertainty-triggered dense fallback reduces worst-case quality loss more efficiently than uniformly increasing every head's sparse budget.
3 ROUTESPARSE
3.1 Pattern and Budget Library
For each layer and head, the candidate set contains A-shape, vertical-slash, block-sparse, and dense masks. Each sparse family has a discrete budget grid defined in units that match its kernel: local-window width and global columns, selected vertical/diagonal lines, or selected blocks. We profile every tuple on the target hardware and store measured kernel time . This avoids treating equal theoretical FLOPs as equal latency.
Candidate index builders follow the corresponding MInference approximations: recent queries score global columns and diagonals, while pooled queries and keys score coarse blocks. The A-shape candidate requires no content-dependent index construction. Our implementation reuses the original kernels; the novel component is choosing among them online.
3.2 Shared Attention Probe
Running a separate estimator for every pattern would erase the expected speedup. ROUTESPARSE therefore constructs a shared probe. It selects queries using a deterministic mixture of recent, uniformly spaced, and boundary-adjacent positions, and pools keys into blocks of width g:
The softmax of is not used as the final attention distribution. It is a low-resolution signal from which each candidate builder extracts its indices. The probe is shared across all candidates within a head and can be batched across heads.
For candidate , let denote probe mass covered by its coarse mask. We also compute three inexpensive descriptors: entropy of the probe distribution, concentration in the local band, and agreement between recent and uniformly sampled query groups. These features expose diffuse or non-stationary attention for which aggressive sparsity is risky.
3.3 Risk Score and Error Certificate
The router estimates candidate risk as
where measures disagreement among probe subsets and is an optional calibrated predictor of output error. The predictor is a small monotone regressor fitted offline from dense calibration runs; it consumes only the probe descriptors and candidate metadata. Setting yields a training-free router.
Omitted attention mass gives a simple certificate. For one exact attention row , let a candidate retain index set with mass , and let renormalize on . If , then
The result follows because . The probe supplies only an estimate of , so Equation 5 is not a formal certificate unless the estimation error is bounded. We therefore calibrate a one-sided residual quantile on held-out dense runs and use . We report coverage of this empirical certificate on every evaluation domain.
Input-conditional routing for one layer
-
Compute the shared probe in Equation 3.
-
Build candidate indices and estimate coverage and uncertainty.
-
Look up profiled latency for each pattern-budget pair.
-
Solve Equation 8 under the layer latency target.
-
Expand or fall back for candidates with .
-
Group heads by kernel and execute sparse or dense attention.
Table 1: ROUTESPARSE inference procedure. Probe, index construction, routing, and regrouping time are included in end-to-end latency.
3.4 Latency-Constrained Routing
Let indicate one choice per head. For each layer, the router solves
Because choices and budgets are discrete, a multiple-choice knapsack solver would be exact but unnecessarily costly online. We begin with the lowest-risk dense choices and greedily apply the risk-per-microsecond substitution that meets the layer budget. The number of candidates is small and routing runs on the CPU concurrently with projection kernels or as a fused GPU reduction.
If the lower confidence mass falls below threshold , the router first expands the budget, then switches to dense attention if no sparse candidate satisfies the threshold. To reduce kernel-launch fragmentation, heads with the same selected pattern and budget are grouped before execution. The complete procedure is summarized below.
3.5 Offline Calibration
Calibration has two roles. First, hardware profiling records median and tail latency for all candidate kernels at each context-length bucket. Second, dense attention on a modest prompt set provides true retained mass and output error for calibrating and, when used, . Calibration prompts are disjoint from evaluation prompts. To test generalization rather than memorization, we use one in-domain calibration split and two held-out domains. No model weight is changed.
4 Evaluation
4.1 Experiment Setup
Our primary experiments use Llama 3.1-8B-Instruct in bfloat16 with a 128K-token context window on a single A100 80GB GPU. The protocol is designed to extend to additional publicly available decoder-only models with native or extended context windows of at least 128K tokens and to multiple GPU generations. RULER (Hsieh et al., 2024) measures retrieval, tracking, and aggregation across controlled lengths. InfiniteBench (Zhang et al., 2024) adds long-document question answering, summarization, code, and synthetic retrieval. PG-19 (Rae et al., 2020) measures long-form language modeling. Reporting task categories separately is important because an average can hide a retrieval collapse. LongBench (Bai et al., 2024) and L-Eval (An et al., 2023) are included as secondary suites to broaden language, domain, task, and evaluation-metric coverage.
Baselines are dense FlashAttention-2; MInference with its fixed per-head assignment; a uniformly enlarged MInference budget matched to ROUTESPARSE's latency; and a global router that chooses one pattern per layer. Static local-plus-global attention provides a structural reference, although it is not expected to be a drop-in quality-preserving baseline. All methods use identical model weights, precision, decoding settings, and prompt tokenization.
4.2 Metrics
The primary systems metric is end-to-end prefill latency, measured from resident token IDs to the first-token logits after warm-up. We report median, 95th percentile, peak allocated memory, index-building time, routing time, and kernel time at 32K, 64K, 128K, and the largest supported length. The primary quality metric is each benchmark's official score; PG-19 uses perplexity. We also report attention-output relative error on a dense-audited subset:
Comparisons use paired prompts and at least three timing repetitions after warm-up. Quality differences receive paired bootstrap 95% confidence intervals. Latency–quality Pareto curves vary and rather than reporting a single operating point. A method dominates only when it is no slower and no worse in quality within uncertainty.
4.3 Ablations
We consider the following ablations: No input routing, No uncertainty, No dense fallback, One fixed budget, Recent queries only, Predicted FLOPs, Perhead launches. H1 is rejected if conditional routing does not improve quality at matched latency on the mixed test set. H2 is rejected if the relative gain does not increase under either domain or length shift. H3 is rejected if uniform budget expansion matches or beats selective fallback in both mean quality and worst-decile prompt loss.
Additional stress tests concatenate unrelated domains, place evidence near chunk boundaries, vary repeated-token frequency, and transfer calibration from prose to code. For every split, we report router choices by layer and head, fallback rate, certificate coverage, and the largest observed quality drop. A high fallback rate can preserve quality while eliminating speedup; it is therefore a failure mode, not a successful safety result.
5 Results & Analysis
5.1 Main Results
Table 2 reports end-to-end 128K-token prefill performance for Llama 3.1-8B-Instruct in bfloat16 on a single A100 80GB. Latency includes probe, index construction, routing, regrouping, and attention kernels.
Fixed MInference remains the fastest sparse method, but ROUTESPARSE recovers 1.4 RULER points at 0.7 seconds of additional latency. Uniformly increasing the fixed budget recovers only 0.9 points while becoming slower than conditional routing. These results support H1: routing improves quality at a matched or lower latency than indiscriminate budget expansion. Fixed MInference remains preferable for latency-only workloads.
Figure 1 expands the single operating point into measured latency–quality curves. Conditional routing is most useful in the middle regime: at very aggressive budgets both methods omit too much mass, while near-dense budgets leave little quality to recover. Confidence intervals and routing overhead are included in the plotted points.
5.2 Shift and Selective Fallback
Figure 2 shows quality loss relative to dense attention under in-domain evaluation and combined domain-and-length shift; lower is better. Fixed routing loses 1.6 points in-domain and 6.4 points
| Method | Prefill (s)↓ | Speedup↑ | RULER↑ | InfiniteBench↑ | PG-19 PPL↓ |
|---|---|---|---|---|---|
| Dense FlashAttention-2 | 43.6 | 1.0× | 84.7 | 47.8 | 8.24 |
| Static A-shape | 7.1 | 6.1× | 78.9 | 42.5 | 8.91 |
| MInference, fixed | 6.0 | 7.3× | 83.1 | 46.5 | 8.39 |
| MInference, larger budget | 7.4 | 5.9× | 84.0 | 47.0 | 8.32 |
| ROUTESPARSE | 6.7 | 6.5× | 84.5 | 47.6 | 8.27 |
Table 2: 128K-token prefill performance. Bold marks the strongest sparse result in each column; dense attention remains the quality reference.

Figure 1: RULER–latency Pareto frontier at 128K tokens.

Figure 2: Quality loss relative to dense attention under distribution shift.
when domain and length shift are combined. Conditional routing with fallback limits the corresponding losses to 0.2 and 2.0 points, supporting H2.
5.3 Ablations
Table 3 reports the preregistered ablations. Removing uncertainty or fallback reduces average latency but increases the worst-decile prompt loss, illustrating why mean score alone is insufficient. Replacing hardware profiles with predicted FLOPs preserves quality but costs 0.8 seconds because the router selects kernel mixtures that are theoretically cheap but poorly utilized. Per-head launches are slower still, emphasizing that routing and execution cannot be evaluated independently.
Selective fallback recovers 0.6 average points and 2.8 worst-decile points over no fallback at a cost of 0.8 seconds. Uniform budget expansion in Table 2 does not match this tradeoff, supporting H3. The measured 6.8% fallback rate preserves most of the speed advantage; a substantially higher rate would erode it.
6 Related Work
Exact attention and serving systems. FlashAttention makes exact attention IO-aware through tiling (Dao et al., 2022); FlashAttention-2 improves work partitioning and parallelism (Dao, 2024). Ring Attention distributes blockwise attention and communication across devices (Liu et al., 2024). At the serving layer, PagedAttention and vLLM reduce KV-cache fragmentation and improve batching (Kwon et al., 2023). These methods are complementary baselines: they improve the execution or memory management of exact attention, whereas ROUTESPARSE reduces the set of query-key pairs computed during prefill.
Structured sparse attention. Sparse Transformers, Longformer, and BigBird use local, global, random, or strided connectivity to reduce quadratic attention (Child et al., 2019; Beltagy et al., 2020; Zaheer et al., 2020). Reformer uses locality-sensitive hashing to cluster compatible queries and keys (Kitaev et al., 2020). These architectures primarily concern training or model design. Subsequent dynamic sparse attention systems predict token and head importance online (Liu et al., 2022). ROUTES-PARSE instead targets post-training prefill acceleration with a small set of deployable kernels.
Dynamic post-training sparsity. SparQ retrieves likely keys from a subset of query dimensions to reduce memory traffic during generation (Ribar et al., 2024), while QUEST selects pages us-
| Variant | Prefill (s)↓ | RULER↑ | Worst-decile Δ↑ | Fallback (%)↓ |
|---|---|---|---|---|
| ROUTESPARSE full | 6.7 | 84.5 | -0.9 | 6.8 |
| No input routing | 6.0 | 83.1 | -4.8 | 0.0 |
| No uncertainty score | 6.3 | 83.8 | -3.1 | 2.1 |
| No dense fallback | 5.9 | 83.9 | -3.7 | 0.0 |
| One fixed budget | 6.1 | 84.0 | -2.5 | 4.3 |
| Recent queries only | 6.4 | 84.1 | -2.2 | 5.5 |
| Predicted FLOPs | 7.5 | 84.5 | -0.9 | 6.8 |
| Per-head launches | 9.2 | 84.5 | -0.9 | 6.8 |
Table 3: Ablation study at 128K tokens. Worst-decile is the score change relative to dense attention on the 10% of prompts harmed most.
ing query-aware sparsity (Tang et al., 2024). MInference identifies spatial attention patterns and dynamically constructs their indices during prefilling (Jiang et al., 2024); InfLLM uses a training-free memory mechanism for extreme contexts (Xiao et al., 2024a). Recent work on dynamic hierarchical sparse attention further studies adaptive structured sparsity for memory-constrained long-context inference (Xiong et al.). ROUTESPARSE directly builds on the MInference pattern library, replacing fixed per-head family selection with input-conditional, latency-constrained routing and explicit fallback.
KV-cache compression. StreamingLLM retains attention sinks and recent tokens for stable streaming (Xiao et al., 2024b); H2O preserves heavy hitters (Zhang et al., 2023); and SnapKV selects prompt positions using an observation window (Li et al., 2024). These methods primarily reduce decode-time KV-cache memory or bandwidth. They can be combined with prefill sparsity, but they do not by themselves remove the quadratic prefill attention evaluated here.
Context-window extension. Position interpolation (Chen et al., 2023), YaRN (Peng et al., 2024), and LongRoPE (Ding et al., 2024) extend pretrained models through modifications to positional treatment and targeted fine-tuning. Ring Attention instead scales exact context processing across devices (Liu et al., 2024). These approaches determine which lengths a model can represent; ROUTESPARSE concerns the cost of executing an already long-context model.
Long-context evaluation. RULER shows that advertised context length need not equal effective context length (Hsieh et al., 2024), while InfiniteBench evaluates diverse tasks at very long lengths (Zhang et al., 2024). LongBench provides a bilingual multitask suite (Bai et al., 2024), and L-Eval studies both long-document datasets and evaluation metrics (An et al., 2023). These findings motivate category-level reporting and shift tests. Our evaluation also measures attention approximation and system latency, because task score alone cannot identify whether routing works for the intended reason.
7 Conclusion
ROUTESPARSE shows that the useful spatial structure identified by MInference is better selected per input than fixed once per head. The method shares a low-resolution attention probe across candidate patterns, chooses pattern and budget under measured latency constraints, and allocates dense computation to uncertain cases. On 128K-token prefilling, ROUTESPARSE achieves quality close to dense attention at speed, with larger robustness gains under domain and length shift than fixed routing. The ablations confirm that hardware profiling, input-conditional routing, and selective fallback each contribute measurably to the final tradeoff.
Limitations
The sampled probe can miss rare but essential query-key interactions, and empirical quantile calibration does not provide a distribution-free guarantee under arbitrary shift. Output-error bounds are local to one attention operation and do not tightly bound final generation quality. Performance is hardware- and implementation-dependent. Pattern heterogeneity can reduce batching efficiency, and discrete kernel variants increase maintenance cost. Dense auditing at extreme lengths is expensive, limiting the size of calibration and certificate studies. Our primary experiments use one model size and one GPU generation; broader scaling studies remain future work.
References
Chenxin An, Shansan Gong, Ming Zhong, Xingjian Zhao, Mukai Li, Jun Zhang, Lingpeng Kong, and Xipeng Qiu. 2023. L-Eval: Instituting standardized evaluation for long context language models. arXiv preprint arXiv:2307.11088.
Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. 2024. LongBench: A bilingual, multitask benchmark for long context understanding. arXiv preprint arXiv:2308.14508.
Iz Beltagy, Matthew E. Peters, and Arman Cohan. 2020. Longformer: The long-document transformer. In arXiv preprint arXiv:2004.05150.
Shouyuan Chen, Sherman Wong, Liangjian Chen, and Yuandong Tian. 2023. Extending context window of large language models via positional interpolation. arXiv preprint arXiv:2306.15595.
Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. 2019. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509.
Tri Dao. 2024. FlashAttention-2: Faster attention with better parallelism and work partitioning. In International Conference on Learning Representations.
Tri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. 2022. FlashAttention: Fast and memory-efficient exact attention with IO-awareness. In Advances in Neural Information Processing Systems.
Yiran Ding, Li Lyna Zhang, Chengruidong Zhang, Yuanyuan Xu, Ning Shang, Jiahang Xu, Fan Yang, and Mao Yang. 2024. LongRoPE: Extending LLM context window beyond 2 million tokens. In International Conference on Machine Learning.
Yao Fu. 2024. Challenges in deploying long-context transformers: A theoretical peak performance analysis. arXiv preprint arXiv:2405.08944.
Cheng-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, Yang Zhang, and Boris Ginsburg. 2024. RULER: What's the real context size of your long-context language models? arXiv preprint arXiv:2404.06654.
Huiqiang Jiang, Yucheng Li, Chengruidong Zhang, Qianhui Wu, Xufang Luo, Surin Ahn, Zhenhua Han, Amir H. Abdi, Dongsheng Li, Chin-Yew Lin, Yuqing Yang, and Lili Qiu. 2024. MInference 1.0: Accelerating pre-filling for long-context LLMs via dynamic sparse attention. In Advances in Neural Information Processing Systems.
Nikita Kitaev, Lukasz Kaiser, and Anselm Levskaya. 2020. Reformer: The efficient transformer. In International Conference on Learning Representations.
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Liannmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, pages 611–626.
Yuhong Li, Yingbing Huang, Bowen Yang, Bharat Venkitesh, Acyr Locatelli, Hanchen Ye, Tianle Cai, Patrick Lewis, and Deming Chen. 2024. SnapKV: LLM knows what you are looking for before generation. arXiv preprint arXiv:2404.14469.
Hao Liu, Matei Zaharia, and Pieter Abbeel. 2024. Ring Attention with blockwise transformers for near-infinite context. In International Conference on Learning Representations.
Liu Liu, Zheng Qu, Zhaodong Chen, Fengbin Tu, Yufei Ding, and Yuan Xie. 2022. Dynamic sparse attention for scalable transformer acceleration. IEEE Transactions on Computers, 71(12):3165–3178.
Bowen Peng, Jeffrey Quesnelle, Honglu Fan, and Enrico Shippole. 2024. YaRN: Efficient context window extension of large language models. In International Conference on Learning Representations.
Jack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier, and Timothy P. Lillicrap. 2020. Compressive transformers for long-range sequence modelling. In International Conference on Learning Representations.
Luka Ribar, Ivan Chelombiev, Liam Hudlass-Galley, Chris Blake, Carlo Luschi, and Douglas Orr. 2024. SparQ attention: Bandwidth-efficient LLM inference. In International Conference on Machine Learning.
Jiaming Tang, Yilong Zhao, Kan Zhu, Guangxuan Xiao, Baris Kasikci, and Song Han. 2024. QUEST: Query-aware sparsity for efficient long-context LLM inference. In International Conference on Machine Learning.
Chaojun Xiao, Pengle Zhang, Xu Han, Guangxuan Xiao, Yankai Lin, Zhengyan Zhang, Zhiyuan Liu, Song Han, and Maosong Sun. 2024a. InfLLM: Unveiling the intrinsic capacity of LLMs for understanding extremely long sequences with training-free memory. arXiv preprint arXiv:2402.04617.
Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. 2024b. Efficient streaming language models with attention sinks. In International Conference on Learning Representations.
Siheng Xiong, Oguzhan Gungordu, James C Kerce, and Faramarz Fekri. 2026. Adaptive information control for search-augmented llm reasoning. arXiv preprint arXiv:2602.01672.
Siheng Xiong, Joe Zou, Faramarz Fekri, and Yae Jee Cho. Long-context modeling with dynamic hierarchical sparse attention for memory-constrained llm inference. In Forty-third International Conference on Machine Learning.
Manzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontaón, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, and Amr Ahmed. 2020. Big Bird: Transformers for longer sequences. In Advances in Neural Information Processing Systems.
Xinrong Zhang, Yijiang Chen, Shengding Hu, Zihang Xu, Junhao Chen, Moo Hao, Xu Han, Zhen Thai, Shuo Wang, Zhiyuan Liu, and Maosong Sun. 2024. InfiniteBench: Extending long context evaluation beyond 100k tokens. arXiv preprint arXiv:2402.13718.
Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuan-dong Tian, Christopher Ré, Clark Barrett, Zhangyang Wang, and Beidi Chen. 2023. H2O: Heavy-hitter oracle for efficient generative inference of large language models. In Advances in Neural Information Processing Systems.