Skip to content

Kimi k1.5: Scaling Reinforcement Learning with LLMs

optionalextendedfrontierpaperrubric 7/122025 · ~30 min

Kimi Team, Angang Du, Bofei Gao, … Zongyu Lin

Status

TL;DR. Kimi k1.5 is Moonshot AI’s report on RL for a multimodal long chain-of-thought model, released the same day as DeepSeek-R1. It reaches similar reasoning scores with a different recipe: a 128K-token RL context made affordable by partial rollouts, a critic-free update derived from online mirror descent, sampling strategies for curriculum, a length reward against overthinking, and “long2short” methods that transfer long-CoT skill into short, cheap answers.

Policy update. Each iteration ii solves a KL-regularized problem against the previous policy:

max⁡θ E[r(x,y)]−τ KL(πθ(⋅∣x) ∥ πθi(⋅∣x)),π∗∝πθiexp⁡(r/τ).\max_\theta\ \mathbb E\big[r(x,y)\big]-\tau\,\mathrm{KL}\big(\pi_\theta(\cdot\mid x)\,\|\,\pi_{\theta_i}(\cdot\mid x)\big), \qquad \pi^*\propto\pi_{\theta_i}\exp(r/\tau).

Taking logs of the closed form gives r−τlog⁡Z=τlog⁡(π∗/πθi)r-\tau\log Z=\tau\log(\pi^*/\pi_{\theta_i}) for every sample. The paper fits πθ\pi_\theta to this with a squared loss, approximates τlog⁡Z\tau\log Z by the mean reward rˉ\bar r of the kk samples, and gets the gradient

1k∑j=1k(∇θlog⁡πθ(yj∣x) (rj−rˉ)−τ2∇θ(log⁡πθ(yj∣x)πθi(yj∣x))2).\frac1k\sum_{j=1}^{k}\Big(\nabla_\theta\log\pi_\theta(y_j\mid x)\,(r_j-\bar r)-\frac{\tau}{2}\nabla_\theta\Big(\log\frac{\pi_\theta(y_j\mid x)}{\pi_{\theta_i}(y_j\mid x)}\Big)^2\Big).

This is REINFORCE with the group-mean baseline (as in GRPO without the std, or RLOO), plus a squared log-ratio penalty instead of clipping. In the running example with rewards [1,0,0,0][1,0,0,0], the weights are +0.75+0.75 and −0.25-0.25, the same as Dr. GRPO. There is no value network, and the optimizer is reset each iteration.

Length reward. Within a group, with λ=0.5−len−min_lenmax_len−min_len\lambda=0.5-\frac{\text{len}-\text{min\_len}}{\text{max\_len}-\text{min\_len}}, correct answers get λ\lambda and wrong ones get min⁡(0,λ)\min(0,\lambda). The shortest correct answer gets +0.5+0.5, the longest −0.5-0.5, and wrong answers are only ever penalized. It is switched on after a warm-up phase, since it slowed early training.

Other pieces. Partial rollouts cap how much of a long trajectory is generated per iteration and continue it later, so one very long answer does not stall a batch. Curriculum sampling goes from easy to hard, and prioritized sampling draws problem ii in proportion to 1−si1-s_i, where sis_i is its success rate. A chain-of-thought reward model for math answers agreed with manual spot checks 98.5% of the time, versus 84.4% for a classic reward model.

Results (vendor-reported). The long-CoT model reports AIME 77.5, MATH-500 96.2, the 94th percentile on Codeforces and MathVista 74.9. The short-CoT model reports AIME 60.8, MATH-500 94.6 and LiveCodeBench 47.3. The long2short RL variant is shown as the most token-efficient of the long2short methods (Fig. 7). Ablations report that a smaller model with longer chains of thought can match a larger one, that training with negative gradients is more sample-efficient than ReST-style filtering (training only on correct samples, as in STaR), and that curriculum sampling helps. The linked GitHub repository hosts the report, not training code, and the comparisons are single runs, so the numbers are hard to reproduce independently.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Kimi k1.5 adds a length reward λ = 0.5 − (len − min_len)/(max_len − min_len) to correct answers and min(0, λ) to wrong ones. For a group with lengths 1,000 (correct), 3,000 (correct), 2,000 (wrong) and 5,000 (wrong) tokens, compute each length reward and the total reward with weight 1. Which behavior does it push hardest against?

    What a strong answer covers
    • min_len 1,000, max_len 5,000, range 4,000. λ: 0.5, 0, 0.25, −0.5.
    • Correct answers get λ: +0.5 and 0. Wrong answers get min(0, λ): 0 and −0.5.
    • Totals with weight 1: 1.5, 1.0, 0, −0.5. The short correct answer is preferred over the long correct one, and the long wrong answer is pushed below the short wrong one.
    • Wrong answers are never rewarded for being short (min with 0), so the model cannot gain by giving up quickly.
    • The reward is relative to the group, so it shrinks lengths only relative to other samples; the paper warms it up after an initial phase because it slowed early training.
  2. Mechanism

    Kimi k1.5 maximizes reward minus τ·KL to the previous policy, writes the closed-form optimum, and turns it into a squared-loss surrogate. Explain how the gradient ends up as a policy gradient with the mean group reward as baseline plus an l2 penalty, and how this compares with GRPO.

    What a strong answer covers
    • The optimum is π* ∝ π_old · exp(r/τ), so for any sample r − τ log Z = τ log(π*/π_old). The surrogate is the squared gap between the two sides with π_θ in place of π*.
    • τ log Z is estimated by the mean reward of the k samples, which is exact as τ grows; this is the same group-mean baseline as GRPO.
    • The gradient is (1/k) Σ [∇log π (r − r̄) − (τ/2)∇(log π/π_old)²]: a REINFORCE term plus a squared log-ratio penalty, instead of PPO-style clipping and a KL term.
    • Differences from GRPO: no std division, no ratio clipping, the samples come from the previous iterate (mildly off-policy), and the optimizer is reset each iteration.
  3. Critique

    The paper argues against a value function: a wrong reasoning step that the model later recovers from would get a negative advantage, yet exploring it is valuable. Assess this argument, and design an experiment that would test whether a critic actually hurts long chain-of-thought RL.

    What a strong answer covers
    • If the final answer is correct, an accurate critic gives the recovered trajectory a positive total advantage; only the step where value dropped gets negative credit, which is arguably correct credit assignment.
    • Sequence-level rewards with a mean baseline credit every token equally, including the wrong step, which teaches "detour then recover" as a whole pattern.
    • The practical case against critics is cost and bias on long sequences; VAPO shows that a pretrained, decoupled critic can beat critic-free methods.
    • Experiment: same base, data and compute, compare mean-baseline training with a well-trained critic (λ = 1 for the critic), and measure accuracy plus the rate of self-correction in successful answers.

Done with this page?

Status