Preprint · 2025

From Atomic to Composite: Reinforcement Learning
Enables Generalization in Complementary Reasoning

Sitao Cheng1, Xunjian Yin2, Ruiwen Zhou3, Yuxuan Li1, Xinyi Wang4, Liangming Pan5, William Yang Wang6, Victor Zhong1

1University of Waterloo  ·  2Duke University  ·  3National University of Singapore  ·  4Princeton University  ·  5Peking University  ·  6University of California, Santa Barbara

Contact: sitao.cheng@uwaterloo.ca · liangmingpan@pku.edu.cn · victor.zhong@uwaterloo.ca

TL;DR We build a contamination-free benchmark of synthetic biographies and find two things. (1) SFT on composite questions memorizes the seen reasoning paths and fails on unseen relations. (2) RL generalizes to unseen compositions, but only after the model learns the atomic skills: recalling facts from its weights and reading facts from the context.

Read the abstract

Does Reinforcement Learning (RL) merely amplify existing skills, or does it synthesize new ones? We study this question through Complementary Reasoning: the capability of integrating knowledge stored in model weights with novel information provided in context, a prerequisite for continual learning and retrieval-augmented generation. To avoid pre-training contamination, we construct a controlled semantic-synthetic dataset of biographies and decompose the capability into two atomic skills: Parametric Reasoning (retrieving facts encoded in model weights) and Contextual Reasoning (processing novel in-context information). We present two findings. First, models supervised directly on the composite task reach high accuracy on seen facts and reasoning paths (90%) but collapse on paths with unseen relations (18%), indicating that Supervised Fine-Tuning (SFT) relies on memorization rather than skill integration. Second, RL closes this generalization gap and acts as a behavioral synthesizer rather than a mere amplifier, but only under a strict prerequisite: it composes new strategies only when the base model has first acquired the independent atomic skills via SFT. These results suggest that decoupled atomic training followed by RL offers a scalable path to complex and novel reasoning.

Atomic-first SFTatomic dataRLcomposite data Composite-first SFTcomposite dataRLcomposite data

Atomic data tests one skill at a time: parametric questions recall facts from the weights, and contextual questions read facts from the context.

Composite data tests both at once: each complementary question chains facts from the weights and facts from the context.

SFT on composite data
Seen paths90.3%
Unseen relations18.4%
Unseen relations, 3 seeds
Atomic-first48.8%
Composite-first31.5%
Llama-3.2-1B, unseen relations
Atomic-first36.9%
Composite-first17.1%
5-hop chains, unseen relations
Atomic-first30.4%
Composite-first15.2%
Benchmark

One knowledge graph, three reasoning types

Every fact comes from a synthetic knowledge graph, so no fact appears in pre-training data. Where a fact lives decides which skill a question needs: memory facts are trained into the weights, and context facts are given in the prompt.

Animation in four steps. 1: a knowledge graph of synthetic people with memory relations such as roommate, boss and occupation, and context relations such as spouse and best friend. 2: memory facts become biographies that are trained into the weights, and context facts become documents given in the prompt. 3: a random walk samples the path roommate, spouse, boss from John Parsons to Kenneth Nelson and fills a question template. 4: the same graph yields a parametric question (roommate then occupation, answer Ecologist), a contextual question (spouse then best friend, answer Mikayla Myers) and a complementary question (roommate, spouse, boss, answer Kenneth Nelson).
How the data is built. All people, facts and sentences are from the released data, and the three relation paths are in the paper's path lists. The 39 relations are split at random into a memory set and a context set. A parametric question uses only memory facts, a contextual question uses only context facts, and a complementary question needs both. Parametric and contextual questions are the atomic data. Complementary questions are the composite data.
IID

Seen path, new people

The relation path appears in training, asked about different people. SFT is enough here, because the model only recalls an observed structure.

2,135 complementary test questions
Composition

Seen relations, new order

Every relation appears in training, but never in this combination. The model must assemble known relations into a new path.

1,415 complementary test questions
Zero-shot

A relation never trained

The path contains a relation that no training question uses. Memorized patterns cannot help, so this level tests real composition.

918 complementary test questions
Findings

RL composes skills, if the atomic skills come first

SFT memorizes rather than generalizes

SFT directly on 181k complementary questions reaches 90.3% on seen paths but only 18.4% when a relation is new. SFT on the atomic skills alone does not compose them either. Learning each skill does not teach the model to combine them.

Exact match (%) on the complementary test set, Qwen2.5-1.5B.
SFT dataIIDComp.Zero-shot
Memory + context (atomic)35.1828.2024.07
Complementary (composite)90.3076.2518.41

Atomic-first wins on unseen relations at every data split

We split the composite data into an SFT share and an RL share. Composite-first runs SFT on the SFT share, and atomic-first runs SFT on the atomic data instead. Both recipes then run the same RL on the RL share. At every split, RL adds 18 to 48 points to atomic-first and at most 12 points to composite-first.

