ShishuLM:通过低注意力变换器模型实现最优且高效的参数化
ShishuLM : Achieving Optimal and Efficient Parameterization with Low Attention Transformer Models
AI总结:
本文提出ShishuLM模型,通过替换顶部全解码层为MLP块,显著提升生成延迟并提高吞吐量,同时通过参数共享减少内存占用,为更高效的预训练语言模型提供新思路。
摘要:
尽管transformer架构在自然语言处理任务上取得了最先进的性能,但这些模型带来了显著的内存和计算开销。最近的研究发现这些模型中存在显著的架构冗余,特别是在顶部层的注意力子层中,这为优化提供了机会,而不会牺牲性能。借鉴推理时间层剪枝和语言模型中的深度依赖计算研究,我们介绍了一种高效的语言模型架构,称为ShishuLM。通过将模型顶部的全解码层替换为仅包含MLP的块,我们实现了生成延迟的最高提升达10-60%以及吞吐量的1.3-5倍提升。进一步在ShishuLM的相邻MLP-only层之间共享参数,我们实现了内存节省高达20%,同时性能降级极小。我们的发现为从预训练角度构建更高效的语言建模架构提供了见解,通过利用transformers中信息流动的方式。
英文摘要:
While the transformer architecture has achieved state-of-the-art performance on natural language processing tasks, these models impose substantial memory and computational overhead. Recent research has identified significant architectural redundancies within these models, particularly in the attention sub-layers in the top layers, presenting opportunities for optimization without compromising performance. Taking insights from research on inference-time layer pruning and depth-dependent computation in language models, we introduce an efficient language model architecture referred to as ShishuLM. By replacing full decoder layers at the top of the model with MLP-only blocks, we achieve up to 10-60% improvement in generation latency and 1.3 -5 $\times$ gain in throughput. Upon further sharing parameters across adjacent MLP-only layers of ShishuLM, we obtain up to 20% savings in memory with minimal degradation in performance. Our findings provide insights towards building more efficient language modeling architectures from a pre-training standpoint by leveraging how information flows in transformers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。