Kimi k1.5
Scaling Reinforcement Learning with LLMs
Kimi Team
13
Concepts
14
Formulas
13
Figures
5
Demos
Paper Overview
Kimi k1.5 (Kimi Team, 2025) is a technical report on scaling reinforcement learning for a multimodal LLM until it matches OpenAI's o1 on reasoning. The starting point is a data problem. Next-token pretraining improves only while there is high-quality text to predict, and that supply is limited. RL lets the model create its own training data by exploring and being rewarded, so the data grows with compute.
The report argues that this does not need the complex machinery many expected. There is no Monte Carlo tree search, no value function and no process reward model. The main idea is that a planning algorithm's search tree can be flattened into a long chain of thought, so a model with a long enough context can learn to search, reflect and backtrack by itself. Two ingredients make this work: long-context scaling, with RL rollouts up to 128k tokens made affordable by partial rollouts, and online policy mirror descent, refined with a length penalty, curriculum and prioritized sampling, and carefully built rewards.
The long-CoT model scores 77.5 on AIME 2024, 96.2 on MATH-500, the 94th percentile on Codeforces and 74.9 on MathVista — on par with o1. Long2short methods (model merging, shortest rejection sampling, DPO and long2short RL) then move those gains into a short-CoT model that scores 60.8 on AIME and 94.6 on MATH-500, far ahead of GPT-4o and Claude 3.5 Sonnet (up to +550%).
Chapter Roadmap
Click any topic to jump in
A New Scaling Axis
Pretraining runs out of data. RL lets the model make its own data by exploring with rewards, without MCTS, value functions or PRMs.
Theory and data
Planning as Context
A search tree plus critic feedback can be flattened into one long token sequence, so the model learns to search inside its CoT.
Prompt Curation & Warmup
Diverse, difficulty-balanced, verifiable prompts (10-sample pass rates, N = 8 hack filter) plus a long-CoT warmup SFT.
Online Mirror Descent
KL-regularised updates against a frozen reference, a mean-reward baseline, an l2 pull, no value network, optimizer reset each iteration.
Training recipe
Length Penalty
A relative reward from +0.5 (shortest) to -0.5 (longest). Correct answers get lambda, wrong ones min(0, lambda), after a warm-up.
Curriculum & Prioritized Sampling
Easy-to-hard curriculum and sampling proportional to 1 - s_i put compute where the model is weakest.
Reward Signals
Auto-generated code tests (1,000 problems to 323), a CoT reward model at 98.5 vs 84.4, and three kinds of vision RL data.
Infrastructure
Partial Rollouts
A fixed token budget per iteration. Long trajectories are saved to the replay buffer and continued, with repeat detection.
Hybrid Deployment
Megatron and vLLM share GPUs in one pod. Under 1 minute to switch to inference, about 10 s back. A 3x faster code sandbox.
Long and short CoT
Long Context Scaling
Accuracy and response length rise together. Harder tasks grow longer CoTs, and the final run scales to 128k.
Long2short
Merging, shortest rejection sampling, DPO and long2short RL. 60.8 AIME with 3,272 tokens on average.
Evidence
Results
Long-CoT 77.5 AIME / 96.2 MATH-500 matches o1. Short-CoT 60.8 AIME is far ahead of GPT-4o and Claude 3.5.
Ablations
Small models catch up with longer CoT, large models use tokens better, and negative gradients and curriculum both help.
Concept by concept
13 sections, in reading order.
Next-token pretraining has a scaling law: grow parameters and data together and the model keeps improving. The catch is the second ingredient. The supply of high-quality human text is finite, and the report opens by citing work on exactly this limit (Villalobos et al. 2024; Muennighoff et al. 2023). Past a point, more compute stops buying more intelligence because there is nothing new left to predict.
Reinforcement learning sidesteps that ceiling. A policy that learns to explore with rewards generates its own training data: every rollout is a new trajectory, and the reward says which ones were good. The data is no longer a static corpus — it scales with compute. Kimi k1.5 is the Kimi Team's attempt to make that axis work at frontier scale, and the report is candid about the motivation: prior published work on RL for LLMs had not produced competitive results.
The recipe is deliberately simple. There is no Monte Carlo tree search, no value function and no process reward model. Instead there are two main ingredients. The first is long-context scaling: the RL context window grows to 128k tokens, and performance keeps improving as it grows. The second is improved policy optimization: a variant of online mirror descent, plus sampling strategies, a length penalty and a curated data recipe. Because the chain of thought can be very long, the learned CoTs show planning, reflection and correction on their own — the paper argues that a longer context acts like more search steps.
k1.5 is also multimodal: it is jointly trained on text and vision data and reasons over both (Figure 11). Development runs through four stages — pretraining, vanilla SFT, long-CoT SFT, and RL — and the report focuses on the last. It also adds long2short methods that move long-CoT gains into short-CoT models, which turn out to be among the most practically useful results.

