Efficient Inference of Vision Instruction-Following Models with Elastic Cache

Zuyan Liu, Benlin Liu, Jiahui Wang, Yuhao Dong, Guangyi Chen +3 more
2/14/2026

No official code found. Best implementation: liuzuyan/ElasticCache (43 stars, MIT, last commit 2024-07-26).

Abstract

In the field of instruction-following large vision-language models (LVLMs), the efficient deployment of these models faces challenges, notably due to the high memory demands of their key-value (KV) caches. Conventional cache management strategies for LLMs focus on cache eviction, which often fails to address the specific needs of multimodal instruction-following models. Recognizing this gap, in this paper, we introduce Elastic Cache, a novel approach that benefits from applying distinct acceleration methods for instruction encoding and output generation stages. We investigate the metrics of importance in different stages and propose an importance-driven cache merging strategy to prune redundancy caches. Instead of discarding less important caches, our strategy identifies important key/value vectors as anchor points. Surrounding less important caches are then merged with these anchors, enhancing the preservation of contextual information in the KV caches while yielding an arbitrary acceleration ratio. For instruction encoding, we utilize the frequency to evaluate the importance of caches. Regarding output generation, we prioritize tokens based on their distance with an offset, by which both the initial and most recent tokens are retained. Results on a range of LVLMs demonstrate that Elastic Cache not only boosts efficiency but also notably outperforms existing pruning methods in language generation across various tasks. Code is available at https://github.com/liuzuyan/ElasticCache

View on arXivView PDF

Code Implementations(1)

MIT

[ECCV 2024] Efficient Inference of Vision Instruction-Following Models with Elastic Cache

433Shell, PythonJul 25, 20242 years agoMIT

Similar Papers

Cite this paper

@article{liu2026efficient,
  title  = {Efficient Inference of Vision Instruction-Following Models with Elastic Cache},
  author = {Zuyan Liu and Benlin Liu and Jiahui Wang and Yuhao Dong and Guangyi Chen and Yongming Rao and Ranjay Krishna and Jiwen Lu},
  year   = {2026},
  eprint = {2407.18121},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2407.18121},
  journal = {ECCV 2024 2024}
}

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

Discussion