English

Exploring Explanations Improves the Robustness of In-Context Learning

Computation and Language 2025-06-04 v1 Artificial Intelligence Machine Learning

Abstract

In-context learning (ICL) has emerged as a successful paradigm for leveraging large language models (LLMs). However, it often struggles to generalize beyond the distribution of the provided demonstrations. A recent advancement in enhancing robustness is ICL with explanations (X-ICL), which improves prediction reliability by guiding LLMs to understand and articulate the reasoning behind correct labels. Building on this approach, we introduce an advanced framework that extends X-ICL by systematically exploring explanations for all possible labels (X2^2-ICL), thereby enabling more comprehensive and robust decision-making. Experimental results on multiple natural language understanding datasets validate the effectiveness of X2^2-ICL, demonstrating significantly improved robustness to out-of-distribution data compared to the existing ICL approaches.

Keywords

Cite

@article{arxiv.2506.02378,
  title  = {Exploring Explanations Improves the Robustness of In-Context Learning},
  author = {Ukyo Honda and Tatsushi Oka},
  journal= {arXiv preprint arXiv:2506.02378},
  year   = {2025}
}

Comments

Accepted to ACL 2025 (Main Conference)

R2 v1 2026-07-01T02:55:44.515Z