PHOTON: Hierarchical Autoregressive Modeling for Lightspeed and Memory-Efficient Language Generation
Yuma Ichikawa, Naoya Takagi, Takumi Nakagawa, Yuzi Kanazawa, Akira Sakai
TL;DR
Transformers incur high memory and latency costs for long-context generation due to KV-cache traffic and token-by-token decoding. PHOTON introduces a hierarchical autoregressive approach with a bottom-up encoder that compresses tokens into coarse latent states and a top-down, bounded-attention decoder that reconstructs fine-grained detail, enabling hierarchical prefill and chunk-local generation. The model is trained with token-prediction plus recursive reconstruction and next-context objectives to ensure cross-level consistency, and experiments show order-of-magnitude improvements in throughput-per-memory with manageable quality loss, especially in long-context and multi-query settings. This approach offers a practical, memory-efficient pathway to scaling language generation under fixed hardware budgets, with a favorable TPM-quality Pareto frontier compared to conventional and block-transformer baselines.
Abstract
Transformers operate as horizontal token-by-token scanners; at each generation step, the model attends to an ever-growing sequence of token-level states. This access pattern increases prefill latency and makes long-context decoding increasingly memory-bound, as KV-cache reads and writes dominate inference throughput rather than arithmetic computation. We propose Parallel Hierarchical Operation for Top-down Networks (PHOTON), a hierarchical autoregressive model that replaces flat scanning with vertical, multi-resolution context access. PHOTON maintains a hierarchy of latent streams: a bottom-up encoder progressively compresses tokens into low-rate contextual states, while lightweight top-down decoders reconstruct fine-grained token representations. Experimental results show that PHOTON is superior to competitive Transformer-based language models regarding the throughput-quality trade-off, offering significant advantages in long-context and multi-query tasks. This reduces decode-time KV-cache traffic, yielding up to $10^{3}\times$ higher throughput per unit memory.
