InfiniteHiP: Extending Language Model Context Up to 3 Million Tokens on a Single GPU

AI-generated keywords: Large Language Models InfiniteHiP Long Contexts Efficient Utilization Faster Processing

AI-generated Key Points

  • Challenge of handling very long context lengths in modern large language models (LLMs)
  • Introduction of a novel LLM inference framework to address slow inference speeds and increased memory costs
  • Framework accelerates processing by dynamically eliminating irrelevant context tokens through hierarchical token pruning algorithm
  • Allows for generalization to longer sequences by applying RoPE adjustment methods based on internal attention patterns within LLMs
  • Offloading key-value cache to host memory during inference results in substantial reduction in GPU memory pressure
  • Enables processing of up to 3 million tokens on a single L40s 48GB GPU without permanent loss of context information
  • Achieves an impressive 18.95x speedup in attention decoding for a 1 million token context without additional training
  • Implemented within the SGLang framework, demonstrating effectiveness and practicality through evaluations on LongBench and ��Bench benchmarks
  • Superior performance and practicality showcased in latency benchmarks compared to previous state-of-the-art approaches
  • Potential to enhance energy efficiency and reduce inference latency without altering trained behavior of existing Transformer models
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Heejun Lee, Geon Park, Jaduk Suh, Sung Ju Hwang

21 pages
License: CC BY-NC-SA 4.0

Abstract: In modern large language models (LLMs), handling very long context lengths presents significant challenges as it causes slower inference speeds and increased memory costs. Additionally, most existing pre-trained LLMs fail to generalize beyond their original training sequence lengths. To enable efficient and practical long-context utilization, we introduce InfiniteHiP, a novel, and practical LLM inference framework that accelerates processing by dynamically eliminating irrelevant context tokens through a modular hierarchical token pruning algorithm. Our method also allows generalization to longer sequences by selectively applying various RoPE adjustment methods according to the internal attention patterns within LLMs. Furthermore, we offload the key-value cache to host memory during inference, significantly reducing GPU memory pressure. As a result, InfiniteHiP enables the processing of up to 3 million tokens on a single L40s 48GB GPU -- 3x larger -- without any permanent loss of context information. Our framework achieves an 18.95x speedup in attention decoding for a 1 million token context without requiring additional training. We implement our method in the SGLang framework and demonstrate its effectiveness and practicality through extensive evaluations.

Submitted to arXiv on 13 Feb. 2025

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2502.08910v1

In the realm of modern large language models (LLMs), the challenge of handling very long context lengths has been a significant hurdle. This has led to slower inference speeds and increased memory costs. To address these issues and enable efficient utilization of long contexts, the framework is introduced. This novel LLM inference framework accelerates processing by dynamically eliminating irrelevant context tokens through a modular hierarchical token pruning algorithm. Additionally, it allows for generalization to longer sequences by selectively applying various RoPE adjustment methods based on internal attention patterns within LLMs. One key feature of is the offloading of key-value cache to host memory during inference. This results in a substantial reduction in GPU memory pressure. As a result, enables the processing of up to 3 million tokens on a single L40s 48GB GPU – three times larger than previous capabilities – without any permanent loss of context information. The framework achieves an impressive 18.95x speedup in attention decoding for a 1 million token context without requiring additional training. Implemented within the SGLang framework, demonstrates its effectiveness and practicality through extensive evaluations on LongBench and ��Bench benchmarks. The latency benchmarks showcase the superior performance and practicality of this method over previous state-of-the-art approaches. Looking ahead, we believe that has the potential to significantly enhance energy efficiency and reduce inference latency without altering the trained behavior of existing Transformer models. With strong results in performance recovery and faster processing speeds, this method is poised to offer substantial benefits for production use in the future.
Created on 14 Feb. 2025

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.