paper-with-me

홈 › Papers

SelfCP: Compressing Over-Limit Prompt via the Frozen Large Language Model Itself

2024-05-27 · Jun Gao, Ziqiang Cao, Wenjie Li

Long prompt leads to huge hardware costs when using transformer-based Large Language Models (LLMs). Unfortunately, many tasks, such as summarization, inevitably introduce long documents, and the wide application of in-context learning easily makes the prompt length explode. This paper proposes a Self-Compressor (SelfCP), which employs the target LLM itself to compress over-limit prompts into dense vectors while keeping the allowed prompts unmodified. Dense vectors are then projected into dense tokens via a learnable connector to make the same LLM unburden to understand. The connector is supervised-tuned under the language modeling objective of the LLM on relatively long texts selected from publicly accessed datasets, involving an instruction dataset to make SelfCP respond to various prompts, while the target LLM keeps frozen during training. We build the lightweight SelfCP upon 2 different backbones with merely 17M learnable parameters originating from the connector and a learnable embedding. Evaluation on both English and Chinese benchmarks demonstrate that SelfCP effectively substitutes 12$\times$ over-limit prompts with dense tokens to reduce memory costs and booster inference throughputs, yet improving response quality. The outstanding performance brings an efficient solution for LLMs to tackle long prompts without training LLMs from scratch.

📄 PDF Abstract BibTeX arXiv:2405.17052

Code (0)

등록된 구현이 없습니다.

Tasks

DecoderIn-Context LearningLanguage ModelingLanguage ModellingLarge Language Model

Similar Papers 제목 키워드 기반

Learning Evidence Highlighting for Frozen LLMs

2026-04-24 · Shaoang Li, Yanhang Shi, Yufei Li, Mingfu Liang 외 arxiv

Large Language Models (LLMs) can reason well, yet often miss decisive evidence when it is buried in long, noisy contexts. We introduce HiLight, an Evidence Emphasis framework that decouples evidence selection from reason…

Sequential RecommendationReinforcement LearningQuestion Answering

ComMer: a Framework for Compressing and Merging User Data for Personalization

2025-01-05 · Yoel Zeldes, Amir Zait, Ilia Labzovsky, Danny Karmon 외

Large Language Models (LLMs) excel at a wide range of tasks, but adapting them to new data, particularly for personalized applications, poses significant challenges due to resource and computational constraints. Existing…

Headline Generation

Model Tuning or Prompt Tuning? A Study of Large Language Models for Clinical Concept and Relation Extraction

2023-10-10 · Cheng Peng, Xi Yang, Kaleb E Smith, Zehao Yu 외

Objective To develop soft prompt-based learning algorithms for large language models (LLMs), examine the shape of prompts, prompt-tuning using frozen/unfrozen LLMs, transfer learning, and few-shot learning abilities. Met…

Few-Shot LearningRelation ExtractionTransfer Learning

Batch-Max: Higher LLM Throughput using Larger Batch Sizes and KV Cache Compression

2024-12-07 · Michael R. Metel, Boxing Chen, Mehdi Rezagholizadeh

Several works have developed eviction policies to remove key-value (KV) pairs from the KV cache for more efficient inference. The focus has been on compressing the KV cache after the input prompt has been processed for f…

GPU

Learning to Compress Prompt in Natural Language Formats

2024-02-28 · Yu-Neng Chuang, Tianwei Xing, Chia-Yuan Chang, Zirui Liu 외

Large language models (LLMs) are great at processing multiple natural language processing tasks, but their abilities are constrained by inferior performance with long context, slow inference speed, and the high cost of c…