通过领域不变神经元的检索实现有效的跨领域知识转移
Towards Effective In-context Cross-domain Knowledge Transfer via Domain-invariant-neurons-based Retrieval
AI总结:
本文提出领域不变神经元检索方法,用于提升大语言模型在跨领域推理中的性能,实验表明方法在数学和逻辑推理迁移中平均提升1.8。
摘要:
大型语言模型(LLMs)在逻辑推理方面取得了显著进展,但仍未能达到人类水平。当前的提升策略依赖于领域专家编写的领域内示例,限制了在专业知识稀缺的领域(如专门的数学推理、形式逻辑或法律分析)中的应用。在本工作中,我们证明了利用跨领域示例来提升LLMs推理性能的可行性。尽管存在显著的领域差异,许多可重用的隐含逻辑结构在不同领域中共享。为了有效检索未见领域下的跨领域示例,我们进一步提出了一种有效的检索方法,称为基于领域不变神经元的检索(DIN-Retrieval)。简而言之,DIN-Retrieval首先总结了一个在不同领域中普遍存在的隐藏表示。然后在推理阶段,我们使用DIN向量检索结构兼容的跨领域示例用于上下文学习。在数学和逻辑推理迁移的多个设置中,实验结果表明,我们的方法在状态-of-the-art方法上平均提升了1.8。
英文摘要:
Large language models (LLMs) have made notable progress in logical reasoning, yet still fall short of human-level performance. Current boosting strategies rely on expert-crafted in-domain demonstrations, limiting their applicability in expertise-scarce domains, such as specialized mathematical reasoning, formal logic, or legal analysis. In this work, we demonstrate the feasibility of leveraging cross-domain demonstrating examples to boost the LLMs' reasoning performance. Despite substantial domain differences, many reusable implicit logical structures are shared across domains. In order to effectively retrieve cross-domain examples for unseen domains under investigation, in this work, we further propose an effective retrieval method, called domain-invariant neurons-based retrieval (\textbf{DIN-Retrieval}). Concisely, DIN-Retrieval first summarizes a hidden representation that is universal across different domains. Then, during the inference stage, we use the DIN vector to retrieve structurally compatible cross-domain demonstrations for the in-context learning. Experimental results in multiple settings for the transfer of mathematical and logical reasoning demonstrate that our method achieves an average improvement of 1.8 over the state-of-the-art methods \footnote{Our implementation is available at https://github.com/Leon221220/DIN-Retrieval}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。