James Lee-Thorp

Google (United States)
3 previous affiliations
6Machine learning papers tracked by Lacuna
Is this you?

Research Overview

James Lee-Thorp focuses on the computational efficiency and architectural optimization of large-scale neural models, particularly within the Transformer framework. His work addresses the fundamental scaling bottlenecks inherent in deep learning, such as the high cost of training dense models and the quadratic complexity of standard attention mechanisms. By investigating sparse activation, conditional computation, and novel attention variants, Lee-Thorp contributes to the development of models that maintain high performance while significantly reducing the resource requirements for both training and inference.

Research Trajectory

Lee-Thorp’s recent research trajectory is defined by a concentrated effort to overcome the "memory wall" and the "quadratic tax" associated with scaling Large Language Models (LLMs). His work is situated at the intersection of architectural design and systems efficiency, focusing on how structural changes to neural networks can yield better scaling laws. A central theme in this trajectory is the exploration of Expert-Choice Routing for Sparse Mixture of Experts, a method that seeks to decouple a model's total parameter count from the computation required per forward pass.

In the current landscape of deep learning, where models scale toward trillions of parameters, Lee-Thorp has focused on methods to make these scales more accessible. This involves moving away from purely dense architectures toward sparsely activated models, where only a fraction of the network is engaged for any given input. This shift is critical for maintaining a constant computational footprint as model capacity grows. His contributions also extend to the optimization of communication protocols within these systems, addressing the need for Mitigating the All-to-All Communication Bottleneck in Distributed MoEs.

Furthermore, Lee-Thorp has addressed the limitations of sequence length in Transformers. Standard self-attention mechanisms scale quadratically with sequence length, which prohibits the processing of long-form documents or complex genomic sequences. His participation in research regarding Linear Attention Mechanisms for Subquadratic Sequence Modeling and Sub-quadratic Attention for Long Context Transformers reflects a commitment to expanding the context window of modern AI systems without a proportional increase in memory or time complexity.

Architectural Efficiency and Sparse Modeling

A significant portion of Lee-Thorp’s work involves the transition from dense to sparse neural architectures. The primary challenge in this domain is the high cost of training sparsely activated Mixture-of-Experts (MoE) models from scratch, despite their eventual inference efficiency. Lee-Thorp has contributed to methods that mitigate these costs by leveraging existing dense model checkpoints.

This line of inquiry is exemplified by research into "upcycling," where the sunk costs of training dense models are repurposed to initialize sparse models. This approach allows researchers to benefit from the increased capacity of MoE architectures without the prohibitive expense of a full training cycle. By focusing on the initialization and routing mechanisms of these models, Lee-Thorp helps bridge the gap between the theoretical benefits of sparse models and their practical implementation in large-scale settings.

Optimization of Attention Mechanisms

In addition to sparsity, Lee-Thorp has made notable contributions to the refinement of attention mechanisms to improve inference throughput. A major bottleneck in deploying large Transformers is the memory required for the Key-Value (KV) cache during auto-regressive decoding. Standard Multi-Head Attention (MHA) requires significant memory, while Multi-Query Attention (MQA) reduces memory overhead at the cost of model quality.

Lee-Thorp’s work in this area involves finding a middle ground that preserves the representational power of MHA while approaching the efficiency of MQA. This research is particularly relevant for the deployment of LLMs in resource-constrained environments or for applications requiring high-speed text generation. By optimizing how queries, keys, and values are grouped and processed, this work enables more efficient scaling of Transformer models during the inference phase.

Representative Work

The following papers represent Lee-Thorp’s contributions to the fields of model sparsity, attention optimization, and long-context modeling.

In GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints, Lee-Thorp (as second author) and his collaborators introduced Grouped-Query Attention (GQA). This method serves as an evolution of Multi-Query Attention (MQA), which uses a single key-value head for multiple query heads to save memory. While MQA improves speed, it often leads to a degradation in quality compared to standard Multi-Head Attention (MHA). GQA generalizes these approaches by using an intermediate number of key-value heads. The research demonstrates that GQA can achieve a quality close to MHA while maintaining an inference speed comparable to MQA. Crucially, the paper describes a method for "uptraining" existing MHA-based checkpoints into GQA models, allowing for the efficient conversion of pre-trained dense models into more inference-efficient versions.

Lee-Thorp also contributed to the development of Sparse Upcycling: Training Mixture-of-Experts from Dense Checkpoints. This work addresses the economic and computational barriers to training Mixture-of-Experts (MoE) models. While MoEs offer a way to scale model capacity without increasing computation per token, they are traditionally data-hungry and expensive to train from the ground up. The paper proposes "sparse upcycling," a technique to initialize an MoE model from a pre-trained dense checkpoint. This method allows for the reuse of the significant computational investment already placed in dense models, facilitating a more efficient path toward large-scale sparse architectures. Lee-Thorp’s involvement in this research highlights his focus on the practicalities of scaling and the reuse of computational resources.

In the domain of long-sequence processing, Lee-Thorp participated in the research presented in CoLT5: Faster Long-Range Transformers with Conditional Computation. This work addresses the quadratic scaling of Transformers, which limits their ability to process long contexts. CoLT5 employs conditional computation to allocate more resources to the most important tokens in a sequence, thereby reducing the overall computational burden. By using a combination of light and heavy attention mechanisms, the architecture can handle significantly longer sequences than standard Transformers while maintaining efficiency. Lee-Thorp’s participation in this large-scale collaborative effort underscores his interest in sub-quadratic attention mechanisms and the challenges of long-context modeling.

Profile updated

See something wrong? Report a mistake