Hard vs. Soft Distillation: Two Paths of Trajectory Distillation for Large Language Models

    This article explains two common approaches to trajectory distillation in LLM development—hard distillation and soft distillation—covering their workflows, strengths and weaknesses, compliance risks, and practical guidance for engineering teams choosing between them.

    1. Background: Why “Trajectory Distillation” Is Sparking Debate

    In the race to build large language models, there is an open secret: many teams leverage stronger frontier models to improve their own. The most representative—and most controversial—practice is so-called “trajectory distillation”: using reasoning trajectories generated by a strong model (such as chain-of-thought, step-by-step solutions, or coding processes) as training data to train or fine-tune one’s own model.

    A recent industry interview pushed this topic back into the spotlight: it was mentioned that three major LLM companies in China were “called out” in the official terms of a frontier model regarding their training practices. Although the specific companies remain unknown, the topic itself is technically valuable: how exactly is trajectory distillation done, and why is it both a shortcut and a minefield?

    2. Two Distillation Paths: Hard and Soft

    The industry generally divides trajectory distillation into two categories, summarized in the interview as “hard distillation” and “soft distillation.”

    2.1 Hard Distillation: Directly Reusing Trajectories

    Hard distillation is the most straightforward approach. Its core workflow can be summarized as:

    1. Strong model generates reasoning trajectories → Manual/automatic cleaning → Used directly as SFT training data → Fine-tune the in-house model

    The specific steps are:

    • Trajectory collection: Feed a large volume of high-quality prompts into the strong model and collect its complete outputs, including chain-of-thought, step-by-step reasoning, and code comments;
    • Data cleaning: Remove low-quality, duplicated, or incorrect samples, using rules or another model for quality scoring if necessary;
    • Supervised fine-tuning (SFT): Use the cleaned “question–trajectory–answer” triples directly for fine-tuning.

    The advantages of hard distillation are low cost and fast results. For weaker student models, directly imitating the output style and reasoning structure of a strong model often yields significant benchmark improvements.

    However, hard distillation has clear shortcomings:

    • Shallow imitation: The student model learns the “form” of the output, not the “essence” of the reasoning. It may learn to mimic the tone and step descriptions, but quickly falls apart on out-of-distribution problems;
    • Data licensing risk: If the strong model’s terms of service explicitly prohibit using its outputs to train competing models, hard distillation is almost certainly a violation—which is exactly why some companies have been publicly called out.

    2.2 Soft Distillation: The Advanced Play of Data Construction and Curation

    Soft distillation is a more subtle and sophisticated path. Instead of directly copying the strong model’s output trajectories, it leverages the strong model’s capabilities to construct and curate training data. A typical workflow:

    1. Strong model assists in constructing/filtering high-quality datasets → Train the in-house model on the datasets (SFT/RL) → Iterate in a closed loop

    It includes several sub-paths:

    • Data synthesis: Have the strong model generate diverse questions, task descriptions, and reference answers to build training sets with broader domain coverage;
    • Data filtering: Use the strong model as a judge to score self-collected data or model outputs, keeping only high-scoring samples;
    • Preference data construction: Use the strong model to compare and rank multiple candidate responses, building preference pairs for reinforcement learning from human feedback (RLHF) or direct preference optimization (DPO);
    • Reward signal distillation: In some reinforcement learning scenarios, use the strong model’s evaluations to replace expensive human annotation.

    The essence of soft distillation is turning the strong model from a “teacher” into a “textbook editor”—the student model no longer imitates word for word, but learns independently from higher-quality data. Models trained this way generalize better, and dependence on the original model is greatly diluted, making compliance risk relatively lower (though not zero—it still depends on whether the data originates from prohibited uses).

    3. Comparing the Two Paths and Selection Advice

    Dimension Hard Distillation Soft Distillation
    Implementation difficulty Low Medium to high
    Data cost Low (direct output collection) Higher (requires construction, filtering, iteration)
    Generalization ability Weak, prone to overfitting style Strong, capabilities are more internalized
    Compliance risk High, usually a direct terms-of-service violation Medium, depends on data source and use-case definition
    Long-term competitiveness Poor, always lagging behind the distilled target Better, can form a self-sustaining data flywheel

    A few suggestions for engineering teams:

    1. Read the terms before you act. Whenever you plan to use external model outputs for training, the first step is to carefully review the restrictions on “competitive use” and “model training” in the provider’s terms of service, and consult legal counsel when necessary;
    2. Invest budget in data quality, not quantity. A conclusion repeatedly validated across the industry is that a small amount of high-quality data often beats massive volumes of low-quality imitation data;
    3. Build a self-owned data loop. Soft distillation is only a transitional approach—long-term competitiveness comes from your own data production, evaluation, and iteration system, including self-built evaluation sets, automated quality scoring, and expert human review;
    4. Treat evaluation metrics with caution. Over-optimizing for certain public benchmarks can create the illusion of “strong on leaderboards, weak in practice.” Evaluation should be grounded in real business scenarios.

    4. Final Thoughts

    The debate over trajectory distillation is fundamentally a debate between “shortcuts and independent innovation.” Hard distillation is a seemingly fast route riddled with compliance and capability traps; soft distillation represents a healthier direction for the industry—treating strong models as tools for improving data quality rather than as direct carriers of capability. For developers and technical decision-makers, understanding the boundaries of these two paths not only helps avoid legal and reputational risks, but also guides teams to invest resources in truly sustainable capability building.