{"id":"arxiv:2411.15785","kind":"preprint","title":"A Method for Building Large Language Models with Predefined KV Cache Capacity","authors":["Zhonghua Yi","Ge Niu","Lei Wang","Wei Tang","Liqiu Zhang"],"author_count":5,"year":2024,"published":"2024-11-24","venue":null,"cited_by":0,"doi":null,"arxiv_id":"2411.15785","nct_id":null,"source_url":"https://arxiv.org/abs/2411.15785","archive_url":"https://space-kitty.com/papers/arxiv:2411.15785","updated":"2024-11-27","pmid":null,"pmcid":null,"openalex_id":"W4405023509","pdf_url":"https://arxiv.org/pdf/2411.15785","abstract":"This paper introduces a novel approach, the Bounded-Cache Transformer (BCT), for building large language models with a predefined Key-Value (KV) cache capacity. The BCT addresses the excessive memory consumption issue in traditional KV caches by implementing a bounded-length KV cache, which is particularly suitable for the attention layers in Transformer decode-only architectures. By dynamically updating the key-value vector sequences, the BCT achieves efficient inference within limited cache capacity, significantly reducing memory usage while maintaining model performance and system throughput. Experimental results demonstrate that the BCT significantly reduces memory usage while maintaining the model's inference quality, offering a new solution for efficient inference in large language models.","abstract_license":"CC0-1.0 (arXiv descriptive metadata)","license":null,"is_open_access":false,"retracted":false,"peer_reviewed":false,"categories":["cs.CL"],"details":null,"provenance":"arxiv","attribution":"Abstract: arXiv descriptive metadata (CC0). Thank you to arXiv for use of its open access interoperability. This service was not reviewed or approved by, nor does it necessarily express or reflect the policies or opinions of, arXiv.","topics":[{"slug":"efficient-ai","name":"Efficient Training & Inference","domain_slug":"ai"}],"cited_in_dossiers":[]}