Abstract
Large Language Models (LLMs) have demonstrated remarkable capabilities across diverse domains, including programming, planning, and decision-making. However, their performance often degrades when faced with highly complex problem instances that require deep reasoning over long horizons. In such cases, direct problem-solving approaches can lead to inefficiency or failure due to the lack of structured intermediate guidance. To address this, we propose a novel self-evolve framework, EvoCurr, in which a dedicated curriculum-generation LLM constructs a sequence of problem instances with gradually increasing difficulty, tailored to the solver LLM's learning progress. The curriculum dynamically adapts easing challenges when the solver struggles and escalating them when success is consistent, thus maintaining an optimal learning trajectory. This approach enables the solver LLM, implemented as a code-generation model producing Python decision-tree scripts, to progressively acquire the skills needed for complex decision-making tasks. Experimental results on challenging decision-making benchmarks show that our method significantly improves task success rates and solution efficiency compared to direct-solving baselines. These findings suggest that LLM-driven curriculum learning holds strong potential for enhancing automated reasoning in real-world, high-complexity domains.
Introduction
While LLMs have shown impressive reasoning capabilities, they often stumble when faced with "long-horizon" problems—tasks requiring many sequential, interdependent steps. In complex environments like StarCraft II, a single error in a multi-step strategy can lead to total failure. Directly prompting an LLM to "win this complex battle" usually results in logical inconsistencies or code that hallucinations non-existent API functions.
Traditionally, researchers solve this using Curriculum Learning, where a model is trained on easy tasks before moving to hard ones. However, most curricula are manually designed by human experts and are static. EvoCurr seeks to automate this process at inference time, allowing an LLM to "evolve" a solution through adaptive, self-generated challenges.
The EvoCurr Framework
The authors propose a multi-agent architecture consisting of two specialized LLM roles: the Curriculum Designer and the Behavior Coder (Solver).
1. The Curriculum Designer
This agent acts as a teacher. It starts by simplifying the target task (e.g., 5 Marines vs. 2 Zealots). It monitors the solver's performance; if the solver hits a success threshold (set at a 67% win rate), the designer increases the difficulty by adding new unit types, abilities, or enemies. If the solver fails, the designer "adjusts" by simplifying the scenario to reinforce deficient skills.
2. The Behavior Coder (Solver)
This agent implements a Planner-Coder-Critic loop to generate executable Python code:
- Planner: Drafts a high-level strategy based on unit attributes retrieved from external sources (like Liquipedia).
- Coder: Translates that strategy into executable Python code using the
python-sc2API. - Critic: Analyzes simulation logs and tracebacks to identify bugs or strategic flaws, feeding this back into the next iteration.
The final output is an executable Decision Tree script. Unlike "black-box" neural network policies, decision trees are human-readable, making the agent's logic transparent and easier to debug.
Experimental Evaluation
The framework was evaluated using a custom-designed StarCraft II micro-management benchmark. The final target task involved a massive "Terran vs. Protoss" engagement involving a diverse army: Marines, Marauders, Ghosts (with cloaking), Medivacs (for healing), Siege Tanks, Vikings, and Liberators against a similarly complex Protoss force.
Key Results
- Success Rate: EvoCurr achieved a 20% success rate (1 out of 5 independent runs) on the final, high-complexity task. While modest, the direct-solving baseline failed 100% of the time (0% success).
- Solution Efficiency: The successful run reached the final objective after 6 curriculum stages.
- Path Diversity: Each of the five experimental runs took a different evolutionary path. For example, one run succeeded by systematically building complexity, while another explored seven different tasks but failed to maintain a consistent progression.
Discussion and Future Work
A key insight from this work is the necessity of the "Adjust" mechanism. When the designer scaled difficulty too quickly, the solver's performance plummeted. The ability of the Curriculum Designer to recognize this and "step back" to a simpler task was crucial for eventual success.
However, the authors identify a "single-agent bottleneck": when one LLM is responsible for controlling an entire heterogeneous army, it tends to develop a bias toward certain units while handling others with coarser logic. Future work includes assigning different LLM agents to control specific unit types and applying the EvoCurr framework to broader domains like automated theorem proving or complex software engineering.
Summary updated