ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
0
Citations
0
Influential Citations
—
Venue
2024
Year
A novel approach to task-agnostic prompt compression, aiming to enhance generalizability, using data distillation and leveraging a Transformer encoder for token classification.
Prompt compression is a critical challenge for deploying large language models (LLMs) efficiently, as long prompts increase computational cost and latency. Existing methods often require task-specific fine-tuning or rely on heuristics that fail to generalize. LLMLingua2 addresses this gap by proposing a task-agnostic compression approach that can be applied to any prompt without retraining. This is particularly significant for real-world applications where prompts vary widely and retraining for each task is impractical.
The use of data distillation to generate training data is a clever way to leverage the knowledge of a larger model (the teacher) to train a smaller, efficient compressor. This technique helps the model learn which tokens are redundant across many tasks, leading to better generalization. By framing compression as token classification, the method is both simple and effective, allowing for fine-grained control over which parts of the prompt to keep.
The paper demonstrates that LLMLingua2 achieves compression ratios of 2x to 5x with minimal degradation in task performance. For example, on the GSM8K math reasoning dataset, it retains over 90% of the original accuracy while compressing prompts by 3x. Compared to prior task-agnostic methods like Selective Context, LLMLingua2 shows better retention of key information, especially in long prompts. The method also outperforms task-specific compressors on unseen tasks, highlighting its generalizability.
LLMLingua2 has the potential to make LLM inference more cost-effective and faster, especially for applications with long context windows like document analysis or multi-turn conversations. By removing the need for task-specific tuning, it lowers the barrier for deploying compression in production systems. This work also opens avenues for further research into learned compression for LLMs, such as integrating compression directly into the model architecture or extending it to multimodal inputs.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba