Downloads · 30 days
27
5% of all-time downloads
InfAI/flan-t5-text2sparql-naive
flan-t5-text2sparql-naive is a machine learning model from InfAI. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of google/flan-t5-base on the lcquad dataset. It achieves the following results on the evaluation set: - Loss: 0.4105
Downloads · 30 days
27
5% of all-time downloads
All-time downloads
511
Public
Repo size
2 GB
Likes
0
Public
Click a slice to open those files.
.bin990 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of google/flan-t5-base on the lc_quad dataset. It achieves the following results on the evaluation set:
T5 has performed well in generating SPARQL queries from natural text, but semi automated preprocessing was necessary (Banerjee et.al.). FLAN-T5 comes with the promise of being better than T5 across all categories, so a re-evaluation is needed. Our goal is to find out what kind of preprocessing is still necessary to retain good performance, as well as how to automate it fully.
This is the naive version of the fine-tuned LLM, blindly applying the same tokenizer both on the natural language question as well as the target SPARQL query.
This model performs very bad, do not use it! We wanted to find out whether preprocessing is still necessary or T5 can figure things out on its own. As it turns out, preprocessing is still needed, so this model will just serve as some kind of baseline.
An example:
Create SPARQL Query: What was the population of Clermont-Ferrand on 1-1-2013?
'SELECT ?obj WHERE wd:Q2'}
LC_QUAD 2.0, see sidebar.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 1.0 | 301 | 0.5173 |
| 0.6515 | 2.0 | 602 | 0.4861 |
| 0.6515 | 3.0 | 903 | 0.4639 |
| 0.4954 | 4.0 | 1204 | 0.4478 |
| 0.4627 | 5.0 | 1505 | 0.4340 |
| 0.4627 | 6.0 | 1806 | 0.4247 |
| 0.4404 | 7.0 | 2107 | 0.4177 |
| 0.4404 | 8.0 | 2408 | 0.4139 |
| 0.429 | 9.0 | 2709 | 0.4115 |
| 0.4201 | 10.0 | 3010 | 0.4105 |