Data manufacturing frameworks for synthesizing synthetic training data to facilitate training a natural language to logical form model
Abstract
Techniques are disclosed herein for synthesizing synthetic training data to facilitate training a natural language to logical form model. In one aspect, training data can be synthesized from original under a framework based on templates and a synchronous context-free grammar. In one aspect, training data can be synthesized under a framework based on a probabilistic context-free grammar and a translator. In one aspect, training data can be synthesized under a framework based on tree-to-string translation. In one aspect, the synthetic training data can be combined with original training data in order to train a machine learning model to translate an utterance to a logical form.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 0.
Claims (8 — 2 Independent, 6 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: accessing original training data, the original training data including a plurality of utterances and a plurality of logical forms, each logical form of the plurality of logical forms corresponding to at least one utterance of the plurality of utterances; obtaining a pre-trained model trained to translate utterances to logical forms; finetuning the pre-trained model to translate logical forms to utterances, wherein the finetuning is performed using the original training data and generates a finetuned model; generating a set of delexicalized logical forms, at least one delexicalized logical form of the set of delexicalized logical forms being a delexicalized version of a logical form of the plurality of logical forms; generating a set of lexicalized logical forms by lexicalizing the set of delexicalized logical forms; generating, by the finetuned model, synthetic training data comprising an utterance for each lexicalized logical form of the set o
- Claim 2Depends on #1
The computer-implemented method of claim 1, wherein finetuning the pre-trained model comprises adjusting weights and parameters of the pre-trained model based on the original training data and using one or more machine learning optimization techniques.
- Claim 3Depends on #1
The computer-implemented method of claim 1, wherein at least one delexicalized logical form of the set of delexicalized logical forms is generated automatically using a machine-learning model.
- Claim 4Depends on #1
The computer-implemented method of claim 1, wherein at least one delexicalized logical form of the set of delexicalized logical forms is generated using a probabilistic context-free grammar.
- Claim 5Depends on #1
The computer-implemented method of claim 1, wherein generating the set of lexicalized logical forms comprises analyzing each delexicalized logical form of the set of delexicalized logical forms to identify one or more constraints in the respective delexicalized logical form and sampling components of a database based on the identified one or more constraints in respective delexicalized logical form.
- Claim 6Depends on #1
The computer-implemented method of claim 1, wherein the generating the synthetic training data comprises translating, by the finetuned model, each lexicalized logical form of the set of lexicalized logical forms into an utterance.
- Claim 7Depends on #1
The computer-implemented method of claim 1, further comprising: accessing an utterance; inputting the utterance into the trained machine learning model; translating, using the trained machine learning model, the utterance into a logical form; executing the logical form as a query on a database to retrieve a result for the query; and outputting the result for the utterance.
- Claim 8Independent Claim
A system comprising: one or more processors; and one or more non-transitory computer-readable media storing instructions which, when executed by the one or more processors, cause the one or more processors to perform operations comprising: accessing original training data, the original training data including a plurality of utterances and a plurality of logical forms, each logical form of the plurality of logical forms corresponding to at least one utterance of the plurality of utterances; obtaining a pre-trained model trained to translate utterances to logical forms; finetuning the pre-trained model to translate logical forms to utterances, wherein the finetuning is performed using the original training data and generates a finetuned model; generating a set of delexicalized logical forms, at least one delexicalized logical form of the set of delexicalized logical forms being a delexicalized version of a logical form of the plurality of logical forms; generating a set of lexicalized lo
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present application is a non-provisional application of and claims benefit and priority under 35 U.S.C. 119(e) of U.S. Provisional Application No. 63/289,480, filed Dec. 14, 2021, the entire contents of which is incorporated herein by reference for all purposes. FIELD The present disclosure generally relates to transforming natural language to Structured Query Language, and more particularly, to data manufacturing frameworks for synthesizing synthetic training data to facilitate training a natural language to logical form model. BACKGROUND Structured Query Language (SQL) is a domain-specific language used in programming and designed for managing data held in a relational database management system (RDBMS), or for stream processing in a relational data stream management system (RDSMS). It is particularly useful in handling structured data (i.e., data incorporating relations among entities and variables). SQL includes sublanguages such as a data query language (DQL), a data definition language (DDL), a data control language (DCL), and a data manipulation language (DML). The scope of SQL includes data query, data manipulation (insert, update, and delete), data definition (schema creation and modification), and data access control. Although SQL is essentially a declarative language (4GL), it also includes procedural elements. In order to effectively leverage data, RDBMS and RDSMS users are required to not only have prior knowledge about the database schema (e.g., table and column names) but also a working understanding of the syntax and semantics of SQL. Nonetheless, despite its expressiveness, SQL can often hinder non-technical users from exploring and making use of their data. Natural language is an alternative interface to data held or implemented in RDBMS and RDSMS because it allows non-technical users to formulate complex questions in a more concise manner than SQL. Using semantic parsing, natural language statements, req
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (3)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Yu, Tao, et al.
- “
- Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task.
- ”
- arXiv preprint arXiv:1809.08887 (2018). (Year: 2018).
- Yu, Tao, et al.
- “
- Sparc: Cross-domain semantic parsing in context.
- ”
- arXiv preprint arXiv:1906.02285 (2019). (Year: 2019).