cs.CLOct 21, 2026

DynaWeave: Learning to Adapt through Dynamic Scenario Synthesis

Authors: Xuan Yang, Chunxiao Liu, Hongsheng Xin, Hao Xu, Ning Miao

Organizations: Department of Data Science, City University of Hong Kong. · Hong Kong Institute of AI for Science, City University of Hong Kong. · Independent Researcher. · Li Auto Inc.

Abstract

Large language model (LLM) agents increasingly use tools to complete tasks in stateful environments. However, many training environments remain largely static apart from changes caused by the agent's own actions, whereas external events introduced by other users, services, or sudden contingencies in real environments can invalidate ongoing plans. To address this gap, we introduce DynaWeave, an automated synthesis framework that transforms existing static tasks into verifiable dynamic scenarios. The framework generates exogenous events relevant to each task, covering changes in task requirements, environment state, and external information. It uses directed acyclic graphs (DAGs) to represent dependencies between events and an execution engine to activate them during agent interaction. A dynamic verifier revises only the evaluation checks affected by events that actually occur and retains all other checks. Using DynaWeave, we collect 2,095 verified interaction trajectories across 36 environments and use them for supervised fine-tuning of Qwen3.5 models. Experiments on Gaia2, CostBench, and ToolMaze show that DynaWeave achieves consistent improvements in overall performance across all three evaluated model sizes, increasing the task completion rate on CostBench by 67.34 percentage points and even exceeding the performance of Gemini-3.1-Pro-Preview on ToolMaze. These results support dynamic scenario synthesis as a practical approach to training agents to adapt to changing environments. Our code is available at https://github.com/Miaow-Lab/DynaWeave.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. AgentMercury: Your Agent Can Synthesize Verifiable Environments for Business Scenarios at scale

    Aug 21, 2026Minbyul Jeong, Chanwoong YoonLLM Agent TrainingRL for LLM Agents

  2. EnvCraft: Synthesizing Executable Environments in Agentic RL for Claw-like Agent

    Sep 4, 2026Yirong Zeng, Shen You, Jinhang Feng +8LLM Agent TrainingAgentic RL

  3. EnvFactory: Scaling Tool-Use Agents via Executable Environments Synthesis and Robust RL

    May 18, 2026Minrui Xu, Zilin Wang, Mengyi DENG +12Tool-Augmented Language Model AgentsAgentic RL