StrategyLLM:大型语言模型作为问题解决的策略生成器、执行器、优化器和评估器
StrategyLLM: Large Language Models as Strategy Generators, Executors, Optimizers, and Evaluators for Problem Solving
AI总结:
提出StrategyLLM框架,利用四个LLM智能体进行归纳与演绎推理以生成可泛化且一致的少样本提示策略,在4项任务的13个数据集上无需人工干预即超越需人工标注的CoT-SC基线。
摘要:
大多数现有的提示方法存在泛化性和一致性问题,因为它们通常依赖于特定实例的解决方案,这些方案可能不适用于其他实例,并且缺乏跨所选少样本示例的任务级一致性。为了解决这些局限性,我们提出了一个综合框架StrategyLLM,允许LLM执行归纳推理(从特定任务实例中推导一般策略)和演绎推理(将这些一般策略应用于特定任务示例),以构建可泛化且一致的少样本提示。它采用四个基于LLM的智能体:策略生成器、执行器、优化器和评估器,协同工作以为给定任务生成、评估和选择有前景的策略。实验结果表明,StrategyLLM在4项挑战性任务的13个数据集上优于需要人工标注解决方案的竞争基线CoT-SC,且无需人工干预,包括数学推理(34.2% → 38.8%)、常识推理(70.3% → 72.5%)、算法推理(73.7% → 85.0%)和符号推理(30.0% → 79.2%)。进一步分析表明,StrategyLLM适用于各种LLM,并在众多场景中展现出优势。
英文摘要:
Most existing prompting methods suffer from the issues of generalizability and consistency, as they often rely on instance-specific solutions that may not be applicable to other instances and lack task-level consistency across the selected few-shot examples. To address these limitations, we propose a comprehensive framework, StrategyLLM, allowing LLMs to perform inductive reasoning, deriving general strategies from specific task instances, and deductive reasoning, applying these general strategies to particular task examples, for constructing generalizable and consistent few-shot prompts. It employs four LLM-based agents: strategy generator, executor, optimizer, and evaluator, working together to generate, evaluate, and select promising strategies for a given task. Experimental results demonstrate that StrategyLLM outperforms the competitive baseline CoT-SC that requires human-annotated solutions on 13 datasets across 4 challenging tasks without human involvement, including math reasoning (34.2\% $\rightarrow$ 38.8\%), commonsense reasoning (70.3\% $\rightarrow$ 72.5\%), algorithmic reasoning (73.7\% $\rightarrow$ 85.0\%), and symbolic reasoning (30.0\% $\rightarrow$ 79.2\%). Further analysis reveals that StrategyLLM is applicable to various LLMs and demonstrates advantages across numerous scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。