← Search

Joshua Ainslie

23 accepted papers

2026

TIPSv2: Advancing Vision-Language Pretraining with Enhanced Patch-Text Alignment

CVPR 2026

Recent progress in vision-language pretraining has enabled significant improvements to many downstream computer vision applications, such as classification, retrieval, segmentation and depth prediction. However, a fundamental capability that these models still struggle with is aligning dense patch r

Cited by 0SourcecodeScholar
2025

Learning the RoPEs: Better 2D and 3D Position Encodings with STRING

ICML 2025spotlight

We introduce $\textbf{STRING}$: Separable Translationally Invariant Position Encodings. STRING extends Rotary Position Encodings, a recently proposed and widely used algorithm in large language models, via a unifying theoretical framework. Importantly, STRING still provides $\textbf{exact}$ translat…

Cited by 1SourcePDFScholar
2025

Linear Transformer Topological Masking with Graph Random Features

ICLR 2025poster

When training transformers on graph-structured data, incorporating information about the underlying topology is crucial for good performance. Topological masking, a type of relative position encoding, achieves this by upweighting or downweighting attention depending on the relationship between the q…

Cited by 1SourcePDFScholar
2024

Functional Interpolation for Relative Positions improves Long Context Transformers

ICLR 2024poster

Preventing the performance decay of Transformers on inputs longer than those used for training has been an important challenge in extending the context length of these models. Though the Transformer architecture has fundamentally no limits on the input sequence lengths it can process, the choice of…

Cited by 47SourcePDFScholar
2024

MEMORY-VQ: Compression for Tractable Internet-Scale Memory

NAACL 2024short

Retrieval augmentation is a powerful but expensive method to make language models more knowledgeable about the world. Memory-based methods like LUMEN (de Jong et al., 2023a) pre-compute token representations for retrieved passages to drastically speed up inference. However, memory also leads to much…

Cited by 0SourcePDFScholar
2023

A Suite of Generative Tasks for Multi-Level Multimodal Webpage Understanding

EMNLP 2023long main

Webpages have been a rich, scalable resource for vision-language and language only tasks. Yet only pieces of webpages are kept in existing datasets: image-caption pairs, long text articles, or raw HTML, never all in one place. Webpage tasks have resultingly received little attention and structured i…

Cited by 0SourcecodeScholar
2023

CoLT5: Faster Long-Range Transformers with Conditional Computation

EMNLP 2023long main

Many natural language processing tasks benefit from long inputs, but processing long documents with Transformers is expensive -- not only due to quadratic attention complexity but also from applying feedforward and projection layers to every token. However, not all tokens are equally important, espe…

Cited by 0SourceScholar
2023

Conditional Adapters: Parameter-efficient Transfer Learning with Fast Inference

NeurIPS 2023poster

We propose Conditional Adapter (CoDA), a parameter-efficient transfer learning method that also improves inference efficiency. CoDA generalizes beyond standard adapter approaches to enable a new way of balancing speed and accuracy using conditional computation. Starting with an existing dense pretra…

Cited by 63SourcePDFScholar
2023

FiDO: Fusion-in-Decoder optimized for stronger performance and faster inference

ACL 2023findings

Fusion-in-Decoder (FiD) is a powerful retrieval-augmented language model that sets the state-of-the-art on many knowledge-intensive NLP tasks. However, the architecture used for FiD was chosen by making minimal modifications to a standard T5 model, which our analysis shows to be highly suboptimal fo…

Cited by 32SourcePDFScholar
2023

FormNetV2: Multimodal Graph Contrastive Learning for Form Document Information Extraction

ACL 2023long

The recent advent of self-supervised pre-training techniques has led to a surge in the use of multimodal learning in form document understanding. However, existing approaches that extend the mask language modeling to other modalities require careful multi-task tuning, complex reconstruction target d…

2023

GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints

EMNLP 2023short main

Multi-query attention (MQA), which only uses a single key-value head, drastically speeds up decoder inference. However, MQA can lead to quality degradation, and moreover it may not be desirable to train a separate model just for faster inference. We (1) propose a recipe for uptraining existing multi…

Cited by 0SourceScholar
2023

Pre-computed memory or on-the-fly encoding? A hybrid approach to retrieval augmentation makes the most of your compute

