Publication:

Language Models with Retrieval Augmentation and Conditional Computation

datacite.rightsopen.access
dc.contributor.advisorChen, Danqi
dc.contributor.authorZhong, Zexuan
dc.contributor.otherComputer Science Department
dc.date.accessioned2025-06-27T14:17:18Z
dc.date.accessioned2026-12-04T11:30:12Z
dc.date.available2025-06-27T14:17:18Z
dc.date.available2026-12-04T11:30:12Z
dc.date.created2024-01-01
dc.date.issued2025
dc.description.abstractRecent advancements in large language models (LMs) have primarily focused on scaling up model parameters and training data, which improves performance but significantly increases computational costs. Furthermore, conventional parametric LMs are fundamentally incapable of adapting to unseen domains, editing learned knowledge, retaining long-tail knowledge, and are shown to easily leak private data from the training corpus. This thesis explores alternative approaches to scaling LMs while addressing these limitations. Firstly, we study LMs with retrieval augmentation, where LMs leverage external datastores for predictions. We develop TRIME, a novel end-to-end training approach that jointly optimizes LMs and the retrieval models. Our results show that TRIME significantly improves LM performance without increasing the model size or computational budget. Additionally, retrieval-augmented LMs trained with TRIME adapt effectively to previously unseen domains. Secondly, we focus on a fundamental challenge of LMs: editing knowledge stored in their parameters—a critical problem to address as real-world information constantly evolves. We examine state-of-the-art knowledge editing methods and find that existing evaluation paradigms are extremely limited. We propose a novel benchmark MQuAKE, consisting of multi-hop questions that assess whether edited models correctly infer changes entailed by updated facts. We demonstrate that existing knowledge editing methods fail on the constructed multi-hop questions. We also propose a simple retrieval-augmented approach that stores all edited facts externally, outperforming previous methods by a large margin. Thirdly, we explore scaling LMs through conditional computation to reduce computational costs. Specifically, we focus on mixture-of-experts (MoE), a widely used conditional computation technique for efficient scaling. However, training MoE routing networks introduces the challenge of optimizing a non-differentiable, discrete objective. We present a fully differentiable MoE architecture for autoregressive language model pre-training, Lory, based on two key techniques: (1) a causal segment routing strategy for high efficiency of expert merging and (2) a similarity-based data batching method for better expert specialization. Despite segment-level routing, Lory models achieve competitive performance compared to state-of-the-art MoE models with token-level routing, while also capturing domain-level specialization. Overall, our research illuminates a new paradigm in LM scalability, fundamentally addressing critical limitations and advancing the development of more efficient, effective, adaptable, and updatable language models.
dc.format.mimetypeapplication/pdf
dc.identifier.urihttp://arks.princeton.edu/ark:/88435/dsp016h440w89n
dc.identifier.urihttps://theses-dissertations.princeton.edu/handle/88435/dsp016h440w89n
dc.language.isoen
dc.publisherPrinceton, NJ : Princeton University
dc.subjectConditional Computation
dc.subjectLanguage Models
dc.subjectMixture of Experts
dc.subjectRetrieval Augmentation
dc.subject.classificationComputer science
dc.subject.classificationArtificial intelligence
dc.titleLanguage Models with Retrieval Augmentation and Conditional Computation
dc.typeAcademic dissertations (Ph.D.)
dspace.entity.typePublication
pu.date.classyear2025
pu.departmentComputer Science

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Zhong_princeton_0181D_15338.pdf
Size:
5.8 MB
Format:
Adobe Portable Document Format

Collections