Large Language Models Reshaped by Reinforcement Learning: Capability Shifts and Model Selection
Targeted at developers and model selection decision-makers, this article explores what reinforcement learning (RL) post-training can and cannot achieve, alongside what to verify before deployment. The methods and thresholds outlined serve as an engineering starting point rather than a guarantee of specific model performance; actual results must be based on your team's own evaluations.
Targeted at developers and model selection decision-makers, this article aims to help readers determine what reinforcement learning (RL) post-training can and cannot achieve, and what to verify before going live. The methods and thresholds outlined serve as an engineering starting point and do not constitute a guarantee for any specific model’s performance. Actual results should be based on your team’s own evaluations.
1. Capability Changes and Boundaries
During the pre-training phase, large models learn statistical patterns in text and images—essentially predicting “what the next token should be.” This provides the model with a broad foundation of language and knowledge, but response styles, refusal boundaries, reasoning steps, and tool-calling habits are largely shaped during the post-training phase. Reinforcement learning (RL) is the primary tool for post-training, adjusting strategies based on reward signals to change the model’s behavior patterns.
In reasoning, multimodal, and programming tasks, RL typically makes the model more stable on the types of tasks covered by training, such as step-by-step problem solving, outputting code by format, or calling tools by rules. However, this improvement has clear boundaries. For tasks unseen during training, out-of-distribution inputs, or quality dimensions not covered by reward signals, the improvement may be minimal or even show degradation. Therefore, during model selection, you should first define your task types and then check whether the post-training targets these tasks.
The quality of the reward signal determines the ceiling of the effect. When rewards are weak or biased, the model may only learn superficial habits that pander to the evaluator, such as lengthening responses, stacking polite phrases, or adopting formats favored by reviewers. Understanding this is more useful than memorizing a specific leaderboard score.
2. Reward Models and PPO vs. DPO
2.1 Reward Models
A typical RLHF pipeline involves collecting human rankings of multiple responses to the same prompt, using this preference data to train a reward model, which then scores responses, and the policy model updates its parameters accordingly.
To reduce manual annotation costs, some teams adopt Reinforcement Learning from AI Feedback (RLAIF), where another model judges responses based on pre-written criteria. This approach is fast and low-cost, but the judging model’s biases enter the training data. It is recommended to execute the following sampling inspection rules:
- Extract a fixed percentage (e.g., 5% to 10%) of samples from each training batch for manual review.
- Calculate the agreement rate between the judging model and human judgment. If the agreement rate falls below the team’s preset threshold, pause AI labeling for that batch and revert to manual labeling.
- Thresholds must be calibrated by scenario. Code review, medical consultation, and customer service have different tolerances for errors; the same numbers cannot be applied universally.
Reward over-optimization requires continuous monitoring. It is recommended to track at least the following metrics:
| Metric | Meaning | Anomaly Signal |
|---|---|---|
| Response length distribution | Average length and long-tail changes | Continuous increase in length without a corresponding improvement in quality |
| KL divergence | Degree of deviation from the reference model | Continuous increase in deviation, exceeding the preset upper limit before training |
| Holdout set score | Performance on the evaluation set not involved in training | Training set score rises while holdout set score drops |
| Human blind test results | Reviewer preferences without knowing model versions | Blind test win rate drops, moving opposite to automatic metrics |
| Format and pleasantries ratio | Frequency of fixed sentence patterns or greetings | Significantly higher than the baseline version |
Common mitigation methods include: adding a KL divergence constraint with the reference model into the optimization objective; using a holdout set different from the training distribution; and conducting regular human blind tests. The thresholds for these metrics also need to be determined based on the business scenario and historical version data.
2.2 PPO vs. DPO
PPO (Proximal Policy Optimization) is a classic algorithm in RLHF. It requires multiple components such as a policy model, a reward model, and a value model to work together, and limits the magnitude of each update by clipping the objective function to keep training stable. The trade-off is system complexity: it requires maintaining multiple models simultaneously, resulting in high VRAM and tuning costs.
DPO (Direct Preference Optimization) directly uses pairs of preferred and dispreferred responses to optimize the policy. It typically does not require training a separate reward model, nor online sampling and value functions. It is simpler to implement and more stable to train, but it relies on the quality and coverage of offline preference data and has limited generalization capabilities for out-of-distribution problems.
| Dimension | PPO | DPO |
|---|---|---|
| Core components | Policy, reward, value models | Policy model (reference model used for constraint) |
| Online sampling | Required, continuously generating new responses during training | Usually not required, uses offline data |
| VRAM and tuning | High usage, many hyperparameters | Lower usage, tuning is relatively simple |
| Data requirements | Requires available reward signals | Requires high-quality paired preference data |
| Application boundaries | Tasks requiring continuous exploration like complex code or mathematical reasoning | Scenarios with sufficient preference data coverage and stable task distribution |
When choosing, you can sequentially answer three questions: Does the team have sufficient online sampling and evaluation resources? Does the preference data cover the target scenario? Does the task require the model to continuously explore new strategies during training? If online sampling resources are lacking, DPO can be prioritized, but its performance on out-of-distribution problems must be specifically evaluated.
3. How to Define Evaluation Standards
Comprehensive intelligence index leaderboards are convenient for quick comparisons, but they aggregate the results of multiple sub-tasks. Looking only at the total score can easily mask specific shortcomings. When reading leaderboards and conducting internal evaluations, it is recommended to follow these steps:
- Decompose sub-tasks: Break down the total score into sub-tasks relevant to your business, such as code repair, multi-step reasoning, and image-text QA, and look at the results separately.
- Compare against baseline: Compare with the same baseline version to avoid comparisons across different versions or decoding parameters.
- Repeat experiments: Run the same setting multiple times and record the fluctuation range of the results. If the fluctuation is greater than the difference between two versions, the conclusion is unreliable.
- Failure case analysis: Categorize failure cases by cause, such as factual errors, formatting errors, excessive refusals, or tool-calling errors, to determine the direction for improvement.
For each evaluation, it is recommended to record the following fields:
| Field | Description |
|---|---|
| Task set name and version | Data source, update date |
| Sample size | Total number of samples and sample size for each sub-task |
| Model and baseline version | Specific version numbers of the tested model and comparison model |
| Decoding parameters | Temperature, maximum output length, etc. |
| Review method | Automatic evaluation or human blind test, number of reviewers and agreement rate |
| Repetitions and fluctuation | Number of runs per setting and result range |
| Failure case categorization | Classification of failure cases |
