paper-with-me

홈 › Papers

Reconstructing KV Caches with Cross-layer Fusion For Enhanced Transformers

2025-12-03 · Hongzhan Lin, Zhiqi Bai, Xinmiao Zhang, Sen Yang, Xiang Li, Siran Yang, Yunlong Xu, Jiaheng Liu, Yongchi Zhao, Jiamang Wang, Yuchi Xu, Wenbo Su, Bo Zheng arxiv

Transformer decoders have achieved strong results across tasks, but the memory required for the KV cache becomes prohibitive at long sequence lengths. Although Cross-layer KV Cache sharing (e.g., YOCO, CLA) offers a path to mitigate KV Cache bottleneck, it typically underperforms within-layer methods like GQA. To understand the root cause, we investigate the information flow of keys and values of the top-layers. Our preliminary reveals a clear distribution: values are predominantly derived from the bottom layer, while keys draw more information from both bottom and middle layers. Building upon this, we propose FusedKV, whose top-layer KV caches are a learnable fusion of the most informative ones from the bottom and middle layers. This fusion operates directly on post-RoPE keys, preserving relative positional information without the computational cost of re-applying rotary embeddings. To further improve efficiency, we propose FusedKV-Lite, an cross-layer sharing approach, where top-layer KV caches are directly derived from the bottom-layer values and the middle-layer keys. Compared to FusedKV, FusedKV-Lite reduces I/O overhead at the cost of a slight increase in perplexity. In experiments on LLMs ranging from 332M to 4B parameters, our proposed method reduce 50\% cache memory while achieving lower validation perplexity than the standard Transformer decoder, establishing it as a memory-efficient, high-performance architectural alternative.

📄 PDF Abstract BibTeX arXiv:2512.03870

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Attention Is All You Need for KV Cache in Diffusion LLMs

2025-10-16 · Quan Nguyen-Tri, Mukul Ranjan, Zhiqiang Shen arxiv

This work studies how to adaptively recompute key-value (KV) caches for diffusion large language models (DLMs) to maximize prediction accuracy while minimizing decoding latency. Prior methods' decoders recompute QKV for …

Mathematical ReasoningCode Generation

AccKV: Towards Efficient Audio-Video LLMs Inference via Adaptive-Focusing and Cross-Calibration KV Cache Optimization

2025-11-14 · Zhonghua Jiang, Kui Chen, Kunxi Li, Keting Yin 외 arxiv

Recent advancements in Audio-Video Large Language Models (AV-LLMs) have enhanced their capabilities in tasks like audio-visual question answering and multimodal dialog systems. Video and audio introduce an extended tempo…

Audio-visual Question AnsweringComputational Efficiency

Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttention

2024-03-23 · Bin Gao, Zhuomin He, Puru Sharma, Qingxuan Kang 외

Interacting with humans through multi-turn conversations is a fundamental feature of large language models (LLMs). However, existing LLM serving engines executing multi-turn conversations are inefficient due to the need …

GPULanguage ModelingLanguage ModellingLarge Language Model

ZigZagkv: Dynamic KV Cache Compression for Long-context Modeling based on Layer Uncertainty

2024-12-12 · Meizhi Zhong, Xikai Liu, Chen Zhang, Yikun Lei 외

Large Language models (LLMs) have become a research hotspot. To accelerate the inference of LLMs, storing computed caches in memory has become the standard technique. However, as the inference length increases, growing K…

Agent Memory Below the Prompt: Persistent Q4 KV Cache for Multi-Agent LLM Inference on Edge Devices

2026-02-17 · Yakov Pyotr Shkolnikov arxiv

Multi-agent LLM systems on edge devices face a memory management problem: device RAM is too small to hold every agent's KV cache simultaneously. On Apple M4 Pro with 10.2 GB of cache budget, only 3 agents fit at 8K conte…