Analyzing priming effects in a few shot setting environment
Project description
Analyzing Priming Effect in Prompt-based learning
How does priming affect prompt-based learing? This project aims at analyzing this effect in stance classification. We train a stance classifier on the ibm stance classification dataset by fine-tuning a GPT-2 model with a prompt and analzing how does the selection of the few shots used in the prompt affect the performance of the model. Our main assumption is that the examples chosen should be chosen in a diverse manner with regard topic.
- To evaluate the prompt-fine-tuning, run the following command
- Hyperparamter optimization
python scripts/run_prompt_fine_tuning.py --validate --optimize
- Best Hyperparameters
python scripts/run_prompt_fine_tuning.py --validate --optimize
- To evaluate the in-context (prompt) setup run
python scripts/run_prompt_fine_tuning.py --validate --optimize
- To evaluate DeBERTa (a normal classifier) with all hyperparameters, run the following
python scripts/optimize_baseline.py
The results of the experiments will be logged to your home directory. The parameters can be saved in config.yaml
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file few_shot_priming-0.0.552-py3-none-any.whl.
File metadata
- Download URL: few_shot_priming-0.0.552-py3-none-any.whl
- Upload date:
- Size: 4.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45745d2f17bc06213485dac5a02902ad28734a4179d96648b52fc7557b88866a
|
|
| MD5 |
c2ce5d7fd960e579a128a8e60351e216
|
|
| BLAKE2b-256 |
6375fda974b2aebfd8771e18fab0c562a42107920c1d264406ec7601f9c0b039
|