通过可扩展查找实现条件记忆:大语言模型稀疏性的新轴
Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models
AI总结:
研究针对Transformer缺乏知识查找原语的问题,引入条件记忆及Engram模块,通过制定稀疏分配问题发现U形缩放定律,扩展Engram至27B参数,在多领域提升性能,揭示其优势,为下一代稀疏模型提供重要建模原语。
摘要:
混合专家模型(MoE)通过条件计算扩展容量,但Transformer缺乏原生的知识查找原语,只能通过低效计算模拟检索。为此,我们引入条件记忆作为互补的稀疏轴,通过Engram实例化,它使经典N元语法嵌入现代化以实现O(1)查找。通过制定稀疏分配问题,我们发现了一个U形缩放定律,优化了神经计算(MoE)和静态记忆(Engram)之间的权衡。在此定律指导下,我们将Engram扩展到27B参数,性能优于严格等参数和等FLOP的MoE基线。尤其在一般推理和代码/数学领域增益更大。机制分析表明,Engram减轻了主干早期层的静态重建负担,释放了注意力容量用于全局上下文,还建立了基础设施感知效率。我们设想条件记忆是下一代稀疏模型不可或缺的建模原语。
英文摘要:
While Mixture-of-Experts (MoE) scales capacity via conditional computation, Transformers lack a native primitive for knowledge lookup, forcing them to inefficiently simulate retrieval through computation. To address this, we introduce conditional memory as a complementary sparsity axis, instantiated via Engram, a module that modernizes classic $N$-gram embedding for O(1) lookup. By formulating the Sparsity Allocation problem, we uncover a U-shaped scaling law that optimizes the trade-off between neural computation (MoE) and static memory (Engram). Guided by this law, we scale Engram to 27B parameters, achieving superior performance over a strictly iso-parameter and iso-FLOPs MoE baseline. Most notably, while the memory module is expected to aid knowledge retrieval (e.g., MMLU +3.4; CMMLU +4.0), we observe even larger gains in general reasoning (e.g., BBH +5.0; ARC-Challenge +3.7) and code/math domains~(HumanEval +3.0; MATH +2.4). Mechanistic analyses reveal that Engram relieves the backbone's early layers from static reconstruction, effectively deepening the network for complex reasoning. Furthermore, by delegating local dependencies to lookups, it frees up attention capacity for global context, substantially boosting long-context retrieval (e.g., Multi-Query NIAH: 84.2 to 97.0). Finally, Engram establishes infrastructure-aware efficiency: its deterministic addressing enables runtime prefetching from host memory, incurring negligible overhead. We envision conditional memory as an indispensable modeling primitive for next-generation sparse models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。