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

超越N-gram:面向数据的X-GRAM提取用于高效的嵌入参数扩展

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

Peking University(北京大学);IQuest Research(IQuest研究)

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

AI总结:

本文提出X-GRAM框架,通过频率感知的动态token注入方法,提升嵌入参数扩展效率,实验表明在0.73B和1.15B规模下,X-GRAM在准确率上优于基线模型。

摘要:

大型token索引查找表提供了一种计算解耦的扩展路径,但其实际收益常受限于参数效率低下和快速内存增长。我们归因于长尾的Zipfian欠训练、层间异质需求以及'slot collapse'导致的冗余嵌入。为此,我们提出X-GRAM,一种频率感知的动态token注入框架。X-GRAM采用混合哈希和别名混合压缩尾部同时保持头部容量,并通过归一化SwiGLU ShortConv优化检索向量以提取多样的局部n-gram特征。这些信号通过深度感知门控整合到注意力值流和层间残差中,有效对齐静态内存与动态上下文。此设计引入了以内存为中心的扩展轴,解耦了模型容量与FLOPs。大量评估表明,在0.73B和1.15B规模下,X-GRAM在平均准确率上比基线模型提高了4.4个百分点,同时在50%配置下使用显著更小的表。整体而言,通过通过高效的内存管理解耦容量与计算,X-GRAM为未来内存增强架构提供了一种可扩展且实用的范式。代码可在https://github.com/Longyichen/X-gram中获得。

英文摘要:

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.

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

↑