Auto-Formulating Dynamic Programming Problems with Large Language Models
Not on the map. Why?
Abstract (arXiv)
Dynamic programming (DP) is a fundamental method in operations research, but formulating DP models has traditionally required expert knowledge of both the problem context and DP techniques. Large Language Models (LLMs) offer the potential to automate this process. However, DP problems pose unique challenges due to their inherently stochastic transitions and the limited availability of training data. These factors make it difficult to directly apply existing LLM-based models or frameworks developed for other optimization problems, such as linear or integer programming. We introduce DP-Bench, the first benchmark covering a wide range of textbook-level DP problems to enable systematic evaluation. We present Dynamic Programming Language Model (DPLM), a 7B-parameter specialized model that achieves performance comparable to state-of-the-art LLMs like OpenAI's o1 and DeepSeek-R1, and surpasses them on hard problems. Central to DPLM's effectiveness is DualReflect, our novel synthetic data generation pipeline, designed to scale up training data from a limited set of initial examples. DualReflect combines forward generation for diversity and backward generation for reliability. Our results reveal a key insight: backward generation is favored in low-data regimes for its strong correctness guarantees, while forward generation, though lacking such guarantees, becomes increasingly valuable at scale for introducing diverse formulations. This trade-off highlights the complementary strengths of both approaches and the importance of combining them.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 21 of its 35 references that are in the map. First posted on arXiv 15 Jul 2025.
Builds on
21 of 35 references.
References · 21
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2019Deep Learning for Symbolic Mathematicscited by 270
- 2023Secrets of RLHF in Large Language Models Part I: PPOcited by 229
- 2023NL4Opt Competition: Formulating Optimization Problems Based on Their Natural Language Descriptionscited by 135
- 2024ORLM: A Customizable Framework in Training Large Models for Automated Optimization Modelingcited by 124
- 2025LLM Generated Persona is a Promise with a Catchcited by 81
- 2024MEDEC: A Benchmark for Medical Error Detection and Correction in Clinical Notescited by 80
- 2024OptiBench Meets ReSocratic: Measure and Improve LLMs for Optimization Modelingcited by 68
9 more
- 2025OptMATH: A Scalable Bidirectional Data Synthesis Framework for Optimization Modelingcited by 49
- 2024Global Lyapunov functions: a long-standing open problem in mathematics, with symbolic transformerscited by 29
- 2024Large Language Models for Market Research: A Data-augmentation Approachcited by 20
- 2025Online Scheduling for LLM Inference with KV Cache Constraintscited by 19
- 2025Optimizing LLM Inference: Fluid-Guided Online Scheduling with Memory Constraintscited by 19
- 2024LOLA: LLM-Assisted Online Learning Algorithm for Content Experimentscited by 18
- 2025Throughput-Optimal Scheduling Algorithms for LLM Inference and AI Agentscited by 18
- 2024Robust and Adaptive Optimization under a Large Language Model Lenscited by 8
- 2024A Tutorial on Teaching Data Analytics with Generative AIcited by 1
Built on by
Citing papers per year: 2025: 5; 2026: 11.
16 papers.
Sort:
By area:
- 2025StepORLM: A Self-Evolving Framework With Generative Process Supervision For Operations Research Language Modelscited by 26
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solvingcited by 11
- 2026AI Agents for Inventory Control: Human-LLM-OR Complementaritycited by 8
- 2025ORThought: Benchmarking and Automating Logistics Optimization Modelingcited by 5
- 2025Ask, Clarify, Optimize: Human-LLM Agent Collaboration for Smarter Inventory Controlcited by 5
- 2026OptiRepair: Closed-Loop Diagnosis and Repair of Supply Chain Optimization Models with LLM Agentscited by 5
- 2026LLM-SAA: LLM-persona Generated Distributions for Decision-makingcited by 3
- 2026Canonical Intermediate Representation for LLM-based optimization problem formulation and code generationcited by 2
- 2026Democratizing Large-Scale Re-Optimization with LLM-Guided Model Patchescited by 2
- 2026OR-Space: A Full-Lifecycle Workspace Benchmark for Industrial Optimization Agentscited by 2
- 2026Optimizing Service Operations via LLM-Powered Multi-Agent Simulationcited by 1
- 2025ORPR: An OR-Guided Pretrain-then-Reinforce Learning Model for Inventory Managementcited by 0
4 more
- 2026The Generalization Spectrum: A Chromatographic Approach to Evaluating Learning Algorithmscited by 0
- 2026COOPA: A Modular LLM Agent Architecture for Operations Research Problemscited by 0
- 2026LLMs as Adaptive Meta-Solvers: Strategy-Diverse RL for Industrial-Scale Optimizationcited by 0
- 2026OR for AI That Does OR: Routing LLMs up the Escalator inside the OSCAR Frameworkcited by 0
- 2026OR for AI That Does OR: Routing LLMs up the Escalator inside the OSCAR Framework1 Oct 2026
- 2026LLMs as Adaptive Meta-Solvers: Strategy-Diverse RL for Industrial-Scale Optimization28 Sep 2026
- 2026COOPA: A Modular LLM Agent Architecture for Operations Research Problems25 Jun 2026
- 2026The Generalization Spectrum: A Chromatographic Approach to Evaluating Learning Algorithms24 Jun 2026
- 2026OR-Space: A Full-Lifecycle Workspace Benchmark for Industrial Optimization Agents27 May 2026
- 2026Democratizing Large-Scale Re-Optimization with LLM-Guided Model Patches18 May 2026
- 2026Optimizing Service Operations via LLM-Powered Multi-Agent Simulation6 Apr 2026
- 2026OptiRepair: Closed-Loop Diagnosis and Repair of Supply Chain Optimization Models with LLM Agents23 Feb 2026
- 2026AI Agents for Inventory Control: Human-LLM-OR Complementarity13 Feb 2026
- 2026LLM-SAA: LLM-persona Generated Distributions for Decision-making6 Feb 2026
- 2026Canonical Intermediate Representation for LLM-based optimization problem formulation and code generation2 Feb 2026
- 2025Ask, Clarify, Optimize: Human-LLM Agent Collaboration for Smarter Inventory Control31 Dec 2025
4 more
- 2025ORPR: An OR-Guided Pretrain-then-Reinforce Learning Model for Inventory Management22 Dec 2025
- 2025StepORLM: A Self-Evolving Framework With Generative Process Supervision For Operations Research Language Models26 Sep 2025
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solving10 Sep 2025
- 2025ORThought: Benchmarking and Automating Logistics Optimization Modeling20 Aug 2025
- 2026AI Agents for Inventory Control: Human-LLM-OR Complementaritycited by 8
- 2025Ask, Clarify, Optimize: Human-LLM Agent Collaboration for Smarter Inventory Controlcited by 5
- 2026OptiRepair: Closed-Loop Diagnosis and Repair of Supply Chain Optimization Models with LLM Agentscited by 5
- 2026OR-Space: A Full-Lifecycle Workspace Benchmark for Industrial Optimization Agentscited by 2
- 2026Optimizing Service Operations via LLM-Powered Multi-Agent Simulationcited by 1
- 2026COOPA: A Modular LLM Agent Architecture for Operations Research Problemscited by 0
- 2026COOPA: A Modular LLM Agent Architecture for Operations Research Problems25 Jun 2026
- 2026OR-Space: A Full-Lifecycle Workspace Benchmark for Industrial Optimization Agents27 May 2026
- 2026Optimizing Service Operations via LLM-Powered Multi-Agent Simulation6 Apr 2026
- 2026OptiRepair: Closed-Loop Diagnosis and Repair of Supply Chain Optimization Models with LLM Agents23 Feb 2026
- 2026AI Agents for Inventory Control: Human-LLM-OR Complementarity13 Feb 2026
- 2025Ask, Clarify, Optimize: Human-LLM Agent Collaboration for Smarter Inventory Control31 Dec 2025
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solvingcited by 11
- 2026LLM-SAA: LLM-persona Generated Distributions for Decision-makingcited by 3
- 2026Canonical Intermediate Representation for LLM-based optimization problem formulation and code generationcited by 2
- 2026Democratizing Large-Scale Re-Optimization with LLM-Guided Model Patchescited by 2
- 2025ORPR: An OR-Guided Pretrain-then-Reinforce Learning Model for Inventory Managementcited by 0
- 2026The Generalization Spectrum: A Chromatographic Approach to Evaluating Learning Algorithmscited by 0
- 2026LLMs as Adaptive Meta-Solvers: Strategy-Diverse RL for Industrial-Scale Optimizationcited by 0
- 2026OR for AI That Does OR: Routing LLMs up the Escalator inside the OSCAR Frameworkcited by 0
- 2026OR for AI That Does OR: Routing LLMs up the Escalator inside the OSCAR Framework1 Oct 2026
- 2026LLMs as Adaptive Meta-Solvers: Strategy-Diverse RL for Industrial-Scale Optimization28 Sep 2026
- 2026The Generalization Spectrum: A Chromatographic Approach to Evaluating Learning Algorithms24 Jun 2026
- 2026Democratizing Large-Scale Re-Optimization with LLM-Guided Model Patches18 May 2026
- 2026LLM-SAA: LLM-persona Generated Distributions for Decision-making6 Feb 2026
- 2026Canonical Intermediate Representation for LLM-based optimization problem formulation and code generation2 Feb 2026
- 2025ORPR: An OR-Guided Pretrain-then-Reinforce Learning Model for Inventory Management22 Dec 2025
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solving10 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2024Leveraging Large Language Models for Solving Rare MIP Challenges
- 2025Step-Opt: Boosting Optimization Modeling in LLMs through Iterative Data Synthesis and Structured Validation
- 2024Designing Algorithms Empowered by Language Models: An Analytical Framework, Case Studies, and Insights
- 2025LLMize: A Framework for Large Language Model-Based Numerical Optimization
- 2025ReflecSched: Solving Dynamic Flexible Job-Shop Scheduling via LLM-Powered Hierarchical Reflection
- 2025OptiMind: Teaching LLMs to Think Like Optimization Experts
- 2026FrontierOR: Benchmarking LLMs' Capacity for Efficient Algorithm Design in Large-Scale Optimization
- 2025LLM-ProS: Analyzing Large Language Models' Performance in Competitive Problem Solving