Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Beyond N-gram: Data-Aware X-GRAM Extraction for Efficient Embedding Parameter Scaling

About

Large token-indexed lookup tables provide a compute-decoupled scaling path, but their practical gains are often limited by poor parameter efficiency and rapid memory growth. We attribute these limitations to Zipfian under-training of the long tail, heterogeneous demand across layers, and "slot collapse" that produces redundant embeddings. To address this, we propose X-GRAM, a frequency-aware dynamic token-injection framework. X-GRAM employs hybrid hashing and alias mixing to compress the tail while preserving head capacity, and refines retrieved vectors via normalized SwiGLU ShortConv to extract diverse local n-gram features. These signals are integrated into attention value streams and inter-layer residuals using depth-aware gating, effectively aligning static memory with dynamic context. This design introduces a memory-centric scaling axis that decouples model capacity from FLOPs. Extensive evaluations at the 0.73B and 1.15B scales show that X-GRAM improves average accuracy by as much as 4.4 points over the vanilla backbone and 3.2 points over strong retrieval baselines, while using substantially smaller tables in the 50% configuration. Overall, by decoupling capacity from compute through efficient memory management, X-GRAM offers a scalable and practical paradigm for future memory-augmented architectures. Code aviliable in https://github.com/Longyichen/X-gram.

Yilong Chen, Yanxi Xie, Zitian Gao, He Xin, Yihao Xiao, Jason Klein Liu, Haoming Luo, Yifan Luo, Zhengmao Ye, Tingwen Liu, Xin Zhao, Ran Tao, Bryan Dai• 2026

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningWinoGrande
Accuracy54.7
1442
Physical Commonsense ReasoningPIQA
Accuracy70.8
696
Multitask Language UnderstandingMMLU
Accuracy27.3
263
Reading ComprehensionBoolQ
Accuracy (BoolQ)60.8
228
Social Commonsense ReasoningSocialIQA
Accuracy43.8
143
Science Question AnsweringARC Challenge
Accuracy32.2
108
Science Question AnsweringSciQ
Accuracy (SciQ)86
101
Science Question AnsweringOpenBookQA
Accuracy33.4
82
Science Question AnsweringARC Easy
Accuracy61.1
75
Showing 9 of 9 rows

Other info

Follow for update