Text-to-SQL Error Correction with Language Models of Code. Chen, Z., Chen, S., White, M., Mooney, R., Payani, A., Srinivasa, J., Su, Y., & Sun, H. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 1359–1372, Toronto, Canada, July, 2023. Association for Computational Linguistics.
Paper doi abstract bibtex 2 downloads Despite recent progress in text-to-SQL parsing, current semantic parsers are still not accurate enough for practical use. In this paper, we investigate how to build automatic text-to-SQL error correction models. Noticing that token-level edits are out of context and sometimes ambiguous, we propose building clause-level edit models instead. Besides, while most language models of code are not specifically pre-trained for SQL, they know common data structures and their operations in programming languages such as Python. Thus, we propose a novel representation for SQL queries and their edits that adheres more closely to the pre-training corpora of language models of code. Our error correction model improves the exact set match accuracy of different parsers by 2.4-6.5 and obtains up to 4.3 point absolute improvement over two strong baselines.
@inproceedings{chen-etal-2023-text,
title = "Text-to-{SQL} Error Correction with Language Models of Code",
author = "Chen, Ziru and
Chen, Shijie and
White, Michael and
Mooney, Raymond and
Payani, Ali and
Srinivasa, Jayanth and
Su, Yu and
Sun, Huan",
booktitle = "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)",
month = jul,
year = "2023",
address = "Toronto, Canada",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.acl-short.117",
doi = "10.18653/v1/2023.acl-short.117",
pages = "1359--1372",
abstract = "Despite recent progress in text-to-SQL parsing, current semantic parsers are still not accurate enough for practical use. In this paper, we investigate how to build automatic text-to-SQL error correction models. Noticing that token-level edits are out of context and sometimes ambiguous, we propose building clause-level edit models instead. Besides, while most language models of code are not specifically pre-trained for SQL, they know common data structures and their operations in programming languages such as Python. Thus, we propose a novel representation for SQL queries and their edits that adheres more closely to the pre-training corpora of language models of code. Our error correction model improves the exact set match accuracy of different parsers by 2.4-6.5 and obtains up to 4.3 point absolute improvement over two strong baselines.",
}
Downloads: 2
{"_id":"nF6rFeGBzMezSQwG4","bibbaseid":"chen-chen-white-mooney-payani-srinivasa-su-sun-texttosqlerrorcorrectionwithlanguagemodelsofcode-2023","author_short":["Chen, Z.","Chen, S.","White, M.","Mooney, R.","Payani, A.","Srinivasa, J.","Su, Y.","Sun, H."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","title":"Text-to-SQL Error Correction with Language Models of Code","author":[{"propositions":[],"lastnames":["Chen"],"firstnames":["Ziru"],"suffixes":[]},{"propositions":[],"lastnames":["Chen"],"firstnames":["Shijie"],"suffixes":[]},{"propositions":[],"lastnames":["White"],"firstnames":["Michael"],"suffixes":[]},{"propositions":[],"lastnames":["Mooney"],"firstnames":["Raymond"],"suffixes":[]},{"propositions":[],"lastnames":["Payani"],"firstnames":["Ali"],"suffixes":[]},{"propositions":[],"lastnames":["Srinivasa"],"firstnames":["Jayanth"],"suffixes":[]},{"propositions":[],"lastnames":["Su"],"firstnames":["Yu"],"suffixes":[]},{"propositions":[],"lastnames":["Sun"],"firstnames":["Huan"],"suffixes":[]}],"booktitle":"Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)","month":"July","year":"2023","address":"Toronto, Canada","publisher":"Association for Computational Linguistics","url":"https://aclanthology.org/2023.acl-short.117","doi":"10.18653/v1/2023.acl-short.117","pages":"1359–1372","abstract":"Despite recent progress in text-to-SQL parsing, current semantic parsers are still not accurate enough for practical use. In this paper, we investigate how to build automatic text-to-SQL error correction models. Noticing that token-level edits are out of context and sometimes ambiguous, we propose building clause-level edit models instead. Besides, while most language models of code are not specifically pre-trained for SQL, they know common data structures and their operations in programming languages such as Python. Thus, we propose a novel representation for SQL queries and their edits that adheres more closely to the pre-training corpora of language models of code. Our error correction model improves the exact set match accuracy of different parsers by 2.4-6.5 and obtains up to 4.3 point absolute improvement over two strong baselines.","bibtex":"@inproceedings{chen-etal-2023-text,\n title = \"Text-to-{SQL} Error Correction with Language Models of Code\",\n author = \"Chen, Ziru and\n Chen, Shijie and\n White, Michael and\n Mooney, Raymond and\n Payani, Ali and\n Srinivasa, Jayanth and\n Su, Yu and\n Sun, Huan\",\n booktitle = \"Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)\",\n month = jul,\n year = \"2023\",\n address = \"Toronto, Canada\",\n publisher = \"Association for Computational Linguistics\",\n url = \"https://aclanthology.org/2023.acl-short.117\",\n doi = \"10.18653/v1/2023.acl-short.117\",\n pages = \"1359--1372\",\n abstract = \"Despite recent progress in text-to-SQL parsing, current semantic parsers are still not accurate enough for practical use. In this paper, we investigate how to build automatic text-to-SQL error correction models. Noticing that token-level edits are out of context and sometimes ambiguous, we propose building clause-level edit models instead. Besides, while most language models of code are not specifically pre-trained for SQL, they know common data structures and their operations in programming languages such as Python. Thus, we propose a novel representation for SQL queries and their edits that adheres more closely to the pre-training corpora of language models of code. Our error correction model improves the exact set match accuracy of different parsers by 2.4-6.5 and obtains up to 4.3 point absolute improvement over two strong baselines.\",\n}\n\n","author_short":["Chen, Z.","Chen, S.","White, M.","Mooney, R.","Payani, A.","Srinivasa, J.","Su, Y.","Sun, H."],"key":"chen-etal-2023-text","id":"chen-etal-2023-text","bibbaseid":"chen-chen-white-mooney-payani-srinivasa-su-sun-texttosqlerrorcorrectionwithlanguagemodelsofcode-2023","role":"author","urls":{"Paper":"https://aclanthology.org/2023.acl-short.117"},"metadata":{"authorlinks":{}},"downloads":2},"bibtype":"inproceedings","biburl":"https://raw.githubusercontent.com/OSU-CLLT/pubs/main/cllt.bib","dataSources":["j9kmFyT7sM9z3JACo","9PwrYxnvYQhcYnPdY"],"keywords":[],"search_terms":["text","sql","error","correction","language","models","code","chen","chen","white","mooney","payani","srinivasa","su","sun"],"title":"Text-to-SQL Error Correction with Language Models of Code","year":2023,"downloads":2}