ICML 2023poster

Retrieval-augmented language models such as Fusion-in-Decoder are powerful, setting the state of the art on a variety of knowledge-intensive tasks. However, they are also expensive, due to the need to encode a large number of retrieved passages. Some work avoids this cost by pre-encoding a text corp…

Cited by 14SourcePDFScholar
2023

Sparse Upcycling: Training Mixture-of-Experts from Dense Checkpoints

ICLR 2023poster

Training large, deep neural networks to convergence can be prohibitively expensive. As a result, often only a small selection of popular, dense models are reused across different contexts and tasks. Increasingly, sparsely activated models, which seek to decouple model size from computation costs, ar…

2023

mLongT5: A Multilingual and Efficient Text-To-Text Transformer for Longer Sequences

EMNLP 2023short findings

We present our work on developing a multilingual, efficient text-to-text transformer that is suitable for handling long inputs. This model, called mLongT5, builds upon the architecture of LongT5, while leveraging the multilingual datasets used for pretraining mT5 and the pretraining tasks of UL2. We…

Cited by 0SourcecodeScholar
2022

FNet: Mixing Tokens with Fourier Transforms

NAACL 2022long

We show that Transformer encoder architectures can be sped up, with limited accuracy costs, by replacing the self-attention sublayers with simple linear transformations that “mix” input tokens. Most surprisingly, we find that replacing the self-attention sublayer in a Transformer encoder with a stan…

2022

FormNet: Structural Encoding beyond Sequential Modeling in Form Document Information Extraction

ACL 2022long

Sequence modeling has demonstrated state-of-the-art performance on natural language and document understanding tasks. However, it is challenging to correctly serialize tokens in form-like documents in practice due to their variety of layout patterns. We propose FormNet, a structure-aware sequence mo…

Cited by 87SourcePDFScholar
2022

Generate-and-Retrieve: Use Your Predictions to Improve Retrieval for Semantic Parsing

COLING 2022main

A common recent approach to semantic parsing augments sequence-to-sequence models by retrieving and appending a set of training samples, called exemplars. The effectiveness of this recipe is limited by the ability to retrieve informative exemplars that help produce the correct parse, which is especi…

Cited by 17SourcePDFScholar
2022

LongT5: Efficient Text-To-Text Transformer for Long Sequences

NAACL 2022findings

Recent work has shown that either (1) increasing the input length or (2) increasing model size can improve the performance of Transformer-based neural models. In this paper, we present LongT5, a new model that explores the effects of scaling both the input length and model size at the same time. Spe…

2022

Making Transformers Solve Compositional Tasks

ACL 2022long

Several studies have reported the inability of Transformer models to generalize compositionally, a key type of generalization in many NLP tasks such as semantic parsing. In this paper we explore the design space of Transformer models showing that the inductive biases given to the model by several de…

2022

Sparse Mixers: Combining MoE and Mixing to build a more efficient BERT

EMNLP 2022finding

We combine the capacity of sparsely gated Mixture-of-Experts (MoE) with the speed and stability of linear, mixing transformations to design the Sparse Mixer encoder model. Sparse Mixer slightly outperforms BERT on GLUE and SuperGLUE, but more importantly trains 65% faster and runs inference 61% fast…

2021

Improving Compositional Generalization in Classification Tasks via Structure Annotations

ACL 2021short

Compositional generalization is the ability to generalize systematically to a new data distribution by combining known components. Although humans seem to have a great ability to generalize compositionally, state-of-the-art neural models struggle to do so. In this work, we study compositional genera…

Cited by 17SourcePDFScholar
2021

ReadTwice: Reading Very Large Documents with Memories

NAACL 2021long

Knowledge-intensive tasks such as question answering often require assimilating information from different sections of large inputs such as books or article collections. We propose ReadTwice, a simple and effective technique that combines several strengths of prior approaches to model long-range dep…

Cited by 15SourcePDFScholar
2020

Big Bird: Transformers for Longer Sequences

NeurIPS 2020poster

Transformers-based models, such as BERT, have been one of the most successful deep learning models for NLP. Unfortunately, one of their core limitations is the quadratic dependency (mainly in terms of memory) on the sequence length due to their full attention mechanism. To remedy this, we propose,…