Reinforcement Learning and Data-Generation for Syntax-Guided Synthesis

被引:0
|
作者
Parsert, Julian [1 ,2 ]
Polgreen, Elizabeth [2 ]
机构
[1] Univ Oxford, Oxford, England
[2] Univ Edinburgh, Edinburgh, Midlothian, Scotland
基金
奥地利科学基金会; 英国工程与自然科学研究理事会;
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Program synthesis is the task of automatically generating code based on a specification. In Syntax-Guided Synthesis (SyGuS) this specification is a combination of a syntactic template and a logical formula, and the result is guaranteed to satisfy both. We present a reinforcement-learning guided algorithm for SyGuS which uses Monte-Carlo Tree Search (MCTS) to search the space of candidate solutions. Our algorithm learns policy and value functions which, combined with the upper confidence bound for trees, allow it to balance exploration and exploitation. A common challenge in applying machine learning approaches to syntax-guided synthesis is the scarcity of training data. To address this, we present a method for automatically generating training data for SyGuS based on anti-unification of existing first-order satisfiability problems, which we use to train our MCTS policy. We implement and evaluate this setup and demonstrate that learned policy and value improve the synthesis performance over a baseline by over 26 percentage points in the training and testing sets. Our tool outperforms state-of-the-art tool cvc5 on the training set and performs comparably in terms of the total number of problems solved on the testing set (solving 23% of the benchmarks on which cvc5 fails). We make our data set publicly available, to enable further application of machine learning methods to the SyGuS problem.
引用
收藏
页码:10670 / 10678
页数:9
相关论文
共 50 条
  • [1] Syntax-Guided Synthesis
    Alur, Rajeev
    Bodik, Rastislav
    Dallal, Eric
    Fisman, Dana
    Garg, Pranav
    Juniwal, Garvit
    Kress-Gazit, Hadas
    Madhusudan, P.
    Martin, Milo M. K.
    Raghothaman, Mukund
    Saha, Shamwaditya
    Seshia, Sanjit A.
    Singh, Rishabh
    Solar-Lezama, Armando
    Torlak, Emina
    Udupa, Abhishek
    DEPENDABLE SOFTWARE SYSTEMS ENGINEERING, 2015, 40 : 1 - 25
  • [2] Syntax-Guided Synthesis
    Alur, Rajeev
    Bodik, Rastislav
    Juniwal, Garvit
    Martin, Milo M. K.
    Raghothaman, Mukund
    Seshia, Sanjit A.
    Singh, Rishabh
    Solar-Lezama, Armando
    Torlak, Emina
    Udupa, Abhishek
    2013 FORMAL METHODS IN COMPUTER-AIDED DESIGN (FMCAD), 2013, : 1 - 8
  • [3] Syntax-guided question generation using prompt learning
    Hou, Zheheng
    Bi, Sheng
    Qi, Guilin
    Zheng, Yuanchun
    Ren, Zuomin
    Li, Yun
    NEURAL COMPUTING & APPLICATIONS, 2024, 36 (12): : 6271 - 6282
  • [4] Syntax-guided question generation using prompt learning
    Zheheng Hou
    Sheng Bi
    Guilin Qi
    Yuanchun Zheng
    Zuomin Ren
    Yun Li
    Neural Computing and Applications, 2024, 36 : 6271 - 6282
  • [5] Syntax-Guided Controlled Generation of Paraphrases
    Kumar, Ashutosh
    Ahuja, Kabir
    Vadapalli, Raghuram
    Talukdar, Partha
    TRANSACTIONS OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, 2020, 8 (08) : 330 - 345
  • [6] Syntax-Guided Synthesis for Lemma Generation in Hardware Model Checking
    Zhang, Hongce
    Gupta, Aarti
    Malik, Sharad
    VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, VMCAI 2021, 2021, 12597 : 325 - 349
  • [7] Accelerating Syntax-Guided Invariant Synthesis
    Fedyukovich, Grigory
    Bodik, Rastislav
    TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, TACAS 2018, PT I, 2018, 10805 : 251 - 269
  • [8] Grammar Filtering for Syntax-Guided Synthesis
    Morton, Kairo
    Hallahan, William
    Shum, Elven
    Piskac, Ruzica
    Santolucito, Mark
    THIRTY-FOURTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, THE THIRTY-SECOND INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE AND THE TENTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2020, 34 : 1611 - 1618
  • [9] Syntax-Guided Synthesis of Datalog Programs
    Si, Xujie
    Lee, Woosuk
    Zhang, Richard
    Albarghouthi, Aws
    Koutris, Paraschos
    Naik, Mayur
    ESEC/FSE'18: PROCEEDINGS OF THE 2018 26TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2018, : 515 - 527
  • [10] Proving Unrealizability for Syntax-Guided Synthesis
    Hu, Qinheping
    Breck, Jason
    Cyphert, John
    D'Antoni, Loris
    Reps, Thomas
    COMPUTER AIDED VERIFICATION, CAV 2019, PT I, 2019, 11561 : 335 - 352