A token-autoregressive language model reads all of its weights from memory for every token it writes, so the speed of large models is limited by memory bandwidth, not by arithmetic. I study models that run a large global transformer once per block of tokens and leave the individual tokens to a small local transformer as in the following gif:

I present a tutorial on residual vector quantization, and use it to introduce Quar1 and Quark, which summarize completed blocks with residual quantization. I also introduce HART, an end-to-end trained hierarchical autoregressive transfomer, which drops the quantizer and feeds text tokens to the global path directly. I compare them with autoregressive models and with Next-Concept Modeling (NCM), which predicts residual codes in parallel. NCM does block computation and in this sense it is closer to text diffusion methods.


In a small-scale experiment, I found that HART, the simplest model, is the best, though a small gap to AR of about 0.25 nats per token remains. In an untrained scaling benchmark with large networks of up to 3.6 billion parameters, the hierarchical models generate 7.5 to 8.6 times faster and use 8 to 10 times less energy per token than an autoregressive model with the same large network, close to the ceiling set by the block length of 8. NCM is faster at small batch sizes but is limited by compute.
In HART, every token is still drawn conditionally on all earlier ones, so the model keeps an exact, normalized likelihood, and there is no draft to verify or reject. HART provides likelihoods and hence it enables us to use all the existing machinery of post-training, including reinforcement learning and systems infrastructure. It offers to potential to speed up inference at any batch size and to reduce the cost of energy. Hence, I believe that unless I have made an embarrassing mistake, this should be the future for reducing the cost of data centre energy bills and improving battery life for robotics applications and edge AI. Feedback welcome!