Divide, Optimize, Merge: Fine-Grained LLM Agent Optimization at Scale
Jiale Liu, Yifan Zeng, Shaokun Zhang, Chi Zhang, Malte Højmark-Bertelsen, Marie Normann Gadeberg, Huazheng Wang, Qingyun Wu
TL;DR
Fine-Grained LLM Agent Optimization (FGO) tackles scalability bottlenecks in LLM-based agent optimization by partitioning large training data into subsets, optimizing each subset independently, and progressively merging results to form a global model. The framework preserves task-specific patterns while enabling parallel processing and mitigating context-window constraints, yielding consistent gains (8.3%–38.1%) and substantial token savings across ALFWorld, LogisticsQA, and GAIA. Ablation studies show the crucial role of progressive merging and demonstrate robustness to partitioning strategies and backbone models, with manageable increases in token usage due to validation across merged tasks. Overall, FGO provides a practical, scalable approach for optimizing increasingly complex agentic systems with large-scale data.
Abstract
LLM-based optimization has shown remarkable potential in enhancing agentic systems. However, the conventional approach of prompting LLM optimizer with the whole training trajectories on training dataset in a single pass becomes untenable as datasets grow, leading to context window overflow and degraded pattern recognition. To address these challenges, we propose Fine-Grained Optimization (FGO), a scalable framework that divides large optimization tasks into manageable subsets, performs targeted optimizations, and systematically combines optimized components through progressive merging. Evaluation across ALFWorld, LogisticsQA, and GAIA benchmarks demonstrate that FGO outperforms existing approaches by 1.6-8.6% while reducing average prompt token consumption by 56.3%. Our framework provides a practical solution for scaling up LLM-based optimization of increasingly sophisticated agent systems. Further analysis demonstrates that FGO achieves the most consistent performance gain in all training dataset sizes, showcasing its scalability and efficiency.
