Skip to content

Menu

WorksarXiv

A Theoretical Interpretation of In-Context Learning via Probabilistic Modeling

A preview from arXiv. Valency holds this work's metadata and abstract, not its full text.

Abstract

In-context learning (ICL) is an emerging paradigm that employs the semantic information inherent in large language models (LLMs) for generating answers to user queries. While the remarkable performance of ICL has been widely known, a general modeling and a rigorous theoretical analysis of this paradigm are still lacking. This work presents a probabilistic model for ICL and derives the performance of ICL for both general parametric distributions and exponential families. Based on the derived results, the work explains the impact of multiple factors such as the number of demonstrations, the sensitivity of the probabilistic model to the variation of its parameters, as well as the similarity between the demonstrations and the query on the performance of ICL.

Paper details

Source

Source
arXiv
First available
Jun 27, 2026

Pick where to look, or just type