Track VI · Frontier Tech Reports · 18/20

Olmo 3 — 데이터·코드·체크포인트까지 공개한 추론 모델Olmo 3 — a reasoning model released down to its data, code and checkpoints

AI2의 Olmo 3 보고서를 모델 흐름(model flow) 순서로 읽는다. Dolma 3의 품질 기반 upsampling, midtraining 설계, delta learning DPO, OlmoRL(std 정규화 없는 GRPO, token-level loss, clip-higher, truncated IS, active sampling)과 비동기 RL 인프라를 식과 코드로 직접 재현한다.Reads AI2's Olmo 3 report in model-flow order. Reproduces, with equations and code, Dolma 3's quality-aware upsampling, the midtraining design, delta-learning DPO, OlmoRL (GRPO without std normalisation, token-level loss, clip-higher, truncated IS, active sampling) and the asynchronous RL infrastructure.

55 분min Olmo 3 · AI2 · fully open · RLVR · GRPO · DPO · delta learning · data mixing · upsampling · asynchronous RL · continuous batching 먼저 볼 것:Before this: RLVR과 추론 — GRPO, RLOO, Dr. GRPO, DAPO, GSPORLVR and reasoning — GRPO, RLOO, Dr. GRPO, DAPO, GSPO, Direct alignment: DPO와 그 변형들Direct alignment: DPO and its variants, 사전학습과 스케일링 법칙Pretraining and scaling laws

Most “open” models release only their final weights. AI2’s (Allen Institute for AI) Olmo 3 goes further. It releases the pretraining data pool and the actual training mix, the midtraining and long-context data, the SFT, DPO and RL datasets, the training code, and intermediate checkpoints from every stage. The report calls this the model flow. That makes the report better read for “what was decided at each stage, and why” than for “which model scores how much”.

This lesson follows the flow of the report (arXiv 2512.13961): the three stages that build the Base model (pretraining → midtraining → long-context extension), and the three post-training stages on top of it (SFT → DPO → RLVR). For readers of this site the most useful part is post-training, especially OlmoRL. It shows, with numbers, how the fixes seen in the GRPO lesson (Dr. GRPO, DAPO) combine in a real large-scale recipe, and what the bottleneck is in asynchronous RL infrastructure.

At a glance

ItemOlmo 3
Lab / releaseAI2 (+ University of Washington and others), arXiv 2025-12-15 (Olmo 3.1 added in v2)
Sizesdense 7B, 32B (not MoE)
VariantsBase, Think (reasoning), Instruct (non-reasoning, function calling), RL-Zero (7B, RL straight from base)
Architecturedecoder-only; 7B uses MHA, 32B uses GQA (Q 40 / KV 8); 3 of every 4 layers use a sliding window of 4096 (Table 33)
Context8,192 in training → 65,536 tokens after long-context extension
Pretraining tokens7B 5.93T, 32B 5.5T (Dolma 3 Mix) + midtraining 100B + long-context 50B (7B) / 100B (32B) (Table 35)
Training costabout 56 days on a 1024-H100 cluster from the start of training to the evaluation of Olmo 3 Think 32B. At 2 dollars per H100-hour, about 2.75 million dollars (§2.4)
Licenseweights, data (Dolma 3, Dolci), code (OLMo-core, Open Instruct) and intermediate checkpoints released
LinksarXiv 2512.13961

What is new

  • Quality-aware upsampling + token-constrained mixing. Web data is split into 24 topics × 20 quality bins, and 6T tokens are drawn with a continuous curve that repeats the top quality up to 7 times and discards the bottom 40%. It beats plain quality filtering (Table 39).
  • Delta-learning DPO. At the point where further SFT on a strong model’s (Qwen3 32B) responses actually hurts, pairing those responses with a weak model’s (Qwen3 0.6B) and running DPO gives large gains (Table 21). Preference learning is used as contrastive learning for “capability” rather than for “alignment”.
  • OlmoRL. An objective (Eq. 1) that adds to GRPO all of: dropping zero-gradient groups, active sampling, token-level loss, no KL, clip-higher, truncated importance sampling and no std normalisation; plus asynchronous infrastructure that raises throughput about 4× with continuous batching and inflight updates (Table 23).
  • RL-Zero as a clean benchmark. Because the pretraining data is public, contamination of the RL data can be removed directly, and the report confirms that random (spurious) rewards do not raise scores.

Architecture

Olmo 3’s architecture follows OLMo 2 almost unchanged; the report itself lists only the “key differences”, briefly. It is a standard decoder-only Transformer with SwiGLU, RMSNorm, QK-Norm and RoPE (θ=5×105\theta = 5\times10^5), and, as in OLMo 2, normalisation is applied to each block’s output (“Layer norm applied to: Outputs” in Table 33). The block structure is the same as in the Transformer lesson; two things change.

7B32B
Layers / hidden32 / 409664 / 5120
Q heads / KV heads32 / 32 (MHA)40 / 8 (GQA)
Sliding window3/4 of layers, 4,096 tokens3/4 of layers, 4,096 tokens
RoPE extensionYaRN on full-attention layers onlyYaRN on full-attention layers only
  1. The training context grew from 4,096 to 8,192 (pretraining and midtraining).
  2. Sliding window attention (SWA) is used on 3 of every 4 layers, and the last layer is always full attention (§3.2). The aim is to cut the cost of pretraining on long sequences and the cost of inference.

A query in an SWA layer sees only the previous w=4096w = 4096 keys. The KV cache then grows with the context length TT only in the full layers and stops at min⁡(T,w)\min(T, w) in the SWA layers. Since the cache per layer per token is 2⋅nkv⋅dhead⋅2 byte2 \cdot n_{\text{kv}} \cdot d_{\text{head}} \cdot 2\text{ byte},

KV(T)=2 nkv dhead⋅2⋅(Lfull T+Lswamin⁡(T,w)).\text{KV}(T) = 2\, n_{\text{kv}}\, d_{\text{head}} \cdot 2 \cdot \big(L_{\text{full}}\, T + L_{\text{swa}} \min(T, w)\big).

For 32B (nkv=8n_{\text{kv}} = 8, dhead=5120/40=128d_{\text{head}} = 5120/40 = 128, Lfull=16L_{\text{full}} = 16, Lswa=48L_{\text{swa}} = 48) at T=65,536T = 65{,}536 this is 4 GiB for the full layers + 0.75 GiB for the SWA layers = 4.75 GiB, about 30% of the all-full case (16 GiB). This is our own calculation from the Table 33 config, not a number given in the report.

대부분의 “오픈” 모델은 마지막 가중치만 공개한다. AI2(Allen Institute for AI)의 Olmo 3는 다르게 간다. 사전학습 데이터 풀과 실제 학습 혼합, midtraining·long-context 데이터, SFT·DPO·RL 데이터셋, 학습 코드, 그리고 모든 단계의 중간 체크포인트를 공개한다. 보고서는 이것을 모델 흐름(model flow)이라고 부른다. 그래서 이 보고서는 “어떤 모델이 몇 점인가”보다 “각 단계에서 무엇을 왜 그렇게 정했는가”를 읽기 좋은 문서다.

이 레슨은 보고서(arXiv 2512.13961)의 흐름을 따라간다. Base 모델을 만드는 세 단계(pretraining → midtraining → long-context extension), 그리고 그 위의 세 사후학습 단계(SFT → DPO → RLVR)다. 이 사이트의 독자에게 가장 쓸모 있는 부분은 사후학습, 특히 OlmoRL이다. GRPO 레슨에서 본 수정(Dr. GRPO, DAPO)이 실제 대규모 레시피에서 어떻게 조합되는지, 비동기 RL 인프라에서 무엇이 병목인지가 숫자와 함께 나온다.

한눈에

항목Olmo 3
기관 / 공개AI2(+ 워싱턴대 등), arXiv 2025-12-15 (v2에 Olmo 3.1 추가)
크기dense 7B, 32B (MoE 아님)
모델 변형Base, Think(추론), Instruct(비추론·function calling), RL-Zero(7B, base에서 바로 RL)
아키텍처decoder-only, 7B는 MHA, 32B는 GQA(Q 40 / KV 8), 층 4개 중 3개가 sliding window 4096 (Table 33)
컨텍스트학습 8,192 → long-context 확장 후 65,536 토큰
사전학습 토큰7B 5.93T, 32B 5.5T (Dolma 3 Mix) + midtraining 100B + long-context 50B(7B)/100B(32B) (Table 35)
학습 비용1024 H100 클러스터에서 학습 시작부터 Olmo 3 Think 32B 평가까지 약 56일. H100 1시간에 2달러로 치면 약 275만 달러 (§2.4)
라이선스가중치, 데이터(Dolma 3, Dolci), 코드(OLMo-core, Open Instruct), 중간 체크포인트 공개
링크arXiv 2512.13961

무엇이 새로운가

  • 품질 기반 upsampling + 토큰 제약 mixing. 웹 데이터를 24개 토픽 × 20개 품질 구간으로 나누고, 상위 품질은 최대 7번까지 반복하고 하위 40%는 버리는 연속 곡선으로 6T 토큰을 뽑는다. 단순 품질 필터보다 낫다(Table 39).
  • Delta learning DPO. 강한 모델(Qwen3 32B)의 응답으로 SFT를 더 하면 오히려 성능이 떨어지는 지점에서, 그 응답을 약한 모델(Qwen3 0.6B)의 응답과 짝지어 DPO를 하면 크게 오른다(Table 21). 선호 학습을 “정렬”이 아니라 “능력”을 위한 대조 학습으로 쓴다.
  • OlmoRL. GRPO에 zero-gradient 그룹 제거, active sampling, token-level loss, KL 제거, clip-higher, truncated importance sampling, std 정규화 제거를 모두 넣은 목적함수(식 1)와, continuous batching·inflight update로 처리량을 약 4배 올린 비동기 인프라(Table 23).
  • RL-Zero를 깨끗한 벤치마크로. 사전학습 데이터가 공개되어 있으니 RL 데이터의 오염을 직접 지울 수 있고, 무작위 보상(spurious reward)으로는 점수가 오르지 않음을 확인한다.

아키텍처

Olmo 3의 아키텍처는 OLMo 2를 거의 그대로 따른다. 보고서도 “key differences”만 짧게 적는다. 표준 decoder-only Transformer에 SwiGLU, RMSNorm, QK-Norm, RoPE(θ=5×105\theta = 5\times10^5)를 쓰고, 정규화는 OLMo 2처럼 각 블록의 출력에 적용한다(Table 33의 “Layer norm applied to: Outputs”). 블록 구조는 Transformer 레슨과 같고, 바뀐 것은 두 가지다.

7B32B
층 수 / hidden32 / 409664 / 5120
Q head / KV head32 / 32 (MHA)40 / 8 (GQA)
Sliding window층의 3/4, 4,096 토큰층의 3/4, 4,096 토큰
RoPE 확장full attention 층에만 YaRNfull attention 층에만 YaRN
  1. 학습 컨텍스트를 4,096에서 8,192로 늘렸다(pretraining과 midtraining).
  2. Sliding window attention(SWA) 을 층 4개 중 3개에 넣었고, 마지막 층은 항상 full attention이다(§3.2). 긴 시퀀스로 사전학습할 때의 비용과 추론 비용을 줄이기 위해서다.

SWA 층의 query는 직전 w=4096w = 4096개 key만 본다. 그러면 KV cache는 full 층에서만 context 길이 TT에 비례하고 SWA 층에서는 min⁡(T,w)\min(T, w)에서 멈춘다. 층당 토큰당 cache가 2⋅nkv⋅dhead⋅2 byte2 \cdot n_{\text{kv}} \cdot d_{\text{head}} \cdot 2\text{ byte}이므로

KV(T)=2 nkv dhead⋅2⋅(Lfull T+Lswamin⁡(T,w)).\text{KV}(T) = 2\, n_{\text{kv}}\, d_{\text{head}} \cdot 2 \cdot \big(L_{\text{full}}\, T + L_{\text{swa}} \min(T, w)\big).

32B(nkv=8n_{\text{kv}} = 8, dhead=5120/40=128d_{\text{head}} = 5120/40 = 128, Lfull=16L_{\text{full}} = 16, Lswa=48L_{\text{swa}} = 48)에서 T=65,536T = 65{,}536이면 full 층 4 GiB + SWA 층 0.75 GiB = 4.75 GiB로, 모든 층이 full일 때(16 GiB)의 약 30%다. 이 계산은 Table 33의 설정으로 직접 한 것이고 보고서에 나온 숫자는 아니다.

full 층 / SWA 층full / SWA layers – KV cache (1 시퀀스1 sequence) – 모두 full 대비vs. all full – 토큰당 (full 층)per token (full layers) –
The strip on top is the layer layout (dark cell = full attention, light cell = sliding window); below is the KV-cache size of one sequence as a function of context length (computed from the Table 33 config: 2 × layers × KV heads × 128 × 2 bytes × cached tokens). Increase the context and only the full layers' cache grows linearly; the SWA layers stop at the window. Switch the model to 7B and, with 32 KV heads (MHA), the cache is larger than 32B's at the same length. 위 띠는 층 배치(진한 칸 = full attention, 옅은 칸 = sliding window)이고, 아래는 한 시퀀스의 KV cache 크기를 context 길이에 따라 그린 것이다(Table 33 설정으로 계산: 2 × 층 × KV head × 128 × 2 byte × 캐시 토큰). context를 늘리면 full 층의 cache만 선형으로 자라고 SWA 층은 window에서 멈춘다. 모델을 7B로 바꾸면 KV head가 32개(MHA)라 같은 길이에서 cache가 32B보다 크다.

Two points are worth noting. First, 7B uses MHA with 32 KV heads, so at the same length its cache is larger than 32B’s. The gain from GQA is as large as the gain from SWA. Second, the report states only “3 of 4” and “the last layer is full”; the exact layer order is not in Table 33. The figure’s arrangement (full attention on every 4th layer) is one assumption that satisfies both conditions. The same local/global interleaving is used in Gemma 3 (1:5), gpt-oss (1:1) and MAI-Base-1 (1:5); what differs is the ratio and the window size.

