paper-with-me

홈 › Papers

Style-Compress: An LLM-Based Prompt Compression Framework Considering Task-Specific Styles

2024-10-17 · Xiao Pu, Tianxing He, Xiaojun Wan

Prompt compression condenses contexts while maintaining their informativeness for different usage scenarios. It not only shortens the inference time and reduces computational costs during the usage of large language models, but also lowers expenses when using closed-source models. In a preliminary study, we discover that when instructing language models to compress prompts, different compression styles (e.g., extractive or abstractive) impact performance of compressed prompts on downstream tasks. Building on this insight, we propose Style-Compress, a lightweight framework that adapts a smaller language model to compress prompts for a larger model on a new task without additional training. Our approach iteratively generates and selects effective compressed prompts as task-specific demonstrations through style variation and in-context learning, enabling smaller models to act as efficient compressors with task-specific examples. Style-Compress outperforms two baseline compression models in four tasks: original prompt reconstruction, text summarization, multi-hop QA, and CoT reasoning. In addition, with only 10 samples and 100 queries for adaptation, prompts compressed by Style-Compress achieve performance on par with or better than original prompts at a compression ratio of 0.25 or 0.5.

📄 PDF Abstract BibTeX arXiv:2410.14042

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context LearningInformativenessLanguage ModellingText Summarization

Similar Papers 제목 키워드 기반

LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression

2024-03-19 · Zhuoshi Pan, Qianhui Wu, Huiqiang Jiang, Menglin Xia 외

This paper focuses on task-agnostic prompt compression for better generalizability and efficiency. Considering the redundancy in natural language, existing approaches compress prompts by removing tokens or lexical units …

GSM8KLanguage ModellingText Compressiontoken-classification+1

DVC: An End-to-end Deep Video Compression Framework

2018-11-30 · CVPR 2019 6 · Guo Lu, Wanli Ouyang, Dong Xu, Xiaoyun Zhang 외

Conventional video compression approaches use the predictive coding architecture and encode the corresponding motion information and residual information. In this paper, taking advantage of both classical architecture in…

MS-SSIMOptical Flow EstimationSSIMVideo Compression

Fundamental Limits of Prompt Compression: A Rate-Distortion Framework for Black-Box Language Models

2024-07-22 · Alliot Nagle, Adway Girish, Marco Bondaschi, Michael Gastpar 외

We formalize the problem of prompt compression for large language models (LLMs) and present a framework to unify token-level prompt compression methods which create hard prompts for black-box models. We derive the distor…

Natural Language Queries

LAV: Audio-Driven Dynamic Visual Generation with Neural Compression and StyleGAN2

2025-05-15 · Jongmin Jung, Dasaem Jeong

This paper introduces LAV (Latent Audio-Visual), a system that integrates EnCodec's neural audio compression with StyleGAN2's generative capabilities to produce visually dynamic outputs driven by pre-recorded audio. Unli…

Audio Compression

LanguaShrink: Reducing Token Overhead with Psycholinguistics

2024-09-01 · Xuechen Liang, Meiling Tao, Yinghui Xia, Tianyu Shi 외

As large language models (LLMs) improve their capabilities in handling complex tasks, the issues of computational cost and efficiency due to long prompts are becoming increasingly prominent. To accelerate model inference…

ArticlesSemantic SimilaritySemantic Textual Similarity