Clustering-driven Memory Compression for On-device Large Language Models

Ondrej Bohdal, Pramit Saha, Umberto Michieli, Mete Ozay, Taha Ceritli
1/24/2026
cs.CLcs.AIcs.LG

No confident code implementation found for this paper. 6 possible matches can be shown below.

Abstract

Large language models (LLMs) often rely on user-specific memories distilled from past interactions to enable personalized generation. A common practice is to concatenate these memories with the input prompt, but this approach quickly exhausts the limited context available in on-device LLMs. Compressing memories by averaging can mitigate context growth, yet it frequently harms performance due to semantic conflicts across heterogeneous memories. In this work, we introduce a clustering-based memory compression strategy that balances context efficiency and personalization quality. Our method groups memories by similarity and merges them within clusters prior to concatenation, thereby preserving coherence while reducing redundancy. Experiments demonstrate that our approach substantially lowers the number of memory tokens while outperforming baseline strategies such as naive averaging or direct concatenation. Furthermore, for a fixed context budget, clustering-driven merging yields more compact memory representations and consistently enhances generation quality.

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. 6 weaker matches are hidden by default — 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{bohdal2026clusteringdriven,
  title  = {Clustering-driven Memory Compression for On-device Large Language Models},
  author = {Ondrej Bohdal and Pramit Saha and Umberto Michieli and Mete Ozay and Taha Ceritli},
  year   = {2026},
  eprint = {2601.17443},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.17443v1}
}

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/2601.17443.svg)](https://codeofpaper.com/paper/2601.17443)

Discussion