For long-context extension, applying YaRN only to the full-attention layers and leaving the SWA layers’ positional embedding untouched worked best (§3.6, Figure 13a). SWA layers only look within 4,096 tokens, so they never meet a relative position unseen in training. Only the full layers need extending.

Data

Every stage of Olmo 3’s data has a name. Pretraining uses Dolma 3 Mix, midtraining Dolma 3 Dolmino Mix, long-context Dolma 3 Longmino Mix, and post-training Dolci (Think SFT / DPO / RL, Instruct SFT / DPO / RL, RL-Zero).

Pretraining: Dolma 3 Mix

SourceType9T pool tokens6T mix tokens (share)
Common Crawlweb8.14T4.51T (76.1%)
olmOCR science PDFsacademic PDFs972B805B (13.6%)
Stack-Edu (rebalanced)GitHub code137B409B (6.89%)
arXivLaTeX papers21.4B50.8B (0.86%)
FineMath 3+math web34.1B152B (2.56%)
Wikipedia & Wikibooksencyclopedia3.69B2.51B (0.04%)
Total9.31T5.93T

(Report Table 4. A 150B mix with the same proportions is also released for experiments.)

The numbers in the web pipeline are striking (§3.4.1). 252.6B documents from 104 Common Crawl dumps (2024-12-31 cutoff) are cut by 84.6% to 38.8B documents with DCLM-style heuristic filters, and then deduplicated in three stages.

  1. exact dedup: document hashes remove 67%, 38.7B → 12.8B documents.
  2. fuzzy dedup: MinHash removes another 23%, leaving 9.8B documents.
  3. substring dedup: a suffix array removes substrings of 500 bytes or more that repeat, 14% of text bytes.

By document count, 75% disappear. The aggressiveness is deliberate. Duplicate counts are also a quality signal, but the design is to wipe them all to get a clean floor, then pick only the good data and repeat it again. Next, the WebOrganizer topic classifier (24 topics) and a fastText quality classifier attach a topic and a quality score to each document, and within each topic quality is split into 20 bins (vigintiles). The 24 × 20 = 480 buckets are the knobs that control the mix.

Constrained data mixing. Topic and source proportions are set with a RegMix-style swarm method (§3.4.4). 30M-parameter proxy models are each trained on 3B tokens (5× Chinchilla); each model’s mix is drawn from a Dirichlet centred on the natural distribution, and the swarm size is about 5× the number of domains. A mix → BPB regression is fit per task, and the mix minimising the average BPB is found. Here the constraint that “no domain is repeated more than about 4–7 times”, combined with the 6T budget, caps each domain’s share. To avoid starting over whenever the data changes, conditional mixing freezes the existing mix into a single virtual domain and re-optimises only the new domains. As a result, “Science, Math, and Technology” and “Software Development” rose sharply in the web data (Figure 9).

Quality-aware upsampling

Mixing decides how many tokens to take from each topic, but not from which quality bins within the topic they should come. A flat filter that keeps only the top few % by quality score, as in DCLM, is a step function on the vertical axis. Olmo 3 replaces it with a continuous curve (§3.4.4, Appendix A.2.4).

Suppose a topic has XX tokens and mixing asks for ZZ of them. Take the repeat factor f(x)f(x) at quality percentile x∈[0,1]x\in[0,1] to be of the form

