arXiv:2610.11548cs.LGOct 2026

Manuscript Offprint

arXiv:2610.11548

Conditional Transfer from Controlled Pretraining Mixtures to Code

Ohad Rubin

Abstract

Synthetic tasks are increasingly used both as probes of language-model capability and as pretraining data. These two uses are usually justified by the same evidence: a task whose loss falls during training is treated as informative, and a task whose loss falls faster when it is sampled more is treated as worth sampling. We separate three signals that this reasoning conflates. A task is diagnostic when its loss tracks global pretraining progress; it is teachable when its loss responds to its own token budget; and a data source transfers when including it improves a downstream target. We study these signals in a controlled pretraining setting in which 70% of the corpus is fixed general Python and the remaining 30% is a simplex over three source families: OPENCODEINSTRUCT, a curated suite of 12 code-adjacent synthetic tasks, and 15 literature-derived probe tasks. Across a task-budget sweep we detect teachability for 14 of 27 tasks, with a sharp asymmetry between the two synthetic families (10/12 curated versus 4/15 literature-derived).

Teachability and downstream transfer give different rankings. On the mixture-simplex edge between the curated suite and OPENCODEINSTRUCT, HUMANEVAL pass@20 after a fixed fine-tuning stage rises from 15.9 at pure curated data to its highest observed value, 22.6, at a mixture that is 75% OPENCODEINSTRUCT, then falls to 19.5 at pure OPENCODEINSTRUCT. Curated synthetic data therefore has conditional value: it contributes as a limited share of a mixture that a target-aligned source still dominates. Finally, a loss-based adaptive scheduler exposes the mismatch between residual loss reducibility and downstream transfer. Across three 60k-step free-ratio runs, ADO drives the OPENCODEINSTRUCT share below 5% within the first 5k steps and to 1.2–1.4% by the end of training, and underperforms its matched fixed-mixture controls by 2.4–11.0 percentage points. Optimizing near-term task-loss reduction moves the mixture away from the region that transfers.

1 Introduction

A pretraining corpus is a mixture, and choosing the mixture is now a first-class design problem [3, 5, 7, 16]. Two questions get asked of a candidate source. The first is diagnostic: does performance on it tell us something about the model? The second is economic: does buying more of it make the model better at what we care about? In practice the two questions are often collapsed into a single loss-based notion of data quality.

The answers can diverge. Consider a synthetic task whose loss falls steadily throughout pre-training. This is compatible with at least three distinct situations. The loss may be falling because general competence is rising and the task reads it off; in that case the task is a useful instrument, while the value of added task examples remains unknown. The loss may be falling because the model is being shown the task and is fitting its surface form; in that case the task responds to budget but the response may be entirely local. Or the loss may be falling for both reasons while the source displaces something that the downstream target actually needs; in that case buying more of it is actively harmful.

This paper separates the three signals and measures them in a single controlled setting. We fix 70% of the pretraining corpus to general Python source code and vary only the composition of the remaining 30%, which we call the controlled slice. The slice is a mixture over three families: OPENCODEINSTRUCT [1], an instruction-formatted code corpus that is close to the downstream target distribution; a CURATED suite of 12 synthetic tasks generated from a curated paper set to exercise code-adjacent operations such as execution, search, state mutation, logical inference, planning, ranking, and binding; and a LITERATURE suite of 15 synthetic probes based on standard retrieval, state-tracking, composition, and transduction tasks. Holding the base corpus, model family, training budget, and fine-tuning stage fixed lets us attribute downstream differences to the slice alone.

Our contributions are as follows.

  1. Three separable signals. We give operational definitions of diagnosticity (loss tracks global training progress), teachability (loss responds to the task's own token budget), and transfer (a source's share improves the downstream target), together with an exposure-advantage diagnostic that compares task-specific exposure with global pretraining step ( §4\S4).

  2. Teachability is common and family-dependent. Across a per-task budget sweep we detect teachability for 14 of 27 tasks. The split is sharply asymmetric: 10 of 12 curated tasks are teachable, but only 4 of 15 literature-derived probes are. False-discovery-rate adjustment retains six curated and two literature-derived detections ( §5\S5).

  3. Transfer depends on mixture context. On the curated–OPENCODEINSTRUCT edge, HUMANEVAL pass@20 is non-monotone in the curated share, peaking at 22.6 when OPENCODEINSTRUCT holds 75% of the slice and falling to 15.9 at pure curated data—below the zero-synthetic baseline. The curated suite is the most teachable family, while its pure-source endpoint falls below the zero-synthetic baseline ( §6\S6).

  4. Loss-based scheduling follows the wrong signal. ADO [7] allocates budget by predicted remaining loss reduction. In every 60k-step free-ratio run, ADO pushes the OPENCODEINSTRUCT share below 5% within 5k steps and to 1.2–1.4% at the end of training. These runs trail their mixture-matched fixed controls by 2.4–11.0 percentage points of pass@20 ( §7\S7).

The practical rule we draw from this is narrow but concrete. When the downstream target is code generation, keep the target-aligned source dominant in the mixture, add curated synthetic data as a bounded share, and choose proportions with a target-referenced signal.