mlsanityData to 7 Oct 2026

FuncEvalGMN: Evaluating Functional Correctness of SQL via Graph Matching Network

arXiv 2407.14530 ↗First posted 9 Jul 2024cs.DB cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

In this paper, we propose a novel graph-based methodology to evaluate the functional correctness of SQL generation. Conventional metrics for assessing SQL code generation, such as matching-based and execution-based methods (e.g., exact set match and execution accuracy), are subject to two primary limitations. Firstly, the former fails to effectively assess functional correctness, as different SQL queries may possess identical functionalities. Secondly, the latter is susceptible to producing false positive samples in evaluations. Our proposed evaluation method, textttFuncEvalGMN, does not depend on the sufficient preparation of the test data, and it enables precise testing of the functional correctness of the code. Firstly, we parse SQL using a relational operator tree (ROT) called textitRelnode, which contains rich semantic information from the perspective of logical execution.Then, we introduce a GNN-based approach for predicting the functional correctness of generated SQL. This approach incorporates global positional embeddings to address the limitations with the loss of topological information in conventional graph matching frameworks. As an auxiliary contribution, we propose a rule-based matching algorithm, Relnode Partial Matching (textttRelPM) as a baseline. Finally, we contribute a dataset, textttPair-Aug-Spider with a training set and two testing sets, each comprising pairs of SQL codes to simulate various SQL code evaluation scenarios. The training set and one testing dataset focus on code generation using large language models (LLMs), while the other emphasizes SQL equivalence rewriting.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 34 of its 57 references that are in the map. First posted on arXiv 9 Jul 2024.

Builds on

34 of 57 references.

References · 34

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  5. 2016Enriching Word Vectors with Subword Informationcited by 1,578
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  7. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  8. 2015Gated Graph Sequence Neural Networkscited by 792
  9. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  10. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
  11. 2022A Systematic Evaluation of Large Language Models of Codecited by 360
  12. 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 326
22 more
  1. 2017Learning to Represent Programs with Graphscited by 219
  2. 2019Graph Matching Networks for Learning the Similarity of Graph Structured Objectscited by 202
  3. 2019SPoC: Search-based Pseudocode to Codecited by 176
  4. 2018Improving Text-to-SQL Evaluation Methodologycited by 133
  5. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
  6. 2020Semantic Evaluation for Text-to-SQL with Distilled Test Suitescited by 123
  7. 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 101
  8. 2017Learning a Neural Semantic Parser from User Feedbackcited by 98
  9. 2020Graph Structured Network for Image-Text Matchingcited by 93
  10. 2021Learning to Match Features with Seeded Graph Matching Networkcited by 92
  11. 2018SimGNN: A Neural Network Approach to Fast Graph Similarity Computationcited by 89
  12. 2020Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Treecited by 68
  13. 2023CodeScore: Evaluating Code Generation by Learning Code Executioncited by 66
  14. 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
  15. 2018Learning-based Efficient Graph Similarity Computation via Multi-Scale Convolutional Set Matchingcited by 45
  16. 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphscited by 30
  17. 2020Multilevel Graph Matching Networks for Deep Graph Similarity Learningcited by 29
  18. 2024Efficient Graph Similarity Computation with Alignment Regularizationcited by 25
  19. 2018Apache Calcite: A Foundational Framework for Optimized Query Processing Over Heterogeneous Data Sourcescited by 24
  20. 2018Axiomatic Foundations and Algorithms for Deciding Semantic Equivalences of SQL Queriescited by 11
  21. 2021AST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarizationcited by 11
  22. 2023ASTormer: An AST Structure-aware Transformer Decoder for Text-to-SQLcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.