mlsanityData to 14 Oct 2026

Can Generative AI Solve Your In-Context Learning Problem? A Martingale Perspective

arXiv 2412.06033 ↗First posted 8 Dec 2024stat.ML cs.AI cs.CLcited by 2

Not on the map. Why?

Abstract (arXiv)

This work is about estimating when a conditional generative model (CGM) can solve an in-context learning (ICL) problem. An in-context learning (ICL) problem comprises a CGM, a dataset, and a prediction task. The CGM could be a multi-modal foundation model; the dataset, a collection of patient histories, test results, and recorded diagnoses; and the prediction task to communicate a diagnosis to a new patient. A Bayesian interpretation of ICL assumes that the CGM computes a posterior predictive distribution over an unknown Bayesian model defining a joint distribution over latent explanations and observable data. From this perspective, Bayesian model criticism is a reasonable approach to assess the suitability of a given CGM for an ICL problem. However, such approaches -- like posterior predictive checks (PPCs) -- often assume that we can sample from the likelihood and posterior defined by the Bayesian model, which are not explicitly given for contemporary CGMs. To address this, we show when ancestral sampling from the predictive distribution of a CGM is equivalent to sampling datasets from the posterior predictive of the assumed Bayesian model. Then we develop the generative predictive p-value, which enables PPCs and their cousins for contemporary CGMs. The generative predictive p-value can then be used in a statistical decision procedure to determine when the model is appropriate for an ICL problem. Our method only requires generating queries and responses from a CGM and evaluating its response log probability. We empirically evaluate our method on synthetic tabular, imaging, and natural language ICL tasks using large language models.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 41 of its 61 references that are in the map. First posted on arXiv 8 Dec 2024.

Builds on

41 of 61 references.

References · 41

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  5. 2022Language Models (Mostly) Know What They Knowcited by 1,856
  6. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
  7. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
  8. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  9. 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 819
  10. 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 810
  11. 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
  12. 2022Teaching Models to Express Their Uncertainty in Wordscited by 751
29 more
  1. 2023The Internal State of an LLM Knows When It's Lyingcited by 659
  2. 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 376
  3. 2021Transformers Can Do Bayesian Inferencecited by 360
  4. 2023Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedbackcited by 353
  5. 2023Can Generalist Foundation Models Outcompete Special-Purpose Tuning? Case Study in Medicinecited by 329
  6. 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 327
  7. 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 324
  8. 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 293
  9. 2022RARR: Researching and Revising What Language Models Say, Using Language Modelscited by 287
  10. 2024Semantic Entropy Probes: Robust and Cheap Hallucination Detection in LLMscited by 259
  11. 2020Reducing conversational agents' overconfidence through linguistic calibrationcited by 210
  12. 2023A Stitch in Time Saves Nine: Detecting and Mitigating Hallucinations of LLMs by Validating Low-Confidence Generationcited by 206
  13. 2022Factuality Enhanced Language Models for Open-Ended Text Generationcited by 202
  14. 2023Likelihood-Based Diffusion Language Modelscited by 151
  15. 2023Self-contradictory Hallucinations of Large Language Models: Evaluation, Detection and Mitigationcited by 124
  16. 2023Chain-of-Knowledge: Grounding Large Language Models via Dynamic Knowledge Adapting over Heterogeneous Sourcescited by 122
  17. 2023Quantifying Uncertainty in Answers from any Language Model and Enhancing their Trustworthinesscited by 122
  18. 2021Neural Path Hunter: Reducing Hallucination in Dialogue Systems via Path Groundingcited by 106
  19. 2023Selectively Answering Ambiguous Questionscited by 66
  20. 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 57
  21. 2020Effective Transfer Learning for Identifying Similar Questions: Matching User Questions to COVID-19 FAQscited by 48
  22. 2022Read before Generate! Faithful Long Form Question Answering with Machine Readingcited by 47
  23. 2021Martingale posterior distributionscited by 45
  24. 2023Halo: Estimation and Reduction of Hallucinations in Open-Source Weak Large Language Modelscited by 36
  25. 2023Trapping LLM Hallucinations Using Tagged Context Promptscited by 34
  26. 2024Estimating the Hallucination Rate of Generative AIcited by 20
  27. 2023Zero-Resource Hallucination Prevention for Large Language Modelscited by 19
  28. 2023Martingale Posterior Neural Processescited by 16
  29. 2019Holdout predictive checks for Bayesian model criticismcited by 3

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.