Decision-Focused Reinforcement Learning for LLM Post-Training

Haotian Zhai, Leqi LiuarXiv 2026 · arXiv

TL;DR

Decision-Focused Reinforcement Learning (DFRL) is a new framework for post-training Large Language Models (LLMs) to minimize downstream decision costs rather than just prediction error. By treating negative decision regret as a reinforcement learning reward, DFRL bypasses the need for differentiable optimizers and achieves up to a 31.4% reduction in regret on real-world inventory planning tasks.

What Problem Does This Paper Address?

In many industrial pipelines, we use a "predict-then-optimize" approach: an LLM predicts a parameter (like future sales), and a solver uses that prediction to make a decision (like how much stock to order).

The standard way to train these models is to minimize prediction error (e.g., Mean Squared Error). However, accuracy does not always equal decision quality. For a retailer, under-predicting demand might lead to a stockout (very expensive), while over-predicting leads to a small surplus (less expensive). A model with higher average error but "smarter" mistakes can actually be more profitable.

Existing "Decision-Focused Learning" (DFL) methods try to solve this by backpropagating through the optimizer. The catch? Many real-world optimizers (like those for integer programming) are non-differentiable or non-convex, making the math incredibly difficult or impossible to implement without restrictive assumptions.

Methods

The authors propose DFRL, which reframes the problem as a Reinforcement Learning (RL) task. Instead of trying to differentiate through the solver, they use the solver's output to calculate regret—the difference between the cost of the decision made and the "perfect" decision made with hindsight.

The DFRL pipeline: (1) Context is provided, (2) LLM predicts parameters, (3) Downstream solver finds optimal decisions, (4) Regret is evaluated, and (5) The LLM policy is updated using RL (e.g., RLOO).

Key technical contributions include:

  • RLOO Integration: They adapt the Reinforcement Learning with Leave-One-Out (RLOO) estimator to provide unbiased policy gradients based on decision regret.
  • Heuristic Warm-Starting: To save on the high computational cost of running a full optimizer during training, they start by training on a "cheap" heuristic solver before switching to the exact one.
  • Reward Correction: A clever technique that uses a mix of cheap heuristic estimates and randomized exact evaluations to maintain an unbiased gradient while reducing the total number of expensive solver calls.
  • Thinking-Enabled DFRL: They show that allowing the LLM to generate a "reasoning trace" before making a prediction significantly improves decision quality.

Datasets

The researchers evaluated DFRL across two main categories:

  1. Synthetic Benchmarks: Shortest path (Linear Programming), Knapsack (Mixed-Integer Linear Programming), and Quadratic Resource Allocation (Quadratic Programming). These were generated using the PyEPO library.
  2. Real-World Inventory Planning: A dataset constructed from H&M's "Personalized Fashion Recommendations" (Kaggle), combining transaction data with unstructured product descriptions. The task involves ordering 16 different products under a shared budget to minimize overage and shortage costs.

Key Insights and Ideas

  • The Accuracy-Decision Paradox: The paper confirms that lower prediction error (MAE) does not consistently imply lower regret. In some experiments, switching to DFRL actually increased prediction error while simultaneously decreasing decision costs.
  • Bypassing the Jacobian: By using RL, the framework treats the optimizer as a "black box." This allows LLMs to be trained for tasks involving discrete or non-convex constraints where traditional gradient-based DFL methods fail.
  • Reasoning as a Decision Tool: One of the most significant "aha moments" was the performance of the "thinking" variant. When the LLM was trained to reason about the context (e.g., "This is a summer dress, and it's currently June...") before predicting sales, it achieved the best results by a wide margin.

Key Results

  • Inventory Planning: DFRL reduced decision regret by 31.4% compared to standard Supervised Fine-Tuning (SFT) and by 12.4% compared to the strongest conventional baseline (XGBoost).
  • Synthetic Performance: DFRL achieved the lowest mean regret across all three synthetic problems, outperforming specialized baselines like SPO+.
  • Training Efficiency: Heuristic warm-starting allowed the model to make rapid initial progress, completing nearly 2x as many updates in the first five minutes compared to training with the exact solver from the start.

Limitations and Future Work

  • Solver Dependency: DFRL still requires a solver to be available during training. If the downstream optimization problem is extremely slow to solve, training becomes a bottleneck.
  • Reward Sparsity: While not explicitly detailed as a failure mode, RL-based methods can struggle if the reward signal (regret) is too sparse or noisy.
  • Future Directions: The authors suggest applying DFRL to other domains where unstructured data informs complex decisions, such as energy scheduling or supply chain management. They also note that the reward correction techniques could be useful in other RL settings where exact rewards are expensive but cheap approximations exist.

Summary updated

Abstract

Large language models (LLMs) have shown promise as predictors across various tasks, benefiting from their ability to use information from unstructured context. However, when predictions serve as parameters of downstream optimization problems, higher prediction accuracy does not necessarily translate into lower decision costs. We propose decision-focused reinforcement learning (DFRL), a framework for post-training LLMs to predict optimization parameters using negative downstream decision regret as reward. DFRL trains LLM predictors to minimize the costs of the decisions induced by their predictions, without requiring downstream convexity or differentiability, and integrates readily into existing RL post-training frameworks. To address expensive reward evaluation, we develop two approaches. Heuristic warm-starting uses inexpensive approximate rewards during an initial phase before switching to refinement with exact rewards. Reward correction combines inexpensive estimates with randomized exact evaluations, preserving the expected policy gradient while reducing the expected number of exact solves per update. Experiments on three synthetic optimization problems demonstrate improvements over prediction-loss baselines, while a larger knapsack experiment shows faster early improvement under short training budgets. On inventory planning with H&M transactions and product descriptions, our best configuration, in which the LLM reasons before predicting, reduces regret by 31.4% relative to the SFT baseline and 12.4% relative to the strongest evaluated conventional forecasting baseline.
BibTeX
@misc{zhai2026decision,
  author = {Haotian Zhai and Leqi Liu},
  title = {{Decision-Focused Reinforcement Learning for LLM Post-Training}},
  year = {2026},
  eprint = {2611.25597},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25597},
}
Figure