arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.21810cs.LGcs.CL
收藏

两位的N元语法记忆:量化大语言模型中的查找表

N-Gram Memories at Two Bits: Quantizing Lookup Tables in Large Language Models

Dnotitia Inc.(Dnotitia公司);KAIST(韩国科学技术院)

Donghoon Han, Minseop Jung, Dong Woo Kwak, SeungJae Lee, Junhoo Lee

AI总结:

该研究针对大语言模型查找表的量化问题,提出条件程序(CP)压缩表示方法,通过高斯网格等实现两位编码,可降低KL散度、减少存储并提升性能。

摘要:

条件记忆通过选择性查找扩展语言模型的容量,但必须为所有可能的输入保留完整的嵌入表。我们提出条件程序(Conditional Program, CP),一种仅重构输入请求行的压缩表示,该表示用短码和局部尺度表示每行,且在整个表中共享重构程序。我们用高斯网格、范数恢复和可独立解码的行记录实例化该表示。CP的两位码相对于两位最近取整降低了输出KL散度41%至63%。对三个训练后的N元语法记忆族的分析显示,类高斯坐标统计与行之间的学习关系共存;在匹配的存储预算下,共享网格优于我们测试的拟合码本和低秩残差变体。对于DeepSeek,它将表存储从203GB减少到51GB,当表保留在GPU上时,为更大的工作负载留出空间。

英文摘要:

Conditional memory expands language-model capacity through selective lookup, but the full embedding table must remain available for every possible input. We introduce Conditional Program (CP), a compressed representation that reconstructs only the rows an input requests. CP represents each row by a short code and a local scale, with a reconstruction program shared across the table. We instantiate this representation with a Gaussian trellis, norm restoration and independently decodable row records. CP's two-bit code lowers output KL by 41--63\% relative to 2-bit round-to-nearest. Analysis across three trained n-gram memory families shows that Gaussian-like coordinate statistics coexist with learned relationships among rows; at matched storage budgets, the shared trellis outperforms the fitted codebooks and low-rank residual variants we test. For DeepSeek, it reduces table storage from 203GB to 51GB, leaving room for larger workloads when the table is kept on GPU.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