Maximal Multi-layer Specification Synthesis

被引:22
|
作者
Chen, Yanju [1 ]
Martins, Ruben [2 ]
Feng, Yu [1 ]
机构
[1] Univ Calif Santa Barbara, Santa Barbara, CA 93106 USA
[2] Carnegie Mellon Univ, Pittsburgh, PA 15213 USA
来源
ESEC/FSE'2019: PROCEEDINGS OF THE 2019 27TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING | 2019年
基金
美国国家科学基金会;
关键词
program synthesis; machine learning; neural networks; Max-SMT; SQL QUERIES; TRANSFORMATIONS;
D O I
10.1145/3338906.3338951
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
There has been a significant interest in applying programming-by-example to automate repetitive and tedious tasks. However, due to the incomplete nature of input-output examples, a synthesizer may generate programs that pass the examples but do not match the user intent. In this paper, we propose Mars, a novel synthesis framework that takes as input a multi-layer specification composed by input-output examples, textual description, and partial code snippets that capture the user intent. To accurately capture the user intent from the noisy and ambiguous description, we propose a hybrid model that combines the power of an LSTM-based sequence-to-sequence model with the apriori algorithm for mining association rules through unsupervised learning. We reduce the problem of solving a multi-layer specification synthesis to a Max-SMT problem, where hard constraints encode well-typed concrete programs and soft constraints encode the user intent learned by the hybrid model. We instantiate our hybrid model to the data wrangling domain and compare its performance against MORPHEUS, a state-of-the-art synthesizer for data wrangling tasks. Our experiments demonstrate that our approach outperforms MORPHEUS in terms of running time and solved benchmarks. For challenging benchmarks, our approach can suggest candidates with rankings that are an order of magnitude better than MORPHEUS which leads to running times that are 15x faster than MORPHEUS.
引用
收藏
页码:602 / 612
页数:11
相关论文
共 50 条
  • [21] A multi-layer IPsec protocol
    Zhang, YG
    Singh, B
    USENIX ASSOCIATION PROCEEDINGS OF THE NINTH USENIX SECURITY SYMPOSIUM, 2000, : 213 - 228
  • [22] Stability of multi-layer ecosystems
    Wang, Ye
    Yang, Yuguang
    Li, Aming
    Wang, Long
    JOURNAL OF THE ROYAL SOCIETY INTERFACE, 2023, 20 (199)
  • [23] Multi-layer incremental induction
    Wu, XD
    Lo, WHW
    PRICAI'98: TOPICS IN ARTIFICIAL INTELLIGENCE, 1998, 1531 : 24 - 32
  • [24] Multi-layer switching control
    Karuei, I
    Meskin, N
    Aghdam, AG
    ACC: PROCEEDINGS OF THE 2005 AMERICAN CONTROL CONFERENCE, VOLS 1-7, 2005, : 4772 - 4777
  • [25] MULTI-LAYER MICROWAVE ABSORBER
    JONES, AR
    WOODING, ER
    IEEE TRANSACTIONS ON ANTENNAS AND PROPAGATION, 1964, AP12 (04) : 508 - &
  • [26] Multi-Layer Network Architectures
    Spaeth, Jan
    OFC: 2009 CONFERENCE ON OPTICAL FIBER COMMUNICATION, VOLS 1-5, 2009, : 2621 - 2623
  • [27] Multi-layer Annotation of the Rgveda
    Hellwig, Oliver
    Hettrich, Heinrich
    Modi, Ashutosh
    Pinkal, Manfred
    PROCEEDINGS OF THE ELEVENTH INTERNATIONAL CONFERENCE ON LANGUAGE RESOURCES AND EVALUATION (LREC 2018), 2018, : 70 - 75
  • [28] Characterisation of multi-layer actuators
    Pritchard, J
    Bowen, CR
    FERROELECTRICS, 2002, 273 : 2633 - +
  • [29] Moisture in Multi-Layer Windows
    Asphaug, Silje
    Time, Berit
    Uvslokk, Sivert
    Plsek, Dalibor
    Gustaysen, Arild
    6TH INTERNATIONAL BUILDING PHYSICS CONFERENCE (IBPC 2015), 2015, 78 : 2482 - 2487
  • [30] Analysis of multi-layer arrow
    Abdullah, A
    Majid, MA
    ICECS 2003: PROCEEDINGS OF THE 2003 10TH IEEE INTERNATIONAL CONFERENCE ON ELECTRONICS, CIRCUITS AND SYSTEMS, VOLS 1-3, 2003, : 1050 - 1053