mlsanityData to 7 Oct 2026

Synthesis of Mathematical programs from Natural Language Specifications

arXiv 2304.03287 ↗First posted 30 Mar 2023cs.AI cs.CL cs.LGcited by 8

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  4. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  5. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  6. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
  7. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  8. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
  9. 2016CVXPY: A Python-Embedded Modeling Language for Convex Optimizationcited by 633
  10. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
  11. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  12. 2020Unsupervised Translation of Programming Languagescited by 262
15 more
  1. 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 234
  2. 2021GPT3Mix: Leveraging Large-scale Language Models for Text Augmentationcited by 185
  3. 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
  4. 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
  5. 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
  6. 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 92
  7. 2022Augmenting Operations Research with Auto-Formulation of Optimization Models from Problem Descriptionscited by 54
  8. 2022Data Augmentation for Intent Classification with Off-the-shelf Large Language Modelscited by 49
  9. 2017Neural Program Meta-Inductioncited by 23
  10. 2020MathOptInterface: a data structure for mathematical optimization problemscited by 9
  11. 2022Highlighting Named Entities in Input for Auto-Formulation of Optimization Problemscited by 8
  12. 2021Learning structured approximations of combinatorial optimization problemscited by 6
  13. 2022A Case for Business Process-Specific Foundation Modelscited by 5
  14. 2014Mathematical Knowledge Representation: Semantic Models and Formalismscited by 2
  15. 2020A Knowledge Representation Approach to Automated Mathematical Modellingcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 5; 2026: 2.

8 papers.