Joshua Ainslie
· 2 previous affiliations
- Google (United States)Since 2017
- Software Engineer · Since 2017
- Stanford University2003–2007
- MS student · 2005–2007
- Undergrad student · 2003–2007
Research Overview
Joshua Ainslie focuses on efficient transformer architectures, sparse computation, and long-context language modeling. His early work addressed the quadratic bottlenecks of self-attention through sparse and linear approximations, enabling models to process significantly longer sequences. More recently, his research has expanded into retrieval-augmented memory systems, mixture-of-experts upcycling, and the application of large multimodal models to physical robotics.
Research Trajectory
Ainslie’s early research primarily addressed the computational bottlenecks of standard transformer architectures, particularly the memory constraints associated with processing long sequences. In 2020, he contributed to Big Bird: Transformers for Longer Sequences, which introduced a sparse attention mechanism that reduced the quadratic dependency of self-attention to linear complexity. This work demonstrated that sparse transformers could maintain universal expressivity while scaling to significantly longer inputs. Concurrently, he introduced ETC: Encoding Long and Structured Inputs in Transformers, further expanding the capacity of models to handle extensive and complex data structures. Building on these architectural refinements, his subsequent work included RealFormer: Transformer Likes Residual Attention (2021), which investigated residual connections within attention mechanisms to improve model training and performance.
Continuing the pursuit of efficient sequence modeling, Ainslie explored alternatives to traditional self-attention. In FNet: Mixing Tokens with Fourier Transforms (2022), he and his collaborators replaced the self-attention sublayers with standard, unparameterized Fourier transforms, achieving highly efficient global token mixing. This period also saw his involvement in LongT5: Efficient Text-To-Text Transformer for Long Sequences, which integrated sparse attention and hybrid architectures to scale summarization and other text-to-text tasks. Expanding into conditional computation, he developed Sparse Mixers: Combining MoE and Mixing to build a more efficient BERT (2022). This paper merged Mixture-of-Experts (MoE) paradigms with efficient token mixing, contributing to the broader research area of Expert-Choice Routing for Sparse Mixture of Experts.
By 2023, Ainslie’s focus increasingly centered on maximizing the utility of pre-trained models through sparse activation and architectural retrofitting. A major contribution during this time was Sparse Upcycling: Training Mixture-of-Experts from Dense Checkpoints, which proposed initializing sparsely activated MoE models from existing dense checkpoints to reuse sunk training costs. This methodology significantly advanced the twin research directions of Sparse Upcycling of Dense Models to Mixture of Experts and Upcycling Dense Models into Sparse Mixture of Experts. He further applied conditional computation to long-range dependencies in CoLT5: Faster Long-Range Transformers with Conditional Computation, dynamically allocating compute to sparsify the feed-forward bottleneck in transformers.
Addressing inference latency in large language models, Ainslie introduced Generalized Grouped-Query Attention in GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints. By converting multi-head checkpoints into multi-query models, this work provided a crucial mechanism for the area of The Memory Bandwidth Bottleneck in Transformer Decoding. Alongside these core architectural improvements, he oversaw research into retrieval-augmented systems, culminating in GLIMMER: generalized late-interaction memory reranker. This architecture embedded a low-cost reranker directly into a shared encoder, filtering irrelevant documents early in the pipeline to improve both speed and accuracy in knowledge-intensive tasks.
To address the storage overhead of memory-augmented models, Ainslie guided the development of MEMORY-VQ: Compression for Tractable Internet-Scale Memory in 2024. By utilizing a vector quantization variational autoencoder to compress token representations, the method achieved substantial storage reductions without sacrificing retrieval performance, contributing to the area of Subspace Decomposition for Scalable Vector Quantization.
In 2025, his research expanded into physical embodiment and spatial reasoning. He participated in Learning the RoPEs: Better 2D and 3D Position Encodings with STRING, which extended rotary position encodings to support translationally invariant 3D token representations for vision transformers and robotics. This spatial grounding was further realized in Gemini Robotics: Bringing AI into the Physical World, where he played a primary role in developing a low-latency Vision-Language-Action model capable of executing dexterous tasks and adapting to new robotic hardware. Concurrently, he continued to refine foundation model efficiency with Encoder-Decoder Gemma: Improving the Quality-Efficiency Trade-Off via Adaptation, introducing methods to adapt pretrained decoder-only architectures into encoder-decoder formats to improve inference latency and downstream performance.
Current Directions
Recent work investigates the intersection of highly efficient foundation models and embodied artificial intelligence. The most recent papers in the evidence address the challenge of translating advanced spatial and temporal reasoning into real-time physical execution, particularly through Vision-Language-Action models designed for generalist robotics. Alongside this shift toward physical grounding, ongoing research continues to explore architectural adaptation—such as converting decoder-only language models into encoder-decoder frameworks—to optimize the quality-efficiency trade-off during inference. Additionally, there is a sustained focus on scalable memory systems, utilizing advanced vector quantization techniques to compress internet-scale retrieval representations for tractable deployment.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake