Open Source Models Catching Up: Distillation Controversies and Technical Paths
This article explores the ongoing debate regarding the performance gap between open source and closed-source frontier models. It delves into the principles and controversies of knowledge distillation, outlines best practices for effective model evaluation, and details the primary technical paths open source models can leverage to improve. Finally, it provides actionable recommendations for developers and enterprises on model selection, compliance, and deployment.
1. Background: Why the Gap is a Focal Point
Recently, the release cadence of global large language models (LLMs) has diverged. Some overseas closed-source model vendors have intensively launched new versions in a short period, driving high discussion volumes. Meanwhile, the public presence of certain open source models has been relatively subdued, with the top spots on major evaluation leaderboards predominantly occupied by overseas models.
This contrast has led to two perspectives: one suggests the technical gap between open source and closed-source frontier models is narrowing, while the other argues it is widening. Both perspectives depend on the definition of the “gap.” Before discussing, three questions must be clarified: which capability is being compared, which evaluation set is used, and under what conditions the models are running.
Judging technical levels solely based on release frequency or leaderboard rankings often leads to one-sided conclusions. Release frequency reflects business strategy and engineering cadence, not directly the model’s capability. Leaderboard rankings are influenced by evaluation set selection, prompt templates, inference parameters, and training data contamination. The same model can rank significantly differently under varying settings.
2. Basic Principles of Knowledge Distillation
Knowledge distillation is a model compression and capability transfer method. Its core idea is to let a smaller student model mimic the output distribution of a larger teacher model, thereby retaining more capabilities with fewer parameters and lower inference costs.
In the classic approach, the probability distribution output by the teacher model contains the relative relationships between classes, known as soft labels. Compared to hard labels that only provide the correct answer, soft labels contain richer training signals. The temperature parameter T is used to smooth the distribution, preserving information from low-probability classes.
Here is a common implementation of distillation loss:
import torchimport torch.nn.functional as Fdef distill_loss(student_logits, teacher_logits, labels, T=2.0, alpha=0.5):# Soft label loss: making the student distribution approach the teacher distributionsoft_targets = F.softmax(teacher_logits / T, dim=-1)soft_loss = F.kl_div(F.log_softmax(student_logits / T, dim=-1),soft_targets,reduction="batchmean",) * (T * T)# Hard label loss: ensuring the student still fits the true labelshard_loss = F.cross_entropy(student_logits, labels)return alpha * soft_loss + (1 - alpha) * hard_loss
Multiplying by T squared compensates for the gradient amplitude changes caused by temperature scaling. Alpha is used to balance the weights of the two losses, and its actual value needs to be adjusted based on validation set performance.
In the context of LLMs, distillation takes more diverse forms, commonly falling into two categories:
- White-box distillation: Access to the teacher model’s complete output distribution or intermediate representations allows training with token-level soft labels, maximizing information.
- Sequence-level distillation: Only the text generated by the teacher model can be obtained, which is then used for supervised fine-tuning of the student model. This method relies solely on output content, has a low barrier to entry, and is the most controversial form.
Understanding the difference between these two forms is the foundation for discussing the boundaries of distillation.
3. Technical and Compliance Boundaries of Distillation Controversies
Discussions surrounding distillation often confuse things of different natures. From a technical perspective, related behaviors can be categorized into three levels:
- Training with public or self-generated data: This is a standard model training practice widely adopted in the industry.
- Large-scale extraction of third-party service outputs for training: Requires careful review of terms of service, data licenses, and usage restrictions.
- Direct or near-direct copying of another model’s weights: Involves intellectual property issues and is the most severe in nature.
These cannot be generalized. Even when “using model outputs,” the extraction scale, usage purpose, and authorization status lead to different legal risks. When it comes to specific clauses and liability, professional legal personnel should make the judgment. What technical personnel need to do is clearly document the data sources and license status.
Protection mechanisms themselves also affect external observations. Common protective measures include call rate limits, identity verification, output watermarking, and abnormal traffic detection. These measures are reasonable, but they also change the publicly visible model performance and release cadence. Therefore, a period of silence or decreased visibility cannot directly prove the success or failure of a technical path, nor can it serve as standalone evidence for “relying on distillation” or “unable to rely on distillation.”
Enterprises should establish an internal data source ledger, recording at least the following: data source, acquisition method, license terms, usage scope, retention period, and the person in charge. These records are crucial for subsequent audits and compliance checks.
4. How to Conduct Effective Capability Evaluation
Judging the gap between models requires a well-designed evaluation plan. A single score often fails to reflect the full picture. Evaluation should focus on the following dimensions:
- Coverage: General knowledge, mathematical reasoning, code generation, long-context understanding, multilingual capabilities, tool calling, instruction following, and safety.
- Contamination control: If the training data contains evaluation questions, scores will be overestimated. Private datasets or newly constructed questions should be prioritized, and the overlap between training corpus and evaluation sets should be checked.
- Unified settings: Parameters such as temperature, maximum generation length, prompt templates, and the number of few-shot examples must be consistent; otherwise, comparisons are meaningless.
- Statistical stability: The results of the same model across multiple runs may fluctuate. Mean and variance should be reported, and confidence intervals provided when necessary.
Here is a simple evaluation loop illustrating unified settings:
def evaluate(model_fn, dataset, scorer, temperature=0.0):scores = []for sample in dataset:prediction = model_fn(sample["prompt"], temperature=temperature)scores.append(scorer(prediction, sample["reference"]))return sum(scores) / len(scores)
The key point of this code is to fix the parameters and use the same process for all models. In actual projects, random seed control, result caching, and failed sample logging should also be included for reproducibility and troubleshooting.
5. Main Paths for Improving Open Source Models
There is more than one way to narrow the gap. Here are several paths widely adopted in the industry:
1. Prioritize Data Quality. Cleaning, deduplication, filtering out low-quality text, and removing evaluation contamination are often more effective than simply scaling up data volume. Synthetic data can also be used, but it requires validation mechanisms to filter out errors and biases to prevent them from being amplified.
2. Post-training Optimization. Supervised fine-tuning teaches the model to follow instructions, while preference optimization aligns outputs with human judgment. The data construction quality of both directly determines the performance ceiling.
3. Reinforcement Learning with Verifiable Rewards. Answers to math and coding problems can be automatically verified, making them suitable for using reinforcement learning to enhance reasoning capabilities. Reward design needs to prevent models from gaming the system, such as passing specific test cases while having flawed underlying logic.
4. Inference-time Compute Scaling. Allowing the model to generate longer reasoning processes before answering, or adopting multiple sampling and voting, can improve performance on complex tasks without changing parameters, at the cost of increased inference latency and cost.
5. Architecture and Inference Efficiency. Mixture of Experts (MoE) architectures, attention mechanism optimizations, and low-bit quantization can achieve higher throughput under the same compute power, making the model easier to deploy.
6. Engineering Infrastructure. Capabilities like distributed training, model parallelism, and inference service scheduling rely on general infrastructure such as container platforms, object storage, logging services, and monitoring and alerting. Engineering maturity often dictates iteration speed, which in turn affects the update frequency of model versions.
6. Practical Recommendations for Developers and Enterprises
When selecting and deploying models, technical teams can refer to the following steps:
- Define task boundaries: List typical inputs and expected outputs in actual business scenarios, distinguishing between must-have metrics and those that can be compromised.
- Build internal evaluation sets: Use real business data, covering both common and edge cases, and update regularly. General leaderboards should only serve as a reference.
- Compare costs comprehensively: Beyond performance, compare per-call costs, response latency, deployment methods, data retention policies, and license terms.
- Audit compliance risks: Before using a model’s output to train a new model, check the terms of service and license agreements, and record the conclusions in a ledger.
- Establish regression testing: Every time a model version is changed, prompts are modified, or inference parameters are adjusted, run a fixed evaluation set and record the changes in results.
- Continuously monitor quality: Collect online samples through logging services, and use monitoring and alerting to observe changes in output quality drift, refusal rates, and error rates.
The common goal of these steps is to make decision-making reproducible and auditable. When a team can repeatedly verify conclusions using the same standards, debates about the “size of the gap” will have an actionable foundation for discussion.
7. Conclusion
Comparing model capabilities is a dynamic process; today’s conclusions may change after the next round of releases. For developers, a more practical approach is to establish their own evaluation system, clarify the capability boundaries needed by the business, and choose an appropriate technical path within compliance. For the industry, the competition between open source and closed source will persist long-term, with data quality, training methods, and engineering efficiency remaining the core factors determining the pace of progress.
