Moonbase
← Back to Awards
Directorate for Mathematical and Physical SciencesNSF · NSFNSF

A Statistical Foundation of In-Context Learning and Chain-of-Thought Prompting with Large Language Models

Zhuoran Yang·Yale University, CT·2024–2027·ACTIVE
Donate

INSTITUTION

Yale University, CT

PRINCIPAL INVESTIGATOR

Zhuoran Yang

FUNDING

$250K

YEAR

2024

MOONBASE SCORE

Still being scored

LOADING MOONBASE SCORE

Abstract

Large Language Models (LLMs) like GPT-4 have transformed natural language processing and related fields by demonstrating unprecedented capabilities in interpreting human instructions and completing complex reasoning tasks. Representing a paradigm shift in statistical machine learning, these models are trained on extensive text corpora and can perform novel tasks without modifications to their parameters. This project seeks to develop a comprehensive theoretical framework to understand mainstream methods used with deployed LLMs through a statistical lens. The anticipated broader impacts of this research include enriching educational curricula at participating institutions and providing significant training opportunities for both graduate and undergraduate students. Moreover, the project's outcomes are expected to enhance high-impact applications in sectors such as robotics and transportation systems, thereby improving the practical deployment of LLMs in complex decision-making scenarios. Specifically, this research explores the statistical foundations of various prompting methods utilized in LLMs, including in-context learning (ICL) and chain-of-thought (CoT) prompting. The study is organized around three main thrusts: first, deciphering how LLMs perform ICL and CoT as forms of implicit Bayesian inference and understanding how transformer architectures' attention mechanisms approximately encode these Bayesian estimators. Second, the project will develop algorithms to analyze the statistical errors—incurred during pre-training and prompting stages —associated with these prompting-based estimators. The third thrust aims to apply this theoretical framework to real-world applications like robotic control and autonomous driving, formulating principled methods that utilize pre-trained LLMs for complex decision-making. By establishing a robust statistical foundation for prompting-based methodologies, this research aims to advance the field of prompt engineering and contribute to the development of principled methods for using LLMs. This award reflects NSF's statutory mission and has been deemed worthy of support through evaluation using the Foundation's intellectual merit and broader impacts review criteria.

Directorate for Mathematical and Physical SciencesSTATISTICSSTATISTICSthroughunderstandingincludemodelshumanscenariosmakingadvancecontextchainworthyreflectsmeritparadigmfieldsduringcomplexroboticswithoutestimators

Are you the primary organization running this research?

The two tools below are built for the principal investigator & host institution behind this project.