arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.10639cs.LG
收藏

STEM:通过嵌入模块扩展变换器

STEM: Scaling Transformers with Embedding Modules

Carnegie Mellon University(卡内基梅隆大学);Meta AI

Ranajoy Sadhukhan, Sheng Cao, Harry Dong, Changsheng Zhao, Attiano Purpura-Pontoniere, Yuandong Tian, Zechun Liu, Beidi Chen

AI总结:

STEM通过嵌入模块实现变换器扩展,提升性能与可解释性

摘要:

细粒度稀疏性承诺在不成比例增加每个令牌计算量的情况下提供更高的参数容量,但通常会遭受训练不稳定、负载平衡和通信开销的问题。我们引入STEM(通过嵌入模块扩展变换器),一种静态的、基于令牌索引的方法,它用层本地的嵌入查找表取代了FFN上投影,同时保持门和下投影密集。这消除了运行时路由,使CPU卸载成为可能,并通过异步预取实现CPU卸载,同时将容量与每个令牌的FLOPs和跨设备通信解耦。实证上,尽管极端稀疏性,STEM也能稳定训练。它在密集基线之上提高了下游性能,同时减少了每个令牌的FLOPs和参数访问量(大约消除了三分之一的FFN参数)。STEM学习具有大角度跨度的嵌入空间,增强了其知识存储容量。更有趣的是,这种增强的知识容量伴随着更好的可解释性。STEM嵌入的令牌索引性质允许以简单的方式进行知识编辑和知识注入,而无需对输入文本进行任何干预或额外计算。此外,STEM增强了长上下文性能:随着序列长度的增长,更多不同的参数被激活,从而在实际测试时实现容量扩展。在350M和1B模型规模上,STEM在整体上提供了高达~3-4%的准确率提升,特别是在知识和推理密集型基准(ARC-Challenge、OpenBookQA、GSM8K、MMLU)上表现显著。总体而言,STEM是一种有效扩展参数内存的方法,同时提供更好的可解释性、更好的训练稳定性和改进的效率。

英文摘要:

Fine-grained sparsity promises higher parametric capacity without proportional per-token compute, but often suffers from training instability, load balancing, and communication overhead. We introduce STEM (Scaling Transformers with Embedding Modules), a static, token-indexed approach that replaces the FFN up-projection with a layer-local embedding lookup while keeping the gate and down-projection dense. This removes runtime routing, enables CPU offload with asynchronous prefetch, and decouples capacity from both per-token FLOPs and cross-device communication. Empirically, STEM trains stably despite extreme sparsity. It improves downstream performance over dense baselines while reducing per-token FLOPs and parameter accesses (eliminating roughly one-third of FFN parameters). STEM learns embedding spaces with large angular spread which enhances its knowledge storage capacity. More interestingly, this enhanced knowledge capacity comes with better interpretability. The token-indexed nature of STEM embeddings allows simple ways to perform knowledge editing and knowledge injection in an interpretable manner without any intervention in the input text or additional computation. In addition, STEM strengthens long-context performance: as sequence length grows, more distinct parameters are activated, yielding practical test-time capacity scaling. Across 350M and 1B model scales, STEM delivers up to ~3--4% accuracy improvements overall, with notable gains on knowledge and reasoning-heavy benchmarks (ARC-Challenge, OpenBookQA, GSM8K, MMLU). Overall, STEM is an effective way of scaling parametric memory while providing better interpretability, better training stability and improved efficiency.

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

↑