Forecasting Cross-Domain Transfer in Reasoning RL from Strategy Covariance

When a language model is trained with reinforcement learning on math problems that a program can check, its scores often rise on code, science and logic benchmarks it never saw. Sometimes they fall. Nobody can currently say in advance which will happen, how far the gain will go, or when it will stop. This note proposes a small continuous-time model of that transfer, built on one idea. Reasoning RL mostly changes how often the model uses a handful of general strategies, such as planning before solving, checking its own work, or backtracking. Those strategies are shared across domains. So the speed at which an unseen domain improves should equal the covariance, under the model's current habits, between how useful each strategy is on the training domain and how useful it is on the unseen one.

The claim follows from a classical result in evolutionary dynamics. Under replicator dynamics, the continuous-time limit of reward-weighted reinforcement of options in proportion to their relative success, the mean of any trait changes at a rate equal to its covariance with fitness. If true here, the claim yields three things that do not yet exist. The first is a forecast of out-of-domain accuracy curves from cheap measurements on the base model. The second is an explanation of why transfer saturates and sometimes reverses: covariance shrinks as strategy diversity collapses, and it changes sign when the strategy that wins in-domain hurts elsewhere. The third is a score for choosing training data that maximizes transfer to a chosen target.

Core Claim

Let $p_k(t)$ be the probability that the policy uses strategy $k$ (one of $K$ coarse behaviours) at training time $t$. Let $r_{A,k}$ and $r_{B,k}$ be the verified success rates of responses using strategy $k$ on the training domain $A$ and an unseen domain $B$. Let $\bar r_A$ and $\bar R_B(t)$ be their policy-weighted averages. We model the training-induced change in strategy logits $z_k$ on domain $B$ as a coupled replicator flow:

$$\frac{dz_{B,k}}{dt} = \kappa_k \, p_{A,k}\,(r_{A,k} - \bar r_A), \qquad \frac{d\bar R_B}{dt} = \sum_k p_{B,k}\,(r_{B,k}-\bar R_B)\,\frac{dz_{B,k}}{dt}.$$

Here $\kappa_k \ge 0$ is a per-strategy coupling that measures how much a logit change for strategy $k$ on domain $A$ moves the same strategy on domain $B$. When $\kappa_k = 1$ and the strategy mix is the same in both domains, the second equation reduces to $d\bar R_B/dt = \mathrm{Cov}_p(r_A, r_B)$, which is Fisher's fundamental theorem applied across domains.

The model makes three predictions. The sign of transfer is the sign of this covariance. Transfer slows as $\mathrm{Var}_p$ shrinks, because covariance is bounded by the product of standard deviations. A noisy verifier with Youden index $J$ (true-positive rate minus false-positive rate) replaces $r_A$ by an affine transform with slope $J$. Transfer speed should therefore scale with $J$, extending the in-domain sign-of-$J$ phase transition of Rate or Fate? to the out-of-domain case.

Relation to Prior Work

The method comes from continuous-time game dynamics. Dynamics of Softmax Q-Learning shows that softmax Q-learning becomes replicator dynamics plus an entropy term. Online Learning of Nash Equilibria in Congestion Games shows that discrete exponential-weights updates track the replicator ODE.

The closest work is Rate or Fate?. It models GRPO (group relative policy optimization) as replicator dynamics over whole responses treated as independent options, derives the $J$ phase transition and diversity collapse, and validates only in-domain on code and GSM8K. We keep the replicator machinery but change two things. The options become strategies shared across domains rather than domain-specific responses. The quantity we track is a second domain's accuracy rather than the trained domain's.

The Debate on RLVR describes shrinkage-then-expansion phases and reports out-of-domain ARC-c gains, but treats out-of-domain behaviour only empirically. Our model gives a quantitative reading of its phases: covariance decays during shrinkage and can regrow when new strategies gain mass.

New Skills or Sharper Primitives? motivates the strategy-level coarse-graining. It shows that composite success is governed by atomic-skill probabilities. It also shows that aggregate-reward optimization erodes rare skills, which in our model is exactly the mechanism for negative cross-domain covariance.

The transfer phenomena we try to predict come from three papers. CPL reports math-only training that lifts HumanEval and GPQA. Satori adds explicit reflect and explore tokens whose frequencies serve as natural strategy markers. One Training Example documents single-problem transfer and "post-saturation generalization."

That last result constrains the model, and we address it directly. Once a single problem is solved 100% of the time, the reward-driven term in our flow is zero, because every response in the group has equal advantage. Our model therefore predicts that post-saturation out-of-domain gains are driven by the entropy bonus, not the reward. This is a falsifiable consequence rather than a contradiction.

Research Program

The work has three parts.

The first part builds the coarse-graining. We define about ten strategies: plan-first decomposition, self-verification, backtracking, case analysis, guess-and-check, direct computation, code-like execution, restating constraints, early commitment, and other. We tag rollouts with a rule-based marker detector, validated by an LLM tagger on a hand-labelled sample. We also run an unsupervised alternative (clustering of response embeddings) so that conclusions do not rest on one taxonomy, and we report sensitivity to $K$.