Key Points
- 1
Pretraining scales with compute only while high-quality data lasts. RL lets the model create its own training signal by exploring with rewards
- 2
Four stages: pretraining → vanilla SFT → long-CoT SFT → RL. The report is mainly about the RL stage
- 3
Two main ingredients: long-context scaling (RL context up to 128k) and improved policy optimization (online mirror descent)
- 4
A simplistic framework: no MCTS, no value functions, no process reward models
- 5
Long CoTs show planning, reflection and correction. A longer context works like a larger search budget
- 6
Multimodal: trained jointly on text and vision, with interleaved image-text input (Figure 11)
- 7
Headline long-CoT numbers: 77.5 AIME 2024, 96.2 MATH-500, 94th percentile Codeforces, 74.9 MathVista — matching OpenAI o1
Section 2.3.1 is the conceptual core of the report, and it explains why a plain autoregressive model can be enough.
Start with the standard picture. A problem x is solved through a chain of thoughts z=(z1,…,zm) followed by an answer y, each sampled from the policy πθ. Planning methods such as Tree of Thoughts improve on this by building an explicit search tree. Each node is a partial solution s=(x,z1:∣s∣), a critic v scores it, and an algorithm decides which node to expand next or when to backtrack from a dead end.
Now look at that algorithm from the outside. At step t it reads a search history (s1,v(s1),…,st−1,v(st−1)) and outputs the next direction and the next feedback. Both thoughts and feedback can be written as language tokens. So the whole tree — every branch tried, every critique, every backtrack — can be flattened into one context, and the planning algorithm becomes a map A(⋅∣z1,z2,…) acting on a token sequence. Instead of building a tree and running a planner, you can train a model to approximate the planner directly through autoregressive prediction.
In this view the number of thoughts is the compute budget that a planning algorithm would normally get. Long context windows make that budget scalable in both training and testing. At inference the model still just samples tokens, so the complex parallel machinery that tree search needs at deployment is not needed.
The objective is then the simplest possible RL objective (Eq. 1): maximise the expected reward of the final answer. For verifiable problems the reward is a rule (e.g. does the code pass the tests). For free-form answers a trained reward model predicts whether y matches y∗. What the model should learn is not to follow a fixed reasoning recipe, but error identification, backtracking and solution refinement, using everything it has already explored as context.
Key Points
- 1
CoT: thoughts zt∼πθ(⋅∣x,z1,…,zt−1), then the answer y∼πθ(⋅∣x,z1,…,zm) — both are sampled as language
- 2
Planning methods build an explicit search tree of partial solutions s=(x,z1:∣s∣) guided by a critic v
- 3
Thoughts and critic feedback can both be written as tokens, so the whole search history flattens into one context
- 4
A model trained on that context can approximate a planning algorithm through autoregressive prediction, running an implicit search
- 5
The number of thoughts plays the role of the planning compute budget. Long context makes that budget scale
- 6
Reward r(x,y,y∗)∈{0,1}: rules for verifiable tasks (e.g. code test cases), a trained reward model for free-form answers
- 7
Goal skills: error identification, backtracking, solution refinement — not just following a fixed sequence of steps
Mathematical Formulation
The RL Objective (Eq. 1)
maxθE(x,y∗)∼D,(y,z)∼πθ[r(x,y,y∗)]
Sample a chain of thought z and answer y from the policy, and score only whether the answer is right. The CoT gets no direct supervision. It is judged entirely by whether it leads to a correct y.
A Planning Algorithm as a Map Over Tokens
A(st∣s1,v(s1),…,st−1,v(st−1))⟶A(⋅∣z1,z2,…)
The left side is a planner reading its search history of states s and critic values v(s). Writing both as tokens z turns it into the right side: a model conditioned on one flat sequence. That is the form an LLM can learn.
Before any policy gradient runs, two data steps decide whether RL can work at all. The report says that the quality and diversity of the RL prompt set play a critical role. A good set guides the model toward robust reasoning and reduces the risk of reward hacking and of overfitting to superficial patterns.
Three properties define a good prompt set. Diverse coverage: STEM, coding, competitions and general reasoning, both text-only and image-text. Automatic filters select questions that need rich reasoning and are easy to evaluate, and a tagging system balances domains and disciplines. Balanced difficulty: difficulty is measured by the model itself, not by human labels. An SFT model answers each prompt ten times at a relatively high sampling temperature, and the pass rate is the difficulty proxy — the lower the pass rate, the harder the prompt. This filters out most trivial cases and makes later sampling strategies easy to try. Accurate evaluability: the reward must reflect real reasoning, not a lucky guess.
The last property needs the most care. Some hard problems have answers that are easy to guess, so a model can reach the right answer through wrong reasoning and still be rewarded. The report removes question types prone to this — multiple-choice, true/false and proof-based questions. For general QA it adds a simple test: ask a model to guess the answer without any CoT. If it gets the right answer within N attempts, the prompt is too easy to hack and is removed. N=8 removes most such prompts.
The second step is a long-CoT warmup. Using the curated prompts, prompt engineering builds a small but high-quality dataset of verified long reasoning paths for text and image inputs — similar to rejection sampling, but aimed at long CoTs. The examples are chosen to show four cognitive processes: planning (outline steps before acting), evaluation (critique intermediate steps), reflection (reconsider and refine) and exploration (try alternatives). A lightweight SFT on this set gives RL a starting policy that already knows these behaviours.
Key Points
- 1
Three properties of a high-quality RL prompt set: diverse coverage, balanced difficulty, accurate evaluability
- 2
Domain balance comes from automatic filters plus a tagging system by domain and discipline
- 3
Model-based difficulty: an SFT model answers each prompt 10 times at high temperature, and the pass rate is the difficulty proxy
- 4
Excluded formats: multiple-choice, true/false and proof-based questions, because a correct answer can hide wrong reasoning
- 5
Easy-to-hack filter: if a model guesses the answer without CoT within N=8 attempts, the prompt is removed
- 6
Long-CoT warmup SFT: a small, verified set of long reasoning paths (text and image) that teaches planning, evaluation, reflection, exploration
- 7
Building better verification models is named as an open direction
Mathematical Formulation
Pass Rate as a Difficulty Proxy
difficulty(x)∝1−101∑j=1101[yj=y∗],yj∼πSFT(⋅∣x)
Ten samples from the SFT model at high temperature. A prompt the model always solves teaches nothing and is filtered out. A prompt it never solves gives no positive signal at first. This gives a difficulty scale tied to the model's own ability, which the sampling strategies use later.
k1.5's training algorithm is a variant of online policy mirror descent. It runs in iterations. At iteration i the current model πθi is frozen as a reference, and the new policy maximises reward minus a KL penalty that keeps it close to that reference (Eq. 2). The KL weight τ>0 sets how far one iteration may move.
This problem has a closed-form solution: the optimal policy is the reference reweighted by exp(r/τ) and renormalised by Z. Taking logs gives a constraint that must hold for every response (y,z) — including responses sampled from the old policy. That is the key step. It turns the problem into a regression that can use off-policy data: sample from πθi, then push τlog(πθ/πθi) toward r−τlogZ with a squared loss.
τlogZ is estimated from the k samples per prompt. The report finds that the plain mean reward rˉ works well in practice. This is reasonable because τlogZ approaches the expected reward under πθi as τ→∞. The resulting gradient (Eq. 3) is a familiar policy gradient with a mean-reward baseline, plus an ℓ2 term on the log-ratio. In other words it is an off-policy extension of a regularised REINFORCE. After each batch, θi+1 becomes the next reference, and because each iteration is a new optimisation problem, the optimizer is reset.
The value network is removed entirely. That saves compute, but the report argues the reason goes deeper. Suppose a partial CoT can continue with zt+1, which leads straight to the answer, or zt+1′, which contains an error. A value function would give zt+1′ a negative advantage and penalise it. But if the model later notices the error and recovers, that detour is exactly the trial-and-error pattern long-CoT reasoning needs. Rewarding only the final answer lets the model learn from mistakes it fixes. The ablation in Figure 10 backs up the role of the negative signal: ReST, which only fits the best sampled responses and applies no negative gradients, has clearly worse sample complexity.

