🤖 AI Summary
Existing cross-layer key-value (KV) compression methods often incur significant performance degradation while reducing KV cache memory consumption during large language model inference. This work proposes YOCO++, which introduces weighted residual connections into the cross-layer KV sharing architecture for the first time. By adaptively fusing KV information from shallow and deepest layers, YOCO++ enhances model expressiveness without introducing additional computational overhead. Combined with an efficient fine-tuning strategy, YOCO++ achieves state-of-the-art performance under 50% KV cache compression—surpassing even the standard Transformer—and substantially improves inference quality at high compression ratios.
📝 Abstract
Cross-layer key-value (KV) compression has been found to be effective in efficient inference of large language models (LLMs). Although they reduce the memory consumption of the KV cache, such methods usually introduce non-negligible performance degradation. In this work, we aim to enhance the performance of YOCO, a cross-layer KV compression method that shares the KVs of the middle layer with the top-half layers. We propose YOCO++, an enhanced YOCO that incorporates a weighted residual connection between the KVs of each bottom-half layer and the bottom layer. Compared to YOCO, YOCO++ increases model capacity while maintaining the same training and inference efficiency. Our experiments show that YOCO++ achieves state-of-the-art performance among the cross-layer KV compression methods at a 50% KV cache compression rate, outperforming the standard Transformer.