Synthesis of Mathematical programs from Natural Language Specifications
Not on the map. Why?
Abstract (arXiv)
Several decision problems that are encountered in various business domains can be modeled as mathematical programs, i.e. optimization problems. The process of conducting such modeling often requires the involvement of experts trained in operations research and advanced algorithms. Surprisingly, despite the significant advances in the methods for program and code synthesis, AutoML, learning to optimize etc., there has been little or no attention paid to automating the task of synthesizing mathematical programs. We imagine a scenario where the specifications for modeling, i.e. the objective and constraints are expressed in an unstructured form in natural language (NL) and the mathematical program has to be synthesized from such an NL specification. In this work we evaluate the efficacy of employing CodeT5 with data augmentation and post-processing of beams. We utilize GPT-3 with back translation for generation of synthetic examples. Further we apply rules of linear programming to score beams and correct beams based on common error patterns. We observe that with these enhancements CodeT5 base gives an execution accuracy of 0.73 which is significantly better than zero-shot execution accuracy of 0.41 by ChatGPT and 0.36 by Codex.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 27 of its 41 references that are in the map. First posted on arXiv 30 Mar 2023.
Builds on
27 of 41 references.
References · 27
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2016CVXPY: A Python-Embedded Modeling Language for Convex Optimizationcited by 633
- 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2020Unsupervised Translation of Programming Languagescited by 262
15 more
- 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 234
- 2021GPT3Mix: Leveraging Large-scale Language Models for Text Augmentationcited by 185
- 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
- 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
- 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
- 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 92
- 2022Augmenting Operations Research with Auto-Formulation of Optimization Models from Problem Descriptionscited by 54
- 2022Data Augmentation for Intent Classification with Off-the-shelf Large Language Modelscited by 49
- 2017Neural Program Meta-Inductioncited by 23
- 2020MathOptInterface: a data structure for mathematical optimization problemscited by 9
- 2022Highlighting Named Entities in Input for Auto-Formulation of Optimization Problemscited by 8
- 2021Learning structured approximations of combinatorial optimization problemscited by 6
- 2022A Case for Business Process-Specific Foundation Modelscited by 5
- 2014Mathematical Knowledge Representation: Semantic Models and Formalismscited by 2
- 2020A Knowledge Representation Approach to Automated Mathematical Modellingcited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 5; 2026: 2.
8 papers.
- 2025Text2Zinc: A Cross-Domain Dataset for Modeling Optimization and Satisfaction Problems in MiniZinccited by 7
- 2024Abstract Operations Research Modeling Using Natural Language Inputscited by 4
- 2025DualSchool: How Reliable are LLMs for Optimization Education?cited by 3
- 2025DCP-Bench-Open: Evaluating LLMs for Constraint Modelling of Discrete Combinatorial Problemscited by 3
- 2025Large Language Model-Based Automatic Formulation for Stochastic Optimization Modelscited by 1
- 2026PEARL: Solver-in-the-Loop Interactive Optimization Modeling from Natural Languagecited by 1
- 2026Reinforcement Learning Enhanced LLM Agents for Complex Vehicle Routing Problemscited by 1
- 2025Step-Opt: Boosting Optimization Modeling in LLMs through Iterative Data Synthesis and Structured Validationcited by 0
- 2026Reinforcement Learning Enhanced LLM Agents for Complex Vehicle Routing Problems1 Sep 2026
- 2026PEARL: Solver-in-the-Loop Interactive Optimization Modeling from Natural Language14 May 2026
- 2025Large Language Model-Based Automatic Formulation for Stochastic Optimization Models24 Aug 2025
- 2025Step-Opt: Boosting Optimization Modeling in LLMs through Iterative Data Synthesis and Structured Validation21 Jun 2025
- 2025DCP-Bench-Open: Evaluating LLMs for Constraint Modelling of Discrete Combinatorial Problems6 Jun 2025
- 2025DualSchool: How Reliable are LLMs for Optimization Education?27 May 2025
- 2025Text2Zinc: A Cross-Domain Dataset for Modeling Optimization and Satisfaction Problems in MiniZinc22 Feb 2025
- 2024Abstract Operations Research Modeling Using Natural Language Inputs14 Aug 2024