Key-Value Caching Optimization System and Method for Reducing Memory Overhead in Long Text Inference of Large Language Models

By performing singular value decomposition and adaptive decoupling on the static weights of large language models, combined with structured coding and low-rank projection, the problem of excessive GPU memory overhead in long text inference of large language models is solved, thereby reducing GPU memory usage and improving inference efficiency.

CN122132181APending Publication Date: 2026-06-02TIANJIN UNIV

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TIANJIN UNIV
Filing Date
2026-03-04
Publication Date
2026-06-02

Smart Images

  • Figure CN122132181A_ABST
    Figure CN122132181A_ABST
Patent Text Reader

Abstract

This invention discloses a key-value (KV) caching optimization system to reduce the memory overhead of long text inference in large language models. The system includes an offline optimization module, a pre-filling decoupling module, a caching module, and a dynamic reconstruction module. The offline optimization module determines the optimal compression parameters for each layer of the model and performs offline decomposition of static weights. The pre-filling decoupling module adaptively decouples the input lexical embeddings into sparse components and residual components, generating structured codes. The caching module stores these structured codes to replace traditional KV matrices. The dynamic reconstruction module uses a custom operator to reconstruct the codes into transient KV tensors in real time during the inference phase and releases them immediately after attention calculation. This invention preserves key feature information through an adaptive decoupling mechanism; reduces the storage requirements of residual components through structured coding and low-rank projection; and efficiently reconstructs the compressed sparse and low-rank codes through a custom fusion operator, establishing an on-demand calculation and immediate release mechanism for transient key-value tensors.
Need to check novelty before this filing date? Find Prior Art