TL;DR
Standard large language model (LLM) regression methods optimize individual outputs independently, causing the model's predictions to collapse toward a narrow mean and ruining its uncertainty calibration. This paper introduces Distribution-Aware Reward (DAR), a reinforcement learning objective that treats a batch of model rollouts as an empirical predictive distribution. By scoring the collective output using the Continuous Ranked Probability Score (CRPS) and assigning credit via a leave-one-out approach, DAR trains LLMs to produce accurate, well-dispersed, and highly calibrated continuous predictions.
What Problem Does This Paper Address?
Large language models are increasingly deployed as flexible regressors to map complex, heterogeneous inputs (like source code or chemical SMILES strings) to continuous numeric values (like program runtime or molecular solubility).
However, standard training paradigms—such as Supervised Fine-Tuning (SFT) or Reinforcement Learning (RL) with Mean Squared Error (MSE) rewards—evaluate each generated output (rollout) in isolation. This "pointwise" approach forces the model to be inherently mean-seeking. To minimize individual errors, the model learns to hedge its bets by collapsing all its samples toward the conditional mean.
Consequently, the resulting predictive distribution becomes overly narrow and uncalibrated. This lack of useful spread makes it impossible for the model to provide reliable uncertainty estimates or accurately rank candidate options—capabilities that are vital for downstream scientific and engineering decisions.
Methods
The authors introduce Distribution-Aware Reward (DAR), an on-policy RL framework that shifts the optimization target from individual scalar outputs to the entire predictive distribution.
- Empirical Distribution Formation: For a given input, the LLM policy generates $K$ separate rollouts, which are parsed into a set of scalar predictions representing an empirical distribution.
- CRPS Evaluation: Instead of calculating MSE, the full set of predictions is scored using the Continuous Ranked Probability Score (CRPS). CRPS is a mathematically "proper scoring rule" for distributions that naturally balances two things: pushing the probability mass close to the true target (accuracy) and maintaining a healthy variance among the samples (dispersion).
- Leave-One-Out (LOO) Credit Assignment: Standard RL algorithms (like GRPO, which this paper utilizes) require a specific scalar reward for each rollout. To achieve this, DAR calculates the marginal contribution of each rollout by computing the CRPS of the full set and subtracting the CRPS of the set excluding that specific rollout.
Through this LOO mechanism, a rollout that might have a higher individual error can still receive a high reward if it provides necessary variance that helps the collective set span the true target.
Datasets
The authors evaluated DAR across three distinct environments:
- Synthetic Distributional Regression: A controlled 1D dataset where targets are sampled from a heteroscedastic two-component Gaussian mixture model, specifically testing interpolation and extrapolation boundaries.
- Coding Performance Prediction: The Code-Regression benchmark, consisting of KBSS (predicting Triton GPU kernel execution latency) and APPS (predicting Python code peak-memory usage).
- Molecular Property Prediction: Three physicochemical regression tasks from MoleculeNet: ESOL (water solubility), FreeSolv (hydration free energy), and Lipophilicity.
Key Insights and Ideas
- Rewarding the "Imperfect" but Necessary Sample: In pointwise RL, an outlier sample is always penalized. Under DAR, if the current pool of samples is heavily biased to one side of the true target, an "outlier" on the other side is highly rewarded because it corrects the collective distribution's bias.
- Mitigating Diversity Collapse: A notorious failure mode of RLHF and GRPO is policy entropy collapse, where the model becomes entirely deterministic. Because the CRPS metric explicitly penalizes a degenerate point-mass distribution, DAR naturally forces the LLM to maintain output diversity during training.
- Text-Only Competitive with 3D Models: By directly optimizing the predictive distribution, a standard text-based LLM processing simple SMILES strings can perform competitively with specialized Graph Neural Networks (GNNs) and 3D molecular models that possess explicit geometric inductive biases.
Key Results
- Strong Rank-Correlation Gains: DAR significantly improved the model's ability to order examples correctly. On the KBSS coding task, it achieved a 6-point improvement in Spearman correlation over SFT and MSE baselines (0.66 vs 0.61/0.60). On the APPS memory task, it reached a Spearman correlation of 0.96.
- State-of-the-Art LLM Regression on MoleculeNet: DAR achieved statistically significant improvements in Root Mean Squared Error (RMSE) on FreeSolv (2.360) and Lipophilicity (0.776) compared to other LLM training strategies.
- Excellent Uncertainty Diagnostics: The authors found a remarkable log-Pearson correlation of 0.91 between the standard deviation of DAR's rollouts and its actual prediction error. This means the model's sample variance can be trusted as a highly reliable proxy for its real-world uncertainty.
Limitations and Future Work
- Computational Expense: Generating multiple rollouts ($K=12$ during training, 32 at inference) makes LLM-based regression vastly more compute-heavy and less sample-efficient than traditional methods like Gaussian Processes or Gradient-Boosted Trees.
- Sensitivity to Hyperparameters: The model's performance remains sensitive to typical LLM variables like prompt formatting, sampling temperatures, and output parsing constraints.
- Dimensionality Constraints: The current formulation of DAR is strictly designed for 1D scalar regression. Extending this distribution-aware reward to multi-dimensional outputs or structured scientific predictions that require strict physical constraints remains an open area for future research.
Summary updated