{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/grappa-grammar-augmented-pre-training-for","title":"GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing","arxiv_id":"2009.13845","date":"2020-09-29","proceeding":"ICLR 2021 1","authors":["Tao Yu","Chien-Sheng Wu","Xi Victoria Lin","Bailin Wang","Yi Chern Tan","Xinyi Yang","Dragomir Radev","Richard Socher","Caiming Xiong"],"abstract":"We present GraPPa, an effective pre-training approach for table semantic parsing that learns a compositional inductive bias in the joint representations of textual and tabular data. We construct synthetic question-SQL pairs over high-quality tables via a synchronous context-free grammar (SCFG) induced from existing text-to-SQL datasets. We pre-train our model on the synthetic data using a novel text-schema linking objective that predicts the syntactic role of a table field in the SQL for each question-SQL pair. To maintain the model's ability to represent real-world data, we also include masked language modeling (MLM) over several existing table-and-language datasets to regularize the pre-training process. On four popular fully supervised and weakly supervised table semantic parsing benchmarks, GraPPa significantly outperforms RoBERTa-large as the feature representation layers and establishes new state-of-the-art results on all of them.","url_abs":"https://arxiv.org/abs/2009.13845v2","url_pdf":"https://arxiv.org/pdf/2009.13845v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"grappa-grammar-augmented-pre-training-for","repo_url":"https://github.com/taoyds/grappa","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"inductive-bias","task_name":"Inductive Bias"},{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"masked-language-modeling","task_name":"Masked Language Modeling"},{"task_slug":"semantic-parsing","task_name":"Semantic Parsing"},{"task_slug":"text-to-sql","task_name":"Text to SQL"},{"task_slug":"text-to-sql","task_name":"Text-To-SQL"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/semantic-parsing-on-spider","task":"Semantic Parsing","dataset":"spider","model":"RATSQL + Grammar-Augmented Pre-Training","rank_in_archive_order":8,"of":10,"metrics":{"Accuracy":"69.6"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2009.13845","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2009.13845"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/taoyds/grappa","reach":null}],"summary":{"ran_draft_wrong":6,"unverified":1},"by_repo_kind":{"listed":{"samples":7,"ran":6,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":7,"samples":[{"code_sha256_prefix":"444403581a324018","entry":"gen_col_info","repo":"taoyds/grappa","repo_kind":"listed","path":"data_synthesis/generate_augmented_data.py","file_url":"https://github.com/taoyds/grappa/blob/HEAD/data_synthesis/generate_augmented_data.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"444403581a324018"}},{"code_sha256_prefix":"5ef60f35305dd383","entry":"get_labels","repo":"taoyds/grappa","repo_kind":"listed","path":"data_synthesis/generate_augmented_data.py","file_url":"https://github.com/taoyds/grappa/blob/HEAD/data_synthesis/generate_augmented_data.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5ef60f35305dd383"}},{"code_sha256_prefix":"9109e02a54cd3dab","entry":"get_q_slots","repo":"taoyds/grappa","repo_kind":"listed","path":"data_synthesis/generate_augmented_data.py","file_url":"https://github.com/taoyds/grappa/blob/HEAD/data_synthesis/generate_augmented_data.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9109e02a54cd3dab"}},{"code_sha256_prefix":"3a85924681b503a0","entry":"get_sql_slots","repo":"taoyds/grappa","repo_kind":"listed","path":"data_synthesis/generate_augmented_data.py","file_url":"https://github.com/taoyds/grappa/blob/HEAD/data_synthesis/generate_augmented_data.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3a85924681b503a0"}},{"code_sha256_prefix":"a4c2aa9da37b6989","entry":"process_constraints","repo":"taoyds/grappa","repo_kind":"listed","path":"data_synthesis/generate_augmented_data.py","file_url":"https://github.com/taoyds/grappa/blob/HEAD/data_synthesis/generate_augmented_data.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a4c2aa9da37b6989"}},{"code_sha256_prefix":"24852df0b83598ce","entry":"replace_dict","repo":"taoyds/grappa","repo_kind":"listed","path":"data_synthesis/generate_augmented_data.py","file_url":"https://github.com/taoyds/grappa/blob/HEAD/data_synthesis/generate_augmented_data.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"24852df0b83598ce"}},{"code_sha256_prefix":"9cd1d09f7ae5ac16","entry":"populate_one","repo":"taoyds/grappa","repo_kind":"listed","path":"data_synthesis/generate_augmented_data.py","file_url":"https://github.com/taoyds/grappa/blob/HEAD/data_synthesis/generate_augmented_data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9cd1d09f7ae5ac16"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}