paper-with-me

Papers

Better Prompt Compression Without Multi-Layer Perceptrons

2025-01-12 · Edouardo Honig, Andrew Lizarraga, Zijun Frank Zhang, Ying Nian Wu

Prompt compression is a promising approach to speeding up language model inference without altering the generative model. Prior works compress prompts into smaller sequences of learned tokens using an encoder that is trained as a LowRank Adaptation (LoRA) of the inference language model. However, we show that the encoder does not need to keep the original language model's architecture to achieve useful compression. We introduce the Attention-Only Compressor (AOC), which learns a prompt compression encoder after removing the multilayer perceptron (MLP) layers in the Transformer blocks of a language model, resulting in an encoder with roughly 67% less parameters compared to the original model. Intriguingly we find that, across a range of compression ratios up to 480x, AOC can better regenerate prompts and outperform a baseline compression encoder that is a LoRA of the inference language model without removing MLP layers. These results demonstrate that the architecture of prompt compression encoders does not need to be identical to that of the original decoder language model, paving the way for further research into architectures and approaches for prompt compression.

📄 PDF Abstract BibTeX arXiv:2501.06730

Code (0)

등록된 구현이 없습니다.

Tasks

DecoderLanguage ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Adam 설명 없음
Residual Connection 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.

Similar 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 mode…

In-Context LearningInformativenessLanguage ModellingText Summarization

Progressive Learning with Visual Prompt Tuning for Variable-Rate Image Compression

2023-11-23 · Shiyu Qin, Yimin Zhou, Jinpeng Wang, Bin Chen 외

In this paper, we propose a progressive learning paradigm for transformer-based variable-rate image compression. Our approach covers a wide range of compression rates with the assistance of the Layer-adaptive Prompt Modu…

DecoderImage CompressionVisual Prompt Tuning

Probing the Prompt KV Cache: Where It Becomes Dispensable

2026-05-28 · Vinayshekhar Bannihatti Kumar, Manoj Ghuhan Arivazhagan, Disha Makhija, Rashmi Gangadharaiah arxiv

Prior KV cache compression schemes empirically demonstrate that the prompt cache is partially redundant during decoding, dropping or summarising entries with little accuracy loss. We ask when and what kind of redundancy:…

Compressing Many-Shots in In-Context Learning

2025-10-17 · Devvrit Khatri, Pranamya Kulkarni, Nilesh Gupta, Yerram Varun 외 arxiv

Large Language Models (LLMs) have been shown to be able to learn different tasks without explicit finetuning when given many input-output examples / demonstrations through In-Context Learning (ICL). Increasing the number…

Computational Efficiency

PromptDistill: Query-based Selective Token Retention in Intermediate Layers for Efficient Large Language Model Inference

2025-03-30 · Weisheng Jin, Maojia Song, Tej Deep Pala, Yew Ken Chia 외

As large language models (LLMs) tackle increasingly complex tasks and longer documents, their computational and memory costs during inference become a major bottleneck. To address this, we propose PromptDistill, a novel,…

Language ModelingLanguage ModellingLarge Language Model