Prompt Compression via Activation Aggregation

Thibaud Ardoin, Semira Einsele, Evis Bregu, Gerhard Wunder
7/9/2026
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Large language models process prompts by propagating activations through dozens of layers before generating a response. We ask whether the task-relevant information contained in an instruction prompt can be compressed into a single activation vector and re-injected into the model, replacing the original token sequence? We show this is achievable using a learned weighted sum of activations extracted at an intermediate layer and injected at an early layer of the target LLM. The compressed vector preserves task-relevant information, incurring an accuracy drop of under $2\%$ relative to full prompt processing. Beyond its practical implications, including reducing per-query computation for fixed instruction prompts without reprocessing the original token sequence, our analysis reveals structure in the activation space of LLMs: (i) mid-layer representations transfer meaningfully to early layers, suggesting a degree of cross-layer compatibility in how information is encoded; (ii) a single activation vector encodes a quantifiable and recoverable amount of semantic information; (iii) a weighted sum of activations is a robust representation compressor.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ardoin2026prompt,
  title  = {Prompt Compression via Activation Aggregation},
  author = {Thibaud Ardoin and Semira Einsele and Evis Bregu and Gerhard Wunder},
  year   = {2026},
  eprint = {2607.08399},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.08399v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.08399.svg)](https://codeofpaper.com/paper/2607.08399)

Discussion