Fold the Loop: Decoding-Time KV Memory for Looped Vision-Language Models
Kun Zhou, Wenmian Yang, Zhensheng Wang, Yanzeng Li, Weijia Jia
Abstract
Looped vision-language models (VLMs) deepen visual reasoning by repeatedly applying weight-tied modules. However, their decoding memory grows with recurrent depth and limits the image size and batch size that fit in a fixed memory budget. Each recurrent step produces its own key-value (KV) states, so the cache holds several copies of the same image. We find that, after an exact prefill, earlier steps still need access to visual information but can reuse the final visual KV within the same module. We propose FoldCache, which compresses visual KV along the recurrent axis while preserving the full prefill computation. FoldCache partitions recurrent steps within each module into groups and retains the final visual KV of each group for its members to share during decoding. Sharing stays within module boundaries, while question and answer KV remain separate for each step. The grouping granularity controls the degree of compression, and folding can be combined with token eviction and quantization to further reduce memory use. On LoopVL, FoldCache approximately halves prefix KV memory while matching full-cache accuracy on five open-ended benchmarks. These memory savings support batch sizes up to 1.7 times those of a full cache under the same GPU memory budget, and up to 2.6 times with the more aggressive FoldCache-Lite.
Create a lesson
Metadata
- Comments
- v2: Added author affiliations and postal codes
Related papers
Polytropos: What Do Vision-Language Model Descriptions Make of a Cultural Object?
Shared title terminologycs.CVYuechen Jiang, Enze Zhang, Yuyan Wang et al.
Elicitation format changes zero-shot classification accuracy in a medical vision-language model: a two-center evaluation on colorectal histopathology
Shared title terminologycs.CVAnay Sinhal, Amit Sinhal, Arpana Sinhal
Diagnosing Verbalized Confidence in a Medical Vision-Language Model for Selective Prediction on Colorectal Histopathology Patches
Shared title terminologycs.CVAnay Sinhal, Amit Sinhal, Ashish Pandey et al.
CLASP: Complementary Layer Selection and Profiling for Zero-Shot OOD Detection using Vision-Language Models
Shared title terminologycs.CVSaahil Islam, Adarsh Bhandary Panambur, Teodora Spasojevic et al.
From Pairwise to Collective: Encoder Collections Make Unpaired Vision-Language Alignment Reliable
Shared title terminologycs.CVXuanhua Yin, Shunqi Mao, Chuanzhi Xu et al.
GlaucomaMarker - Biomarker-Grounded Glaucoma Vision-Language Model
Shared title terminologycs.CVAhammed Sakir Nabil, Sadia Siraz, Nikita Chincholkar et al.