cs.AIApr 7, 2026

Reason Analogically via Cross-domain Prior Knowledge: An Empirical Study of Cross-domain Knowledge Transfer for In-Context Learning

Authors: Le Liu, Zhiming Li, Jianzhi Yan, Zike Yuan, Shiwei Chen, Youcheng Pan, Buzhou Tang, Qingcai Chen, 

Organizations: Harbin Institute of Technology, Shenzhen, China · Pengcheng Laboratory, Shenzhen, China

Abstract

Despite its success, existing in-context learning (ICL) relies on in-domain expert demonstrations, limiting its applicability when expert annotations are scarce. We posit that different domains may share underlying reasoning structures, enabling source-domain demonstrations to improve target-domain inference despite semantic mismatch. To test this hypothesis, we conduct a comprehensive empirical study of different retrieval methods to validate the feasibility of achieving cross-domain knowledge transfer under the in-context learning setting. Our results demonstrate conditional positive transfer in cross-domain ICL. We identify a clear example absorption threshold: beyond it, positive transfer becomes more likely, and additional demonstrations yield larger gains. Further analysis suggests that these gains stem from reasoning structure repair by retrieved cross-domain examples, rather than semantic cues. Overall, our study validates the feasibility of leveraging cross-domain knowledge transfer to improve cross-domain ICL performance, motivating the community to explore designing more effective retrieval approaches for this novel direction.\footnote{Our implementation is available at https://github.com/littlelaska/ICL-TF4LR}

Figures & tables

Appendix figures & tables16 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Retrieval-Based In-Context Learning: A Domain Adaptation Framework

    Oct 5, 2026Yilun Zhu, Naihao Deng, Yingcong Li +2Distribution ShiftDomain Adaptation

  2. Towards Effective In-context Cross-domain Knowledge Transfer via Domain-invariant-neurons-based Retrieval

    Apr 7, 2026Jianzhi Yan, Zhiming Li, Le Liu +6Cross-Domain Transfer LearningRetrieval-Augmented ICL

  3. When Correct Demonstrations Hurt: Rethinking the Role of Exemplars in In-Context Learning

    May 25, 2026Chenghao Qiu, Chunli Peng, Yufeng Yang +2In-Context Learning