arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.19488cs.AI
收藏

CoDA:通过引导式推理的领域适应实现有效的跨领域知识迁移

CoDA: Towards Effective Cross-domain Knowledge Transfer via CoT-guided Domain Adaptation

Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Pengcheng Laboratory(鹏城实验室)

Jianzhi Yan, Le Liu, Buzhou Tang, Yang Xiang, Dongning Sun, Zhiming Li

AI总结:

针对跨领域知识迁移中领域分布偏移问题,CoDA通过轻量适配器和基于特征的知识蒸馏结合MMD分布匹配,有效对齐源域与目标域的潜在推理表示,提升逻辑推理任务性能。

摘要:

大型语言模型(LLMs)在逻辑推理方面取得了显著进展,但尚未达到人类水平。在-context学习通过提示输入专家整理的领域示例来提升模型性能。然而,在许多现实世界中专业知识匮乏的领域,如低资源科学学科、新兴生物医学子领域或狭窄法律辖区,高质量的领域示例本质上有限或完全不可用,从而限制了这些方法的通用适用性。为缓解这一限制,最近的研究探索了检索跨领域样本作为替代的在-context示例。然而,所获得的收益仍然有限。这主要是由于源域和目标域之间显著的领域偏移,阻碍了模型有效识别和利用潜在共享结构或潜在推理模式的能力。因此,当仅依赖原始文本提示时,LLMs难以系统地抽象和迁移跨领域知识。为解决这些问题,我们提出了CoDA,它通过轻量级适配器直接干预中间隐藏状态。通过结合基于特征的知识蒸馏(利用增强的推理参考表示)和最大均值差异(MMD)进行核化分布匹配,我们的方法对齐了源域和目标域的潜在推理表示。在多个逻辑推理任务上广泛实验结果验证了CoDA的有效性,通过显著超越先前最先进的基线方法,证明了其优越性。

英文摘要:

Large language models (LLMs) have achieved substantial advances in logical reasoning, yet they continue to lag behind human-level performance. In-context learning provides a viable solution that boosts the model's performance via prompting its input with expert-curated, in-domain exemplars. However, in many real-world, expertise-scarce domains, such as low-resource scientific disciplines, emerging biomedical subfields, or niche legal jurisdictions, such high-quality in-domain demonstrations are inherently limited or entirely unavailable, thereby constraining the general applicability of these approaches. To mitigate this limitation, recent efforts have explored the retrieval of cross-domain samples as surrogate in-context demonstrations. Nevertheless, the resulting gains remain modest. This is largely attributable to the pronounced domain shift between source and target distributions, which impedes the model's ability to effectively identify and exploit underlying shared structures or latent reasoning patterns. Consequently, when relying solely on raw textual prompting, LLMs struggle to abstract and transfer such cross-domain knowledge in a robust and systematic manner. To address these issues, we propose CoDA, which employs a lightweight adapter to directly intervene in the intermediate hidden states. By combining feature-based distillation of CoT-enriched reference representations with Maximum Mean Discrepancy (MMD) for kernelized distribution matching, our method aligns the latent reasoning representation of the source and target domains. Extensive experimental results on multiple logical reasoning tasks across various model families validate the efficacy of CoDA by significantly outperforming the previous state-of-the-art baselines by a large margin.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