笑鬣狗蒸馏厂:从卷积中提取紧凑递归结构
Laughing Hyena Distillery: Extracting Compact Recurrences From Convolutions
AI总结:
本文提出从预训练长卷积架构中提取低维线性状态空间模型,实现每token常数级计算与内存成本,并通过滤波器权重绑定改进Hyena架构,在1.3B参数下吞吐量超越Transformer和Hyena且不损失质量。
摘要:
近年来,无注意力序列模型的进展依赖于以卷积作为Transformer核心注意力算子的替代方案。特别是,长卷积序列模型已在许多领域取得了最先进的性能,但在自回归推理工作负载中会产生显著成本——与基于注意力的模型类似,每生成一个token都需要对输入序列进行一次完整遍历(或缓存激活值)。在本文中,我们致力于在任何预训练的长卷积架构中实现每个token的$\mathcal O(1)$计算和内存成本,以降低内存占用并提高生成过程中的吞吐量。具体而言,我们的方法包括基于有理插值和模型降阶技术,从每个卷积层中提取低维线性状态空间模型。我们进一步引入了对基于卷积的层(如Hyena)的架构改进:通过将各通道的滤波器权重绑定为头,我们实现了更高的预训练质量,并减少了需要蒸馏的滤波器数量。所得模型在1.3B参数规模下实现了比Transformer高10倍、比Hyena高1.5倍的吞吐量,且蒸馏后质量没有任何损失。
英文摘要:
Recent advances in attention-free sequence models rely on convolutions as alternatives to the attention operator at the core of Transformers. In particular, long convolution sequence models have achieved state-of-the-art performance in many domains, but incur a significant cost during auto-regressive inference workloads -- naively requiring a full pass (or caching of activations) over the input sequence for each generated token -- similarly to attention-based models. In this paper, we seek to enable $\mathcal O(1)$ compute and memory cost per token in any pre-trained long convolution architecture to reduce memory footprint and increase throughput during generation. Concretely, our methods consist in extracting low-dimensional linear state-space models from each convolution layer, building upon rational interpolation and model-order reduction techniques. We further introduce architectural improvements to convolution-based layers such as Hyena: by weight-tying the filters across channels into heads, we achieve higher pre-training quality and reduce the number of filters to be distilled. The resulting model achieves 10x higher throughput than Transformers and 1.5x higher than Hyena at 1.3B parameters, without any loss in quality after distillation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。