Distributionally Robust Token Optimization in RLHF
Organizations: Department of System Engineering Boston University, Boston, MA 02215, USA · Department of Math & Statistics Boston University, Boston, MA 02215, USA
Abstract
Large Language Models (LLMs) tend to respond correctly to prompts that align well with the data they were trained and fine-tuned on. Yet, small shifts in wording, format, or language can trigger surprisingly large failures, especially on multi-step reasoning problems. To address this problem, we propose a Distributionally Robust Token Optimization (DRTO) approach, which combines token-level Reinforcement Learning from Human Feedback (RLHF) with Distributionally Robust Optimization (DRO). DRTO constructs f-divergence ambiguity sets over span-level actor losses, providing a principled way to emphasize difficult response segments during policy optimization. Empirically, DRTO enhances consistency under distribution shifts in multiple reasoning benchmarks among different tasks, achieving percentage points on MATH-500 and percentage points on LiveCodeBench over standard RTO.
Figures & tables
| Models | Accuracy | ||||
|---|---|---|---|---|---|
| GSM8K | GSM (CoT) | GSM (ES) | MATH-500 | GPQA | |
| RTO | 73.2 | 74.4 | 66.0 | 18.0 | 26.3 |
| SFT | 61.4 -11.8 | 64.8 -9.6 | 63.6 -2.4 | 17.4 -0.6 | 24.8 -1.5 |
| PPO | 73.2 0.0 | 75.2 +0.8 | 65.6 -0.4 | 17.0 -1.0 | 25.8 -0.5 |
| DPO | 73.9 +0.7 | 76.4 +2.0 | 66.4 +0.4 | 20.1 +2.1 | 20.7 -5.6 |
| FlowRL | 75.9 +2.7 | 76.2 +1.8 | 66.0 0.0 | 19.2 +1.2 | 28.8 +2.5 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Question. Terry eats 2 yogurts a day. They are currently on sale at 4 yogurts for $5.00. How much does he spend on yogurt over 30 days? |
|---|
| RTO. Terry eats 2 yogurts a day, so over 30 days he eats 230=<<230=60>>60 yogurts. They are currently on sale at 4 yogurts for <<60/4=15>>15.00 on yogurt over 30 days. #### 15 |
| -DRTO ( ). Terry eats 2 yogurts a day, so over 30 days he eats 230=<<230=60>>60 yogurts. They are currently on sale at 4 yogurts for 5.00 for every 4 yogurts. To find out how much Terry spends on 60 yogurts, we can divide 60 by 4 to find out how many sets of 4 yogurts he needs: 60/4=<<60/4=15>>15 sets of 4 yogurts. Since each set of 4 yogurts costs 5.00=<<15*5=75>>$75.00 on yogurt over 30 days. #### 75 |
| KL-DRTO ( ). Terry eats 2 yogurts a day, so over 30 days he eats 230=<<230=60>>60 yogurts. The sale is 4 yogurts for 5.00/4 = 1.25 = $<<60*1.25=75>>75 on yogurt over 30 days. #### 75 |
Language Model Robustness
Language model robustness studies how reliably language models preserve correct, safe behavior under input changes, distribution shifts, and adversarial pressure.
See all 493 papers