编码器的回归:最大化SLM的参数效率
Return of the Encoder: Maximizing Parameter Efficiency for SLMs
AI总结:
本文提出一种知识蒸馏框架,使10亿参数以下的编码器-解码器SLM在保留低延迟和高吞吐优势的同时,吸收大型纯解码器教师模型的能力,在边缘部署中实现更优性能。
摘要:
大型纯解码器语言模型的主导地位掩盖了编码器-解码器架构,尽管后者在序列处理方面具有根本性的效率优势。对于参数量在10亿或以下的小型语言模型(SLM),我们在GPU、CPU和NPU平台上的系统分析表明,编码器-解码器架构在边缘设备上实现了47%更低的首个token延迟和4.7倍的吞吐量提升。这些收益可能归因于编码器-解码器架构的一次性输入处理以及理解与生成阶段的高效分离。我们引入了一种新颖的知识蒸馏框架,使编码器-解码器模型能够利用来自大型可扩展纯解码器教师模型的能力,同时保留其架构优势,在多种任务中实现了高达6个平均性能点的提升,在输入和输出分布可受益于不同处理方式的非对称序列任务中取得了显著收益。结合旋转位置编码(RoPE)和视觉编码器等现代进展,我们的系统调查表明,编码器-解码器架构为在资源受限环境中部署具备能力的语言模型提供了一条更实用的路径。我们的发现挑战了当前向纯解码器扩展的趋势,表明随着参数预算的减少,架构选择变得愈发关键,尤其是在计算效率至关重要的设备端和边缘部署场景中。
英文摘要:
The dominance of large decoder-only language models has overshadowed encoder-decoder architectures, despite their fundamental efficiency advantages in sequence processing. For small language models (SLMs) - those with 1 billion parameters or fewer - our systematic analysis across GPU, CPU, and NPU platforms reveals that encoder-decoder architectures achieve 47% lower first-token latency and 4.7x higher throughput compared to decoder-only models on edge devices. These gains may be attributed to encoder-decoder's one-time input processing and efficient separation of understanding and generation phases. We introduce a novel knowledge distillation framework that enables encoder-decoder models to leverage capabilities from large scalable decoder-only teachers while preserving their architectural advantages, achieving up to 6 average performance points improvement across diverse tasks, with significant gains in asymmetric sequence tasks where input and output distributions can benefit from different processing approaches. When combined with modern advances like Rotary Positional Embeddings (RoPE) and Vision encoders, our systematic investigation demonstrates that encoder-decoder architectures provide a more practical path toward deploying capable language models in resource-constrained environments. Our findings challenge the prevailing trend toward decoder-only scaling, showing that architectural choices become increasingly crucial as parameter budgets decrease, particularly for on-device and edge deployments where computational efficiency is paramount.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。