Update README.md
Browse files
README.md
CHANGED
@@ -32,28 +32,44 @@ More information needed
|
|
32 |
|
33 |
More information needed
|
34 |
|
35 |
-
## Training and evaluation data
|
36 |
-
|
37 |
-
More information needed
|
38 |
|
39 |
## Training procedure
|
40 |
|
41 |
### Training hyperparameters
|
42 |
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
- train_batch_size: 8
|
48 |
-
- eval_batch_size: 8
|
49 |
-
- seed: 42
|
50 |
-
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
-
- lr_scheduler_type: linear
|
52 |
-
- num_epochs: 3.0
|
53 |
|
54 |
### Framework versions
|
55 |
|
56 |
- Transformers 4.32.0
|
57 |
- Pytorch 2.0.0+cu117
|
58 |
- Datasets 2.14.6
|
59 |
-
- Tokenizers 0.13.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
More information needed
|
34 |
|
|
|
|
|
|
|
35 |
|
36 |
## Training procedure
|
37 |
|
38 |
### Training hyperparameters
|
39 |
|
40 |
+
This model was trained with the code available on the [parameterlab/apricot GitHub repository](https://github.com/parameterlab/apricot) using the following command:
|
41 |
+
```shell
|
42 |
+
python3 run_regression_experiment.py --model-identifier lmsys/vicuna-7b-v1.5 --dataset-name coqa --device cuda:0 --num-training-steps 600 --num-in-context-samples 0 --data-dir $data_dir --model-save-dir $model_save_dir --result-dir $result_dir --lr 0.00008836 --weight-decay 0.0007421 --push-to-hub
|
43 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
### Framework versions
|
46 |
|
47 |
- Transformers 4.32.0
|
48 |
- Pytorch 2.0.0+cu117
|
49 |
- Datasets 2.14.6
|
50 |
+
- Tokenizers 0.13.3
|
51 |
+
|
52 |
+
## Citation
|
53 |
+
If you find 🍑 Apricot models useful for your work, please cite our paper:
|
54 |
+
``` latex
|
55 |
+
@inproceedings{ulmer-etal-2024-calibrating,
|
56 |
+
title = "Calibrating Large Language Models Using Their Generations Only",
|
57 |
+
author = "Ulmer, Dennis and
|
58 |
+
Gubri, Martin and
|
59 |
+
Lee, Hwaran and
|
60 |
+
Yun, Sangdoo and
|
61 |
+
Oh, Seong",
|
62 |
+
editor = "Ku, Lun-Wei and
|
63 |
+
Martins, Andre and
|
64 |
+
Srikumar, Vivek",
|
65 |
+
booktitle = "Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
|
66 |
+
month = aug,
|
67 |
+
year = "2024",
|
68 |
+
address = "Bangkok, Thailand",
|
69 |
+
publisher = "Association for Computational Linguistics",
|
70 |
+
url = "https://aclanthology.org/2024.acl-long.824",
|
71 |
+
doi = "10.18653/v1/2024.acl-long.824",
|
72 |
+
pages = "15440--15459",
|
73 |
+
abstract = "As large language models (LLMs) are increasingly deployed in user-facing applications, building trust and maintaining safety by accurately quantifying a model{'}s confidence in its prediction becomes even more important. However, finding effective ways to calibrate LLMs{---}especially when the only interface to the models is their generated text{---}remains a challenge. We propose APRICOT (Auxiliary prediction of confidence targets): A method to set confidence targets and train an additional model that predicts an LLM{'}s confidence based on its textual input and output alone. This approach has several advantages: It is conceptually simple, does not require access to the target model beyond its output, does not interfere with the language generation, and has a multitude of potential usages, for instance by verbalizing the predicted confidence or using it to re-prompting the LLM to accurately reflecting its uncertainty. We show how our approach performs competitively in terms of calibration error for white-box and black-box LLMs on closed-book question-answering to detect incorrect LLM answers.",
|
74 |
+
}
|
75 |
+
```
|