Technical Evolution and Practices of Open-Source LLM Reasoning Capabilities

    This article explores the technical evolution of reasoning capabilities in open-source large language models (LLMs). It delves into the paradigm shift from supervised fine-tuning to reinforcement learning, outlines a multi-stage training pipeline, and shares engineering insights on reducing training costs. Additionally, it provides practical guidance for deploying and applying reasoning models, including local deployment examples, response parsing, and cloud implementation strategies.

    1. Background: Redefining the Value of Reasoning

    In recent years, the focus of LLM competition has shifted from “parameter scale” to “reasoning depth.” Traditional conversational models excel at language generation and knowledge Q&A but often exhibit “intuitive answering” flaws in tasks requiring multi-step thinking, such as mathematical derivation, code generation, and complex planning—they answer quickly but also fail quickly. To address this, a new model paradigm has emerged: allowing models to conduct explicit, traceable long-chain thinking before providing a final answer. These are typically called reasoning models. Their open-source releases often spark widespread discussion in the tech community, highlighted by the fact that open-source AI research has gained recognition from mainstream science, including being featured by authoritative academic journals.

    2. Core Technology: How Reinforcement Learning “Forges” Reasoning

    2.1 Paradigm Shift from SFT to RL

    Early methods to improve reasoning relied on Supervised Fine-Tuning (SFT), where high-quality Chain-of-Thought (CoT) data was manually constructed for the model to mimic. While intuitive, this approach has two bottlenecks: the high cost of constructing high-quality CoT data, and the model’s limitation to “human-demonstrated paths,” making it hard to explore better problem-solving strategies.

    The key breakthrough of reasoning models lies in using Reinforcement Learning (RL) to drive autonomous exploration. By using outcome correctness (e.g., correct math answers, passing code tests) as the reward signal, models gradually learn behaviors like self-correction, backtracking, and problem decomposition through extensive sampling. These behaviors are not explicitly taught but “emerge” from reward feedback.

    2.2 Multi-Stage Training Pipeline

    The widely recognized training process for reasoning models roughly consists of four stages:

    1. Cold Start: Initial fine-tuning with a small amount of high-quality long-CoT data to give the model a basic thinking format, preventing uncontrollable outputs early in RL.
    2. Reasoning RL: Conducting RL on large-scale verifiable tasks (math, code) to focus on improving reasoning accuracy and depth.
    3. Rejection Sampling and Full-Capability Fine-Tuning: Filtering high-quality outputs from the reasoning model, mixing them with general data for another round of SFT to fill in general capabilities like writing, translation, and Q&A.
    4. Full-Scenario Alignment: Using RL again to balance helpfulness, safety, and reasoning capabilities.

    The design philosophy of this pipeline is valuable for any team training vertical domain models: ensure the “purity” of core capabilities first, then gradually expand capability boundaries.

    3. Engineering Insights: Enabling Low-Cost Training

    Another notable aspect of reasoning models is training cost control. Several reusable engineering experiences underpin this:

    • Algorithm Efficiency First: Reducing per-training run costs through mixed-precision training and expert parallelism, rather than simply stacking GPUs.
    • Data-Driven over Compute-Driven: The RL phase relies heavily on automatically verifiable tasks for rewards, avoiding the scaling costs of manual annotation.
    • Base Model Reuse: Continuing training on existing strong base models rather than starting from scratch, significantly shortening iteration cycles.

    For general developers, a more realistic path is to fine-tune and distill based on open-source achievements. Below is a typical illustrative workflow for locally deploying a reasoning model:

    1. # Pull an open-source reasoning model (example)
    2. model-cli pull reasoning-model-7b
    3. # Start local inference service, enabling long CoT output
    4. model-cli serve reasoning-model-7b \
    5. --max-tokens 8192 \
    6. --temperature 0.6

    On the application side, note that reasoning models usually output both the thinking process and the final answer. Structured splitting should be applied during parsing:

    1. import re
    2. def split_response(text: str):
    3. # Separate the reasoning part from the final answer (example logic, actual format depends on model convention)
    4. match = re.search(r"(.*)", text, re.S)
    5. if match:
    6. return {"reasoning": match.group(1), "answer": match.group(2)}
    7. return {"reasoning": "", "answer": text}

    4. Implementation Suggestions: Building Reasoning Model Applications on the Cloud

    For enterprise developers, consider the following for implementation:

    1. Scenario Selection: Reasoning models are suitable for math calculations, code reviews, and complex rule judgments. For pure stylistic polishing or chatty scenarios, general models are more cost-effective.
    2. Deployment Method: For data-sensitive scenarios, rely on container services or dedicated computing resources for private deployment. For scenarios with high elastic demand, directly call cloud model services, paired with monitoring, alerting, and logging services for observability.
    3. Cost Governance: Long CoT means longer output tokens. You should reasonably constrain thinking length in prompts and set output limits to prevent cost overruns.
    4. Distillation for Cost Reduction: Use outputs from strong reasoning models to distill and fine-tune smaller models, balancing performance and cost.

    5. Conclusion

    The emergence of reasoning models marks a shift in LLM technology from “remembering answers” to “learning to think.” The contributions of the open-source community in this process allow more teams to participate in cutting-edge technology practices at an affordable cost. For developers, understanding the training paradigms and engineering constraints is more important than merely chasing the models themselves—this is the long-term competitive advantage needed to cope with rapid technological iteration.