YOCO++: Enhancing YOCO with KV Residual Connections for Efficient LLM Inference
Organizations: ShanghaiTech University · Alibaba Group · Zhejiang University
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.
Figures & tables
| Model | HellaSwag | OBQA | WinoGrande | ARC-c | ARC-e | PIQA | Avg |
|---|---|---|---|---|---|---|---|
| Transformer | 51.25 | 33.0 | 56.04 | 27.56 | 52.1 | 70.29 | 48.37 |
| YOCO | 51.21 | 32.0 | 53.59 | 29.01 | 51.43 | 70.62 | 47.98 |
| FusedKV-Lite | 52.28 | 32.8 | 54.93 | 28.24 | 52.19 | 70.13 | 48.43 |
| FusedKV | 52.04 | 32.0 | 55.48 | 28.67 | 51.98 | 70.35 | 48.42 |
| YOCO++ | 52.30 | 34.0 | 55.48 | 27.90 | 53.11 | 71.16 | 48.99 |
| Model | Valid Loss |
|---|---|
| Transformer | 2.4266 |
| YOCO | 2.4372 |
| FusedKV-Lite | 2.4258 |
| FusedKV | 2.4204 |
| YOCO++ | 2.4194 |
| w/o scaling | 2.4333 |
LLM Inference Acceleration
LLM inference acceleration develops algorithms and systems that reduce language-model latency, memory use, and serving cost while preserving output quality.
See all 1,084 papers