Key Points
- 1
Each iteration freezes πθi as the reference and solves a KL-regularised objective with strength τ>0
- 2
The closed form π∗∝πθiexp(r/τ) gives a constraint that holds for any (y,z), so the method can learn from off-policy samples
- 3
τlogZ is approximated by a log-mean-exp over k samples or, more simply, by the empirical mean reward rˉ
- 4
The gradient is a policy gradient with a mean-reward baseline plus an ℓ2 penalty on log(πθ/πθi)
- 5
θi+1 becomes the next reference, and the optimizer is reset each iteration
- 6
No value network: penalising a wrong step the model later recovers from would discourage the exploration long CoT needs
- 7
Figure 10: against ReST (no negative gradients) the method reaches higher accuracy with fewer steps on almost every benchmark
Mathematical Formulation
KL-Regularised Objective (Eq. 2)
maxθE(x,y∗)∼D[E(y,z)∼πθ[r(x,y,y∗)]−τKL(πθ(x)∥πθi(x))]
Get as much reward as possible without moving too far from the current reference πθi. A larger τ means smaller, more conservative steps.
Closed-Form Optimum and the Off-Policy Constraint
π∗(y,z∣x)r(x,y,y∗)−τlogZ=Zπθi(y,z∣x)exp(r(x,y,y∗)/τ)=τlogπθi(y,z∣x)π∗(y,z∣x)
Z=∑y′,z′πθi(y′,z′∣x)exp(r(x,y′,y∗)/τ). The second identity holds for every response, wherever it was sampled from, so samples from the old policy can supervise the new one.
Surrogate Loss
L(θ)=E(x,y∗)∼DE(y,z)∼πθi[(r(x,y,y∗)−τlogZ−τlogπθi(y,z∣x)πθ(y,z∣x))2]
Regress the scaled log-ratio onto the reward minus the baseline. τlogZ is estimated as τlogk1∑j=1kexp(r(x,yj,y∗)/τ), or by the mean reward rˉ, which the paper finds works well.
The Gradient (Eq. 3)
k1j=1∑k(∇θlogπθ(yj,zj∣x)(r(x,yj,y∗)−rˉ)−2τ∇θ(logπθi(yj,zj∣x)πθ(yj,zj∣x))2)
The first term is REINFORCE with a mean-reward baseline: above-average responses are pushed up, below-average ones are pushed down. Those are the negative gradients ReST lacks. The second term is an ℓ2 pull toward the reference. The samples come from πθi, not the current policy, which is what makes this the off-policy case.
Run long-CoT RL and responses get longer — a lot longer. The report calls this the overthinking phenomenon. It does buy accuracy, but very long reasoning is expensive in both training and inference, and people often do not want it. So k1.5 adds a length reward that limits how fast token length grows and improves token efficiency.
The reward is relative, computed within the k responses sampled for the same problem. Let min_len and max_len be the shortest and longest of them. Each response gets λ=0.5−max_len−min_lenlen(i)−min_len, which runs linearly from +0.5 for the shortest response to −0.5 for the longest. Correct responses receive λ itself, so short correct answers gain and long correct answers lose. Incorrect responses receive min(0,λ): a wrong answer is never rewarded for being short, but a long wrong answer is penalised. If every response has the same length, the length reward is zero for all of them.
The length reward is added to the task reward with a weighting parameter. There is one practical problem: in early experiments the penalty slowed down training at the start, when the model still needs room to explore. The fix is a warm-up. Train with standard policy optimization and no length penalty first, then switch to a constant length penalty for the rest of training.
The same penalty returns later in a stronger form. In long2short RL it is applied together with a much shorter maximum rollout length, to compress a long-CoT model into a short one.
Key Points
- 1
Overthinking: response length grows a lot during RL. It helps accuracy but costs tokens in training and inference
- 2
The length reward is relative, computed among the k responses to the same problem
- 3
λ goes linearly from +0.5 (shortest) to −0.5 (longest)
- 4
Correct responses get λ. Incorrect responses get min(0,λ), so being short never rescues a wrong answer
- 5
If max_len=min_len the length reward is zero for all responses
- 6
Added to the original reward with a weighting parameter
- 7
Warm-up: no length penalty at first, then a constant penalty, because an early penalty slowed training
Mathematical Formulation
Length Reward
len_reward(i)λ={λmin(0,λ)if r(x,yi,y∗)=1if r(x,yi,y∗)=0=0.5−max_len−min_lenlen(i)−min_len
min_len and max_len are taken over the k responses sampled for problem x. Among correct answers shorter is better. Among wrong answers only the longer half is penalised, because min(0,λ) is zero for the shorter half.
RL already focuses itself to some extent — harder problems give larger gradients — but the report notes that its training efficiency is still limited. Good prior sampling can do better, and k1.5 has two useful signals for it. The data comes with difficulty labels (a competition problem is harder than a primary-school one), and because every problem is sampled many times during RL, the trainer can track each problem's success rate.
Curriculum sampling uses the labels. Start with easier tasks and move to harder ones. Early in RL the model is weak, so spending compute on very hard problems produces few correct samples and little learning signal. In the ablation the curriculum is concrete: warm up on the full mixed dataset D, then train only on hard questions. Figure 9 compares this with uniform sampling of mixed easy and hard problems. The two curves are identical until the switch at iteration 24. After that the curriculum run pulls ahead and ends at about 0.6 accuracy, while the uniform baseline is still around 0.55.
Prioritized sampling uses the tracked success rates. Problem i with success rate si is sampled with probability proportional to 1−si. Problems the model already solves are rarely shown again, and problems it fails get most of the samples. The report describes this as directing effort at the model's weakest areas.

Key Points
- 1
Two prior signals: dataset difficulty labels and each problem's tracked success rate during RL
- 2
Curriculum sampling: easy to hard. Hard problems early on give few correct samples and waste compute
- 3
In the ablation: warm up on the full mixed set, then train only on hard questions
- 4
Figure 9: identical until the switch at iteration 24, then curriculum beats uniform sampling (about 0.6 vs 0.55 at the end)
- 5
Prioritized sampling: P(i)∝1−si, so low-success problems are sampled more
- 6
Both act before the gradient, deciding what the policy practises on
Mathematical Formulation
Prioritized Sampling
P(sample problem i)=∑j(1−sj)1−si
si is the running success rate on problem i. A problem solved 90% of the time gets weight 0.1, and one solved 10% of the time gets weight 0.9 — nine times as often.
An outcome-reward RL system is only as good as its rewards. Section 2.3.5 covers three places where k1.5 had to build them.
Code. Many web coding problems come without test cases, so k1.5 generates them. The focus is problems that do not need a special judge and that have ground-truth solutions. Using the CYaRon test-generation library, the base Kimi k1.5 model writes test-case generators from the problem statement. For each problem it produces 50 test cases and samples 10 ground-truth submissions. A test case is valid if at least 7 of 10 submissions give matching results. A problem enters the training set only if at least 9 of 10 submissions pass all the selected tests. The funnel is steep: from 1,000 online contest problems, about 614 need no special judge, 463 generators produce at least 40 valid tests, and 323 problems make it into training.
Math. Equivalent answers can look different (a2−4 and (a+2)(a−2)), so exact string matching fails. Two reward models were trained on about 800k examples each. A Classic RM (value head, InstructGPT style) reads question, reference answer and response and outputs one scalar. A Chain-of-Thought RM reasons step by step before giving a JSON verdict. In manual spot checks the Classic RM reached about 84.4 accuracy and the CoT RM 98.5, so RL uses the CoT RM.
Vision. Vision RL data comes from three sources. Real-world data: science questions that need graphical reasoning, location guessing and chart analysis. Synthetic visual reasoning data: procedurally generated images for spatial relations, geometric patterns and object interactions, in unlimited supply. Text-rendered data: text, code and structured data rendered as images, so the model answers the same whether it sees text or a screenshot of it.
Key Points
- 1
Code rewards: generate 50 test cases per problem, check them against 10 ground-truth submissions. Valid if ≥7/10 agree, problem kept if ≥9/10 pass all
- 2
Funnel: 1,000 contest problems → 614 without special judge → 463 good generators (≥40 valid tests) → 323 training problems
- 3
Generators are written by the base Kimi k1.5 model using the CYaRon library
- 4
Math rewards: equivalent forms (e.g. a2−4 vs (a+2)(a−2)) break string matching
- 5
Classic RM (value head) ≈84.4 vs Chain-of-Thought RM 98.5 accuracy in manual spot checks, ~800k training examples each
- 6
RL uses the CoT RM, which reasons step by step and outputs a JSON correctness verdict
- 7
Vision RL data: real-world, synthetic visual reasoning, and text-rendered images
Mathematical Formulation
Test-Case and Problem Acceptance
valid(t)keep(p)=1[∑m=110agreem(t)≥7]=1[∑m=110passm(Tp)≥9]
A generated test t counts if most of the 10 reference solutions agree on its output. Problem p is kept only if almost all reference solutions pass the full selected test set Tp. This two-level filter is what makes a pass/fail reward trustworthy.
Long-CoT RL has a systems problem. Response lengths vary enormously, and a synchronous RL step waits for its slowest rollout. One 100k-token trajectory can leave the rest of the cluster idle. Partial rollouts are the report's main fix, and it calls them one of the primary ideas of the work.
The overall system (Figure 3a) is iterative and synchronous. In each iteration, rollout workers, coordinated by a central master, generate trajectories. Reward models — code, math, K-12 and vision, with a code execution service for programs — score them, and the results go into a replay buffer. Trainer workers, which hold the policy and reference models, then read from the buffer and compute gradient updates, and the new weights flow back to the rollout workers.
Partial rollouts (Figure 3b) set a fixed output-token budget per rollout. If a trajectory goes over the budget, it is cut, the unfinished part is saved to the replay buffer, and it is continued in the next iteration. A long response is built up in segments across iterations n−m to n. Only the current segment needs on-policy computation. Earlier segments are reused from the buffer instead of being regenerated, so no single long trajectory can take over the system's resources. Rollout workers run asynchronously, so while some continue long trajectories, others process new short ones. During training some segments can also be excluded from the loss.
The same mechanism provides repeat detection. Repeated sequences are found and stopped early, which saves compute, and they can receive an extra penalty. The legend of Figure 3b shows three outcomes for each rollout: normal stop, cut by length (saved for continuation), and repeat, early stop.

Key Points
- 1
Iterative synchronous system: a rollout phase then a training phase, coordinated by a central master (Figure 3a)
- 2
Components: rollout workers, trainer workers (policy + reference model), reward models (code, math, K-12, vision), replay buffer
- 3
Fixed output-token budget per rollout. Over-budget trajectories are saved and continued in the next iteration
- 4
Only the current segment needs on-policy computation. Earlier segments are reused from the replay buffer
- 5
Asynchronous rollout workers: long and short trajectories run side by side, so no single trajectory takes over the system
- 6
Segments can be excluded from the loss during training
- 7
Repeat detection stops repetitive generations early and can add a penalty
Mathematical Formulation
A Long Response as Segments
(y,z)=[reused from replay buffersegn−m,…,segn−1,on-policy at iter nsegn],∣seg∣≤B
With per-iteration token budget B, a response that needs L tokens spans about ⌈L/B⌉ iterations. Each iteration only generates one new segment, so iteration time depends on B, not on the longest response in the batch.
RL alternates between two very different workloads. Training uses Megatron and inference (rollouts) uses vLLM. Running them on separate GPU pools leaves one side idle while the other works. k1.5 instead puts both in one Kubernetes pod, as sidecar containers that share all of the pod's GPUs (Figure 4).
A shim process called the checkpoint engine manages the switch. Megatron trains, then offloads its GPU memory and prepares to hand over the weights. vLLM starts with dummy weights and receives the latest ones from Megatron through Mooncake over RDMA. When the rollout finishes, the checkpoint engine stops vLLM, and Megatron loads its memory back and trains again. The report says the hard part is that vLLM cannot fully release GPU memory because of CUDA graphs, NCCL buffers and NVIDIA drivers. So rather than patching vLLM heavily, they terminate and restart it when needed. Megatron converts its checkpoints to Hugging Face format in shared memory, resolving pipeline and expert parallelism so only tensor parallelism remains. The checkpoints are sharded and registered in an etcd-managed metadata system. The result: under one minute to switch from training to inference, and about ten seconds to switch back.
The design addresses three needs: different parallelism in Megatron and vLLM, minimal idle GPUs, and dynamic scaling (more inference nodes with training unchanged).
Code rewards need a fast, safe executor, so k1.5 also has a code sandbox on Kubernetes. It can switch container images to support MultiPL-E, DMOJ Judge Server, Lean, Jupyter and others. Three optimisations matter. crun replaces Docker as the container runtime. cgroups are pre-created and reused. An overlay filesystem with a tmpfs upper layer gives fixed-size, fast scratch space. Container start-up falls from 0.12 s to 0.04 s, and maximum container launches on a 16-core machine rise from 27/s to 120/s.

Key Points
- 1
Training (Megatron) and inference (vLLM) run as sidecar containers in one pod that share all its GPUs
- 2
The checkpoint engine manages the vLLM lifecycle over HTTP APIs and broadcasts state through etcd
- 3
Weights move Megatron → vLLM through Mooncake over RDMA. vLLM starts on dummy weights and is terminated and restarted instead of offloaded
- 4
Checkpoints are converted to HF format in shared memory, leaving only tensor parallelism
- 5
Switching: < 1 minute training → inference, ~10 seconds inference → training
- 6
Code sandbox: crun instead of Docker, reused cgroups, overlay filesystem on tmpfs
- 7
Sandbox vs Docker: 0.04 s vs 0.12 s container start-up, 120 vs 27 containers/sec on 16 cores
The report's main empirical claim is that context length is a scaling dimension for RL. Section 3.3 shows it with a mid-sized internal model trained on the math prompt set. The authors note this model is much smaller than the final k1.5 long-CoT model.
Figure 5 tracks training accuracy and response length over about 150 RL iterations on twelve benchmarks. On nearly all of them both curves rise together: the model gets more accurate and writes longer solutions. The shaded band, the 95th percentile of response length, reaches tens of thousands of tokens. The report also notes that harder benchmarks show a steeper rise in length, meaning the model learns to write longer solutions for harder problems. Nobody told it to — the only signal was whether the final answer was right.
Figure 6 plots the same runs as accuracy against mean token length, and every panel has a positive trend line (slopes on the order of 10−5 accuracy per token). This is the strong correlation between output context length and problem-solving ability that the paper uses to justify scaling the context. The final k1.5 run goes to a 128k RL context and still improves on hard reasoning benchmarks.
This is why the infrastructure in the previous sections exists. If accuracy keeps rising with length, the limit is how cheaply you can generate and train on long rollouts. Partial rollouts, hybrid deployment and a long-context base model (pretraining stretched the sequence length to 131,072 tokens) are what make 128k-token RL practical.


Key Points
- 1
Studied on a mid-sized internal model trained on math prompts, much smaller than the final k1.5
- 2
Figure 5: over ~150 iterations, training accuracy and response length rise together on almost every benchmark
- 3
Harder benchmarks show steeper length growth, so the model writes longer solutions for harder problems
- 4
Figure 6: accuracy vs mean token length has a positive trend on every panel
- 5
The final k1.5 run scales to a 128k RL context and keeps improving on hard reasoning benchmarks
- 6
Pretraining's long-context activation stage extended sequences from 4,096 → 32,768 → 131,072 tokens with RoPE frequency 1,000,000
- 7
Main takeaway: context length is a key dimension for continued RL scaling
Long-CoT models are strong but use many test-time tokens. Section 2.4 asks whether a short-CoT model can inherit the thinking priors of a long-CoT one and perform better under a tight token budget. The report tries four methods.
Model merging needs no training. It simply averages the weights of a long-CoT model and a short-CoT model. Model merging was already known to help generalisation, and here it also improves token efficiency. Shortest rejection sampling uses the fact that the model's response length varies a lot for the same problem. It samples each question n=8 times and keeps the shortest correct response for SFT. DPO uses the same sampling to build preference pairs. The shortest correct response is the positive. Negatives are wrong longer responses, plus correct responses at least 1.5× longer than the positive — so the model learns that verbosity is a cost even when the answer is right.
Long2short RL is a second RL phase. Pick the model with the best balance of accuracy and token efficiency from standard RL, then train it with the length penalty and a much shorter maximum rollout length, which penalises responses that go over the budget even if they are correct.
Figure 7 plots accuracy against token length on MATH500 and AIME2024. All k1.5 variants (orange) show better token efficiency than the other models (blue: GPT-4-0513, Claude 3.5, Qwen2.5-72B-Inst, DeepSeek-V3). Among the methods, long2short RL gives the best token efficiency, ahead of DPO and model merging. k1.5-short w/ rl reaches 60.8 Pass@1 on AIME2024 (averaged over 8 runs) using only 3,272 tokens on average. k1.5-shortest gets 88.2 on MATH500 using about as many tokens as the other short models.

Key Points
- 1
Goal: give short-CoT models the thinking priors of long-CoT models under a limited token budget
- 2
Model merging: average long-CoT and short-CoT weights. No training
- 3
Shortest rejection sampling: sample n=8, keep the shortest correct response for SFT
- 4
DPO: positive = shortest correct. Negatives = wrong longer responses and correct responses ≥1.5× longer
- 5
Long2short RL: a second RL phase with the length penalty and a much shorter max rollout length
- 6
Figure 7: long2short RL is the most token-efficient method. All k1.5 variants beat the non-k1.5 models on token efficiency
- 7
k1.5-short w/ rl: 60.8 AIME2024 at 3,272 average tokens. k1.5-shortest: 88.2 MATH500
Mathematical Formulation
Model Merging
θmerged=21(θlong+θshort)
The report describes merging as simply averaging the two models' weights. It is the cheapest of the four methods and becomes the base for the 'merge + rs' variant, which adds shortest rejection sampling on the merged model.
DPO Pair Construction
y+y−=argyj:rj=1minlen(yj)∈{yj:rj=0, len(yj)>len(y+)}∪{yj:rj=1, len(yj)≥1.5len(y+)}
The chosen response is the shortest correct one. Rejected responses are longer wrong answers, and correct answers that are at least 1.5 times longer than the chosen one.
k1.5 is reported in two modes, and each is compared with the models of its own kind.
Long-CoT (Table 2, Figure 1). Against OpenAI o1, o1-mini, QwQ-32B-Preview and QVQ-72B-Preview, k1.5 scores 96.2 on MATH-500 (o1: 94.8), 77.5 on AIME 2024 (o1: 74.4), the 94th percentile on Codeforces (o1: 94), and 74.9 on MathVista-Test (o1: 71.0, QVQ: 71.4). On MathVision-Full it scores 38.6 vs QVQ's 35.9. It does not win everywhere, and the table shows this. o1 leads on LiveCodeBench (67.2 vs 62.5) and on MMMU-Val (77.3 vs 70.0). "Matching o1" is a fair summary. "Beating o1" is not.
Short-CoT (Table 3, Figure 2). Against GPT-4o, Claude 3.5 Sonnet, DeepSeek-V3, Qwen2.5-72B-Inst, LLaMA-3.1-405B-Inst and Qwen2-VL, the biggest gaps are in reasoning. k1.5 scores 60.8 on AIME 2024 vs DeepSeek-V3's 39.2 and GPT-4o's 9.3, 94.6 on MATH-500 vs 90.2, and 47.3 on LiveCodeBench vs 40.5. The abstract's "up to +550%" matches the AIME comparison with GPT-4o: 60.8/9.3≈6.5×, about +554%. On general text it leads on IF-Eval (87.2), CLUEWSC (91.7) and C-Eval (88.3), but on MMLU (87.4) it is behind LLaMA-3.1-405B (88.6), DeepSeek-V3 (88.5) and Claude (88.3). On HumanEval-Mul (81.5) it trails DeepSeek-V3 (82.6) and Claude (81.7). In vision it leads MathVista (70.1) but trails GPT-4o on MMMU (69.1 vs 68.0) and Claude on MathVision (35.6 vs 31.0).
Two caveats from the paper itself. The IF-Eval number in Table 3 came from an intermediate model because of a version shift (Appendix C.1). The VLM baselines in Table 3 were taken from the OpenCompass platform, not re-run. The Codeforces percentile uses majority voting over code generated by k1.5, with test cases also generated by k1.5.




Key Points
- 1
Long-CoT (Table 2): MATH-500 96.2 (o1 94.8) · AIME 2024 77.5 (o1 74.4) · Codeforces 94th pct (o1 94) · MathVista 74.9 (o1 71.0)
- 2
o1 still leads on LiveCodeBench (67.2 vs 62.5) and MMMU-Val (77.3 vs 70.0)
- 3
Short-CoT (Table 3): AIME 2024 60.8 (DeepSeek-V3 39.2, Claude 3.5 16.0, GPT-4o 9.3) · MATH-500 94.6 · LiveCodeBench 47.3
- 4
"Up to +550%" matches AIME vs GPT-4o: 60.8/9.3≈6.5×
- 5
Short-CoT text: best on IF-Eval 87.2, CLUEWSC 91.7, C-Eval 88.3. Behind on MMLU (87.4 vs 88.6) and HumanEval-Mul (81.5 vs 82.6)
- 6
Short-CoT vision: best on MathVista 70.1. Behind GPT-4o on MMMU (68.0 vs 69.1) and Claude on MathVision (31.0 vs 35.6)
- 7
Caveats: the IF-Eval score comes from an intermediate model, and VLM baselines come from OpenCompass
Mathematical Formulation
Where "+550%" Comes From
9.360.8−9.3≈5.54⇒≈+554%
Short-CoT k1.5 vs GPT-4o on AIME 2024 (Pass@1). This is the largest relative gap in Table 3, and it matches the abstract's 'up to +550%'. On most other benchmarks the gaps are a few points, and on some k1.5 is behind.
Section 3.5 asks the obvious question about a method whose main contribution is longer CoT: is it just a substitute for a bigger model?
Two models of different sizes were trained with RL on the same data, and every checkpoint was evaluated for accuracy and mean response length (Figure 8). The larger model starts ahead, but the smaller model can reach comparable accuracy by using longer CoTs optimised through RL. The larger model is still more token-efficient — it gets the same accuracy with fewer tokens. On most panels its trend line is also steeper (for example 6.42e-05 vs 3.33e-05 on OMNI-MATH500 and 8.10e-05 vs 5.90e-05 on AIME2024), although on MATH500 the small model's slope is slightly higher (2.45e-05 vs 2.00e-05).
The report draws a two-sided conclusion. For the best possible performance, scale the context length of a larger model — it has a higher ceiling and uses tokens better. Under a fixed test-time compute budget, training a smaller model with a longer context may be a good option.
The other two ablations appear in earlier sections. Negative gradients (Figure 10): replacing the policy-optimisation step with ReST, which only fits the best sampled responses, gives clearly worse sample complexity. The report notes this gap is larger than in other domains, so the choice of RL algorithm matters more for long CoT. Curriculum sampling (Figure 9): warming up on the full mix and then training only on hard problems beats uniform sampling.
The conclusions list open questions: making long-context RL more efficient and scalable, better credit assignment, and reducing overthinking without hurting exploration. They also suggest alternating long2short and long-CoT RL to get more out of a given context budget.

Key Points
- 1
Same data, two model sizes, every RL checkpoint evaluated (Figure 8)
- 2
The larger model starts ahead. The smaller model catches up by using longer RL-optimised CoTs
- 3
The larger model is more token-efficient, with a steeper trend on most panels (e.g. 6.42e-05 vs 3.33e-05 on OMNI-MATH500)
- 4
Best possible performance → scale context on a larger model. Fixed test-time budget → a smaller model with longer context may work
- 5
Negative gradients matter: ReST (no penalty on wrong responses) is clearly less sample-efficient (Figure 10)
- 6
Curriculum beats uniform sampling after the switch to hard-only problems (Figure 9)
- 7
Open problems: credit assignment, and reducing overthinking without hurting exploration
Keep reading
Related Papers
Go deeper