L$^3$: Large Lookup Layers
Albert Tseng, Christopher De Sa
TL;DR
The paper tackles the inefficiencies of dynamic routing in Mixtures-of-Experts by introducing L$^3$, a Large Lookup Layer that generalizes token embedding tables to decoder layers with static routing and context-aware aggregation. It couples a systems-friendly architecture with an information-theoretic LZW-based embedding allocation to balance speed and model quality, enabling CPU-offloaded inference and efficient training. Empirical results show that L$^3$ layers, tested up to 2.6B active parameters, outperform iso-FLOP dense models and iso-sparse MoEs on language modeling and downstream tasks, demonstrating a practical, hardware-friendly axis of sparsity. The work highlights how static routing and large embedding caches can cache information and reduce compute without sacrificing model performance, suggesting a viable path for scalable sparse transformers in real-world deployments.
Abstract
Modern sparse language models typically achieve sparsity through Mixture-of-Experts (MoE) layers, which dynamically route tokens to dense MLP "experts." However, dynamic hard routing has a number of drawbacks, such as potentially poor hardware efficiency and needing auxiliary losses for stable training. In contrast, the tokenizer embedding table, which is natively sparse, largely avoids these issues by selecting a single embedding per token at the cost of not having contextual information. In this work, we introduce the Large Lookup Layer (L$^3$), which unlocks a new axis of sparsity by generalizing embedding tables to model decoder layers. L$^3$ layers use static token-based routing to aggregate a set of learned embeddings per token in a context-dependent way, allowing the model to efficiently balance memory and compute by caching information in embeddings. L$^3$ has two main components: (1) a systems-friendly architecture that allows for fast training and CPU-offloaded inference with no overhead, and (2) an information-theoretic embedding allocation algorithm that effectively balances speed and quality. We empirically test L$^3$ by training transformers with up to 2.6B active parameters and find that L$^3$ strongly outperforms both dense models and iso-sparse MoEs in both language modeling and downstream tasks.
