Salvato in:
Dettagli Bibliografici
Autori principali: Liu, Chenrui, Tan, Falong, Xie, Chuanlong, Zeng, Yicheng, Zhu, Lixing
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:https://arxiv.org/abs/2508.08673
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916927143673856
author Liu, Chenrui
Tan, Falong
Xie, Chuanlong
Zeng, Yicheng
Zhu, Lixing
author_facet Liu, Chenrui
Tan, Falong
Xie, Chuanlong
Zeng, Yicheng
Zhu, Lixing
contents This paper investigates the expected excess risk of in-context learning (ICL) for multiclass classification. We formalize each task as a sequence of labeled examples followed by a query input; a pretrained model then estimates the query's conditional class probabilities. The expected excess risk is defined as the average truncated Kullback-Leibler (KL) divergence between the predicted and true conditional class distributions over a specified family of tasks. We establish a new oracle inequality for this risk, based on KL divergence, in multiclass classification. This yields tight upper and lower bounds for transformer-based models, showing that the ICL estimator achieves the minimax optimal rate (up to logarithmic factors) for conditional probability estimation. From a technical standpoint, our results introduce a novel method for controlling generalization error via uniform empirical entropy. We further demonstrate that multilayer perceptrons (MLPs) can also perform ICL and attain the same optimal rate (up to logarithmic factors) under suitable assumptions, suggesting that effective ICL need not be exclusive to transformer architectures.
format Preprint
id arxiv_https___arxiv_org_abs_2508_08673
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle In-Context Learning as Nonparametric Conditional Probability Estimation: Risk Bounds and Optimality
Liu, Chenrui
Tan, Falong
Xie, Chuanlong
Zeng, Yicheng
Zhu, Lixing
Machine Learning
This paper investigates the expected excess risk of in-context learning (ICL) for multiclass classification. We formalize each task as a sequence of labeled examples followed by a query input; a pretrained model then estimates the query's conditional class probabilities. The expected excess risk is defined as the average truncated Kullback-Leibler (KL) divergence between the predicted and true conditional class distributions over a specified family of tasks. We establish a new oracle inequality for this risk, based on KL divergence, in multiclass classification. This yields tight upper and lower bounds for transformer-based models, showing that the ICL estimator achieves the minimax optimal rate (up to logarithmic factors) for conditional probability estimation. From a technical standpoint, our results introduce a novel method for controlling generalization error via uniform empirical entropy. We further demonstrate that multilayer perceptrons (MLPs) can also perform ICL and attain the same optimal rate (up to logarithmic factors) under suitable assumptions, suggesting that effective ICL need not be exclusive to transformer architectures.
title In-Context Learning as Nonparametric Conditional Probability Estimation: Risk Bounds and Optimality
topic Machine Learning
url https://arxiv.org/abs/2508.08673