Manuscript Offprint

arXiv:2610.31309

Extreme Compression of Per-Layer Embeddings via Cross-Layer Latent Vector Quantization

Jiacheng Liu, Yaxin Luo, Xiaohan Zhao, Peng Sun, Xinyi Shang, Jiacheng Cui, Yonina C. Eldar, Zhiqiang Shen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

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) 1^{1}, 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 100×100\times 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 594×594\times and 1,002×1,002\times 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 100×100\times PLE compression. During inference at about 100×100\times 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.

1 Introduction

Embedding capacity is emerging as a distinct scaling dimension in recent language-model development. Over-Tokenized Transformers (Huang et al., 2025) and SCONE (Yu et al., 2026) scale multi-gram or contextual n-gram representations; DeepSeek's Engram uses hash-addressed n-gram lookup memory (Cheng et al., 2026); and Qwen3.8-Flash-Next supplements a 125B-parameter language model with 51B parameters of n-gram embeddings (Qiu et al., 2026). Gemma 4 follows this broader direction with Per-Layer Embeddings (PLE), first introduced in Gemma 3n (Gemma Team, 2025), which provide every vocabulary item with a learned vector at each decoder layer (Team et al., 2026).

We study Gemma 4 E2B and E4B for their strong performance and potential for practical deployment (Team et al., 2026). PLE accounts for 45.8% and 35.2% of the two checkpoints, respectively, making it a substantial target for storage reduction as models expand their embedding capacity.

An ordinary input embedding maps a token to one vector at the model's input. PLE provides a separate vector at each decoder layer: E4B stores 11 million token-layer vectors of width 256, and near 100×100\times compression leaves about five bytes for each. Conventional quantizers spend these bytes on a separate code for every vector.

OPTIC (Output-Path-fitted, Token-shared Indexed Codes) builds on two observations. First, PLE stores one vector for every pair of token and layer, so a compact representation can share storage along either index. OPTIC shares along both. All tokens of a layer use one layer-specific affine decoder, whose storage does not grow with the vocabulary size. All layers of a token use one code tuple, so a token's bytes form one larger code instead of many small per-layer codes, and the layer decoders preserve the differences between layers.

Second, the model uses PLE vectors through a gate and an output projection. The fitting objective should therefore account for reconstruction error after the gate and output projection, rather than only in the stored coordinates. OPTIC fits its codes and decoders to minimize error at the projection output.

We report performance retention across seven benchmarks relative to the same checkpoint with uncompressed PLE. At about 100×100\times PLE compres-

∗^{*}Corresponding author.

1^{1}Code: https://github.com/VILA-Lab/optic sion, OPTIC retains 97.8% on BF16 E4B, whereas the strongest of six conventional baselines retains 66.3%. With OPTIC's fitting recipe and nearly equal storage, independent latent codes for each token–layer vector retain 79.3% (Section 5.2). At 594×594\times and 1,002×1,002\times PLE compression, where about one byte or less remains for each vector, OPTIC retains 90.5% and 84.1%. In addition, on the official E4B release with 4-bit linear weights and 16-bit activations (W4A16), OPTIC retains 96.9% at about 100×100\times PLE compression, compared with 82.8% for the strongest conventional baseline. On the smaller E2B, OPTIC retains 89.1% on BF16 and 91.5% on the official W4A16 release.

A model compressed with OPTIC also supports inference directly from the compact codes. On an RTX 4090 with a fixed key-value cache size, compact PLE lowers the GPU memory of BF16 E4B serving by 29.7% and adds at most 0.40% wall time (Section 6).

References (15)