arXiv:2410.20215cs.CL2024-10NAACL被引 7

用规划思维提升零样本上下文学习的推理效果

DAWN-ICL: Strategic Planning of Problem-solving Trajectories for Zero-Shot In-Context Learning

  • 将零样本上下文学习重构为路径规划问题,用蒙特卡洛树搜索策略选择最优解题顺序
  • 在同域和跨域任务上均超越传统方法,甚至优于人工标注示范的有监督学习
  • 适合需要高可靠性、无标注数据的智能系统部署场景

零样本上下文学习(ZS-ICL)旨在不依赖人工标注示例的情况下进行上下文学习。现有方法多使用大语言模型生成(输入, 标签)伪示例,并依赖历史伪示例解决当前问题,通常假设问题来自同一任务且按随机顺序处理。然而在真实场景中,问题往往来自多样任务,同类任务极少。随机顺序可能导致不可靠伪示例并引发错误累积。为此,本文将ZS-ICL重新建模为规划问题,提出一种示范感知蒙特卡洛树搜索方法(DAWN-ICL),利用MCTS策略性规划问题求解轨迹。为进一步提升Q值估计效率,设计新型示范感知的Q值函数,增强选择阶段性能,并加速扩展与仿真阶段。大量实验表明,DAWN-ICL在同域与跨域场景下均表现优异,甚至超过使用人工标注标签的常规ICL。代码已开源。

原文摘要 · Abstract (English)

Zero-shot in-context learning (ZS-ICL) aims to conduct in-context learning (ICL) without using human-annotated demonstrations. Most ZS-ICL methods use large language models (LLMs) to generate (input, label) pairs as pseudo-demonstrations and leverage historical pseudo-demonstrations to help solve the current problem. They assume that problems are from the same task and traverse them in a random order. However, in real-world scenarios, problems usually come from diverse tasks, and only a few belong to the same task. The random traversing order may generate unreliable pseudo-demonstrations and lead to error accumulation. To address this problem, we reformulate ZS-ICL as a planning problem and propose a Demonstration-aware Monte Carlo Tree Search (MCTS) approach (DAWN-ICL), which leverages MCTS to strategically plan the problem-solving trajectories for ZS-ICL. In addition, to achieve effective and efficient Q value estimation, we propose a novel demonstration-aware Q-value function and use it to enhance the selection phase and accelerate the expansion and simulation phases in MCTS. Extensive experiments demonstrate the effectiveness and efficiency of DAWN-ICL on in-domain and cross-domain scenarios, and it even outperforms ICL using human-annotated labels. The code is available at https://github.com/RUCAIBox/MCTS4ZSICL.

零样本学习路径规划大模型推理MCTS

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。