一种基于混合量化精度键值缓存的自注意力机制计算装置

By designing a self-attention mechanism computing device based on hybrid quantization precision and optimizing the storage and computation process of key-value cache, the problems of high computational complexity and low storage resource utilization in the self-attention mechanism are solved, and efficient computation and optimized utilization of storage resources are achieved.

CN119047527BActive Publication Date: 2026-07-17SOUTHEAST UNIV

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SOUTHEAST UNIV
Filing Date
2024-08-07
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

The self-attention mechanism suffers from high computational complexity and low storage resource utilization, especially in large-scale data processing where computational efficiency is low. Furthermore, existing hybrid quantization precision techniques have failed to effectively address the time issues associated with key-value caching and nonlinear unit computation.

Method used

Design a self-attention mechanism computing device based on hybrid quantization precision, including an input data quantization module, a self-attention mechanism computing module, an nm dequantization operation module, a computation difference-load difference matching module, and a key-value cache module. By dynamically adjusting the quantization precision and optimizing the storage and computation process of the key-value cache, a balance between precision and computational performance is achieved.

Benefits of technology

It significantly reduces computational complexity, improves computational efficiency, reduces storage overhead, and lowers energy consumption. It is suitable for a variety of complex computing scenarios and achieves the best balance between inference accuracy and computational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119047527B_ABST
    Figure CN119047527B_ABST
Patent Text Reader

Abstract

本发明公开一种基于混合量化精度键值缓存的自注意力机制计算装置,属于计算、推算或计数的技术领域。该计算结构包括:自注意力机制计算模块、输入数据量化模块、混合量化精度的键值缓存模块、n‑m反量化操作模块以及计算差‑加载差匹配模块,在键值缓存中键矩阵采用n量化精度存储,值矩阵采用m量化精度存储。利用键矩阵和值矩阵之间由于Softmax和n‑m反量化操作模块产生的计算周期差,通过计算差‑加载差匹配模块,不断微调匹配键矩阵和值矩阵之间的计算周期差和加载周期差,在n‑m量化精度方案集合中选择最匹配的混合量化精度方案,实现了自注意力机制计算精度和模型压缩的动态调节,具有功耗低,能效高,延时低的技术优势。
Need to check novelty before this filing date? Find Prior Art