Bayesian Example Selection Improves In-Context Learning for Speech, Text, and Visual Modalities
Authors:
Preprint
Abstract
Large language models (LLMs) can adapt to new tasks through in-context learning (ICL) based on a few examples presented in dialogue history without any model parameter update. Despite such convenience, the performance of ICL heavily depends on the quality of the in-context examples presented, which makes the in-context example selection approach a critical choice. This paper proposes a novel Bayesian in-Context example Selection method (ByCS) for ICL. Extending the inference probability conditioned on in-context examples based on Bayes' theorem, ByCS focuses on the inverse inference conditioned on test input. Following the assumption that accurate inverse inference probability (likelihood) will result in accurate inference probability (posterior), in-context examples are selected based on their inverse inference results. Diverse and extensive cross-tasking and cross-modality experiments are performed with speech, text, and image examples. Experimental results show the efficacy and robustness of our ByCS method on various models, tasks and modalities.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Neural Codec Language Models are Zero-Shot Text to Speech SynthesizersIEEE Transactions on Audio, Speech and Language Processing, 2025
- COSMIC: Data Efficient Instruction-tuning For Speech In-Context Learning2024
- Can Whisper Perform Speech-Based In-Context Learning?2024
- Learning to Retrieve In-Context Examples for Large Language Models2024
- AudioLM: A Language Modeling Approach to Audio GenerationIEEE/ACM Transactions on Audio, Speech, and Language Processing, 2023
- In-Context Demonstration Selection with Cross Entropy Difference2023
- Skill-Based Few-Shot Selection for In-Context Learning2023
- Contextualizing /s/ retraction: Sibilant variation and change in Washington D.C. African American LanguageLanguage Variation and Change, 2021
- Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task2018
- An analysis of environment, microphone and data simulation mismatches in robust speech recognitionComputer Speech & Language, 2017