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 条
  • [31] Syntax-guided Contrastive Learning for Pre-trained Language Model
    Zhang, Shuai
    Wang, Lijie
    Xiao, Xinyan
    Wu, Hua
    FINDINGS OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS (ACL 2022), 2022, : 2430 - 2440
  • [32] Syntax-Guided Automated Program Repair for Hyperproperties
    Beutner, Raven
    Hsu, Tzu-Han
    Bonakdarpour, Borzoo
    Finkbeiner, Bernd
    COMPUTER AIDED VERIFICATION, PT III, CAV 2024, 2024, 14683 : 3 - 26
  • [33] Ad Hoc Syntax-Guided Program Reduction
    Tian, Jia Le
    Zhang, Mengxiao
    Xu, Zhenyang
    Tian, Yongqiang
    Dong, Yiwen
    Sun, Chengnian
    PROCEEDINGS OF THE 31ST ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2023, 2023, : 2137 - 2141
  • [34] Enhanced Enumeration Techniques for Syntax-Guided Synthesis of Bit-Vector Manipulations
    Ding, Yuantian
    Qiu, Xiaokang
    Proceedings of the ACM on Programming Languages, 2024, 8
  • [35] Enhanced Enumeration Techniques for Syntax-Guided Synthesis of Bit-Vector Manipulations
    Ding, Yuantian
    Qiu, Xiaokang
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (POPL):
  • [36] Syntax-Guided Rewrite Rule Enumeration for SMT Solvers
    Notzli, Andres
    Reynolds, Andrew
    Barbosa, Haniel
    Niemetz, Aina
    Preiner, Mathias
    Barrett, Clark
    Tinelli, Cesare
    THEORY AND APPLICATIONS OF SATISFIABILITY TESTING - SAT 2019, 2019, 11628 : 279 - 297
  • [37] A Syntax-Guided Edit Decoder for Neural Program Repair
    Zhu, Qihao
    Sun, Zeyu
    Xiao, Yuan-an
    Zhang, Wenjie
    Yuan, Kang
    Xiong, Yingfei
    Zhang, Lu
    PROCEEDINGS OF THE 29TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '21), 2021, : 341 - 353
  • [38] Syntax-Guided Hierarchical Attention Network for Video Captioning
    Deng, Jincan
    Li, Liang
    Zhang, Beichen
    Wang, Shuhui
    Zha, Zhengjun
    Huang, Qingming
    IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, 2022, 32 (02) : 880 - 892
  • [39] CVC4SY: Smart and Fast Term Enumeration for Syntax-Guided Synthesis
    Reynolds, Andrew
    Barbosa, Haniel
    Notzli, Andres
    Barrett, Clark
    Tinelli, Cesare
    COMPUTER AIDED VERIFICATION, CAV 2019, PT II, 2019, 11562 : 74 - 83
  • [40] A Syntax-Guided Neural Model for Natural Language Interfaces to Databases
    Brad, Florin
    Iacob, Radu
    Hosu, Ionel
    Ruseti, Stefan
    Rebedea, Traian
    2018 IEEE 30TH INTERNATIONAL CONFERENCE ON TOOLS WITH ARTIFICIAL INTELLIGENCE (ICTAI), 2018, : 229 - 233