TL;DR
Post-training foundation models with reinforcement learning (RL) is computationally expensive, often unstable, and must be redone from scratch whenever rewards change or combine. This paper introduces PoEM (Product of Experts Mixing), a framework that predicts and simulates RL outcomes on new reward functions at inference time by linearly combining existing post-trained adapters, completely bypassing the need for new RL training.
What Problem Does This Paper Address?
Aligning foundation models with human preferences via Reinforcement Learning from Human Feedback (RLHF) or Direct Preference Optimization (DPO) has become a standard step in model deployment. However, this post-training process is notoriously resource-intensive. If a developer wants to tweak a reward function, combine multiple objectives (e.g., helpfulness, safety, and conciseness), or optimize for a completely new reward, they typically have to launch a brand-new, expensive RL training run.
Existing shortcuts, such as averaging adapter weights, tend to degrade as the number of models increases, while test-time heuristics like best-of-N sampling are computationally inefficient. The authors of this paper tackle a fundamental question: Given a basis of single-reward post-trained adapters, can we accurately predict and simulate the RL outcome on a new reward function without actually running any additional training?
Methods
The authors introduce PoEM (Product of Experts Mixing), an inference-time method that constructs a target policy from a "basis" of pre-existing expert adapters.
The method relies on a clean theoretical foundation: if a new target reward is a linear combination of existing rewards, the optimal policy in log-space is a weighted linear combination of the base log-policies (acting as a product of experts). To make this practical, PoEM operates via the following pipeline:
- Calibration: PoEM takes a small set of calibration prompts and responses.
- Weight Estimation: It scores these responses using the new target reward function. Using ridge regression or non-negative least squares, it estimates composition weights ($\hat{\alpha}$) by matching the target reward scores against either the basis reward scores or the policy log-ratios.
- Coverage Verification: It computes a coverage score to check whether the existing basis of policies can adequately represent the new target reward before generating text.
- Inference-Time Mixing: At test time, PoEM modifies the next-token logits (for autoregressive language models) or the denoiser outputs (for diffusion models) using the calculated weights. This requires zero parameter updates.
Datasets
The framework was validated across both text and image modalities using the following datasets:
- UltraChat: Used as the primary prompt pool for training and evaluating programmatic text rewards and reward model bases.
- PKU-SafeRLHF: Used to provide harmful requests to train and evaluate safety-focused reward model experts.
- ImageNet: Class names from the first 398 classes were utilized as training prompts for the image diffusion experts.
Key Insights and Ideas
- The Policy Space Rank Gap: The most surprising finding is that while single-reward adapters have nearly orthogonal parameter updates (meaning they look like they are doing completely different things in parameter space), their policy log-ratios span a highly low-rank subspace. As shown in Figure 2, 20 distinct programmatic adapters use almost all their parameter degrees of freedom, yet their log-ratios use only about half as many effective directions as the rewards themselves.
- Behavioral Space is Small: Because the policy space is low-rank, a new reward does not actually need to be a strict linear combination of the base rewards to be successfully approximated. It just needs its optimal policy to lie within the low-rank behavioral subspace already covered by the existing experts.
- Predictive Coverage: The proposed coverage score acts as a reliable "warning system," allowing practitioners to know in advance whether the existing basis can successfully simulate the target reward.
Key Results
- Text Generation (Programmatic Rewards): On a basis of 20 adapters trained on Qwen3-0.6B, PoEM recovered most of the reward gain of a directly trained RL policy on composite rewards. Its approximation error was remarkably close to the natural variance observed between two independent RL training runs initialized with different seeds.
- Held-out Reward Generalization: On a basis of 10 diverse public reward models, PoEM generated responses closer to the directly trained RL policy than the leading single expert on 9 out of 10 held-out rewards.
- Image Generation: Using 13 adapters on Stable Diffusion v1.4 trained via DDPO, PoEM successfully approximated the visual effects (such as saturation, sharpness, and aesthetic scores) of a held-out RL adapter by combining the remaining twelve.
Limitations and Future Work
- Subspace Bounds: PoEM is strictly bounded by the policy space span of the chosen basis. If a target reward requires a behavioral direction that none of the existing adapters possess, the coverage score will be low, and PoEM will fail to accurately approximate it.
- KL Regularization Dependency: The exact mathematical composition assumes each expert was optimized using a KL-regularized objective with a shared reference model and identical hyperparameters, which may not hold true for arbitrary open-source models.
- Inference Overhead: Running $k$ experts simultaneously at inference time increases computational cost. The authors note that distilling PoEM's composed behavior into a single model is a critical direction for future work.
- Scale and Context: The method has only been validated on relatively small models and has not yet been tested on long-context generation tasks.
Summary updated