Making AI Agents Curriculum Directors: A Systematic Approach to Optimizing Post-Training Data

    In agent systems, model performance relies not just on parameter size or training steps, but on how training trajectories are curated. This article explores a "Curriculum Director" framework for post-training data optimization, moving beyond simple successful trajectory collection. It details task decomposition, trajectory diagnosis, skill attribution, and instructional organization to evaluate data based on process validity, skill coverage, and learnability. By implementing controlled experiments and strategically retaining skill instructions during training, developers can significantly improve model performance without increasing training scale, transforming post-training from data accumulation to capability-oriented curriculum design.

    In agent systems, final model performance depends not only on parameter size or training steps, but on “what to teach, how to teach, and which trajectories are worth learning.” Traditional post-training pipelines typically use a straightforward approach: a stronger teacher model completes a task, successful trajectories are extracted, and supervised fine-tuning (SFT) is applied to the target model. While simple and cost-effective, this assumes all successful trajectories are equally valuable and that “success” alone makes a trajectory suitable for teaching.

    In reality, this is not the case. Agents must handle environment feedback, tool calls, error recovery, long-horizon planning, and multi-turn decisions. A trajectory might reach the correct result but contain redundant actions, accidental trial-and-error, or rely on implicit capabilities the student model cannot replicate. Without further analysis, successful trajectories easily become “correct in result but unteachable in process.”

    1. From “Trajectory Collector” to “Curriculum Director”

    The core of a “Curriculum Director” training framework is not simply adding another data filter. It involves an upper-level agent taking on instructional design responsibilities: understanding task goals, analyzing the teacher’s process, identifying key skills, judging the pedagogical value of samples, and organizing training data accordingly.

    This role includes four main tasks.

    First, task decomposition. For terminal operations, search Q&A, and software engineering tasks, the final answer is merely a surface result; true capability is determined by intermediate skills. For example, terminal tasks might involve file location, command composition, state checking, and exception recovery. Deep search requires problem decomposition, cross-validation of evidence, and conclusion synthesis. Software engineering involves code understanding, localized modification, test execution, and iterative failure repair.

    Second, trajectory diagnosis. The system should not merely judge “success” or “failure,” but observe whether the trajectory is efficient, stable, reliant on accidental paths, and whether key steps can transfer to similar tasks. A successful process with excessive tool calls holds a different training value than a clear, error-controlled process.

    Third, skill attribution. The instructional agent must answer: what capability does this trajectory actually demonstrate? Is it planning, tool usage, context memory, or error recovery? Clear skill tags enable the construction of a more balanced dataset, preventing training samples from concentrating on easily completed operations.

    Fourth, instructional organization. For the same task, you can retain the full trajectory or extract key stages. For tasks of varying difficulty, establish a progressive training order. For easily confused capabilities, add contrasting samples to help the model understand what works and what leads to failure.

    2. Why Successful Trajectories Do Not Equal High-Quality Training Samples

    Traditional SFT filtering typically relies on final rewards or task completion. This standard is necessary but insufficient.

    First, terminal rewards cannot measure process quality. An agent might complete a task through a large number of irrelevant actions. If the target model copies this path, inference costs will rise and failure probability may increase.

    Second, successful trajectories may harbor a capability gap. The teacher model can make correct judgments based on complex context, but the student model may not possess equivalent implicit reasoning abilities. If the trajectory does not reflect clear decision bases, the student can only mimic surface actions without forming transferable strategies.

    Third, simply collecting success cases causes distribution skew. Certain problem types are easier to succeed in and will occupy a higher proportion of the training set, while truly difficult tool calls, recovery operations, and edge cases lack sufficient coverage.

    Therefore, a more reasonable data value assessment should consider the following dimensions simultaneously:

    • Result correctness: Did the task achieve its goal and output meet constraints?
    • Process validity: Are the steps compact without obvious redundancy?
    • Skill coverage: Does the trajectory contribute scarce capabilities to the training set?
    • Learnability: Can the student model identify clear action bases from the trajectory?
    • Transfer potential: Can the method in the trajectory apply to similar tasks?
    • Robustness: Can it recover when facing tool anomalies, missing information, or intermediate failures?

    This means the data filtering goal should upgrade from “selecting successful samples” to “selecting the most learnable samples.”

    3. Why Experimental Design Must Strictly Control Variables

    To determine whether instructional data optimization is truly effective, experiments must control multiple variables. A valuable evaluation setup typically includes:

    1. Fixed teacher model to avoid differences in teacher capability affecting results;
    2. Fixed task pool to ensure different methods face identical problems;
    3. Fixed number of training trajectories, such as using an equal scale of hundreds of trajectories;
    4. Fixed SFT recipe, including training epochs, learning rate, batch size, and data format;
    5. Fixed student model scale, observing changes in both small and medium models separately;
    6. Use of multiple different types of agent benchmarks, rather than comparing on a single task.

    Under these conditions, improvements primarily stem from data organization and instructional strategies, not extra model scale or more training resources. Relevant experiments show that after instructional processing, two target models of different scales surpassed the baseline method (using only successful trajectories for SFT) across six evaluations in three hardcore tasks: terminal operations, deep search, and software engineering, with an average improvement of about 1.42 to 8.99 percentage points.

    The significance of this result lies not in a specific score, but in demonstrating that when the number of training samples and the training recipe remain unchanged, sample quality, skill coverage, and pedagogical structure still bring stable returns.

    4. Why Retaining Skill Instructions May Be More Effective

    There is a frequently overlooked finding in this research: the absence of skill prompts during the inference phase does not mean skill instructions should be deleted during the training phase.

    Consider two training methods. The first is a “removal” approach: to align training inputs with inference inputs, all skill descriptions in the training samples are deleted. The second is a “retention” approach: skill instructions are kept during training, but these prompts are not provided during evaluation and actual inference.

    Intuitively, the removal approach seems to better fit the principle of train-inference distribution consistency. However, experimental results show that with identical supervised outputs, the retention approach won an advantage across six experiments, improving by about 2.15 to 4.01 percentage points.

    This phenomenon may have several reasons.

    First, skill instructions can act as semantic grouping signals. They help the model understand which capability category the current trajectory belongs to, thereby linking specific actions to more abstract task patterns.

    Second, skill instructions lower learning difficulty. Without tags, the model must simultaneously infer “what to do” and “what capability this trajectory demonstrates.” After retaining tags, the training goal becomes clearer, making it easier for the model to establish the correspondence between inputs, skills, and actions.

    Third, training prompts may play an implicit curriculum role. Even if prompts do not exist at inference, the model may have already formed internal capability representations through a large number of labeled samples, ultimately integrating skill knowledge into parameters rather than relying on external text prompts.

    Fourth, skill instructions help improve structural consistency among samples. Trajectories with similar skills share clearer common contexts, allowing the model to more easily abstract stable patterns rather than mechanically memorizing single operation sequences.

    This indicates that training-phase information does not always need to be retained verbatim during the inference phase. The role of certain auxiliary signals is to help the model build better representations during learning; once knowledge is internalized, inference no longer needs to depend on that signal.

    5. Practical Implications for Agent Post-Training Engineering

    In engineering practice, you can build a more robust training pipeline using the following process.

    1. Establish a fine-grained skill taxonomy first

    Avoid using only coarse tags like “terminal task,” “search task,” or “programming task.” Break them down further into capabilities like tool calls, plan generation, information verification, code modification, test repair, and error recovery. The clearer the skill taxonomy, the more reliable the subsequent data analysis and coverage control.

    2. Multi-dimensional trajectory scoring

    For each trajectory, record task results, operation steps, tool call frequencies, error counts, recovery situations, and skill tags. The scoring formula need not be complex, but you should avoid using a single success flag.

    3. Prioritize processes with pedagogical value

    For the same task, do not blindly retain all successful trajectories. Prioritize samples with clearer steps, more reasonable error handling, and scarce skill coverage. At the same time, moderately retain representative failure and repair processes so the model learns how to identify issues and resume execution.

    4. Check skill distribution and task difficulty

    Before training, calculate the proportion of different skills, task lengths, and failure types. If the data heavily concentrates on simple tasks, the model might perform well on offline loss but fail to handle long-horizon real-world environments.

    5. Separate training and evaluation prompts

    Skill instructions can serve as training auxiliary information, but evaluation must explicitly state whether they are allowed. If the goal is to verify whether the model has truly internalized the capability, test under conditions without skill prompts and compare the differences between retention and removal strategies.

    6. Balance cost and benefit

    The instructional agent itself adds trajectory analysis costs, so you cannot only look at single-training accuracy. You must also evaluate data processing time, inference overhead, manual review costs, and model gains. For high-value tasks, finer analysis can be used; for a large volume of routine tasks, lightweight rules can be used for pre-screening.

    6. From “Training More” to “Training Smarter”

    The key bottleneck in agent post-training is gradually shifting from sample quantity to sample organization capability. A large amount of unfiltered successful trajectories may not be more valuable than a small number of structurally clear, reasonably covered instructional samples.

    The “Curriculum Director” approach provides a scalable idea: let the system not only generate answers but understand the capability structure behind them; not only judge whether a task succeeded but whether the process is worth learning; not only pursue surface consistency between training inputs and inference inputs but identify which auxiliary signals can promote capability internalization.

    From terminal operations to search and software engineering, the shared value of this method lies in transforming post-training from mechanical data accumulation into capability-oriented curriculum design. In the future, agent training pipelines can further combine automatic skill discovery, trajectory contrastive learning, difficulty stratification, failure recovery teaching, and online evaluation feedback to form a continuously iterating data loop.

    For developers and enterprise teams, the focus should not be on simply increasing training samples, but re-examining three questions: what skills does the model actually need to learn, do existing trajectories truly demonstrate these skills, and does the training process help the model convert external prompts into internal capabilities. Only by answering these clearly can post-training evolve from “letting the model see more cases” to “letting the model learn to solve problems stably.”