Skip to main content
QUICK REVIEW

[Paper Review] Execution-Guided Neural Program Decoding

Chenglong Wang, Po-Sen Huang|arXiv (Cornell University)|Jul 9, 2018
Explainable Artificial Intelligence (XAI)Computer Science21 citations
TL;DR

This paper proposes an execution-guided neural program decoder that improves neural semantic parsing for SQL generation by integrating a type-aware decoder with value-based loss for accurate copying and two model-agnostic repair strategies—ensemble and local repair—to correct erroneous or empty-executing queries. The approach achieves near state-of-the-art performance on WikiSQL with reduced model complexity.

ABSTRACT

We present a neural semantic parser that translates natural language questions into executable SQL queries with two key ideas. First, we develop an encoder-decoder model, where the decoder uses a simple type system of SQL to constraint the output prediction, and propose a value-based loss when copying from input tokens. Second, we explore using the execution semantics of SQL to re-pair decoded programs that result in runtime error return empty result. We propose two model-agnostics repair approaches, an ensemble model and a local program repair, and demonstrate their effectiveness over the original model. We evaluate our model on the WikiSQL dataset and show that our model achieves close to state-of-the-art results with lesser model complexity.

Motivation & Objective

  • To improve neural semantic parsing for natural language to SQL translation by reducing model complexity while maintaining high performance.
  • To address the challenge of generating syntactically valid and semantically correct SQL queries from natural language questions.
  • To mitigate runtime errors and empty results in generated SQL by leveraging execution feedback during decoding.
  • To introduce model-agnostic repair techniques that enhance robustness without modifying the base model architecture.

Proposed method

  • A sequence-to-sequence encoder-decoder model is used, with a type system in the decoder to constrain output predictions to valid SQL constructs.
  • A value-based loss is introduced to improve copying of exact values from input tokens into the generated SQL query.
  • Execution feedback is used to identify and re-pair queries that return runtime errors or empty results.
  • Two repair strategies are applied: an ensemble model that combines multiple predictions and a local program repair that modifies individual tokens.
  • The repair mechanisms are model-agnostic, allowing integration with any base neural parser without architectural changes.

Experimental results

Research questions

  • RQ1Can a type-aware decoder with value-based loss improve the accuracy of neural SQL generation?
  • RQ2Can execution feedback be effectively used to detect and correct erroneous or non-executable SQL queries?
  • RQ3Do model-agnostic repair strategies enhance performance without increasing model complexity?
  • RQ4How does the proposed method compare to state-of-the-art models in terms of accuracy and efficiency on the WikiSQL benchmark?

Key findings

  • The proposed model achieves close to state-of-the-art performance on the WikiSQL dataset, demonstrating strong generalization with reduced model complexity.
  • The integration of a type system and value-based loss improves token-level accuracy, especially in copying exact values from the input.
  • The execution-guided repair mechanisms significantly reduce the number of queries returning empty results or runtime errors.
  • The ensemble and local repair strategies effectively improve robustness, with the local repair showing strong performance with minimal computational overhead.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.