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

MEGABYTE:使用多尺度Transformer预测百万字节序列

MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers

Meta AI;Augment Computing(奥格门特计算公司)

Lili Yu, Dániel Simig, Colin Flaherty, Armen Aghajanyan, Luke Zettlemoyer, Mike Lewis

AI总结:

提出多尺度解码器架构Megabyte,通过补丁分割与局部全局模型结合实现次二次自注意力,支持百万字节序列端到端建模,在长上下文语言建模、图像密度估计和音频建模中表现优异,验证了大规模无分词自回归序列建模的可行性。

摘要:

自回归transformers是处理短序列的极佳模型,但在扩展到长序列(如高分辨率图像、播客、代码或书籍)时表现不佳。我们提出了Megabyte,一种多尺度解码器架构,能够对超过一百万字节的序列进行端到端可微建模。Megabyte将序列分割为补丁,在补丁内使用局部子模型,在补丁间使用全局模型。这实现了次二次自注意力,在相同计算量下支持更大的前馈层,并改善了解码期间的并行性——以降低的成本在训练和生成中解锁更好的性能。大量实验表明,Megabyte使字节级模型在长上下文语言建模中与子词模型竞争,在ImageNet上实现最先进的密度估计,并从原始文件建模音频。这些结果确立了大规模无分词自回归序列建模的可行性。

英文摘要:

Autoregressive transformers are spectacular models for short sequences but scale poorly to long sequences such as high-resolution images, podcasts, code, or books. We proposed Megabyte, a multi-scale decoder architecture that enables end-to-end differentiable modeling of sequences of over one million bytes. Megabyte segments sequences into patches and uses a local submodel within patches and a global model between patches. This enables sub-quadratic self-attention, much larger feedforward layers for the same compute, and improved parallelism during decoding -- unlocking better performance at reduced cost for both training and generation. Extensive experiments show that Megabyte allows byte-level models to perform competitively with subword models on long context language modeling, achieve state-of-the-art density estimation on ImageNet, and model audio from raw files. Together, these results establish the viability of tokenization-free autoregressive sequence modeling at scale.

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

↑