arXiv:2509.26062cs.CL2025-09NeurIPS被引 20

动态调整推理流程,让AI能自适应解决复杂问题。

DyFlow: Dynamic Workflow Framework for Agentic Reasoning

  • 根据任务需求和实时反馈动态规划推理步骤。
  • 在数学、生物、代码生成等任务中显著提升准确率。
  • 适合需要灵活推理的智能系统开发者使用。

基于大语言模型的智能体系统在复杂推理任务中展现出巨大潜力,但高效且通用的推理流程构建仍是主要挑战。现有方法多依赖人工设计流程,难以跨任务适配;少数自动化方法受限于特定数据集或查询类型,且未充分利用中间反馈,导致系统鲁棒性与推理深度不足,操作也常为预设模式、缺乏灵活性。为此,我们提出DyFlow,一个动态工作流生成框架,可根据任务需求与实时中间反馈自适应构造和调整推理过程,提升跨任务泛化能力。DyFlow包含两个核心组件:设计师负责将复杂问题分解为由高层目标定义的子目标,并基于中间输出与反馈动态规划下一步;执行器则利用上下文感知参数化的动态算子执行每一步操作,实现灵活且语义合理的推理。我们在社会推理、生物医学、数学求解与代码生成等多个领域系统评估了DyFlow,结果表明其显著优于现有基线,在Pass@k指标上取得显著提升,并展现出强大的跨域泛化能力。代码已公开于https://github.com/wyf23187/DyFlow。

原文摘要 · Abstract (English)

Agent systems based on large language models (LLMs) have shown great potential in complex reasoning tasks, but building efficient and generalizable workflows remains a major challenge. Most existing approaches rely on manually designed processes, which limits their adaptability across different tasks. While a few methods attempt automated workflow generation, they are often tied to specific datasets or query types and make limited use of intermediate feedback, reducing system robustness and reasoning depth. Moreover, their operations are typically predefined and inflexible. To address these limitations, we propose DyFlow, a dynamic workflow generation framework that adaptively constructs and adjusts reasoning procedures based on task requirements and real-time intermediate feedback, thereby enhancing cross-task generalization. DyFlow consists of two core components: a designer and an executor. The designer decomposes complex problems into a sequence of sub-goals defined by high-level objectives and dynamically plans the next steps based on intermediate outputs and feedback. These plans are then carried out by the executor, which executes each operation using dynamic operators with context-aware parameterization, enabling flexible and semantically grounded reasoning. We systematically evaluate DyFlow across diverse domains, including social reasoning, biomedical tasks, mathematical problem solving, and code generation. Results demonstrate that DyFlow significantly outperforms existing baselines, achieving substantial Pass@k improvements and exhibiting robust generalization across diverse domains. The code is publicly available at https://github.com/wyf23187/DyFlow.

智能体动态推理LLM应用

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