通过跨层潜在向量量化实现逐层嵌入的极致压缩
研究论文 · 2026/10/27
本文研究了逐层嵌入(PLE)的极端压缩问题。PLE 在 Gemma 4 E4B 中占参数量的 35.2%,传统量化器在极端压缩率下仅为每个 token-层向量分配几个字节的编码。为此,作者提出 OPTIC(输出路径拟合、token 共享的索引编码),为每个 token 存储一个量化编码元组,并在每一层通过层特定的仿射解码器进行解码。编码和解码器均拟合到 PLE 输出路径而非存储向量。在 BF16 E4B 上约 100 倍 PLE 压缩率下,OPTIC 在七个基准上平均保留了未压缩模型 97.8% 的性能,而乘积量化(六种传统基线中最强)仅保留 66.3%。在 594 倍和 1002 倍压缩率下,OPTIC 分别保留 90.5% 和 84.1%。在官方 E4B 发布版(4 位线性权重、16 位激活,W4A16)上,约 100 倍压缩率下 OPTIC 保留 96.9%。推理时,约 100 倍 PLE 压缩下,BF16 E4B 在相同键值缓存大小下比未压缩 PLE 少用 29.7% 的 GPU 内存,运行速度最多慢 0.40%。
该论文提出了一种高效的极端压缩方法,能在保持模型性能的同时大幅减少嵌入参数和内存占用,对大规模语言模型部署具有重要价值。
Scaling embedding capacity alongside Transformer computation is an emerging trend in language models. This trend makes high compression rates increasingly useful. Hence, we study extreme compression of Per-Layer Embeddings (PLE), which follow this trend and account for 35.2% of the parameters of Gemma 4 E4B. At such rates, conventional quantizers give each token-layer vector its own code of only a few bytes. We instead develop OPTIC (Output-Path-fitted, Token-shared Indexed Codes), which stores one quantized code tuple per token and decodes it at every layer with a layer-specific affine decoder. Codes and decoders are fitted to the PLE output path rather than to the stored vectors. At about 100times PLE compression of bfloat16 (BF16) E4B, OPTIC retains an aggregate 97.8% of the uncompressed model's performance across seven benchmarks, whereas product quantization, the strongest of six conventional baselines, retains 66.3%. At 594times and 1,002times PLE compression of BF16 E4B, OPTIC retains 90.5% and 84.1%. On the official E4B release with 4-bit linear weights and 16-bit activations (W4A16), OPTIC retains 96.9% at about 100times PLE compression. During inference at about 100times PLE compression, BF16 E4B uses 29.7% less GPU memory than with uncompressed PLE at the same key-value cache size, while running at most 0.40% slower.