← 研踪 PaperTrailarXiv:2609.03426 · v3
Lngram v2: Latent N-Gram Memory with Balanced Binary Routing
首次提交 2026-09-03 14:33
版本更新 2026-12-03 14:48
雷达观测 2026-12-04 12:01
摘要
Conditional memory enables Transformers to reuse learned associations through direct retrieval. Lngram v2 constructs exact n-gram addresses from hidden-state-derived binary codes, providing a unified lookup mechanism across modalities. To improve memory utilization, we introduce median-based bit calibration without auxiliary losses. Using the same calibrated logits, counterfactual surrogate gradients enable the router to learn from differences between alternative retrievals. Fixed-logit ablations show that the balancing bias reduces bit imbalance and increases per-route code entropy. In a controlled continued-training experiment on Keye30B, Lngram v2 improves average vision--language performance. We further integrate Lngram v2 into KeyeOmni, a large-scale multimodal mixture-of-experts model, during mid-training. Optimized implementations incur modest runtime overhead in Megatron training and SGLang cached decoding. Semantic analysis on held-out English and Chinese text reveals that learned route codes and n-gram addresses encode semantic information beyond lexical and contextual cues. A code dictionary illustrates recurring semantic groups, while controlled word-sense interventions show that retrieved memory increases the model's preference for contextually appropriate answers. These findings support discrete conditional memory as an efficient and semantically informative complement to conventional feed-forward computation.
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v3 · 2026-12-03 14:48 · 最新观测版本
Lngram v2: Latent N-Gram Memory with Balanced Binary Routing
Conditional memory enables Transformers to reuse learned associations through direct retrieval. Lngram v2 constructs exact n-gram addresses from hidden-state-derived binary codes, providing a unified lookup mechanism across modalities. To improve memory utilization, we introduce median-based bit calibration without auxiliary losses. Using the same calibrated logits, counterfactual surrogate gradients enable the router to learn from differences between alternative retrievals. Fixed-logit ablations show that the balancing bias reduces bit imbalance and increases per-route code entropy. In a controlled continued-training experiment on Keye30B, Lngram v2 improves average vision--language performance. We further integrate Lngram v2 into KeyeOmni, a large-scale multimodal mixture-of-experts model, during mid-training. Optimized implementations incur modest runtime overhead in Megatron training and SGLang cached decoding. Semantic analysis on held-out English and Chinese text reveals that learned route codes and n-gram addresses encode semantic information beyond lexical and contextual cues. A code dictionary illustrates recurring semantic groups, while controlled word-sense interventions show that retrieved memory increases the model's preference for contextually appropriate answers. These findings support discrete conditional memory as an efficient and semantically informative complement to conventional feed-forward computation.
查看此版本解读 →查看此版本原文 ↗