File size: 2,943 Bytes
b950365 9647415 b950365 9647415 b950365 4187394 b950365 4187394 b950365 9647415 b950365 9647415 b950365 9647415 b950365 237a6c7 e8ee2a1 237a6c7 e8ee2a1 237a6c7 b950365 9647415 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
---
license: apache-2.0
base_model: distilbert-base-uncased
tags:
- generated_from_trainer
model-index:
- name: psychic
results: []
datasets:
- awalesushil/DBLP-QuAD
language:
- en
library_name: transformers
pipeline_tag: question-answering
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# PSYCHIC ![alt text](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRKarOKfR67Qmi9Z4qNQmHZHyvBQBBxcra9qoV-8gSu&s)
PSYCHIC (**P**re-trained **SY**mbolic **CH**ecker **I**n **C**ontext) is a model that is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co./distilbert-base-uncased) on the DBLP-QuAD dataset. It achieves the following results on the evaluation set:
- Loss: 0.0000
## Model description
The model is trained to learn specific tokens from a question and its context to better determine the answer from the context. It is fine-tuned on the Extractive QA task from which it should return the answer to a knowledge graph question in the form of a SPARQL query.
The advantage of PSYCHIC is that it leverages neuro-symbolic capabilities to validate query structures as well as LLM capacities to learn from context tokens.
## Intended uses & limitations
This model is intended to be used with a question-context pair to determine the answer in the form of a SPARQL query.
## Training and evaluation data
The DBLP-QuAD dataset is used for training and evaluation.
## Example
Here's an example of the model capabilities:
- **input:**
- *question:* Was the paper 'Stabilizing Client/Server Protocols without the Tears' not not published by Mohamed G. Gouda?
- *context:* [CLS] DOUBLE_NEGATION [SEP] TC51 [SEP] sparql: ASK { <https://dblp.org/rec/conf/forte/Gouda95> <https://dblp.org/rdf/schema#authoredBy> <https://dblp.org/pid/g/MohamedGGouda> } [SEP] [<https://dblp.org/pid/g/MohamedGGouda>, <https://dblp.org/rec/conf/forte/Gouda95>]
- **output:**
sparql: ASK { <https://dblp.org/rec/conf/forte/Gouda95> <https://dblp.org/rdf/schema#authoredBy> <https://dblp.org/pid/g/MohamedGGouda> } [SEP] [<https://dblp.org/pid/g/MohamedGGouda>, <https://dblp.org/rec/conf/forte/Gouda95>]
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3
### Training results
| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 0.001 | 1.0 | 1000 | 0.0001 |
| 0.0005 | 2.0 | 2000 | 0.0000 |
| 0.0002 | 3.0 | 3000 | 0.0000 |
### Framework versions
- Transformers 4.33.1
- Pytorch 2.0.1+cu118
- Datasets 2.14.5
- Tokenizers 0.13.3 |