Exploring Explanations Improves the Robustness of In-Context Learning

Ukyo Honda, Tatsushi Oka
6/3/2025
cs.CLcs.AIcs.LG

No confident code implementation found for this paper.

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.

Show full abstract

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 (X$^2$-ICL), thereby enabling more comprehensive and robust decision-making. Experimental results on multiple natural language understanding datasets validate the effectiveness of X$^2$-ICL, demonstrating significantly improved robustness to out-of-distribution data compared to the existing ICL approaches.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{honda2025exploring,
  title  = {Exploring Explanations Improves the Robustness of In-Context Learning},
  author = {Ukyo Honda and Tatsushi Oka},
  year   = {2025},
  eprint = {2506.02378},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.02378v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.02378.svg)](https://codeofpaper.com/paper/2506.02378)

Discussion