LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models
원문 초록
Large language models (LLMs) have been applied in various applications due to their astonishing capabilities. With advancements in technologies such as chain-of-thought (CoT) prompting and in-context learning (ICL), the prompts fed to LLMs are becoming increasingly lengthy, even exceeding tens of thousands of tokens. To accelerate model inference and reduce cost, this paper presents LLMLingua, a coarse-to-fine prompt compression method that involves a budget controller to maintain semantic integrity under high compression ratios, a token-level iterative compression algorithm to better model the interdependence between compressed contents, and an instruction tuning based method for distribution alignment between language models. We conduct experiments and analysis over four datasets from different scenarios, i.e., GSM8K, BBH, ShareGPT, and Arxiv-March23; showing that the proposed approach yields state-of-the-art performance and allows for up to 20x compression with little performance loss. Our code is available at https://aka.ms/LLMLingua.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Data Whisperer: Efficient Data Selection for Task-Specific LLM Fine-Tuning via Few-Shot In-Context Learning
TutorGym: A Testbed for Evaluating AI Agents as Tutors and Students
DAC: A Dynamic Attention-aware Approach for Task-Agnostic Prompt Compression
Assay2Mol: large language model-based drug design using BioAssay context
any4: Learned 4-bit Numeric Representation for LLMs
IRanker: Towards Ranking Foundation Model
토론
이 논문과 연결된 포럼 글이 아직 없습니다.