MambaByte demonstrates token-free language modeling can be competitive with subword approaches while offering improved robustness.
MambaByte is a token-free adaptation of the Mamba SSM trained autoregressively on byte sequences.
π In terms of modeling, MambaByte is competitive with SOTA subword Transformers on language modeling tasks while maintaining the benefits of token-free language models, such as robustness to noise.
π This results in a 2.6Γ inference speedup to the standard MambaByte implementation, showing similar decoding efficiency as the subword Mamba.
π https://arxiv.org/pdf/2401.13660
Original Problem π‘:
Subword tokenization in language models introduces issues like lack of robustness to typos and morphological variations. Byte-level modeling offers an alternative but results in much longer sequences, creating efficiency challenges for standard autoregressive Transformers.
-----
Solution in this Paper π¬:
β’ Proposes MambaByte, adapting the Mamba state space model (SSM) for byte-level language modeling
β’ Mamba has a fixed-size memory state independent of sequence length, making it suitable for long byte sequences
β’ Develops speculative decoding with tokenized drafting and byte-level verification to improve inference speed
-----
Key Insights from this Paper π‘:
β’ MambaByte competitive with or outperforms subword Transformers on language modeling tasks
β’ More robust to input noise compared to subword models
β’ Can extrapolate to sequences 4x longer than training length
β’ Speculative decoding enables generation speed comparable to subword Mamba
-----
Results π:
β’ Outperforms byte-level baselines on PG19 dataset (33.0 vs 36.4 word-level PPL for MegaByte)
β’ 2.6x faster generation than MegaByte
β’ Significantly more resilient to synthetic noise (e.g. only +28.3 PPL degradation vs +58300.0 for subword Mamba on "antspeak" noise)










