paper-with-me

홈 › Papers

In-Context Learning through the Bayesian Prism

2023-06-08 · Madhur Panwar, Kabir Ahuja, Navin Goyal

In-context learning (ICL) is one of the surprising and useful features of large language models and subject of intense research. Recently, stylized meta-learning-like ICL setups have been devised that train transformers on sequences of input-output pairs $(x, f(x))$. The function $f$ comes from a function class and generalization is checked by evaluating on sequences generated from unseen functions from the same class. One of the main discoveries in this line of research has been that for several function classes, such as linear regression, transformers successfully generalize to new functions in the class. However, the inductive biases of these models resulting in this behavior are not clearly understood. A model with unlimited training data and compute is a Bayesian predictor: it learns the pretraining distribution. In this paper we empirically examine how far this Bayesian perspective can help us understand ICL. To this end, we generalize the previous meta-ICL setup to hierarchical meta-ICL setup which involve unions of multiple task families. We instantiate this setup on a diverse range of linear and nonlinear function families and find that transformers can do ICL in this setting as well. Where Bayesian inference is tractable, we find evidence that high-capacity transformers mimic the Bayesian predictor. The Bayesian perspective provides insights into the inductive bias of ICL and how transformers perform a particular task when they are trained on multiple tasks. We also find that transformers can learn to generalize to new function classes that were not seen during pretraining. This involves deviation from the Bayesian predictor. We examine these deviations in more depth offering new insights and hypotheses.

📄 PDF Abstract BibTeX arXiv:2306.04891

Code (1)

mdrpanwar/icl-bayesian-prism 공식 구현 pytorch

Tasks

Bayesian InferenceIn-Context LearningInductive BiasLanguage ModellingMeta-Learningregression

Similar Papers 제목 키워드 기반

A Logic-based Approach to Generatively Defined Discriminative Modeling

2014-10-15 · Taisuke Sato, Keiichi Kubota, Yoshitaka Kameya

Conditional random fields (CRFs) are usually specified by graphical models but in this paper we propose to use probabilistic logic programs and specify them generatively. Our intension is first to provide a unified appro…

PRISM: Pareto-Efficient Retrieval over Intent-Aware Structured Memory for Long-Horizon Agents

2026-05-12 · Jingyi Peng, Zhongwei Wan, Weiting Liu, Qiuzhuang Sun arxiv

Long-horizon language agents accumulate conversation history far faster than any fixed context window can hold, making memory management critical to both answer accuracy and serving cost. Existing approaches either expan…

FairPrism: Evaluating Fairness-Related Harms in Text Generation

2023-07-01 · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics 2023 7 · Eve Fleisig, Aubrie Amstutz, Chad Atalla, Su Lin Blodgett 외

It is critical to measure and mitigate fairness- related harms caused by AI text generation systems, including stereotyping and demeaning harms. To that end, we introduce FairPrism, a dataset of 5,000 examples of AI-gene…

FairnessText Generation

PRISM: Projection-Integrated Sampling-Based MPC with Bayesian Cost Tuning for Bimanual Manipulation

2026-08-26 · Alinjar Dan, Iryna Hurova, Karl Kruusamäe, Arun Kumar Singh arxiv

Bimanual manipulation in cluttered, contact-rich environments remains challenging because it requires coordinated motion generation, interaction-aware planning, and reliable execution under tight kinematic constraints. W…

PRISM: Breaking the O(n) Memory Wall in Long-Context LLM Inference via O(1) Photonic Block Selection

2026-03-23 · Hyoseok Park, Yeonsang Park arxiv

Long-context LLM inference is bottlenecked not by compute but by the O(n) memory bandwidth cost of scanning the KV cache at every decode step -- a wall that no amount of arithmetic scaling can break. Recent photonic acce…