Reproduce “Towards Effective In-context Cross-domain Knowledge Transfer via Domain-invariant-neurons-based Retrieval” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Jianzhi Yan, Zhiming Li, Le Liu, Zike Yuan, Shiwei Chen, Youcheng Pan, Buzhou Tang, Yang Xiang and 1 more
Researchers from Harbin Institute of Technology introduce Domain-Invariant Neurons-based Retrieval (DIN-Retrieval), a framework for effective cross-domain In-Context Learning (ICL) in Large Language Models (LLMs). By identifying a subset of neurons with stable activation patterns across domains, the method consistently improves LLM reasoning performance in challenging domain transfer tasks, achieving gains of up to +7.0 percentage points in accuracy over zero-shot baselines on benchmarks like GSM8K to FOLIO.
Key insights
- A compact set of Domain-Invariant Neurons (DINs) exists within LLMs that are functionally important for cross-domain generalization, as evidenced by significant perplexity increases upon their pruning.
- Retrieving demonstrations based on neuron-level domain-invariant representations is more effective for transferring structural reasoning patterns across domain shifts than full-space semantic similarity methods.
- LLMs can leverage structurally analogous cross-domain demonstrations to enhance reasoning capabilities, even in data-scarce scenarios, by aligning internal logical structures via DINs.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.