跳到正文
arXiv (AI + Vision + Imaging)· Tianqi Chen, Xunchao Li, Linchuan Xie, Guanghua Yu, Jianchen Zhu, Peisong Wang, Jian Cheng·· 2 天前AI 评分28

GateRQ:按门控逐次查表精度量化LLM条件记忆,GPU表内存降7.8倍

Let the Gate Decide: Per-Lookup Precision for Quantized Conditional Memory in LLMs

AI 导读

GateRQ针对DeepSeek Engram类条件记忆层提出按门控加权的逐次查表量化方案,把每行存为1-bit残差码阶梯,仅对门控排名最高的查表读取更深层级。在DeepSeek-V4.1-Flash上无需重训即把GPU表内存降低7.8倍,vLLM吞吐较FP8表提升11%-31%,每次查表读取1.50 bits时PopQA仅损失约1分,2.10 bits时损失0.2分。

正文 · 原文

arXiv:2610.35985v2 Announce Type: replace Abstract: Conditional memory layers, such as DeepSeek's Engram, attach large hashed n-gram tables to a language model, and removing them from DeepSeek-V4.1-Flash costs 36.8 PopQA points. Low-bit quantization loses long-tail facts first, and the standard remedy, giving more bits to frequently accessed rows, backfires: refining lookups by access frequency is worse than refining them at random. We trace this to the gate that scales each retrieved row. A lookup's quantization error is weighted by its gate, which is small for frequent n-grams, large for the rare n-grams of long-tail entities, and computable from a 1-bit code. GateRQ therefore stores each row as a ladder of 1-bit residual codes, keeps level 1 in GPU memory to compute the gate, and reads deeper levels only for the lookups the gate ranks highest. Without retraining, GateRQ cuts GPU table memory by 7.8x on DeepSeek-V4.1-Flash, which raises vLLM throughput by 11%-31% over FP8 tables, while losing about 1 PopQA point at 1.50 bits read per lookup and 0.2 points at 2.10 bits across two models.

来源:arXiv (AI + Vision + Imaging) · arxiv.org