Atomic-first SFTatomic dataRLRL share of the composite data Composite-first SFTSFT share of the composite dataRLRL share of the composite data

IID

Composition

Zero-shot

Top: gain from RL in points, which is the accuracy after RL minus the accuracy of the SFT model. Bottom: accuracy after RL (%). Each pair of bars is one split of the composite data, given as % for SFT / % for RL. With most of the composite data in SFT, composite-first leads on seen paths but stays low on unseen relations.
Show the data
Split (% SFT / % RL)RecipeIID: SFT → RL (gain)CompositionZero-shot
10 / 90Atomic-first35.18 → 83.14 (+47.96)28.20 → 65.30 (+37.10)24.07 → 48.58 (+24.51)
Composite-first31.43 → 29.93 (−1.50)27.14 → 28.13 (+0.99)17.32 → 17.76 (+0.44)
30 / 70Atomic-first35.18 → 81.08 (+45.90)28.20 → 64.24 (+36.04)24.07 → 47.39 (+23.32)
Composite-first51.15 → 62.81 (+11.66)43.25 → 50.81 (+7.56)25.93 → 31.15 (+5.22)
50 / 50Atomic-first35.18 → 80.61 (+45.43)28.20 → 63.39 (+35.19)24.07 → 45.97 (+21.90)
Composite-first72.83 → 78.55 (+5.72)57.74 → 63.82 (+6.08)27.78 → 28.76 (+0.98)
70 / 30Atomic-first35.18 → 79.53 (+44.35)28.20 → 62.33 (+34.13)24.07 → 43.57 (+19.50)
Composite-first82.86 → 87.03 (+4.17)73.43 → 76.18 (+2.75)30.61 → 29.63 (−0.98)
90 / 10Atomic-first35.18 → 71.29 (+36.11)28.20 → 60.49 (+32.29)24.07 → 42.59 (+18.52)
Composite-first88.90 → 90.35 (+1.45)78.37 → 80.35 (+1.98)26.25 → 29.85 (+3.60)

RL needs both atomic skills

We give the same RL (12.8k complementary questions) to models with different SFT. Models that learned only memory facts or only context reading gain little, and so do models with a small dose of composite SFT. Only the model with both atomic skills gains strongly.

Zero-shot accuracy (%) before (hollow) and after (filled) the same RL.
Show the data
SFT dataZero-shot before RLZero-shot after RL
SFT on 10% composite17.3218.85
SFT on 20% composite19.5020.81
SFT on memory only0.005.99
SFT on context only20.5920.92
SFT on memory + context24.0742.59

Further SFT is no substitute for RL

From the same atomic model and the same 12.8k composite questions, further SFT gives the best accuracy on seen paths (75.5% vs. 71.3% for RL). On unseen relations RL leads, with 42.6% against 35.7% for SFT and 34.6% for LoRA.

Accuracy (%) after training the atomic model on the same 12.8k complementary samples with SFT, LoRA or RL.
Show the data
Training on 12.8k samplesIIDComp.Zero-shot
SFT75.5058.5935.73
LoRA64.2653.9934.64
RL71.2960.4942.59
Analysis

A synthesizer on atomic skills, an amplifier without them

If RL only amplified behavior the SFT model already has, sampling the SFT model enough times would find the same answers, and the pass@k curves would meet. They meet only for the composite-first model.

Atomic-first: SFT on memory + context

Composite-first: SFT on 90% of the composite data

Zero-shot pass@k (%) for k = 1 to 512. With atomic skills, the gap stays open even at k = 512: RL produces answers that the SFT model does not sample. Without them, the curves meet by k = 32.
Show the data
kAtomic-first before RLafter RLComposite-first before RLafter RL
124.0747.3926.2529.85
229.3051.0933.5535.51
431.9255.8836.3839.00
834.6456.4340.0941.29
1636.6058.5042.5943.14
3238.1358.7146.4145.64
6441.0760.2446.3047.39
12840.8561.6648.4749.35
25642.8162.2050.8750.00
51244.3462.8551.9651.53

RL moves the failure point later

Without atomic-first RL, most errors happen early, when the model reads the context. After atomic-first RL, 70% of the remaining errors are in recalling memory facts, and they happen near the end of the chain. RL fixes the bridging between context and memory.

Share of errors at context (Ctx) and memory (Mem) hops, and the position of the first error in the chain (Progress).
ModelCtxMemProgress
SFT on composite90%10%54.5%
Composite-first (SFT, then RL)86%14%45.0%
SFT on memory + context86%14%18.5%
Atomic-first (SFT, then RL)30%70%71.8%
Cite

BibTeX

@article{cheng2025atomic,
  title   = {From Atomic to Composite: Reinforcement Learning Enables
             Generalization in Complementary Reasoning},
  author  = {Cheng, Sitao and Yin, Xunjian and Zhou, Ruiwen and Li, Yuxuan and
             Wang, Xinyi and Pan, Liangming and Wang, William Yang and
             Zhong, Victor},
  journal = {arXiv preprint arXiv:2512.01970},
  year    = {2025}
}