fp,λ(x)={0,x<aC (x−a)p eλ(x−a),x≥af_{p,\lambda}(x) = \begin{cases} 0, & x \lt a \\ C\,(x-a)^{p}\, e^{\lambda (x-a)}, & x \ge a \end{cases}

The curve must satisfy three conditions.

  • Yield: ∫01f(x) dx=Z/X\int_0^1 f(x)\,dx = Z/X. The area under the curve is the average repeat rate.
  • Maximum repetition: the average repetition of the top quality bucket (width bb) does not exceed MM. 1b∫1−b1f(x) dx≤M\frac{1}{b}\int_{1-b}^{1} f(x)\,dx \le M.
  • Monotonicity: λ≥0\lambda \ge 0.

Once p,λp, \lambda are fixed, the first condition gives C=(Z/X)/∫a1(x−a)peλ(x−a)dxC = (Z/X)\big/\int_a^1 (x-a)^p e^{\lambda(x-a)}dx directly. What remains is to find a (p,λ)(p,\lambda) that satisfies the second condition. The report uses M=7M = 7 and a=0.40a = 0.40 (discard the bottom 40%), and sets each vigintile bucket’s repeat rate to the curve’s average over that interval, 1q+−q−∫q−q+f(x)dx\frac{1}{q^+ - q^-}\int_{q^-}^{q^+} f(x)dx.

두 가지를 짚어 둔다. 첫째, 7B는 MHA라 KV head가 32개여서 같은 길이에서 32B보다 cache가 크다. GQA의 이득이 SWA의 이득만큼 크다. 둘째, 보고서는 “4개 중 3개”와 “마지막 층은 full”만 밝히고 정확한 층 순서는 Table 33에 없다. 그림의 배치(4번째 층마다 full)는 그 두 조건을 만족하는 한 가지 가정이다. 같은 local/global 교차 설계는 Gemma 3(1:5), gpt-oss(1:1), MAI-Base-1(1:5)에서도 쓰인다. 차이는 비율과 window 크기다.

Long-context 확장에서 YaRN을 full attention 층에만 적용하고 SWA 층의 위치 임베딩은 건드리지 않은 것이 가장 좋았다(§3.6, Figure 13a). SWA 층은 4,096 토큰 안쪽만 보므로 학습 때 본 적 없는 상대 위치가 생기지 않는다. 확장이 필요한 것은 full 층뿐이다.

데이터

Olmo 3의 데이터는 단계마다 이름이 있다. 사전학습은 Dolma 3 Mix, midtraining은 Dolma 3 Dolmino Mix, long-context는 Dolma 3 Longmino Mix, 사후학습은 Dolci(Think SFT / DPO / RL, Instruct SFT / DPO / RL, RL-Zero)다.

사전학습: Dolma 3 Mix

출처종류9T 풀 토큰6T 혼합 토큰 (비율)
Common Crawl웹8.14T4.51T (76.1%)
olmOCR science PDFs학술 PDF972B805B (13.6%)
Stack-Edu (rebalanced)GitHub 코드137B409B (6.89%)
arXivLaTeX 논문21.4B50.8B (0.86%)
FineMath 3+수학 웹34.1B152B (2.56%)
Wikipedia & Wikibooks백과3.69B2.51B (0.04%)
합계9.31T5.93T

(보고서 Table 4. 실험용으로 같은 비율의 150B 혼합도 공개한다.)

웹 파이프라인의 숫자가 인상적이다(§3.4.1). Common Crawl 104개 dump(2024-12-31 cutoff)의 252.6B 문서를 DCLM식 휴리스틱 필터로 84.6% 줄여 38.8B 문서로 만든 뒤, 세 단계로 중복을 지운다.

  1. exact dedup: 문서 해시로 67%를 지워 38.7B → 12.8B 문서.
  2. fuzzy dedup: MinHash로 23%를 더 지워 9.8B 문서.
  3. substring dedup: suffix array로 500 byte 이상 반복되는 부분 문자열을 지워 텍스트 byte의 14%를 제거.

문서 수로는 75%가 사라진다. 일부러 이렇게 공격적으로 지운다. 중복 횟수는 품질 신호이기도 하지만, 일단 모두 지워 깨끗한 바닥을 만든 뒤 좋은 데이터만 골라서 다시 반복시키겠다는 설계다. 그다음 WebOrganizer 토픽 분류기(24개 토픽)와 fastText 품질 분류기로 각 문서에 토픽과 품질 점수를 붙여, 토픽마다 품질을 20개 구간(vigintile)으로 나눈다. 24 × 20 = 480개 버킷이 혼합을 조절하는 손잡이다.

토큰 제약 mixing(constrained data mixing). 토픽·출처별 비율은 RegMix류의 swarm 방법으로 정한다(§3.4.4). 30M 파라미터 프록시 모델을 3B 토큰(5× Chinchilla)씩 학습하는데, 각 모델의 혼합 비율은 자연 분포를 중심으로 한 Dirichlet에서 뽑고, swarm 크기는 도메인 수의 약 5배로 잡는다. 과제마다 혼합 비율 → BPB 회귀를 맞추고, 평균 BPB를 최소화하는 혼합을 찾는다. 이때 “어떤 도메인도 약 4–7번 넘게 반복하지 않는다”는 제약이 6T 예산과 맞물려 각 도메인 비율의 상한이 된다. 데이터가 바뀔 때마다 처음부터 다시 하지 않도록 기존 혼합을 하나의 가상 도메인으로 얼려 두고 새 도메인만 다시 최적화하는 conditional mixing도 쓴다. 결과적으로 웹에서는 “Science, Math, and Technology”와 “Software Development”가 크게 올라갔다(Figure 9).

품질 기반 upsampling

mixing은 토픽마다 몇 토큰을 가져올지 정하지만, 그 토큰을 토픽 안의 어느 품질 구간에서 가져올지는 정하지 않는다. DCLM처럼 품질 점수 상위 몇 %만 남기는 flat 필터는 세로축이 계단 모양이다. Olmo 3는 이것을 연속 곡선으로 바꾼다(§3.4.4, 부록 A.2.4).

한 토픽의 토큰이 XX개이고 mixing이 그중 ZZ개를 요구한다고 하자. 품질 백분위 x∈[0,1]x\in[0,1]에서의 반복 배수 f(x)f(x)를 다음 꼴로 잡는다.

fp,λ(x)={0,x<aC (x−a)p eλ(x−a),x≥af_{p,\lambda}(x) = \begin{cases} 0, & x \lt a \\ C\,(x-a)^{p}\, e^{\lambda (x-a)}, & x \ge a \end{cases}

이 곡선이 만족해야 할 조건은 셋이다.

  • 수율: ∫01f(x) dx=Z/X\int_0^1 f(x)\,dx = Z/X. 곡선 아래 넓이가 평균 반복률이다.
  • 최대 반복: 최상위 품질 버킷(폭 bb)의 평균 반복이 MM을 넘지 않는다. 1b∫1−b1f(x) dx≤M\frac{1}{b}\int_{1-b}^{1} f(x)\,dx \le M.
  • 단조성: λ≥0\lambda \ge 0.

p,λp, \lambda를 정하면 첫 조건에서 C=(Z/X)/∫a1(x−a)peλ(x−a)dxC = (Z/X)\big/\int_a^1 (x-a)^p e^{\lambda(x-a)}dx가 바로 나온다. 남는 일은 두 번째 조건을 만족하는 (p,λ)(p,\lambda)를 찾는 것이다. 보고서는 M=7M = 7, a=0.40a = 0.40(하위 40% 버림)을 쓰고, 각 vigintile 버킷의 반복률은 곡선을 그 구간에서 평균한 값 1q+−q−∫q−q+f(x)dx\frac{1}{q^+ - q^-}\int_{q^-}^{q^+} f(x)dx로 정한다.

C – 최상위 5% 반복top-5% repeats – 평균 반복(남긴 데이터)mean repeats (kept data) – flat 반복flat repeats –
Sort the documents of one topic by quality percentile (horizontal axis); the curve decides how many times each range is repeated in training (vertical axis). Bars are the repeat rates of the 20 vigintile buckets actually used (the curve averaged over each bucket); the dashed line is a flat filter that fills the same token count by repeating only the top q% uniformly. Raise the target yield and the whole curve moves up; if the top bucket exceeds M (red line) the setting is infeasible (red bar). Increase λ and repetition concentrates on the highest quality; at 0 the curve rises gently through p alone. The report uses a = 0.40, M = 7. 한 토픽 안의 문서를 품질 백분위(가로축)로 줄 세웠을 때 각 구간을 몇 번 반복해 학습에 넣는지(세로축)를 정하는 곡선이다. 막대는 실제로 쓰이는 20개 vigintile 버킷의 반복률(곡선을 구간에서 평균한 값), 점선은 같은 토큰 수를 상위 q%만 균일하게 반복해서 채우는 flat 필터다. 목표 수율을 올리면 곡선 전체가 위로 올라가고, 최상위 버킷이 M(빨간 선)을 넘으면 그 설정은 불가능(빨간 막대)하다. λ를 키우면 반복이 최상위 품질에 몰리고, 0으로 두면 p만으로 완만하게 오른다. 보고서는 a = 0.40, M = 7을 썼다.

Why this beats a flat filter is visible right in the figure. Filling the same yield with a flat filter means repeating “the top q% (Z/X)/q(Z/X)/q times”. Pick q small and the repetition exceeds M; pick it large and low-quality data goes in as many times as high-quality data. The continuous curve divides the range smoothly between the two. In the report’s 1B-model, 100B-token experiment (mimicking the degree of repetition of the 4.51T run), it had lower QA, Math and Code Easy BPB than all four flat filters (top 50/30/10/5%) (Table 39, see the results below).

The code below solves the search problem of Appendix A.2.4 as stated. It sweeps a (p,λ)(p,\lambda) grid, sets CC from the yield condition, and picks a solution whose top bucket is at most MM. The report does not say which one it picks when several solutions are feasible, so here we take “the solution whose top bucket is closest to MM”.

NumPy Finding the quality-aware upsampling curve (truncated power-exponential)
import numpy as np

# One WebOrganizer topic = 20 quality-vigintile buckets. Tokens per bucket X_q (assumed uniform here)
Q = 20
X_q = np.full(Q, 1.0 / Q)        # normalise the whole topic to X = 1
a, M = 0.40, 7.0                 # report A.2.4: discard the bottom 40%, at most 7x repetition
xs = np.linspace(0, 1, Q * 200 + 1)   # so that bucket edges fall on grid points

def bucket_rates(target, p, lam):
    """f(x) = C (x-a)^p e^{λ(x-a)} (x ≥ a). Set C so that ∫_0^1 f = Z/X; return the mean repeat rate per bucket."""
    d = np.clip(xs - a, 0.0, None)
    g = np.where(xs < a, 0.0, d**p * np.exp(lam * d))
    cum = np.concatenate([[0.0], np.cumsum((g[1:] + g[:-1]) / 2 * np.diff(xs))])  # cumulative trapezoid integral
    C = target / cum[-1]
    edge = cum[::200]                        # cumulative integral at the bucket edges
    return C, C * np.diff(edge) * Q          # bucket mean = interval integral / width (1/Q)

def search(target, ps=np.linspace(0.5, 3, 6), lams=np.linspace(0, 12, 25)):
    """Find (p, λ, C) on the grid with yield = target, top bucket ≤ M, λ ≥ 0."""
    best = None
    for p in ps:
        for lam in lams:
            C, r = bucket_rates(target, p, lam)
            if r[-1] <= M and (best is None or r[-1] > best[3][-1]):
                best = (p, lam, C, r)
    return best

for target in [0.6, 1.0, 2.0]:
    p, lam, C, r = search(target)
    print(f"target Z/X={target:.1f}: p={p:.1f}, λ={lam:.1f}, C={C:.3g}")
    print("  bucket repeat rates (low→high):", np.round(r, 2))
    print(f"  check: Σ Z_q = {(r * X_q).sum():.4f} (target {target}),  top {r[-1]:.2f} ≤ M,  "
          f"discarded {(r == 0).mean():.0%}")
    flat = [f"top {q:.0%} → {target / q:.1f}x{' (exceeds M)' if target / q > M else ''}" for q in (0.5, 0.25, 0.1)]
    print("  flat filter with the same yield:", ", ".join(flat))
 

When the yield is small (0.6), λ\lambda is large and repetition piles up in the top few buckets; when the yield is large (2.0), the curve is nearly linear (p=1p = 1) and spreads widely. Filling the same yield with a flat filter, taking only the top 10% at yield 1.0, or only the top 25% at yield 2.0, already pushes repetition past M=7M = 7.

Midtraining: Dolma 3 Dolmino Mix

This is a 100B-token stage that shapes the Base model for post-training. Summing by category the mix drawn from a 2.19T-token pool in Table 5 gives the following.

CategoryTokens in the 100B mixMain sources
Web (high-quality Common Crawl + STEM crawl)27.4BCC HQ subset 22.4B
Code20.0BStack-Edu FIM 10B, CraneCode (synthetic Python) 10B
Math (synthetic)19.2BDolmino Math 10.7B, CraneMath 5.62B
QA (synthetic)13.9BReddit→Flashcards 5.9B, Nemotron Synth QA 5B
Thinking (synthetic reasoning traces)8.3BQwQ, Llama Nemotron, OpenThoughts2, Gemini traces, etc.
Instruction6.1BDolmino 1 Flan 5B, Tülu 3 SFT 1.1B
PDF (high-quality olmOCR)5.0B

(Category totals are sums of rows in the report’s Table 5.)

Unlike pretraining, this stage deliberately includes synthetic data and instruction and thinking data, so that the model learns in advance the formats post-training will use. The methodology has two parts. Microanneals (introduced in OLMo 2) screen candidates quickly: sample 5B tokens of one dataset, mix them with 5B web tokens, anneal on the 10B, and compare against a baseline annealed on 10B of web only. The datasets that pass are combined into a 100B mix, which is trained to the end and followed by a short SFT, as an integration test (§3.5.1). Five rounds were run. For 32B, midtraining was run twice with only the ordering seed changed, and the weights were averaged (Table 35).

Decontamination focused on midtraining and long-context data, on the grounds that memorisation is strongest near the end of training (§3.5.3). A new tool, decon, samples n-grams from a document at regular intervals and matches them against evaluation-set n-grams (detection); on a hit, it extends outward on both sides, counting how long the run of contaminated n-grams continues (expansion), and removes the document if that exceeds a threshold.

Long-context: Dolma 3 Longmino Mix

Among the science PDFs converted with olmOCR, 22.3M documents exceed 8K tokens (640B tokens) and 4.5M exceed 32K (380B tokens). The report calls this the largest openly available collection for long-context research. Mixing 34% long documents with 66% short high-quality Dolmino data, 7B trains on 50B more tokens and 32B on 100B (§3.6). Long documents extended with synthetic tasks (CWE, REX) are mixed in as well (Table 11).

Post-training data: Dolci

StageSizeHow it was built
Think SFTabout 2.27M prompts (Table 17)math (750K from OpenThoughts3, etc.), code (470K Python Algorithms, etc.), chat, IF, safety, multilingual. Reasoning traces generated with QwQ-32B and DeepSeek R1; code and IF filtered by verification
Think DPO7B 150K, 32B 200K pairs (Table 48)chosen = Qwen3 32B (thinking), rejected = Qwen3 0.6B (thinking)
Think RL104,869 prompts (Table 20)math 30,186, code 23,110, IF 30,186, general chat 21,387

(The RL category total is the sum of rows in Table 20.)

Each RL prompt is first solved 8 times by the checkpoint RL will start from, and easy problems with a pass rate above 62.5% (5 of 8) are removed (offline difficulty filtering, §4.4.2). 7B used this offline filter; 32B, under time constraints, reused the 7B filter results and relied on active sampling, discussed later. All post-training data was decontaminated against evaluation sets with the Tülu 3 procedure, at 8-gram, 50% overlap.

Training

Base model

7B32B
Pretraining LRpeak 3×10−43\times10^{-4}, modified cosine, 2000-step warmuppeak 6×10−46\times10^{-4}, cosine for 5.93T stopped at 5.5T
Pretraining batch512 × 8,192 = 4.19M tokens1,024 × 8,192 = 8.39M tokens
Midtraining100B, peak 2.074×10−42.074\times10^{-4} → 0 linear100B twice (different seeds), then weight averaging
Long-context50B, length 65,536100B, length 65,536
Throughput7,700 TPS/GPU, MFU about 43%1,960 TPS/GPU, MFU about 41%

(Table 35, §3.2. BF16 throughout.)

32B pretraining took 9.5 days on 512 GPUs and then 35 days on 1024 GPUs; midtraining and long-context took about 1.5 days and 1 day respectively (§2.4). All of post-training took about 9 days. During training, 32B’s performance was tracked by averaging the weights of 4 checkpoints taken 1,000 steps apart, because 32B’s learning rate could not be annealed to 0 every time.

SFT

Dolci Think SFT is trained for 2 epochs: 45.4B tokens for 7B and 45.2B tokens for 32B, maximum length 32K, with packing (Table 47). Switching the training framework from Open Instruct to OLMo-core gave 8× the throughput. For 32B, the final model is a linear mix (model soup) of two checkpoints trained with learning rates 1×10−41\times10^{-4} and 5×10−55\times10^{-5}. Post-training as a whole follows the frame of the SFT lesson.

DPO: length normalisation + delta learning

The DPO loss is the length-normalised form of the equation in the DPO lesson, with each log-ratio divided by the response length (Appendix A.6.2, the same form as Tülu 3).

LDPO(θ)=− E(x,yc,yr)[log⁡σ ⁣(β∣yc∣log⁡πθ(yc∣x)πref(yc∣x)−β∣yr∣log⁡πθ(yr∣x)πref(yr∣x))]\mathcal{L}_{\text{DPO}}(\theta) = -\,\mathbb{E}_{(x, y_c, y_r)}\left[\log \sigma\!\left(\frac{\beta}{|y_c|}\log\frac{\pi_\theta(y_c\mid x)}{\pi_{\text{ref}}(y_c\mid x)} - \frac{\beta}{|y_r|}\log\frac{\pi_\theta(y_r\mid x)}{\pi_{\text{ref}}(y_r\mid x)}\right)\right]

β=5\beta = 5, 1 epoch, and very small learning rates: 8×10−88\times10^{-8} for 7B and 7×10−87\times10^{-8} for 32B (Table 48). Because of the division by length, β\beta multiplies the average per-token log-ratio rather than the whole sequence. With sequence sums, reasoning traces thousands of tokens long easily produce large margins; with averages, long and short traces end up with margins of similar size.

The crux is on the data side. The report first shows that further SFT on Qwen3 32B (thinking) responses lowers every evaluation (Table 21). The model has already seen better data in Dolci Think SFT, so these responses are no longer worth imitating. Yet pairing the same responses as chosen with responses from the much weaker Qwen3 0.6B as rejected, and running DPO, gives large gains. The delta-learning hypothesis says that the quality of preference data depends not on the absolute quality of each response but on the difference between the two. Even if chosen is weaker than the model being trained, as long as rejected is weaker still, “which way to move” is clear. Rejected responses are deliberately left unfiltered, because even wrong rejected responses make useful contrasts (§4.3.1).

RLVR: OlmoRL

The last stage is RL over a mix of math, code, IF and chat. In the site’s notation (ρi,t=πθ/πold\rho_{i,t} = \pi_\theta/\pi_{\text{old}}, A^\hat A), the report’s Eqs. (1)–(2) read as follows. The report writes the TIS cap as ρ\rho; here we write cc so it does not clash with the ratio.

J(θ)=1∑i=1G∣yi∣∑i=1G∑t=1∣yi∣min⁡ ⁣(πold(yi,t∣x,yi,<t)πvllm(yi,t∣x,yi,<t),  c)⏟truncated ISmin⁡ ⁣(ρi,tA^i,  clip⁡(ρi,t, 1−εlow, 1+εhigh)A^i)J(\theta) = \frac{1}{\sum_{i=1}^{G}|y_i|}\sum_{i=1}^{G}\sum_{t=1}^{|y_i|} \underbrace{\min\!\left(\frac{\pi_{\text{old}}(y_{i,t}\mid x, y_{i,<t})}{\pi_{\text{vllm}}(y_{i,t}\mid x, y_{i,<t})},\; c\right)}_{\text{truncated IS}} \min\!\Big(\rho_{i,t}\hat A_{i},\; \operatorname{clip}\big(\rho_{i,t},\, 1-\varepsilon_{\text{low}},\, 1+\varepsilon_{\text{high}}\big)\hat A_{i}\Big)A^i=r(x,yi)−mean⁡({r(x,yj)}j=1G)\hat A_{i} = r(x, y_i) - \operatorname{mean}\big(\{r(x, y_j)\}_{j=1}^{G}\big)

Here yi∼πvllm(⋅∣x;θold)y_i \sim \pi_{\text{vllm}}(\cdot\mid x;\theta_{\text{old}}) is a response sampled by the inference engine (vLLM), and πold\pi_{\text{old}} is the probability recomputed by the training engine with the same weights θold\theta_{\text{old}}. Compared with vanilla GRPO, there are seven differences (§4.4.1).

ChangeSourceWhat it does
drop zero-gradient groupsDAPOdiscards groups whose rewards are all equal, so A^=0\hat A = 0
active samplingOlmoRL (newly proposed)keeps pulling from the asynchronous queue to refill what was discarded
token-level lossDAPOdivides by the total token count of the batch instead of averaging per response
no KL termDAPO, Dr. GRPO, etc.no KL penalty pulling toward πref\pi_{\text{ref}}
clip-higherDAPOεhigh=0.272>εlow=0.2\varepsilon_{\text{high}} = 0.272 > \varepsilon_{\text{low}} = 0.2
truncated ISYao et al.corrects the probability gap between the inference and training engines with min⁡(πold/πvllm,c)\min(\pi_{\text{old}}/\pi_{\text{vllm}}, c), c=2c = 2
no std normalisationDr. GRPOA^\hat A is not divided by the group std

(Values from Table 49. TIS was used for 32B Think and RL-Zero, but not in the final 7B Think run.)

Rewards come from a different verifier in each domain (§4.4.1). Math compares against the answer with SymPy for 0/1; code runs test cases (both the fraction passed and 1 if all pass were tried); IF gives 1 if every constraint is satisfied; chat uses an LM judge (Qwen3 32B with thinking off) that either compares against a reference answer or gives a [0,1][0,1] score without one. Strictly speaking, then, this is RL with a mix of “verifiable” and “LM-judge” rewards.

Hyperparameter7B Think32B Think7B RL-Zero
Learning rate (constant)1×10−61\times10^{-6}2×10−62\times10^{-6}1×10−61\times10^{-6}
Steps1,400750 (2,300 for 3.1)2,000
Prompts per batch × group size64 × 8128 × 832 × 8
Max response length32,76832,76816,384
Learner / actor GPUs16 / 5664 / 1608 / 64
Max asynchrony188

(Table 49. The 3.1 step count is from a footnote in §4.1.)

Key methods in depth

1. Dissecting OlmoRL’s token loss

Let us work out the gradient a single token receives from the objective. A^i\hat A_i and the TIS weight wi,t=min⁡(πold/πvllm,c)w_{i,t} = \min(\pi_{\text{old}}/\pi_{\text{vllm}}, c) do not depend on θ\theta. Since ρi,t=exp⁡(log⁡πθ−log⁡πold)\rho_{i,t} = \exp(\log\pi_\theta - \log\pi_{\text{old}}), we have ∂ρi,t/∂log⁡πθ(yi,t)=ρi,t\partial \rho_{i,t}/\partial \log\pi_\theta(y_{i,t}) = \rho_{i,t}. If the min picks the unclipped term, that term’s derivative remains; if it picks the clipped term, which is constant, the derivative is 0. Altogether,

∂J∂log⁡πθ(yi,t)=1∑j∣yj∣⋅{wi,t ρi,t A^iA^i>0, ρi,t≤1+εhigh or A^i<0, ρi,t≥1−εlow0otherwise\frac{\partial J}{\partial \log \pi_\theta(y_{i,t})} = \frac{1}{\sum_j |y_j|}\cdot \begin{cases} w_{i,t}\,\rho_{i,t}\,\hat A_i & \hat A_i > 0,\ \rho_{i,t} \le 1+\varepsilon_{\text{high}} \ \text{or}\ \hat A_i \lt 0,\ \rho_{i,t} \ge 1-\varepsilon_{\text{low}} \\ 0 & \text{otherwise} \end{cases}

Three things can be read off this.

  • Token-level normalisation: there is a single denominator ∑j∣yj∣\sum_j |y_j|, so every token is treated with the same weight. With per-response averaging (1G∣yi∣\frac{1}{G|y_i|}), each token of a long wrong answer is penalised less. You saw that bias directly in the GRPO lesson’s figure.
  • Clip-higher: when A^>0\hat A > 0, the gradient switches off at 1+εhigh1+\varepsilon_{\text{high}}. Widening this beyond 1+εlow1+\varepsilon_{\text{low}} lets a good token that had low probability be raised further in a single update, which delays entropy collapse. In log space, log⁡0.8=−0.223\log 0.8 = -0.223 and log⁡1.272=+0.241\log 1.272 = +0.241, so this setting is almost symmetric in terms of the log-ratio.
  • TIS: vLLM and the training engine differ in kernels and precision, so their probabilities differ slightly even with the same weights. Since y∼πvllmy \sim \pi_{\text{vllm}} while the loss is written in terms of πold\pi_{\text{old}}, multiplying by the ratio πold/πvllm\pi_{\text{old}}/\pi_{\text{vllm}} makes the expectation correct. That ratio occasionally becomes very large, so it is truncated at cc to reduce variance, accepting a little bias in return. The whole problem is covered in the training–inference mismatch lesson.

왜 이것이 flat 필터보다 나은지는 그림에서 바로 보인다. 같은 수율을 flat 필터로 채우려면 “상위 q%를 (Z/X)/q(Z/X)/q번” 반복해야 한다. q를 작게 잡으면 반복이 M을 넘고, 크게 잡으면 품질이 낮은 데이터가 높은 데이터와 같은 횟수로 들어간다. 연속 곡선은 그 사이를 매끄럽게 나눈다. 보고서의 1B 모델·100B 토큰 실험(4.51T 실행의 반복 정도를 흉내 냄)에서 flat 필터 네 가지(상위 50/30/10/5%)보다 QA·Math·Code Easy BPB가 모두 낮았다(Table 39, 아래 실험 결과).

아래 코드는 부록 A.2.4의 탐색 문제를 그대로 푼다. (p,λ)(p,\lambda) 격자를 돌며 CC를 수율 조건으로 정하고, 최상위 버킷이 MM 이하인 해를 고른다. 보고서는 feasible 해가 여러 개일 때 무엇을 고르는지 밝히지 않으므로 여기서는 “최상위 버킷이 MM에 가장 가까운 해”를 골랐다.

NumPy 품질 기반 upsampling 곡선 찾기 (truncated power-exponential)
import numpy as np

# 한 WebOrganizer 토픽 = 품질 vigintile 20개 버킷. 버킷마다 토큰 수 X_q (여기선 균등하다고 가정)
Q = 20
X_q = np.full(Q, 1.0 / Q)        # 토픽 전체 X = 1로 정규화
a, M = 0.40, 7.0                 # 보고서 A.2.4: 하위 40% 버림, 최대 반복 7배
xs = np.linspace(0, 1, Q * 200 + 1)   # 버킷 경계가 격자점에 오도록

def bucket_rates(target, p, lam):
    """f(x) = C (x-a)^p e^{λ(x-a)} (x ≥ a). ∫_0^1 f = Z/X 가 되게 C를 정하고 버킷별 평균 반복률을 낸다."""
    d = np.clip(xs - a, 0.0, None)
    g = np.where(xs < a, 0.0, d**p * np.exp(lam * d))
    cum = np.concatenate([[0.0], np.cumsum((g[1:] + g[:-1]) / 2 * np.diff(xs))])  # 누적 사다리꼴 적분
    C = target / cum[-1]
    edge = cum[::200]                        # 버킷 경계에서의 누적 적분
    return C, C * np.diff(edge) * Q          # 버킷 평균 = 구간 적분 / 폭(1/Q)

def search(target, ps=np.linspace(0.5, 3, 6), lams=np.linspace(0, 12, 25)):
    """수율 = 목표, 최상위 버킷 ≤ M, λ ≥ 0 을 만족하는 (p, λ, C)를 격자에서 찾는다."""
    best = None
    for p in ps:
        for lam in lams:
            C, r = bucket_rates(target, p, lam)
            if r[-1] <= M and (best is None or r[-1] > best[3][-1]):
                best = (p, lam, C, r)
    return best

for target in [0.6, 1.0, 2.0]:
    p, lam, C, r = search(target)
    print(f"목표 Z/X={target:.1f}: p={p:.1f}, λ={lam:.1f}, C={C:.3g}")
    print("  버킷 반복률(하위→상위):", np.round(r, 2))
    print(f"  검산: Σ Z_q = {(r * X_q).sum():.4f} (목표 {target}),  최상위 {r[-1]:.2f} ≤ M,  "
          f"버린 비율 {(r == 0).mean():.0%}")
    flat = [f"상위 {q:.0%} → {target / q:.1f}배{' (M 초과)' if target / q > M else ''}" for q in (0.5, 0.25, 0.1)]
    print("  같은 수율의 flat 필터:", ", ".join(flat))
 

수율이 작을 때(0.6)는 λ\lambda가 커서 반복이 최상위 몇 버킷에 몰리고, 수율이 클 때(2.0)는 거의 선형(p=1p = 1)으로 넓게 퍼진다. 같은 수율을 flat 필터로 채우면 수율 1.0에서는 상위 10%, 수율 2.0에서는 상위 25%만 잡아도 반복이 M=7M = 7을 넘는다.

Midtraining: Dolma 3 Dolmino Mix

Base 모델을 사후학습에 맞게 다듬는 100B 토큰 단계다. 2.19T 토큰 풀에서 뽑은 혼합을 Table 5에서 범주별로 합치면 다음과 같다.

범주100B 혼합에서 토큰대표 출처
웹 (Common Crawl 고품질 + STEM crawl)27.4BCC HQ subset 22.4B
코드20.0BStack-Edu FIM 10B, CraneCode(합성 Python) 10B
수학 (합성)19.2BDolmino Math 10.7B, CraneMath 5.62B
QA (합성)13.9BReddit→Flashcards 5.9B, Nemotron Synth QA 5B
Thinking (합성 추론 trace)8.3BQwQ·Llama Nemotron·OpenThoughts2·Gemini trace 등
Instruction6.1BDolmino 1 Flan 5B, Tülu 3 SFT 1.1B
PDF (olmOCR 고품질)5.0B

(범주 합은 보고서 Table 5의 행을 더한 값이다.)

사전학습과 달리 합성 데이터와 instruction·thinking 데이터를 의도적으로 넣는다. 사후학습 단계가 쓸 형식을 미리 익혀 두기 위해서다. 방법론은 둘로 나뉜다. 데이터셋 하나를 5B 토큰 뽑아 웹 5B와 섞어 10B로 anneal하고 웹만 10B로 anneal한 기준과 비교하는 microanneal(OLMo 2에서 도입)로 후보를 빠르게 거르고, 통과한 것들을 합친 100B 혼합을 실제로 끝까지 학습한 뒤 짧게 SFT까지 해 보는 integration test로 확인한다(§3.5.1). 다섯 라운드를 돌았다. 32B는 순서 seed만 다른 midtraining을 두 번 해서 가중치를 평균했다(Table 35).

Decontamination은 midtraining과 long-context 데이터에 집중했다. 암기가 학습 끝 무렵에 가장 강하게 일어난다는 근거에서다(§3.5.3). 새 도구 decon은 문서에서 일정 간격으로 n-gram을 뽑아 평가셋 n-gram과 대조하고(탐지), 걸리면 양옆으로 넓혀 가며 오염된 n-gram이 이어지는 길이를 세어(확장) 임계값을 넘으면 문서를 지운다.

Long-context: Dolma 3 Longmino Mix

olmOCR로 변환한 과학 PDF 중 8K 토큰이 넘는 문서가 22.3M개(640B 토큰), 32K가 넘는 문서가 4.5M개(380B 토큰)다. 보고서는 이것을 공개된 것 중 가장 큰 long-context 연구용 모음이라고 한다. 긴 문서 34%와 Dolmino의 짧은 고품질 데이터 66%를 섞어 7B는 50B, 32B는 100B 토큰을 더 학습한다(§3.6). 합성 과제(CWE, REX)로 늘린 긴 문서도 섞는다(Table 11).

사후학습 데이터: Dolci

단계규모만든 방법
Think SFT프롬프트 약 2.27M개 (Table 17)수학(OpenThoughts3 75만 등)·코드(Python Algorithms 47만 등)·채팅·IF·안전·다국어. 추론 trace는 QwQ-32B와 DeepSeek R1로 생성, 코드·IF는 검증해 거름
Think DPO7B 150K, 32B 200K 쌍 (Table 48)chosen = Qwen3 32B(thinking), rejected = Qwen3 0.6B(thinking)
Think RL104,869 프롬프트 (Table 20)수학 30,186, 코드 23,110, IF 30,186, 일반 채팅 21,387

(RL 범주 합은 Table 20의 행을 더한 값이다.)

RL 프롬프트는 학습을 시작할 체크포인트로 8번씩 미리 풀어 보고, 정답률이 62.5%(8개 중 5개)를 넘는 쉬운 문제를 지운다(offline difficulty filtering, §4.4.2). 7B에서는 이 offline 필터를, 32B에서는 시간 제약 때문에 7B의 필터 결과를 재사용하면서 뒤에서 볼 active sampling에 기댔다. 모든 사후학습 데이터는 Tülu 3 절차대로 8-gram, 50% overlap 기준으로 평가셋과 대조해 지웠다.

학습

Base 모델

7B32B
Pretraining LRpeak 3×10−43\times10^{-4}, 수정 cosine, 2000 step warmuppeak 6×10−46\times10^{-4}, 5.93T 기준 cosine을 5.5T에서 중단
Pretraining batch512 × 8,192 = 4.19M 토큰1,024 × 8,192 = 8.39M 토큰
Midtraining100B, peak 2.074×10−42.074\times10^{-4} → 0 선형100B를 두 번(다른 seed) 후 가중치 평균
Long-context50B, 65,536 길이100B, 65,536 길이
처리량7,700 TPS/GPU, MFU 약 43%1,960 TPS/GPU, MFU 약 41%

(Table 35, §3.2. 전 구간 BF16.)

32B 사전학습은 512 GPU로 9.5일, 이어서 1024 GPU로 35일이 걸렸고, midtraining과 long-context는 각각 1.5일, 1일 정도였다(§2.4). 사후학습 전체는 약 9일이다. 학습 중 32B의 성능은 1,000 step 간격 체크포인트 4개의 가중치를 평균해서 봤다. 32B는 학습률을 매번 0으로 anneal해 볼 수 없어서다.

SFT

Dolci Think SFT를 2 epoch 학습한다. 7B는 45.4B 토큰, 32B는 45.2B 토큰, 최대 길이 32K, packing을 쓴다(Table 47). 학습 프레임워크를 Open Instruct에서 OLMo-core로 바꿔 처리량이 8배가 되었다. 32B는 학습률 1×10−41\times10^{-4}와 5×10−55\times10^{-5}로 학습한 두 체크포인트를 선형으로 섞은(model soup) 것을 최종으로 썼다. 사후학습 전반은 SFT 레슨의 틀과 같다.

DPO: 길이 정규화 + delta learning

DPO 손실은 DPO 레슨의 식에서 log-ratio를 응답 길이로 나눈 길이 정규화 형태다(부록 A.6.2, Tülu 3와 같은 꼴).

LDPO(θ)=− E(x,yc,yr)[log⁡σ ⁣(β∣yc∣log⁡πθ(yc∣x)πref(yc∣x)−β∣yr∣log⁡πθ(yr∣x)πref(yr∣x))]\mathcal{L}_{\text{DPO}}(\theta) = -\,\mathbb{E}_{(x, y_c, y_r)}\left[\log \sigma\!\left(\frac{\beta}{|y_c|}\log\frac{\pi_\theta(y_c\mid x)}{\pi_{\text{ref}}(y_c\mid x)} - \frac{\beta}{|y_r|}\log\frac{\pi_\theta(y_r\mid x)}{\pi_{\text{ref}}(y_r\mid x)}\right)\right]

β=5\beta = 5, 1 epoch, 학습률은 7B 8×10−88\times10^{-8}, 32B 7×10−87\times10^{-8}로 매우 작다(Table 48). 길이로 나누므로 β\beta는 시퀀스 전체가 아니라 토큰당 평균 log-ratio에 곱해진다. 수천 토큰짜리 추론 trace를 시퀀스 합으로 쓰면 margin이 쉽게 커지는데, 평균으로 바꾸면 긴 trace와 짧은 trace의 margin 크기가 비슷해진다.

핵심은 데이터 쪽이다. 보고서는 Qwen3 32B(thinking)의 응답으로 SFT를 더 하면 모든 평가가 떨어진다는 것을 먼저 보인다(Table 21). 모델이 이미 Dolci Think SFT에서 그보다 좋은 데이터를 봤으니 더는 모방할 대상이 아닌 것이다. 그런데 같은 응답을 chosen으로, 훨씬 약한 Qwen3 0.6B의 응답을 rejected로 짝지어 DPO를 하면 크게 오른다. Delta learning 가설은 선호 데이터의 품질이 각 응답의 절대 품질이 아니라 둘의 차이에 달려 있다는 것이다. chosen이 학습 대상보다 약해도, rejected가 더 약하면 “어느 방향으로 움직일지”는 분명하다. rejected 응답은 일부러 필터링하지 않는다. 틀린 rejected도 유용한 대조가 되기 때문이다(§4.3.1).

RLVR: OlmoRL

마지막 단계는 수학·코드·IF·채팅을 섞은 RL이다. 사이트 표기(ρi,t=πθ/πold\rho_{i,t} = \pi_\theta/\pi_{\text{old}}, A^\hat A)로 보고서의 식 (1)–(2)를 옮기면 다음과 같다. 보고서는 TIS 상한을 ρ\rho라고 쓰지만 여기서는 ratio와 겹치지 않게 cc로 쓴다.

J(θ)=1∑i=1G∣yi∣∑i=1G∑t=1∣yi∣min⁡ ⁣(πold(yi,t∣x,yi,<t)πvllm(yi,t∣x,yi,<t),  c)⏟truncated ISmin⁡ ⁣(ρi,tA^i,  clip⁡(ρi,t, 1−εlow, 1+εhigh)A^i)J(\theta) = \frac{1}{\sum_{i=1}^{G}|y_i|}\sum_{i=1}^{G}\sum_{t=1}^{|y_i|} \underbrace{\min\!\left(\frac{\pi_{\text{old}}(y_{i,t}\mid x, y_{i,<t})}{\pi_{\text{vllm}}(y_{i,t}\mid x, y_{i,<t})},\; c\right)}_{\text{truncated IS}} \min\!\Big(\rho_{i,t}\hat A_{i},\; \operatorname{clip}\big(\rho_{i,t},\, 1-\varepsilon_{\text{low}},\, 1+\varepsilon_{\text{high}}\big)\hat A_{i}\Big)A^i=r(x,yi)−mean⁡({r(x,yj)}j=1G)\hat A_{i} = r(x, y_i) - \operatorname{mean}\big(\{r(x, y_j)\}_{j=1}^{G}\big)

여기서 yi∼πvllm(⋅∣x;θold)y_i \sim \pi_{\text{vllm}}(\cdot\mid x;\theta_{\text{old}})는 추론 엔진(vLLM)이 샘플링한 응답이고, πold\pi_{\text{old}}는 같은 가중치 θold\theta_{\text{old}}로 학습 엔진이 다시 계산한 확률이다. 바닐라 GRPO와 비교한 차이는 일곱 가지다(§4.4.1).

수정출처하는 일
zero-gradient 그룹 제거DAPO보상이 모두 같아 A^=0\hat A = 0인 그룹을 버린다
active samplingOlmoRL (새로 제안)버린 만큼 비동기 큐에서 계속 꺼내 batch를 채운다
token-level lossDAPO응답별 평균 대신 batch 전체 토큰 수로 나눈다
KL 항 제거DAPO, Dr. GRPO 등πref\pi_{\text{ref}}로 당기는 KL 페널티가 없다
clip-higherDAPOεhigh=0.272>εlow=0.2\varepsilon_{\text{high}} = 0.272 > \varepsilon_{\text{low}} = 0.2
truncated ISYao et al.추론·학습 엔진의 확률 차이를 min⁡(πold/πvllm,c)\min(\pi_{\text{old}}/\pi_{\text{vllm}}, c)로 보정, c=2c = 2
std 정규화 제거Dr. GRPOA^\hat A를 그룹 std로 나누지 않는다

(값은 Table 49. TIS는 32B Think와 RL-Zero에서 쓰고 7B Think 최종 run에는 없었다.)

보상은 영역마다 다른 검증기가 준다(§4.4.1). 수학은 SymPy로 정답과 비교해 0/1, 코드는 테스트 케이스 실행(통과 비율 또는 전부 통과 시 1, 둘 다 실험), IF는 제약을 모두 만족하면 1, 채팅은 LM judge(thinking을 끈 Qwen3 32B)가 참조 답과 비교하거나 참조 없이 [0,1][0,1] 점수를 준다. 그러니 엄밀히는 “verifiable”과 “LM-judge” 보상이 섞인 RL이다.

하이퍼파라미터7B Think32B Think7B RL-Zero
학습률 (constant)1×10−61\times10^{-6}2×10−62\times10^{-6}1×10−61\times10^{-6}
step 수1,400750 (3.1은 2,300)2,000
batch당 프롬프트 × 그룹 크기64 × 8128 × 832 × 8
최대 응답 길이32,76832,76816,384
learner / actor GPU16 / 5664 / 1608 / 64
최대 비동기 정도188

(Table 49. 3.1의 step 수는 §4.1 각주.)

핵심 method 깊게 보기

1. OlmoRL의 토큰 손실을 해부하기

목적함수에서 토큰 하나가 받는 gradient를 구해 보자. A^i\hat A_i와 TIS 가중치 wi,t=min⁡(πold/πvllm,c)w_{i,t} = \min(\pi_{\text{old}}/\pi_{\text{vllm}}, c)는 θ\theta에 의존하지 않는다. ρi,t=exp⁡(log⁡πθ−log⁡πold)\rho_{i,t} = \exp(\log\pi_\theta - \log\pi_{\text{old}})이므로 ∂ρi,t/∂log⁡πθ(yi,t)=ρi,t\partial \rho_{i,t}/\partial \log\pi_\theta(y_{i,t}) = \rho_{i,t}다. min 안의 두 항 중 clip 안 된 항이 선택되면 그 항의 미분이 남고, clip된 항이 선택되면 상수이므로 0이다. 정리하면

∂J∂log⁡πθ(yi,t)=1∑j∣yj∣⋅{wi,t ρi,t A^iA^i>0, ρi,t≤1+εhigh 또는 A^i<0, ρi,t≥1−εlow0그 밖\frac{\partial J}{\partial \log \pi_\theta(y_{i,t})} = \frac{1}{\sum_j |y_j|}\cdot \begin{cases} w_{i,t}\,\rho_{i,t}\,\hat A_i & \hat A_i > 0,\ \rho_{i,t} \le 1+\varepsilon_{\text{high}} \ \text{또는}\ \hat A_i \lt 0,\ \rho_{i,t} \ge 1-\varepsilon_{\text{low}} \\ 0 & \text{그 밖} \end{cases}

세 가지가 여기서 읽힌다.

  • token-level 정규화: 분모가 ∑j∣yj∣\sum_j |y_j| 하나라서 모든 토큰이 같은 크기로 다뤄진다. 응답별 평균(1G∣yi∣\frac{1}{G|y_i|})을 쓰면 긴 오답의 토큰 하나하나가 덜 벌을 받는다. 그 편향은 GRPO 레슨의 그림에서 직접 봤다.
  • clip-higher: A^>0\hat A > 0일 때 gradient가 꺼지는 경계가 1+εhigh1+\varepsilon_{\text{high}}다. 이것을 1+εlow1+\varepsilon_{\text{low}}보다 넓히면 확률이 낮던 좋은 토큰을 한 번의 업데이트에서 더 올릴 수 있어 entropy 붕괴를 늦춘다. log 공간에서 보면 log⁡0.8=−0.223\log 0.8 = -0.223, log⁡1.272=+0.241\log 1.272 = +0.241이라 이 설정은 log-ratio 기준으로 거의 대칭이다.
  • TIS: vLLM과 학습 엔진은 커널·정밀도가 달라 같은 가중치로도 확률이 조금 다르다. y∼πvllmy \sim \pi_{\text{vllm}}인데 손실은 πold\pi_{\text{old}} 기준이므로 비율 πold/πvllm\pi_{\text{old}}/\pi_{\text{vllm}}을 곱하면 기대값이 맞는다. 그 비율이 가끔 아주 커지므로 cc에서 잘라 분산을 줄이고, 대가로 약간의 편향을 받아들인다. 이 문제 전체는 학습–추론 불일치 레슨에서 다룬다.
trust region – log 공간 폭 (아래/위)log-space width (low/high) – cap에 걸린 토큰tokens capped – E[w] (1이면 무편향1 = unbiased) – Var[w] 원본→capraw→capped –
Left: the gradient coefficient a single token receives (∂J/∂log πθ) as a function of the ratio ρt = πθ/πold. Blue is A>0, red is A<0; the lightly shaded regions are where min() picks the clipped term and the gradient is 0. Setting εhigh above εlow (0.272 vs 0.2 in the report) lets a good token that had low probability be pushed further up. Right: the distribution of the log-prob difference Δ that vLLM and the training engine compute for the same token (plotted as a histogram of w = eΔ). Increase σ and the tail grows longer; TIS cuts it at c, reducing variance at the cost of pulling E[w] below 1 (bias). 왼쪽: ratio ρt = πθ/πold에 따라 토큰 하나가 받는 gradient 계수(∂J/∂log πθ). 파랑은 A>0, 빨강은 A<0이고, 옅게 칠한 영역은 min()이 clip된 항을 골라 gradient가 0이 되는 구간이다. εhigh를 εlow보다 크게(보고서 0.272 vs 0.2) 두면 확률이 낮던 좋은 토큰을 더 멀리 올릴 수 있다. 오른쪽: 같은 토큰을 vLLM과 학습 엔진이 계산한 log-prob 차이 Δ의 분포(그림은 w = eΔ의 히스토그램). σ를 키우면 꼬리가 길어지고 TIS가 c에서 잘라 분산을 줄이는 대신 E[w]가 1 아래로 내려간다(편향).

The σ in the right-hand panel is exaggerated (token log-prob differences between engines are usually much smaller). Below σ = 0.1 almost no token hits the cap, and TIS is effectively multiplication by 1. TIS starts to matter when σ grows: when numerical differences accumulate over long generations, or when the degree of asynchrony grows.

Why the std normalisation was dropped. In GRPO’s A^i=(ri−rˉ)/std⁡(r)\hat A_i = (r_i - \bar r)/\operatorname{std}(r) with binary rewards, std⁡=p(1−p)\operatorname{std} = \sqrt{p(1-p)}. A hard problem where only 1 of 8 is right, or an easy one where 7 of 8 are right, has a small std and therefore a large advantage. In other words, GRPO weights prompts at both extremes of difficulty more heavily (the difficulty bias pointed out by Dr. GRPO). OlmoRL removes this weighting by subtracting only the mean.

The code below transcribes Eqs. (1)–(2) directly, checks the analytic gradient against finite differences, and then shows in numbers the effect of the normalisation choice and of std normalisation.

NumPy OlmoRL objective: token-level, clip-higher, TIS, no-std advantage
import numpy as np
rng = np.random.default_rng(0)

EPS_LOW, EPS_HIGH, CAP, G = 0.2, 0.272, 2.0, 8     # report Table 49 (32B Think: TIS cap 2.0)

def olmorl_objective(logp_new, logp_old, logp_vllm, rewards, lengths):
    """Report Eqs. (1)-(2). Arrays are 1-D: the tokens of all responses i concatenated (split by lengths).
    Returns: J(θ), per-token ∂J/∂log πθ, ratio ρ, TIS weight w."""
    adv_seq = rewards - rewards.mean()                      # Eq. (2): no division by std
    A = np.repeat(adv_seq, lengths)                         # every token of a response gets the same Â_i
    rho = np.exp(logp_new - logp_old)                       # ρ_i,t = πθ / πold
    w = np.minimum(np.exp(logp_old - logp_vllm), CAP)       # truncated IS: min(πold/πvllm, c)
    unclipped = rho * A
    clipped = np.clip(rho, 1 - EPS_LOW, 1 + EPS_HIGH) * A
    T = lengths.sum()                                       # token-level normalisation: total token count
    J = (w * np.minimum(unclipped, clipped)).sum() / T
    active = unclipped <= clipped                           # gradient only where min picks the unclipped term
    grad = np.where(active, w * rho * A, 0.0) / T           # d(ρÂ)/dlog πθ = ρÂ
    return J, grad, rho, w

# One group: 3 of 8 correct, lengths vary
rewards = np.array([1, 0, 0, 1, 0, 0, 1, 0], float)
lengths = rng.integers(50, 400, size=G).astype(np.intp)   # for np.repeat on Pyodide (wasm32)
T = lengths.sum()
logp_old = np.log(rng.uniform(0.05, 0.95, T))
logp_vllm = logp_old + rng.normal(0, 0.05, T)              # small numerical gap between engines
logp_new = logp_old + rng.normal(0, 0.15, T)               # policy after a few update steps
J, grad, rho, w = olmorl_objective(logp_new, logp_old, logp_vllm, rewards, lengths)

# 1) check the analytic gradient against finite differences
k = np.argmax(np.abs(grad))
h = 1e-6
lp = logp_new.copy(); lp[k] += h
J2, *_ = olmorl_objective(lp, logp_old, logp_vllm, rewards, lengths)
print(f"J = {J:.5f},  token {k}: analytic {grad[k]:.3e} vs numeric {(J2 - J) / h:.3e}")

# 2) fraction of tokens hit by the clip or the cap
A = np.repeat(rewards - rewards.mean(), lengths)
print(f"A>0 tokens with ρ>1+ε_high (zero gradient): {np.mean(rho[A > 0] > 1 + EPS_HIGH):.1%},  "
      f"A<0 tokens with ρ<1-ε_low: {np.mean(rho[A < 0] < 1 - EPS_LOW):.1%},  TIS cap: {np.mean(w >= CAP):.1%}")

# 3) total gradient mass per response: per-response mean (original GRPO) vs token-level (OlmoRL)
seq_mean = (rewards - rewards.mean()) / G
tok_level = (rewards - rewards.mean()) * lengths / T
print("total weight per response  seq-mean   :", np.round(seq_mean, 3))
print("                           token-level:", np.round(tok_level, 3), " lengths:", lengths)

# 4) std normalisation: advantage of a correct response when n/8 are correct
for n_right in [1, 4, 7]:
    rw = np.array([1] * n_right + [0] * (G - n_right), float)
    a_no_std = rw - rw.mean()
    a_grpo = a_no_std / (rw.std() + 1e-6)
    print(f"{n_right}/8 correct: Â of a correct response  no-std(OlmoRL)={a_no_std[0]:+.3f}   GRPO std-norm={a_grpo[0]:+.3f}")
 

The analytic gradient matches the finite difference. Under token-level normalisation, a longer response gets a larger total weight (every token has the same weight); under per-response averaging, every response gets the same weight regardless of length. In 4), GRPO inflates the advantage on 1/8 and 7/8 problems by dividing by the std (2.6, 0.38), while no-std leaves it at 1−p1-p.

Active sampling. Dropping zero-gradient groups shrinks the batch. As training progresses and problems get easier, “all 8 correct” groups become more common, the batch shrinks further, and the magnitude and variance of the actual gradient fluctuate from step to step. DAPO’s dynamic sampling draws 3× in advance. OlmoRL is fully asynchronous, so it keeps pulling from the result queue and re-queuing prompts until the target number of groups with signal is reached (§4.4.3). The simulation below compares the three approaches while the pass-rate distribution gradually shifts to the right. The pass-rate distribution is an assumption for illustration.

NumPy Zero-gradient filtering vs DAPO 3x oversampling vs active sampling
import numpy as np
rng = np.random.default_rng(1)
G, B = 8, 64                                   # group size, prompts wanted per step (7B Think: 64)

def group_has_signal(p):
    """Draw G samples from a prompt with pass rate p: are the rewards not all equal (nonzero gradient)?"""
    k = rng.binomial(G, p)
    return 0 < k < G

def pass_rates(n, step, total):
    """Problems get easier as training goes on (pass-rate distribution shifts right). Illustrative assumption."""
    shift = 6.0 * step / total
    return rng.beta(1.0 + shift, 1.5, size=n)

steps = 300
log = {"filter": [], "dapo3x": [], "active": []}
gen = {"filter": 0, "dapo3x": 0, "active": 0}
for s in range(steps):
    # (a) just drop zero-gradient groups: the batch shrinks
    ok = [group_has_signal(p) for p in pass_rates(B, s, steps)]
    log["filter"].append(sum(ok)); gen["filter"] += B
    # (b) DAPO-style dynamic sampling: draw 3x up front and fill up to B
    ok = [group_has_signal(p) for p in pass_rates(3 * B, s, steps)]
    log["dapo3x"].append(min(B, sum(ok))); gen["dapo3x"] += 3 * B
    # (c) OlmoRL active sampling: keep pulling from the async queue until B groups with signal
    n_ok = n_gen = 0
    while n_ok < B:
        n_gen += 1
        n_ok += group_has_signal(pass_rates(1, s, steps)[0])
    log["active"].append(n_ok); gen["active"] += n_gen

for k in log:
    v = np.array(log[k])
    print(f"{k:7s}: mean effective batch {v.mean():5.1f} (first 50 steps {v[:50].mean():5.1f} → last 50 steps {v[-50:].mean():5.1f}),"
          f"  groups generated {gen[k]:6d},  generated per effective group {gen[k] / v.sum():.2f}")
 

With filtering alone, the batch shrinks later in training. 3× oversampling keeps the batch full but throws away 2/3 of the generations. Active sampling keeps the batch full while generating only as much as needed. The report shows that in an RL-Zero math run active sampling keeps the batch consistently full and stabilises training (Figure 26).

PyTorch PyTorch: OlmoRL loss (batched) 로컬에서 실행run locally (pip install torch)
import torch

def olmorl_loss(logp_new, logp_old, logp_vllm, rewards, mask,
                eps_low=0.2, eps_high=0.272, tis_cap=2.0):
    """
    logp_new : (P, G, T) token log-probs of the current policy πθ (with grad)
    logp_old : (P, G, T) log-probs of πold recomputed by the training engine (no grad)
    logp_vllm: (P, G, T) log-probs returned by vLLM at rollout time (no grad)
    rewards  : (P, G) verifier / LM-judge rewards,  mask: (P, G, T) 1 for response tokens, 0 for padding
    P = number of prompts, G = group size
    """
    # drop zero-gradient groups (active sampling happens outside, in the data loader / queue)
    keep = rewards.std(dim=1) > 0                                  # (P,)
    logp_new, logp_old, logp_vllm = logp_new[keep], logp_old[keep], logp_vllm[keep]
    rewards, mask = rewards[keep], mask[keep]

    adv = (rewards - rewards.mean(dim=1, keepdim=True)).unsqueeze(-1)   # no std, (P', G, 1)
    ratio = torch.exp(logp_new - logp_old.detach())
    tis = torch.exp(logp_old - logp_vllm).clamp(max=tis_cap).detach()   # truncated IS
    surr1 = ratio * adv
    surr2 = ratio.clamp(1 - eps_low, 1 + eps_high) * adv                # clip-higher
    per_token = tis * torch.minimum(surr1, surr2)
    # token-level: divide once by the total number of response tokens in the batch. No KL term.
    return -(per_token * mask).sum() / mask.sum().clamp(min=1)
 

2. Asynchronous RL infrastructure: generation is everything

OlmoRL 32B Think used 8 H100 nodes for training and 20 for inference. The learner spends 75% of its time waiting for data. For 7B it was 7 inference nodes and 2 training nodes, spending about 14× as much compute on inference as on training (§4.4.3). In one representative run a step took 1,000 seconds on average, of which training was 125 seconds. Since generation and training overlap, the bottleneck is entirely generation. That is why all of the report’s infrastructure improvements are on the generation side.

  • Fully asynchronous (off-policy) design. The learner puts prompts into a queue; actors, each running its own vLLM, take them, generate and score, and put the results into a result queue. The learner takes from the result queue and trains (Figure 17a). The maximum asynchrony is 8 steps for 32B (Table 49).
  • Continuous batching. Static batching accepts the next batch only after every sequence in the current one has finished. The wasted fraction is (Lmax⁡−Lˉ)/Lmax⁡(L_{\max} - \bar L)/L_{\max}. With 32K generation and an average length of 14,628, up to 54% could be wasted. Continuous batching refills a finished slot immediately.
  • Inflight updates. Instead of pausing generation and discarding the KV cache when syncing weights, the weights are swapped during generation and the KV cache is kept as is (PipelineRL). The beginning and end of a sequence can then come from different policies, but the report says it was up to 4× faster on the same resources with no loss in accuracy.

오른쪽 그림에서 σ는 실제보다 과장된 값이다(엔진 간 토큰 log-prob 차이는 보통 훨씬 작다). σ를 0.1 아래로 내리면 cap에 걸리는 토큰이 거의 없고 TIS는 사실상 1을 곱하는 연산이 된다. σ가 커지는 상황, 즉 긴 생성에서 수치 차이가 누적되거나 비동기 정도가 커질 때 TIS가 의미를 갖는다.

std 정규화를 뺀 이유. GRPO의 A^i=(ri−rˉ)/std⁡(r)\hat A_i = (r_i - \bar r)/\operatorname{std}(r)에서 이진 보상이면 std⁡=p(1−p)\operatorname{std} = \sqrt{p(1-p)}다. 8개 중 1개만 맞히는 어려운 문제나 7개를 맞히는 쉬운 문제는 std가 작아 advantage가 커진다. 즉 GRPO는 난이도 양 끝의 프롬프트를 더 크게 가중한다(Dr. GRPO가 지적한 difficulty bias). OlmoRL은 평균만 빼서 이 가중을 없앴다.

아래 코드는 식 (1)–(2)를 그대로 옮기고, 해석적 gradient를 수치 미분으로 검산한 뒤, 정규화 방식과 std 정규화의 효과를 숫자로 보여 준다.

NumPy OlmoRL 목적함수: token-level, clip-higher, TIS, no-std advantage
import numpy as np
rng = np.random.default_rng(0)

EPS_LOW, EPS_HIGH, CAP, G = 0.2, 0.272, 2.0, 8     # 보고서 Table 49 (32B Think: TIS cap 2.0)

def olmorl_objective(logp_new, logp_old, logp_vllm, rewards, lengths):
    """보고서 식 (1)-(2). 배열은 응답 i의 토큰을 이어 붙인 1차원 배열(lengths로 구분).
    반환: J(θ), 토큰별 ∂J/∂log πθ, ratio ρ, TIS 가중치 w."""
    adv_seq = rewards - rewards.mean()                      # 식 (2): std로 나누지 않는다
    A = np.repeat(adv_seq, lengths)                         # 응답의 모든 토큰이 같은 Â_i
    rho = np.exp(logp_new - logp_old)                       # ρ_i,t = πθ / πold
    w = np.minimum(np.exp(logp_old - logp_vllm), CAP)       # truncated IS: min(πold/πvllm, c)
    unclipped = rho * A
    clipped = np.clip(rho, 1 - EPS_LOW, 1 + EPS_HIGH) * A
    T = lengths.sum()                                       # token-level 정규화: 전체 토큰 수
    J = (w * np.minimum(unclipped, clipped)).sum() / T
    active = unclipped <= clipped                           # min이 clip 안 된 항을 고른 토큰만 gradient
    grad = np.where(active, w * rho * A, 0.0) / T           # d(ρÂ)/dlog πθ = ρÂ
    return J, grad, rho, w

# 그룹 하나: 8개 중 3개 정답, 길이는 제각각
rewards = np.array([1, 0, 0, 1, 0, 0, 1, 0], float)
lengths = rng.integers(50, 400, size=G).astype(np.intp)   # Pyodide(wasm32)에서 np.repeat용
T = lengths.sum()
logp_old = np.log(rng.uniform(0.05, 0.95, T))
logp_vllm = logp_old + rng.normal(0, 0.05, T)              # 엔진 간 작은 수치 차이
logp_new = logp_old + rng.normal(0, 0.15, T)               # 몇 step 업데이트된 정책
J, grad, rho, w = olmorl_objective(logp_new, logp_old, logp_vllm, rewards, lengths)

# 1) 해석적 gradient를 수치 미분으로 검산
k = np.argmax(np.abs(grad))
h = 1e-6
lp = logp_new.copy(); lp[k] += h
J2, *_ = olmorl_objective(lp, logp_old, logp_vllm, rewards, lengths)
print(f"J = {J:.5f},  토큰 {k}: 해석 {grad[k]:.3e} vs 수치 {(J2 - J) / h:.3e}")

# 2) clip·cap에 걸린 토큰 비율
A = np.repeat(rewards - rewards.mean(), lengths)
print(f"A>0 토큰 중 ρ>1+ε_high (gradient 0): {np.mean(rho[A > 0] > 1 + EPS_HIGH):.1%},  "
      f"A<0 토큰 중 ρ<1-ε_low: {np.mean(rho[A < 0] < 1 - EPS_LOW):.1%},  TIS cap: {np.mean(w >= CAP):.1%}")

# 3) 응답 하나가 받는 총 gradient 질량: 응답별 평균(GRPO 원본) vs token-level(OlmoRL)
seq_mean = (rewards - rewards.mean()) / G
tok_level = (rewards - rewards.mean()) * lengths / T
print("응답별 총 가중치  seq-mean   :", np.round(seq_mean, 3))
print("                token-level:", np.round(tok_level, 3), " 길이:", lengths)

# 4) std 정규화: 정답 n/8일 때 정답 응답의 advantage
for n_right in [1, 4, 7]:
    rw = np.array([1] * n_right + [0] * (G - n_right), float)
    a_no_std = rw - rw.mean()
    a_grpo = a_no_std / (rw.std() + 1e-6)
    print(f"정답 {n_right}/8: 정답 응답 Â  no-std(OlmoRL)={a_no_std[0]:+.3f}   GRPO std-norm={a_grpo[0]:+.3f}")
 

해석적 gradient와 수치 미분이 일치한다. token-level에서는 긴 응답일수록 총 가중치가 크고(토큰마다 같은 크기), 응답별 평균에서는 길이와 상관없이 같은 크기다. 4)에서 GRPO는 정답 1/8과 7/8 문제의 advantage를 std로 나눠 키우지만(2.6, 0.38), no-std는 1−p1-p 그대로 둔다.

Active sampling. zero-gradient 그룹을 버리면 batch가 작아진다. 학습이 진행되어 문제가 쉬워질수록 “8개 모두 정답” 그룹이 늘어 batch가 더 줄고, 실제 gradient의 크기와 분산이 step마다 흔들린다. DAPO의 dynamic sampling은 미리 3배를 뽑아 둔다. OlmoRL은 완전 비동기 구조이므로 신호 있는 그룹이 목표 개수만큼 찰 때까지 결과 큐에서 계속 꺼내고 프롬프트를 다시 넣는다(§4.4.3). 아래 시뮬레이션은 정답률 분포가 점점 오른쪽으로 옮겨 가는 상황에서 세 방식을 비교한다. 정답률 분포는 설명을 위한 가정이다.

NumPy zero-gradient 필터링 vs DAPO 3배 oversampling vs active sampling
import numpy as np
rng = np.random.default_rng(1)
G, B = 8, 64                                   # 그룹 크기, step당 원하는 프롬프트 수 (7B Think: 64)

def group_has_signal(p):
    """정답률 p인 프롬프트에서 G개를 뽑았을 때 보상이 모두 같지 않은지(gradient가 0이 아닌지)."""
    k = rng.binomial(G, p)
    return 0 < k < G

def pass_rates(n, step, total):
    """학습이 진행되면 문제가 점점 쉬워진다(정답률 분포가 오른쪽으로 이동). 설명용 가정."""
    shift = 6.0 * step / total
    return rng.beta(1.0 + shift, 1.5, size=n)

steps = 300
log = {"filter": [], "dapo3x": [], "active": []}
gen = {"filter": 0, "dapo3x": 0, "active": 0}
for s in range(steps):
    # (a) 0-gradient 그룹을 버리기만 한다: batch가 줄어든다
    ok = [group_has_signal(p) for p in pass_rates(B, s, steps)]
    log["filter"].append(sum(ok)); gen["filter"] += B
    # (b) DAPO식 dynamic sampling: 3배를 미리 뽑아 두고 B개까지 채운다
    ok = [group_has_signal(p) for p in pass_rates(3 * B, s, steps)]
    log["dapo3x"].append(min(B, sum(ok))); gen["dapo3x"] += 3 * B
    # (c) OlmoRL active sampling: 비동기 큐에서 신호 있는 그룹이 B개 찰 때까지 계속 꺼낸다
    n_ok = n_gen = 0
    while n_ok < B:
        n_gen += 1
        n_ok += group_has_signal(pass_rates(1, s, steps)[0])
    log["active"].append(n_ok); gen["active"] += n_gen

for k in log:
    v = np.array(log[k])
    print(f"{k:7s}: 유효 batch 평균 {v.mean():5.1f} (처음 50 step {v[:50].mean():5.1f} → 마지막 50 step {v[-50:].mean():5.1f}),"
          f"  생성한 그룹 {gen[k]:6d},  유효 그룹당 생성 {gen[k] / v.sum():.2f}")
 

필터만 하면 batch가 학습 후반으로 갈수록 줄어든다. 3배 oversampling은 batch를 지키지만 생성의 2/3를 버린다. active sampling은 batch를 지키면서 필요한 만큼만 생성한다. 보고서는 RL-Zero 수학 run에서 active sampling이 batch를 계속 꽉 채워 학습을 안정시킨다는 것을 보였다(Figure 26).

PyTorch PyTorch: OlmoRL 손실 (batch 버전) 로컬에서 실행run locally (pip install torch)
import torch

def olmorl_loss(logp_new, logp_old, logp_vllm, rewards, mask,
                eps_low=0.2, eps_high=0.272, tis_cap=2.0):
    """
    logp_new : (P, G, T) 현재 정책 πθ의 토큰 log-prob (grad 있음)
    logp_old : (P, G, T) 학습 엔진으로 다시 계산한 πold의 log-prob (no grad)
    logp_vllm: (P, G, T) rollout 때 vLLM이 돌려준 log-prob (no grad)
    rewards  : (P, G) 검증기/LM-judge 보상,  mask: (P, G, T) 응답 토큰 1, padding 0
    P = 프롬프트 수, G = 그룹 크기
    """
    # zero-gradient 그룹 제거 (active sampling은 이 바깥, 데이터 로더/큐에서 처리)
    keep = rewards.std(dim=1) > 0                                  # (P,)
    logp_new, logp_old, logp_vllm = logp_new[keep], logp_old[keep], logp_vllm[keep]
    rewards, mask = rewards[keep], mask[keep]

    adv = (rewards - rewards.mean(dim=1, keepdim=True)).unsqueeze(-1)   # no std, (P', G, 1)
    ratio = torch.exp(logp_new - logp_old.detach())
    tis = torch.exp(logp_old - logp_vllm).clamp(max=tis_cap).detach()   # truncated IS
    surr1 = ratio * adv
    surr2 = ratio.clamp(1 - eps_low, 1 + eps_high) * adv                # clip-higher
    per_token = tis * torch.minimum(surr1, surr2)
    # token-level: batch 전체 응답 토큰 수로 한 번만 나눈다. KL 항 없음.
    return -(per_token * mask).sum() / mask.sum().clamp(min=1)
 

2. 비동기 RL 인프라: 생성이 전부다

OlmoRL 32B Think는 학습에 H100 노드 8개, 추론에 20개를 썼다. learner는 시간의 75%를 데이터를 기다리며 보낸다. 7B에서는 추론 7노드, 학습 2노드로, 추론에 학습의 약 14배 연산을 쓴다(§4.4.3). 한 대표 run에서 step 하나가 평균 1,000초였고 그중 학습은 125초였다. 생성과 학습을 겹쳐 놓았으니 병목은 전적으로 생성이다. 그래서 보고서의 인프라 개선은 모두 생성 쪽이다.

  • 완전 비동기(off-policy) 구조. learner가 프롬프트를 큐에 넣고, 각자 vLLM을 띄운 actor들이 꺼내 생성·채점해 결과 큐에 넣는다. learner는 결과 큐에서 꺼내 학습한다(Figure 17a). 최대 비동기 정도는 32B에서 8 step이다(Table 49).
  • Continuous batching. static batching은 한 묶음의 모든 시퀀스가 끝나야 다음 묶음을 받는다. 낭비되는 비율은 (Lmax⁡−Lˉ)/Lmax⁡(L_{\max} - \bar L)/L_{\max}다. 32K 생성에서 평균 길이가 14,628이었으므로 최대 54%가 낭비될 수 있었다. continuous batching은 끝난 자리를 바로 채운다.
  • Inflight updates. 가중치를 동기화할 때 생성을 멈추고 KV cache를 버리는 대신, 생성 중에 가중치를 바로 바꾸고 KV cache도 그대로 둔다(PipelineRL). 한 시퀀스의 앞부분과 뒷부분이 서로 다른 정책에서 나올 수 있지만, 같은 자원에서 최대 4배 빨라졌고 정확도는 떨어지지 않았다고 보고한다.
static 활용률utilisation – continuous 활용률utilisation – 완료 시간 비finish-time ratio static/continuous – (Lmax−평균mean)/Lmax –
The horizontal axis is time (decoding steps); each row is one batch slot of the inference engine. Coloured bars are sequences being generated, grey is an idle slot. The top band (static) cannot start the next batch until the longest sequence of the current one finishes; the bottom band (continuous) refills a finished slot with the next prompt immediately. Lower the mean-length ratio (the distribution of a reasoning model, where most answers are short and a few run to Lmax) and static batching's waste approaches (Lmax−mean)/Lmax. For the report's 32K generations (mean 14,628) it was up to 54%. 가로는 시간(디코딩 step), 각 줄은 추론 엔진의 batch 슬롯 하나다. 색 막대는 생성 중인 시퀀스, 회색은 놀고 있는 슬롯이다. 위(static)는 한 묶음의 가장 긴 시퀀스가 끝날 때까지 다음 묶음을 시작하지 못하고, 아래(continuous)는 끝난 슬롯을 바로 다음 프롬프트로 채운다. 평균 길이 비율을 낮추면(짧은 답이 대부분이고 가끔 Lmax까지 가는 추론 모델의 분포) static의 낭비가 (Lmax−평균)/Lmax에 가까워진다. 보고서의 32K 생성(평균 14,628)에서는 최대 54%였다.
Configuration (2 × 8 A100 nodes, 2-hour benchmark)Tokens/sMFUMBU
OLMo 2 infrastructure8810.30%12.90%
+ continuous batching9750.33%14.29%
+ better threading1,3580.46%19.89%
+ inflight updates (Olmo 3)2,9491.01%43.21%

(Table 23. MFU and MBU are per inference node.)

Together that is 3.3×, and the largest single step is inflight updates. In terms of real runs, an epoch that took 9 nodes 14 days dropped to 5 nodes and 7 days. The final 7B Think RL took about 15 days on the initial infrastructure; reproducing the same run on the new infrastructure took 6 days (§4.4.2). The ~1% MFU is also worth noticing. Long decoding is bound by memory bandwidth, not compute (MBU 43%), so the decode-stage analysis of the inference optimisation lesson applies directly.

확인 문제Check yourself

If the maximum RL generation length is 32K and the average length is about 14.6K, which is closest to the maximum fraction of generation compute that static batching can waste?

In static batching, the other slots sit idle until the longest sequence in the batch finishes. In the worst case one sequence per batch runs to Lmax⁡L_{\max}, so the wasted fraction is (Lmax⁡−Lˉ)/Lmax⁡(L_{\max} - \bar L)/L_{\max}. The report computes this with a maximum of 32K and a mean of 14,628 and writes “up to 54%” ((32000−14628)/32000≈0.54(32000 - 14628)/32000 \approx 0.54). The longer the tail of the length distribution, as with reasoning models, the larger this value, and the larger the benefit of continuous batching.

Results

Results by post-training stage (32B Think)

BenchmarkSFTDPOOlmo 3 ThinkOlmo 3.1 ThinkQwen 3 32BDS-R1 32B
MATH95.695.996.196.295.492.6
AIME 202473.576.076.880.680.870.3
AIME 202566.270.772.578.170.956.3
OMEGA43.145.250.653.447.738.9
ZebraLogic70.574.576.080.188.369.4
LiveCodeBench v375.881.983.583.390.279.5
IFEval83.980.689.093.886.578.7
IFBench37.034.447.668.137.323.8
MMLU85.385.285.486.488.888.0
GPQA55.757.658.156.767.361.8
AlpacaEval 2 LC69.178.674.269.175.626.2

(Part of the report’s Table 14. The Qwen 3 VL 32B Think and K2-V2 70B columns are omitted.)

Each stage lifts different areas. DPO raises math, code and chat, and slightly lowers IF. RL raises IF the most (IFEval +8.4, IFBench +13.2). 3.1, which extends RL from 750 to 2,300 steps, gains a further +5.6 on AIME 2025 and +20.5 on IFBench, but drops 5 points on AlpacaEval. The report writes that RL was not saturated even at 2,300 steps. On knowledge (MMLU, GPQA) it trails Qwen 3 32B, which the report attributes to Qwen 3 being distilled from its largest model. 7B shows the same pattern (Table 15: AIME 2025 SFT 57.6 → DPO 62.7 → RL 64.6, IFEval 77.9 → 75.9 → 88.2).

What delta learning changes (7B development checkpoint)

AverageAIME 25AIME 24LCBGPQAIFEval
Qwen3 32B (generates chosen)83.271.080.389.664.787.4
Qwen3 0.6B (generates rejected)35.115.211.234.427.262.3
7B development SFT checkpoint70.358.871.067.045.179.7
+ continued SFT on chosen64.552.861.055.140.276.0
+ delta-learning DPO72.966.375.772.648.475.2

(Part of Table 21. The average is over the table’s 10 tasks.)

The same chosen responses give −5.8 points through SFT and +2.6 points through DPO. The report also shows that the DPO model is higher on AIME not only at pass@1 but all the way to pass@32 (Figure 20). The claim, then, is that DPO does not merely turn pass@k into pass@1; it widens the range of problems the model can solve.

RL works better after DPO

7B, RLVR 1000 stepsAverageAIME 25AIME 24LCBIFEval
SFT70.157.669.667.877.9
SFT + DPO72.762.774.675.175.9
SFT + RLVR71.962.470.070.782.8
SFT + DPO + RLVR74.164.273.273.482.3

(Part of Table 22, single run.)

On evaluations RL targets directly (OMEGA), starting from SFT and starting from DPO end up in similar places; on evaluations RL struggles to raise (AlpacaEval), DPO’s lead persists to the end (Figure 19). There was no case where starting from SFT beat starting from DPO.

Mixing domains prevents over-optimisation

RL on IFEval data alone raises IFEval but lowers AlpacaEval. With mixed data, IFEval rises about as much while AlpacaEval holds (Figure 20, left). The mixed run has lower per-domain training reward, yet equal or better downstream results (Figure 21). The report reads this as mixing partly guarding against reward hacking.

Data selection ablation (1B model, 100B tokens, BPB · lower is better)

Data selectionQA EasyMath EasyCode Easy
flat top 50% (1.1× repetition)1.0420.8630.943
flat top 30% (1.8×)1.0310.8700.880
flat top 10% (5.6×)1.0410.8580.939
flat top 5% (11.1×)1.0650.8430.930
Olmo 3 quality-aware upsampling1.0000.7400.719

(Table 39.) Ways of combining mixing and upsampling were also compared: the truncated power-exponential beat the arithmetic mean, the geometric mean and an exponential curve (Table 40).

Base model (32B, OlmoBaseEval)

Olmo 3 32BMarin 32BOLMo 2 32BQwen 2.5 32BGemma 3 27B
Math61.949.353.964.763.2
Code39.730.820.548.341.6
MC STEM74.575.975.382.280.2
GenQA79.880.379.168.573.5

(Part of Table 2.) Among fully open models it leads clearly on math and code; against the open-weight Qwen 2.5 32B and Gemma 3 27B, it wins in some areas and loses in others.

RL-Zero and random rewards

RL-Zero, which runs RL directly on Olmo 3 Base 7B, climbs quickly on AIME over the first few hundred steps and slowly after that. pass@32 also rises (Figure 24). The report writes that it reaches a level similar to DAPO, which ran 10× more steps on Qwen 2.5 32B, with less compute (Figure 38). Running the same training with random binary rewards raised no benchmark at all (Figure 27). That is a negative control showing that the evaluation sets are not mixed into the pre- and midtraining data. Also, for RL-Zero 3.1, raising the response length from 12K to 16K and not masking truncated sequences improved performance substantially (Appendix A.6.4). Masking made the batch size fluctuate and training unstable.

확인 문제Check yourself

In Table 21, continuing SFT on Qwen3 32B responses drops the average from 70.3 to 64.5, but DPO with the same responses as chosen and Qwen3 0.6B responses as rejected raises it to 72.9. Which is closest to the explanation the report gives?

The delta-learning hypothesis says that the value of preference data comes not from the absolute quality of each response but from the difference between chosen and rejected. SFT simply raises the probability of ycy_c, so if ycy_c is weaker than the current model it drags the model down. The DPO gradient points in the direction that increases log⁡πθ(yc)−log⁡πθ(yr)\log\pi_\theta(y_c) - \log\pi_\theta(y_r), that is, “away from the weaker reasoning”, so it is useful even when ycy_c itself is not the best. The report’s DPO learning rate, 8×10−88\times10^{-8}, is in fact very small.

Reading critically

  • “Fully open” and dependence on distillation are separate things. All the data is released, but much of it is the output of other models. The Think SFT reasoning traces come from QwQ-32B and DeepSeek R1, the DPO pairs from Qwen3 32B and 0.6B, and the chat RL rewards from a Qwen3 32B judge. Midtraining also contains traces from QwQ, Gemini, Llama Nemotron and others (Table 5). It is reproducible, but it is not “reasoning learned on its own from scratch”. Just as the report explains Qwen 3’s knowledge advantage by distillation, Olmo 3’s reasoning ability is in large part a product of distillation too.
  • Caveats on the comparisons. Every baseline was re-measured with AI2’s evaluation framework (up to 32,768 tokens), and the numbers may differ from the official ones. “6× fewer tokens” is a comparison of pretraining tokens against Qwen 3 32B. There are also small inconsistencies between tables: Table 1 and Table 14 give the GPQA of the same Olmo 3.1 Think 32B as 57.5 and 56.7.
  • The ablations are confounded. The final 7B Think RL used the initial infrastructure (no pipelineRL, no TIS) and the offline filter; 32B used the new infrastructure, TIS, active sampling and the 7B filter results. 32B took the recipe built on 7B almost unchanged (§2.4 footnote). So the report does not directly answer questions like “how much did TIS help”. Some results, like Table 22, come from a single run.
  • Checkpoint selection involves qualitative judgement. The report states that it uses a “vibe test” when choosing SFT and DPO checkpoints. That is an honest description, but it cannot be reproduced from automatic metrics alone.
  • The scope of the contamination checks. Decontamination is n-gram based (8-gram, 50% for post-training), and the random-reward negative control was shown only for RL-Zero math. Since the Think models’ SFT data was generated by other models, contamination carried over from those models is hard to rule out completely with n-gram matching.
  • Open questions. 3.1’s RL was not saturated even at 2,300 steps. If it ran longer, would more metrics fall, as AlpacaEval did? The report itself calls the 32B learner’s sharding “suboptimal”, so there is plenty of headroom in the infrastructure. And whether the dense 32B recipe carries over unchanged to MoE is not addressed.

Summary

  • Olmo 3 releases 7B and 32B dense models together with their data, code and intermediate checkpoints. The architecture is OLMo 2 plus an 8K training context and sliding windows (4,096) on 3/4 of the layers; long-context extension reaches 65K by applying YaRN only to the full layers.
  • Pretraining data is aggressively deduplicated (75% of web documents removed) and split into 480 topic × quality buckets; swarm-based mixing sets the topic proportions, and a truncated power-exponential curve sets the repetition per quality level (bottom 40% discarded, at most 7×). BPB is lower than with flat filters.
  • Delta-learning DPO learns from the difference between a strong model’s responses (chosen) and a weak model’s (rejected). It improves performance even where SFT on the chosen responses hurts, and gives RL a better starting point.
  • OlmoRL combines a group advantage without std normalisation, token-level loss, clip-higher (0.2/0.272), truncated IS (cap 2), no KL, and dropping zero-gradient groups + active sampling. It mixes verifier and LM-judge rewards, and mixes domains to curb over-optimisation.
  • RL cost is dominated by generation (the learner waits 75% of the time). Continuous batching and inflight updates raised throughput 3.3× (Table 23), and longer RL (3.1, 2,300 steps) kept improving IF and math.
구성 (2 × 8 A100 노드, 2시간 벤치마크)토큰/초MFUMBU
OLMo 2 인프라8810.30%12.90%
+ continuous batching9750.33%14.29%
+ 더 나은 threading1,3580.46%19.89%
+ inflight updates (Olmo 3)2,9491.01%43.21%

(Table 23. MFU·MBU는 추론 노드 1개 기준.)

합쳐서 3.3배이고, 가장 큰 한 걸음은 inflight updates다. 실제 run 기준으로는 한 epoch에 9노드 14일 걸리던 것이 5노드 7일로 줄었다. 7B Think 최종 RL은 초기 인프라로 약 15일 걸렸는데, 새 인프라로 같은 run을 재현하니 6일이었다(§4.4.2). MFU가 1% 수준이라는 점도 눈여겨볼 만하다. 긴 디코딩은 연산이 아니라 메모리 대역폭에 묶이므로(MBU 43%) 추론 최적화 레슨의 decode 단계 분석이 그대로 적용된다.

확인 문제Check yourself

RL 생성의 최대 길이가 32K이고 평균 길이가 약 14.6K일 때, static batching에서 낭비될 수 있는 생성 연산의 최대 비율에 가장 가까운 것은?

static batching은 한 묶음 안의 가장 긴 시퀀스가 끝날 때까지 다른 슬롯이 논다. 최악의 경우 묶음마다 하나가 Lmax⁡L_{\max}까지 가므로 낭비 비율은 (Lmax⁡−Lˉ)/Lmax⁡(L_{\max} - \bar L)/L_{\max}다. 보고서는 최대 32K, 평균 14,628로 계산해 “최대 54%“라고 적었다((32000−14628)/32000≈0.54(32000 - 14628)/32000 \approx 0.54). 추론 모델처럼 길이 분포의 꼬리가 길수록 이 값이 커지므로 continuous batching의 효과도 커진다.

실험 결과

사후학습 단계별 결과 (32B Think)

벤치마크SFTDPOOlmo 3 ThinkOlmo 3.1 ThinkQwen 3 32BDS-R1 32B
MATH95.695.996.196.295.492.6
AIME 202473.576.076.880.680.870.3
AIME 202566.270.772.578.170.956.3
OMEGA43.145.250.653.447.738.9
ZebraLogic70.574.576.080.188.369.4
LiveCodeBench v375.881.983.583.390.279.5
IFEval83.980.689.093.886.578.7
IFBench37.034.447.668.137.323.8
MMLU85.385.285.486.488.888.0
GPQA55.757.658.156.767.361.8
AlpacaEval 2 LC69.178.674.269.175.626.2

(보고서 Table 14 일부. Qwen 3 VL 32B Think, K2-V2 70B 열은 생략.)

단계마다 오르는 영역이 다르다. DPO는 수학·코드·채팅을 올리고 IF는 오히려 조금 내린다. RL은 IF(IFEval +8.4, IFBench +13.2)를 가장 크게 올린다. RL을 750 step에서 2,300 step으로 늘린 3.1은 AIME 2025 +5.6, IFBench +20.5를 더 얻었지만 AlpacaEval은 5점 떨어졌다. 보고서는 2,300 step에서도 포화되지 않았다고 쓴다. 지식(MMLU, GPQA)은 Qwen 3 32B에 뒤지는데, 보고서는 Qwen 3가 가장 큰 모델에서 증류되었기 때문이라고 본다. 7B도 같은 패턴이다(Table 15: AIME 2025 SFT 57.6 → DPO 62.7 → RL 64.6, IFEval 77.9 → 75.9 → 88.2).

Delta learning이 만드는 차이 (7B 개발 체크포인트)

평균AIME 25AIME 24LCBGPQAIFEval
Qwen3 32B (chosen 생성 모델)83.271.080.389.664.787.4
Qwen3 0.6B (rejected 생성 모델)35.115.211.234.427.262.3
개발용 7B SFT 체크포인트70.358.871.067.045.179.7
+ chosen으로 SFT 계속64.552.861.055.140.276.0
+ delta learning DPO72.966.375.772.648.475.2

(Table 21 일부. 평균은 표의 10개 과제 평균.)

같은 chosen 응답이 SFT로는 −5.8점, DPO로는 +2.6점이다. 보고서는 DPO 모델이 AIME에서 pass@1뿐 아니라 pass@32까지 높다는 것도 보인다(Figure 20). 즉 pass@k를 pass@1로 바꾼 것만이 아니라 풀 수 있는 문제 범위 자체가 넓어졌다는 주장이다.

DPO 다음에 RL이 더 좋다

7B, RLVR 1000 step평균AIME 25AIME 24LCBIFEval
SFT70.157.669.667.877.9
SFT + DPO72.762.774.675.175.9
SFT + RLVR71.962.470.070.782.8
SFT + DPO + RLVR74.164.273.273.482.3

(Table 22 일부, 한 번 실행.)

RL이 직접 겨냥하는 평가(OMEGA)에서는 SFT 출발과 DPO 출발이 비슷한 곳에 도달하고, RL이 잘 못 올리는 평가(AlpacaEval)에서는 DPO의 우위가 끝까지 남는다(Figure 19). SFT 출발이 DPO 출발을 넘는 경우는 없었다.

영역을 섞어야 과최적화가 막힌다

IFEval 데이터만으로 RL을 하면 IFEval은 오르지만 AlpacaEval이 떨어진다. 섞은 데이터로 하면 IFEval은 비슷하게 오르면서 AlpacaEval을 유지한다(Figure 20 왼쪽). 섞은 run은 영역별 학습 보상이 더 낮은데 downstream은 같거나 더 좋다(Figure 21). 보고서는 섞기가 reward hacking을 어느 정도 막는다고 해석한다.

데이터 선택 ablation (1B 모델, 100B 토큰, BPB · 낮을수록 좋음)

데이터 선택QA EasyMath EasyCode Easy
flat 상위 50% (1.1× 반복)1.0420.8630.943
flat 상위 30% (1.8×)1.0310.8700.880
flat 상위 10% (5.6×)1.0410.8580.939
flat 상위 5% (11.1×)1.0650.8430.930
Olmo 3 품질 기반 upsampling1.0000.7400.719

(Table 39.) mixing과 upsampling을 합치는 방법도 비교했다. 산술·기하 평균, 지수 곡선보다 truncated power-exponential이 가장 좋았다(Table 40).

Base 모델 (32B, OlmoBaseEval)

Olmo 3 32BMarin 32BOLMo 2 32BQwen 2.5 32BGemma 3 27B
Math61.949.353.964.763.2
Code39.730.820.548.341.6
MC STEM74.575.975.382.280.2
GenQA79.880.379.168.573.5

(Table 2 일부.) 완전 공개 모델 가운데서는 수학·코드가 크게 앞서고, open-weight인 Qwen 2.5 32B·Gemma 3 27B와는 영역에 따라 엎치락뒤치락한다.

RL-Zero와 무작위 보상

Olmo 3 Base 7B에서 바로 RL을 하는 RL-Zero는 AIME에서 처음 수백 step에 빠르게 오르고 그 뒤 천천히 오른다. pass@32도 오른다(Figure 24). 보고서는 Qwen 2.5 32B로 10배 많은 step을 돈 DAPO와 비슷한 수준에 더 적은 연산으로 도달한다고 쓴다(Figure 38). 무작위 이진 보상으로 같은 학습을 하면 어떤 벤치마크도 오르지 않았다(Figure 27). 평가셋이 사전·중간학습 데이터에 섞여 있지 않다는 negative control이다. 또 RL-Zero 3.1에서는 응답 길이를 12K에서 16K로 늘리고 잘린(truncated) 시퀀스를 마스킹하지 않는 것이 성능을 크게 올렸다(부록 A.6.4). 마스킹하면 batch 크기가 흔들려 불안정했다.

확인 문제Check yourself

Table 21에서 Qwen3 32B의 응답으로 SFT를 계속하면 평균이 70.3에서 64.5로 떨어지지만, 같은 응답을 chosen으로 Qwen3 0.6B 응답을 rejected로 쓴 DPO는 72.9로 오른다. 보고서가 내놓는 설명에 가장 가까운 것은?

Delta learning 가설은 선호 데이터의 가치가 각 응답의 절대 품질이 아니라 chosen과 rejected의 차이에서 나온다는 것이다. SFT는 ycy_c의 확률을 그냥 올리므로 ycy_c가 현재 모델보다 약하면 모델을 끌어내린다. DPO의 gradient는 log⁡πθ(yc)−log⁡πθ(yr)\log\pi_\theta(y_c) - \log\pi_\theta(y_r)를 키우는 방향, 즉 “약한 추론 쪽에서 멀어지는” 방향이라 ycy_c 자체가 최고가 아니어도 쓸모가 있다. 보고서의 DPO 학습률은 8×10−88\times10^{-8}로 오히려 매우 작다.

비판적으로 읽기

  • “완전 공개”와 증류 의존은 별개다. 데이터는 모두 공개되었지만 그 데이터의 상당 부분이 다른 모델의 출력이다. Think SFT의 추론 trace는 QwQ-32B와 DeepSeek R1이, DPO 쌍은 Qwen3 32B와 0.6B가, 채팅 RL 보상은 Qwen3 32B judge가 만든다. midtraining에도 QwQ·Gemini·Llama Nemotron 등의 trace가 들어 있다(Table 5). 재현은 가능하지만 “처음부터 스스로 배운 추론”은 아니다. 보고서가 Qwen 3의 지식 우위를 증류로 설명하는 것과 대칭적으로, Olmo 3의 추론 능력도 상당 부분 증류의 산물이다.
  • 비교의 단서. 모든 기준 모델을 AI2의 평가 프레임워크로 다시 쟀다(최대 32,768 토큰). 공식 수치와 다를 수 있다. “6배 적은 토큰”은 Qwen 3 32B와의 사전학습 토큰 비교다. Table 1과 Table 14가 같은 Olmo 3.1 Think 32B의 GPQA를 57.5와 56.7로 다르게 적는 등 표 사이에 작은 불일치도 있다.
  • ablation이 섞여 있다. 7B Think 최종 RL은 초기 인프라(pipelineRL·TIS 없음)와 offline 필터로, 32B는 새 인프라·TIS·active sampling과 7B의 필터 결과로 학습했다. 32B는 7B에서 만든 레시피를 거의 그대로 가져왔다(§2.4 각주). 따라서 “TIS가 얼마나 도왔는가” 같은 질문에 이 보고서는 직접 답하지 않는다. Table 22처럼 한 번 실행한 결과도 있다.
  • 체크포인트 선택에 정성 평가가 들어간다. SFT·DPO 체크포인트를 고를 때 “vibe test”를 쓴다고 명시한다. 정직한 서술이지만 자동 지표만으로 재현되지는 않는다.
  • 오염 검증의 범위. decontamination은 n-gram 기반이고(사후학습 8-gram, 50%), 무작위 보상 negative control은 RL-Zero 수학에서만 보였다. Think 모델의 SFT 데이터는 다른 모델이 생성했으므로 그 모델들의 오염이 옮겨 올 가능성은 n-gram 대조로 완전히 막기 어렵다.
  • 열린 질문. 3.1의 RL은 2,300 step에서도 포화되지 않았다. 더 돌리면 AlpacaEval처럼 떨어지는 지표가 늘어나는가? 32B learner의 sharding이 “suboptimal”이라고 스스로 적은 만큼 인프라에 여지가 크다. 그리고 dense 32B 레시피가 MoE로 그대로 옮겨 가는지는 다루지 않는다.

정리

  • Olmo 3는 7B·32B dense 모델을 데이터·코드·중간 체크포인트까지 공개했다. 아키텍처는 OLMo 2에 8K 학습 컨텍스트와 3/4 층 sliding window(4,096)를 더한 정도이고, long-context 확장은 full 층에만 YaRN을 걸어 65K까지 간다.
  • 사전학습 데이터는 공격적으로 dedup한 뒤(웹 문서 75% 제거) 토픽 × 품질 480개 버킷으로 나누고, swarm 기반 mixing으로 토픽 비율을, truncated power-exponential 곡선으로 품질별 반복(하위 40% 버림, 최대 7배)을 정한다. flat 필터보다 BPB가 낮다.
  • Delta learning DPO는 강한 모델 응답(chosen)과 약한 모델 응답(rejected)의 차이로 학습해, chosen으로 SFT를 하면 떨어지는 지점에서도 성능을 올리고 RL의 더 좋은 출발점이 된다.
  • OlmoRL은 std 정규화 없는 group advantage, token-level loss, clip-higher(0.2/0.272), truncated IS(cap 2), KL 제거, zero-gradient 그룹 제거 + active sampling을 조합한다. 검증기와 LM judge 보상을 섞고 영역을 섞어 과최적화를 막는다.
  • RL 비용은 생성이 지배한다(learner 대기 75%). continuous batching과 inflight update로 처리량이 3.3배가 되었고(Table 23), 긴 RL(3.1, 2,300 step)은 IF와 수학을 계속 올렸다.

더 읽을거리Further reading