Salvato in:
Dettagli Bibliografici
Autori principali: Honig, Edouardo, Lizarraga, Andrew, Zhang, Zijun Frank, Wu, Ying Nian
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:https://arxiv.org/abs/2501.06730
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916562986860544
author Honig, Edouardo
Lizarraga, Andrew
Zhang, Zijun Frank
Wu, Ying Nian
author_facet Honig, Edouardo
Lizarraga, Andrew
Zhang, Zijun Frank
Wu, Ying Nian
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2501_06730
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Better Prompt Compression Without Multi-Layer Perceptrons
Honig, Edouardo
Lizarraga, Andrew
Zhang, Zijun Frank
Wu, Ying Nian
Computation and Language
Machine Learning
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.
title Better Prompt Compression Without Multi-Layer Perceptrons
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2501.06730