arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2304.03287cs.AIcs.CLcs.LG
收藏

从自然语言规范合成数学规划

Synthesis of Mathematical programs from Natural Language Specifications

Tata Consultancy Services Research(塔塔咨询服务研究院)

Ganesh Prasath, Shirish Karande

AI总结:

本研究针对从自然语言规范自动合成数学规划的问题,通过使用CodeT5结合数据增强、beam后处理及线性规划规则校正,显著提升了执行准确率,优于ChatGPT和Codex的零样本表现。

摘要:

在各个商业领域遇到的许多决策问题都可以建模为数学规划,即优化问题。进行此类建模的过程通常需要受过运筹学和高级算法训练的专家的参与。令人惊讶的是,尽管在程序和代码合成、AutoML、学习优化等方法上取得了显著进展,但很少有人或根本没有关注自动化合成数学规划的任务。我们设想一个场景,其中建模的规范,即目标和约束,以非结构化的自然语言(NL)形式表达,并且必须从这样的NL规范合成数学规划。在这项工作中,我们评估了采用CodeT5结合数据增强和beam后处理的有效性。我们利用GPT-3进行反向翻译以生成合成示例。此外,我们应用线性规划规则对beam进行评分,并根据常见错误模式纠正beam。我们观察到,通过这些增强,CodeT5 base的执行准确率为0.73,显著优于ChatGPT的0.41和Codex的0.36的零样本执行准确率。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