LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression
AI-generated Key Points
⚠The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.
- LongLLMLingua is a proposed solution for addressing challenges faced by large language models (LLMs) in long context scenarios.
- Challenges include higher computational/financial cost, longer latency, and inferior performance.
- LongLLMLingua aims to improve LLMs' perception of key information through prompt compression.
- Evaluation of LongLLMLingua covers various long context scenarios such as single-/multi-document QA, few-shot learning, summarization, synthetic tasks, and code completion.
- Experimental results show that LongLLMLingua's compressed prompts achieve higher performance with reduced cost.
- On the NaturalQuestions benchmark, LongLLMLingua achieves a performance boost of up to 17.1% compared to the original prompt while using approximately 4 times fewer tokens as input to GPT-3.5-Turbo.
- LongLLMLingua offers significant cost savings in benchmarks like LongBench and ZeroScrolls amounting to $28.5 and $27.4 per 1,000 samples respectively.
- When compressing prompts with a compression rate of 2x-10x (~10k tokens), LongLLMLingua speeds up the end-to-end latency by 1.4x-3.8x.
- Authors of this work are Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, Chin-Yew Lin Yuqing Yang and Lili Qiu who published their paper titled "LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression" providing further details on this approach for improving LLMs in long context scenarios.
Authors: Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, Chin-Yew Lin, Yuqing Yang, Lili Qiu
Abstract: In long context scenarios, large language models (LLMs) face three main challenges: higher computational/financial cost, longer latency, and inferior performance. Some studies reveal that the performance of LLMs depends on both the density and the position of the key information (question relevant) in the input prompt. Inspired by these findings, we propose LongLLMLingua for prompt compression towards improving LLMs' perception of the key information to simultaneously address the three challenges. We conduct evaluation on a wide range of long context scenarios including single-/multi-document QA, few-shot learning, summarization, synthetic tasks, and code completion. The experimental results show that LongLLMLingua compressed prompt can derive higher performance with much less cost. The latency of the end-to-end system is also reduced. For example, on NaturalQuestions benchmark, LongLLMLingua gains a performance boost of up to 17.1% over the original prompt with ~4x fewer tokens as input to GPT-3.5-Turbo. It can derive cost savings of \$28.5 and \$27.4 per 1,000 samples from the LongBench and ZeroScrolls benchmark, respectively. Additionally, when compressing prompts of ~10k tokens at a compression rate of 2x-10x, LongLLMLingua can speed up the end-to-end latency by 1.4x-3.8x. Our code is available at https://aka.ms/LLMLingua.
Ask questions about this paper to our AI assistant
You can also chat with multiple papers at once here.
⚠The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.
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.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
⚠The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.
Similar papers summarized with our AI tools
Navigate through even more similar papers through a
tree representationLook 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.