Introduction
Large Language Models (LLMs) have shown remarkable versatility, but they often struggle with numerical prediction. While "decoding-based regression"—treating numerical prediction as a sequence generation task—has emerged as a promising paradigm, it suffers from a fundamental mismatch: LLMs lack an inherent sense of numerical magnitude.
To bridge the gap between discrete token generation and continuous numerical prediction, researchers have introduced GenRe² (Generative Reinforced Regressor). By reformulating regression as a Markov Decision Process (MDP) and utilizing sequence-level rewards, GenRe² teaches models that not all digit errors are created equal. It combines a scale-aware Reinforcement Learning (RL) backbone with on-policy expert guidance, consistently outperforming traditional baselines across tabular, code, and reward-modeling tasks.
The Problem: Cross-Entropy Blindness
Standard regression models typically output a single scalar or a distribution over bins. In decoding-based regression, an LLM predicts a number digit-by-digit (e.g., generating "1", then "2", then "3" for the number 123).
The core issue lies in the Cross-Entropy (CE) loss function. CE treats every token as an independent, discrete category. To a standard LLM, predicting a "6" instead of a "5" is simply a "wrong category," regardless of whether that digit is in the hundreds place (a massive error) or the ones place (a minor error). While previous approaches have attempted to add "distance penalties" to individual tokens, these methods remain local and fail to capture the global magnitude of the resulting number. The model needs sequence-level feedback to understand when its total generated number is far from the target.
The GenRe² Framework
GenRe² tackles this temporal credit assignment challenge using two main pillars:
1. Scale-Aware RL Backbone (ReMax)
In natural language tasks, RL frameworks (like GRPO) often use reward normalization to stabilize training, preferring "good" text over "bad" text regardless of absolute reward scale. However, the authors demonstrate that for regression, scale invariance is a bug. Normalizing rewards acts as a distorting lens, erasing absolute scale information and making catastrophic errors look mathematically similar to minor ones.
Instead, GenRe² employs ReMax, an RL approach that compares sampled outputs to a greedy baseline without destroying the error magnitude. This ensures the optimizer prioritizes fixing massive numerical deviations.
2. On-Policy Distillation (OPD)
Because RL rewards are sparse—only awarded at the end of the sequence—it is difficult for the model to identify which specific digit it got wrong. GenRe² solves this using an expert oracle that provides dense, token-level feedback.
Crucially, this oracle acts as a "salvage" mechanism. Unlike standard Teacher Forcing, which rigidly forces the model down a fixed path, OPD is "on-policy." If the model makes an early mistake (e.g., starting with "60..." for a target of 52), the dynamic teacher suggests the best possible next digit to minimize the error given the current state (suggesting "0" to make 60, rather than blindly insisting on "2" which would make 62). This mechanism also naturally targets low-probability recovery tokens, injecting entropy and preventing the mode collapse often seen in RL.
Experimental Evaluation
The authors evaluated GenRe² across three diverse domains:
- Tabular Regression: Tested on the TALENT benchmark, comprising 100 diverse tabular datasets.
- Code Metric Regression: Predicted runtime metrics (latency, memory) from source code or computational graphs using datasets like NAS-Bench-101/201, APPS Leetcode, and Triton Kernel Latency.
- Generative Reward Modeling (GRM): Trained LLMs to act as judges for other models using the Feedback Collection dataset, with evaluations on FLASK, MT-Bench, and Vicuna Bench.
Key Results
GenRe² establishes a robust new paradigm for general-purpose numerical prediction, demonstrating significant improvements:
- Superiority in Tabular Data: On the 100-task TALENT benchmark, GenRe² achieved the highest R² score on 67% of the datasets. It significantly outperformed robust baselines like the Riemann (histogram) head and other LLM-based methods (NTL, DIST²).
- Scaling Reward Models: In Generative Reward Modeling, a 7B parameter GenRe² model outperformed its own 56B parameter teacher (Prometheus-8x7b-v2.0), achieving an average score of 0.6085 compared to the teacher's 0.6060.
- Robustness to Outliers: By enforcing global numerical coherence, GenRe² reduced the ratio of "catastrophic outliers" (wildly inaccurate predictions) by 64.28% compared to standard Cross-Entropy training.
Limitations and Future Directions
While GenRe² marks a significant step forward, the authors note a few limitations:
- Uncertainty Calibration: RL optimization tends to "over-sharpen" the output distribution. This makes the model highly confident even when incorrect, posing a challenge for reliable uncertainty estimation.
- Compute Overhead: Generating multiple samples (rollouts) during RL training is computationally more expensive than simple supervised fine-tuning.
- Architectural Integration: The current work primarily utilized MLPs as encoders for tabular data. Future research will explore integrating GenRe² with specialized tabular transformers or Deep Forest architectures.
Summary updated