Welcome.AI
    Skip to content
    Deep Learning

    PickPack: Extending AI Context to Millions of Tokens Without Retraining

    PickPack is a way to extend an AI model’s usable context—the amount of text it can consider at once—without retraining it. The method targets a growing gap: models are commonly trained with context wi...

    arxiv.org•December 2, 2026•3 min read

    Key Facts

    • Extend usable context beyond training limits without retraining models.
    • Support long-running agents by processing larger interaction histories.
    • Scale multi-agent workflows that generate substantial combined text.
    • Reduce long-context attention costs by combining operations in one FlashAttention pass.
    • Preserve familiar positional ranges to help maintain attention behavior on longer inputs.

    Summary

    Paper: PickPack: Scaling Context Extension To Millions Of Tokens With Sparse Attention

    Authors: Kumar Krishna Agrawal, Vihaan Thaker, Keshaw Ranjan, Prithvi Dixit, Aditya Desai

    Executive Summary

    PickPack is a way to extend an AI model’s usable context—the amount of text it can consider at once—without retraining it. The method targets a growing gap: models are commonly trained with context windows of 32,000 to 256,000 tokens, while some applications may require processing millions. Long-running AI agents can accumulate large interaction histories, and systems with multiple agents can generate even more text. But extending context is difficult: positions far beyond those seen in training can disrupt how a model attends to information, and standard attention calculations become costly as the input grows.

    PickPack combines two operations in a single pass of FlashAttention, a method for computing attention efficiently. “Pack” maps each query-key pair to a relative position within the model’s trained window. This is intended to keep attention calculations within familiar positional ranges. “Pick” uses scores calculated before the attention probabilities are normalized to decide which blocks of keys to skip. Skipping blocks reduces computation; together, the two operations aim to preserve accuracy while making very long inputs less expensive to process.

    The reported results are from evaluations on Qwen models and comparisons with the methods used to release Qwen2.5, Qwen3.5, and Qwen3.8. They are benchmark results, not evidence of deployment in live business systems or improved outcomes for particular users.

    At 50% sparsity—meaning Pick skips half of the key blocks—PickPack is more accurate than Pack alone on seven of eight tested Qwen3 model sizes and context lengths, and is up to 1.2 times faster. In comparisons with the release-time methods for the named model families, PickPack is reported to be 1.0 to 11.0 points more accurate and up to 1.2 times faster at context lengths from 128,000 tokens to one million tokens. At four million tokens, it is 11.6 points more accurate than the comparison method, using Qwen3.5-9B at 16 times its trained context window. The abstract does not specify the accuracy metric, so these point differences should not be interpreted as percentage gains.

    For organizations working with long documents or extended agent histories, the findings suggest that training-free context extension could make it more practical to process inputs far beyond a model’s original window. The speed results also suggest a potential reduction in processing time, though the abstract provides no cost figures or real-world performance measurements. The four-million-token result is notable because it tests far beyond the model’s training window, but it remains a benchmark finding. It does not establish that every model, workload, or production system will achieve the same accuracy or speed.

    Academic Abstract

    Due to a growing range of applications, long-context processing and long-form generation with AI are becoming increasingly common, particularly with the transition to agentic workloads. Agents are long-lived, continuously produce and consume streams of tokens, and base their subsequent responses on their entire interaction history; multi-agent systems can further amplify this token volume. Models capable of processing long contexts are therefore increasingly necessary, but training with larger context windows is expensive, so most models are trained with windows of 32K to 256K tokens. Application demands can extend to millions of tokens, which creates a need for training-free context extension. Training-free context extension presents two key challenges: (1) out-of-distribution context embeddings, where unseen context lengths can shift attention distributions away from those seen during training, and (2) computational complexity, since attention's quadratic cost makes processing millions of tokens expensive. We propose PickPack, which addresses both challenges with two composable operators in a single FlashAttention pass: Pack maps every query-key pair to a relative position inside the trained window, and Pick uses the pre-softmax logits to dynamically decide which key blocks to skip. At 50% sparsity, PickPack is more accurate than Pack alone on seven of eight Qwen3 model sizes and context lengths, and up to 1.2x faster. Against the recipes that released Qwen2.5, Qwen3.5, and Qwen3.8 models ship with, it is 1.0-11.0 points more accurate and up to 1.2x faster from 128K to one million tokens, and 11.6 points more accurate at four million tokens, 16x the trained window of Qwen3.5-9B.

    Frequently Asked Questions

    What business problem does PickPack address?

    PickPack addresses the challenge of using AI models with text histories far longer than their trained context windows, while aiming to avoid costly standard attention calculations as inputs grow. It could be relevant to applications that need to process very large amounts of accumulated text.

    Which industries benefit most from PickPack?

    The summary does not identify particular industries or establish which would benefit most. Industries using long-running AI agents or systems with multiple agents could potentially find the approach relevant, depending on their needs.

    What are the practical implementation considerations?

    PickPack is designed to extend usable context without retraining the model and combines its operations in a single pass of FlashAttention. Practical use would depend on a system’s model, attention implementation, and need to handle inputs beyond the model’s trained context window; the summary does not specify deployment requirements.

    What resources or expertise might an organization need?

    The summary does not specify staffing or infrastructure requirements. Organizations considering implementation may need expertise in AI model inference and attention mechanisms, as well as the ability to assess whether their systems can use the method.

    What competitive advantages could PickPack offer?

    If effective for a particular application, PickPack could let a business use longer interaction histories or multi-agent text without retraining the model, while addressing the cost of attention on growing inputs. The summary does not establish business outcomes or quantify any advantage.

    Where AI Leaders Stay Informed

    The latest AI intelligence, case studies, and research — delivered to your inbox every week.

    Free to read. Unsubscribe anytime.