Journal on Communications ›› 2023, Vol. 44 ›› Issue (11): 249-259.doi: 10.11959/j.issn.1000-436x.2023203

• Papers • Previous Articles    

PSR-SQUARES: SQL reverse synthesis system based on program space reducer

Quansheng DOU1,2, Shun ZHANG1, Hao PAN1, Huixian WANG1, Huanling TANG1   

  1. 1 School of Information and Electronic Engineering, Shandong Technology and Business University, Yantai 264005, China
    2 School of Computer Science and Technology, Kashi University, Kashi 844006, China
  • Revised:2023-10-13 Online:2023-11-01 Published:2023-11-01
  • Supported by:
    The National Natural Science Foundation of China(61976124);The National Natural Science Foundation of China(61976125);The Natural Science Foundation of Xinjiang Uygur Autonomous Region(2022D01A237);The Natural Science Foundation of Xinjiang Uygur Autonomous Region(2022D01A238)

Abstract:

In order to address the issue of rapid growth of program space in SQUARES, which led to low efficiency in program synthesis, a program space reducer based on deep neural network (DNN) was introduced into the SQUARES framework.A given <Queried tables, Query result> pair was represented as a 2D tensor which was used as input for a DNN.And the output of the DNN was the relevance vector of the target SQL statement synthesis rules.Based on the output of the DNN, the last N rules with weak correlation to the target SQL statement were eliminated, thereby shrinking the program search space and improving the system synthesis efficiency.The architecture of DNN, the method of generating training datasets, and the training process of DNN were described in detail.Furthermore, experimental comparisons between PSR-SQUARES and other representative SQL reverse synthesis systems were conducted.The results show that the overall performance of PSR-SQUARES is superior to other synthesis systems to varying degrees, with the average synthesis time reduced from 251 s in SQUARES to 130 s and the target program synthesis success rate increased from 80% to 89%.

Key words: program synthesis, SQL reverse synthesis, SQUARES, program space reducer, domain-specific language

CLC Number: 

No Suggested Reading articles found!