The model has been fine-tuned on the 2,164 training dialogues in the
CoSQL SQL-grounded dialogue state tracking dataset and the 7,000 training examples in the
Spider text-to-SQL dataset. The model solves both, CoSQL's zero-shot text-to-SQL dialogue state tracking task and Spider's zero-shot text-to-SQL translation task. Zero-shot means that the model can generalize to unseen SQL databases.
This model was initialized with
t5.1.1.lm100k.large and fine-tuned with the text-to-text generation objective.
A question is always grounded in both, a database schema and the preceiding questions in the dialogue. The model is trained to predict the SQL query that would be used to answer the user's current natural language question. The input to the model is composed of the user's current question, the database identifier, a list of tables and their columns, and a sequence of previous questions in reverse chronological order.
The model outputs the database identifier and the SQL query that will be executed on the database to answer the user's current question in the dialog.
Out of the box, this model achieves 52.5 % question match accuracy on the CoSQL development set.
Using the PICARD constrained decoding method (see
the official PICARD implementation), the model's performance can be improved to
54.2 % question match accuracy on the CoSQL development set.
Please see
the official repository for scripts and docker images that support evaluation and serving of this model.
1@inproceedings{Scholak2021:PICARD,
2 author = {Torsten Scholak and Nathan Schucher and Dzmitry Bahdanau},
3 title = "{PICARD}: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models",
4 booktitle = "Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing",
5 month = nov,
6 year = "2021",
7 publisher = "Association for Computational Linguistics",
8 url = "https://aclanthology.org/2021.emnlp-main.779",
9 pages = "9895--9901",
10}