TensorX
返回文献探索

Paper · arXiv 2305.07185

MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers

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

10 upvotesMay 12, 2023arXiv 预印本
AI 摘要

Megabyte, a multi-scale decoder architecture, enables efficient byte-level modeling of long sequences through sub-quadratic self-attention, larger feedforward layers, and improved parallelism, achieving performance competitive with subword models and state-of-the-art results.

Megabytemulti-scale decoder architecturesub-quadratic self-attentionfeedforward layersparallelismlong context language modelingdensity estimationImageNetautoregressive sequence modelingtokenization-free

Abstract

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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers | TensorX