TL;DR
When we deploy generative models today, we often let them take multiple shots at a problem—using strategies like Majority Vote or Best-of-$N$. Yet, we still train them as if they only get one chance, inadvertently crushing the creative diversity needed for multi-sample search. Compute Aligned Training (CAT) bridges this gap by baking the test-time strategy directly into the training loss, dramatically boosting performance at scale without adding a single FLOP to training costs.
What Problem Does This Paper Address?
Imagine training an archer to hit the exact center of a bullseye on a single shot, and then entering them into a competition where they get 100 arrows and only need one to hit a tiny, distant target. Standard post-training paradigms—Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL)—optimize for the expected quality of a single output. This makes models risk-averse, converging on a narrow set of "safe," high-probability answers.
Meanwhile, modern deployment relies heavily on scaling test-time compute: generating $N$ candidates and aggregating or filtering them via Pass@$N$ (at least one right answer), Majority Vote (most common answer wins), or Best-of-$N$ (highest-scoring answer wins).
This creates a fundamental misalignment:
- The Efficiency Gap: If a model already has a 50% chance of solving an easy math problem, its Pass@100 score is virtually 100%. Standard SFT still wastes gradient updates pushing that 50% toward 90%, rather than spending capacity on harder problems.
- The Consensus Gap: In Majority Vote, winning 35% of the vote is plenty if the runner-up gets 10%. Standard training needlessly pushes for "landslide" 100% victories, collapsing the variance needed to explore hard reasoning paths.
Methods
Instead of treating inference strategies as post-hoc heuristics, the authors formalize them as mathematical operators ($\mathcal{T}$) that transform a base model policy ($\pi_\theta$) into an effective test-time distribution ($\tilde{\pi}_\theta$). Rather than optimizing $\pi_\theta$, Compute Aligned Training (CAT) minimizes the loss of $\tilde{\pi}_\theta$.
Differentiating through an entire output space of $N$ samples sounds computationally ruinous. To keep training overhead at zero, the authors introduce a diagonal approximation of the Jacobian. Because the probability of selecting the right answer after search mostly depends on its own base probability $p$, CAT simply multiplies standard SFT or RL gradients by a closed-form scalar weight $w(p, \phi)$ representing the sample's marginal utility to the test-time strategy:
- Pass@$N$: Weighting decreases monotonically with $p$, suppressing gradients on "easy" problems already likely to be solved in $N$ tries.
- Majority Vote: Concentrates gradient updates right near the consensus threshold, ignoring samples that are already winning comfortably.
- Best-of-$N$ (RL): Weights samples by their empirical reward rank in a rollout batch, inducing winner-take-all dynamics where failures are tolerated as long as one sample hits the jackpot.
Datasets
- MATH Benchmark: Used to fine-tune and evaluate
Mistral-7B-Instruct-v0.2across SFT and RL (GRPO) regimes. - Synthetic Protein Landscapes: No new static datasets are introduced, but for Protein Language Models (
ProtGPT2), the authors construct two custom reward tasks based on amino acid hydrophobicity—one unconditional (navigating a non-convex multi-modal reward landscape) and one conditional (generating sequences with inverse hydrophobicity to an input sequence).
Key Insights and Ideas
- The "Search Tax" is a feature, not a bug: Models trained for large test-time budgets ($N=64$) perform worse when forced to generate a single answer (Pass@1), because they intentionally preserve uncertainty and variance. Once allowed to search at test time, they blow past standard baselines.
- Escaping local traps via variance: In non-convex protein design, Standard RL gets stuck in a safe, mediocre local optimum because exploring across a penalized "valley" hurts expected single-sample reward. Best-of-$N$ RL bifurcates its distribution—willingly generating bad sequences so that its upper tail reaches the global maximum.
- RL unlocks dynamic consensus: While Majority Vote in SFT requires guessing a fixed vote-share threshold $k$ as a hyperparameter, RL rollouts let CAT dynamically estimate $k$ on the fly from the batch itself.
Key Results
- SFT on MATH: Training for Pass@64 incurs a 2.28% drop on Pass@1 compared to standard SFT, but yields a 7.80% absolute improvement on Pass@64 (67.6% vs. 59.8%). Under Majority Vote, the Maj@16 CAT model improves Maj@64 accuracy to 26.2% over the 23.9% SFT baseline.
- RL on MATH: Standard GRPO suffers from policy collapse, saturating at 35.8% on Pass@32. Pass@16-aligned RL preserves exploration and reaches 40.0%. Similarly, Maj@4-aligned RL boosts Maj@16 accuracy from 19.2% to 23.0%.
- Protein Generation (
ProtGPT2): In unconditional generation, Standard RL plateaus at an expected max reward of 11.40 at $N=64$ (3.18 at $N=1$), whereas BoN-8 hits 9.82 at $N=1$ and saturates near the theoretical ceiling at 12.16. In conditional generation, BoN-2 pays a steep Search Tax at $N=1$ (5.36 vs. Standard RL's 7.26) before surging ahead at $N=32$ (9.96 vs. 8.89).
Limitations and Future Work
- Gradient Variance Inflation: At large target budgets (e.g., $N=64$ in SFT Majority Vote), the scaling weights can severely inflate gradient variance and degrade training—creating a bias-variance "sweet spot" around $N=16$. Principled variance reduction techniques are needed.
- The Diagonal Approximation: Ignoring off-diagonal interactions keeps CAT free of extra compute, but may underestimate the true learning signal when competing wrong answers strongly interact.
- Complex Search: So far, CAT handles clean, single-step aggregation strategies. Extending this operator view to multi-step, stateful search like Monte Carlo Tree Search (MCTS), genetic algorithms, or agentic workflows—where closed-form probabilities are elusive—is wide open for future work.
Summary updated