From Bytes to Ideas: Language Modeling with Autoregressive U-Nets

Mathurin Videau, Badr Youbi Idrissi, Alessandro Leite, Marc Schoenauer, Olivier Teytaud +1 more
6/17/2025
cs.CLcs.AI

No official code found. Best implementation: facebookresearch/lingua (4,771 stars, BSD-3-Clause, last commit 2025-07-18).

Abstract

Tokenization imposes a fixed granularity on the input text, freezing how a language model operates on data and how far in the future it predicts. Byte Pair Encoding (BPE) and similar schemes split text once, build a static vocabulary, and leave the model stuck with that choice. We relax this rigidity by introducing an autoregressive U-Net that learns to embed its own tokens as it trains. The network reads raw bytes, pools them into words, then pairs of words, then up to 4 words, giving it a multi-scale view of the sequence. At deeper stages, the model must predict further into the future -- anticipating the next few words rather than the next byte -- so deeper stages focus on broader semantic patterns while earlier stages handle fine details. When carefully tuning and controlling pretraining compute, shallow hierarchies tie strong BPE baselines, and deeper hierarchies have a promising trend. Because tokenization now lives inside the model, the same system can handle character-level tasks and carry knowledge across low-resource languages.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Meta Lingua: a lean, efficient, and easy-to-hack codebase to research LLMs.

4,771270Shell, PythonOct 16, 20241 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{videau2025from,
  title  = {From Bytes to Ideas: Language Modeling with Autoregressive U-Nets},
  author = {Mathurin Videau and Badr Youbi Idrissi and Alessandro Leite and Marc Schoenauer and Olivier Teytaud and David Lopez-Paz},
  year   = {2025},
  eprint = {2506.14761},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.14761v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.14761.svg)](https://codeofpaper.com/paper/2506.14761)

Discussion