The second part estimates the model's inputs from the base model alone. For each domain we sample rollouts once, then compute $p_{d,k}$ and $r_{d,k}$. We estimate the couplings $\kappa_k$ from the inner product of the gradients of strategy-$k$ log-probabilities on $A$ and on $B$, measured at the starting checkpoint. With these inputs we integrate the ODE to produce a forecast curve for every target domain.

The third part tests the forecast against real GRPO runs, uses it to select source data, and probes its predicted failure modes: sign reversal, $J$-scaling, and the entropy-driven post-saturation regime.

Baselines

The naive reference is a "no dynamics" forecast. It predicts the out-of-domain change as proportional to the in-domain change, with one fitted ratio per target domain. If our covariance forecast cannot beat a single scale factor, the strategy structure adds nothing.

The strongest competitor for forecasting is gradient alignment. It takes the cosine between the training-domain policy gradient and the target-domain gradient at a checkpoint and integrates it forward using the observed in-domain learning curve. This is the first-order Taylor expansion of the same transfer quantity without any strategy coarse-graining, so it is the direct test of whether coarse-graining helps. Both forecasters receive the same base-model rollouts (equal sample budget, same checkpoint) and are recomputed at the same intervals. Ours beats it if it achieves lower mean absolute error on the full out-of-domain curve over at least 1,000 steps. It should also predict the turnover step, where transfer stops or reverses, which an instantaneous cosine extrapolation cannot do without re-measurement. No reported result found on Lacuna for forecasting out-of-domain RLVR curves by any method.

For data selection, the strongest existing method is the Historical Variance Score of One Training Example, which reaches 73.6% on MATH500 from 36.0% with one problem on Qwen2.5-Math-1.5B. We compare it with random selection and with our covariance score. All three choose 1, 16 and 128 problems from the same MATH pool and are trained with identical GRPO settings and step counts. Ours wins if it yields higher target-domain accuracy on ARC-Challenge and GPQA at matched in-domain accuracy. For ARC-Challenge, the reference point for a strong out-of-domain RLVR result is GRPO-N's reported Pass@16 of 97.7% (versus 93.6% base and 93.2% GSPO) in The Debate on RLVR. We also run GRPO-N as a training-algorithm baseline under our protocol.

Two ablations isolate the key ingredient. One sets $\kappa_k = 1$ for all strategies, testing whether measured coupling matters. The other shuffles $r_{B,k}$ across strategies, testing whether alignment of strategy usefulness, rather than mere variance, carries the prediction.

Why not just…?

Why not just measure out-of-domain accuracy on a validation set during training and stop when it peaks? This is the most practical alternative, and for a single known target it works. It requires a full training run per source–target pair and explains nothing. Our forecast uses one batch of base-model rollouts per domain. The test is cost-matched: we compare forecast error against a short proxy RL run with the same rollout budget. If the proxy run is as accurate, we report that the model's value is explanatory, not predictive.

Why not just use gradient alignment? This is a real threat, since covariance under shared strategies is a structured version of gradient alignment. The decisive difference is long-horizon behaviour. Our model predicts saturation from collapsing strategy variance, and reversal when the in-domain winner hurts the target, from base-model quantities alone. If gradient alignment matches us on turnover timing, the coarse-graining is only an interpretability aid, and we will say so.

Why not just mix data from many domains? Mixing sidesteps the question when target verifiers exist. One Training Example and CPL show that large transfer arises without mixing, and many target domains lack verifiers. Our model needs target success rates only for a one-time base-model measurement, not a training-time reward.

Why not just add a task vector? Reasoning Vectors transfers reasoning post hoc, including +12.3% on BigBenchHard at 1.5B. It is a deployment trick that says nothing about which training run will transfer or when transfer degrades, so it answers a different question.

Proposed Experiments

The main testbed trains Qwen2.5-Math-1.5B and Qwen2.5-3B with GRPO on MATH, in both full-set and 1-shot regimes. We evaluate every 50 steps on ARC-Challenge, GPQA, HumanEval, CRUXEval, FOLIO and MMLU-Pro. We also run a controlled testbed on Algebrarium from New Skills or Sharper Primitives?. There, "strategies" are known atomic operations, source and target are disjoint operation families, and $r_{d,k}$ is computed exactly, so the coarse-graining error is removed.

Four checks decide the proposal.

The first is forecast fidelity. The sign of the predicted out-of-domain slope should match the observed sign in most of the (target, interval) cells, and the curve error should beat both forecasting baselines.

The second is engineered reversal. We build a MATH subset where early commitment is rewarded, because the problems are short and answer-checkable, but where early commitment has low $r_{B,k}$ on GPQA. The model must predict negative transfer to GPQA before training, and training must confirm it.

The third is verifier noise. We inject synthetic false positives and false negatives into the math reward at several values of $J$, as in Rate or Fate?. Initial out-of-domain transfer speed should scale linearly in $J$ and turn negative for $J<0$.

The fourth is the post-saturation test. After the single training problem saturates, we continue with and without the entropy bonus. The model predicts that out-of-domain gains continue only with the bonus. If gains persist without it, the replicator account is incomplete in that regime.