File size: 3,741 Bytes
33de47a ed2f484 33de47a ed2f484 0d89c22 33de47a ed2f484 0d89c22 33de47a ed2f484 33de47a 0d89c22 33de47a 1d6d9c9 33de47a 1d6d9c9 |
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 |
---
license: mit
base_model: microsoft/deberta-v3-base
tags:
- generated_from_trainer
- calibration
- uncertainty
model-index:
- name: apricot_binary_coqa_deberta-v3-base_for_vicuna-7b-v1.5
results: []
datasets:
- stanfordnlp/coqa
library_name: transformers
---
<!-- 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. -->
# apricot_binary_coqa_deberta-v3-base_for_vicuna-7b-v1.5
This model is fine-tuned for black-box LLM calibration as part of the 🍑 Apricot paper ["Calibrating Large Language Models Using Their Generations Only"](https://arxiv.org/abs/2403.05973) (ACL 2024).
## Model description
This model is a fine-tuned version of [microsoft/deberta-v3-base](https://huggingface.co/microsoft/deberta-v3-base) to predict the calibration score for the [lmsys/vicuna-7b-v1.5](https://huggingface.co/lmsys/vicuna-7b-v1.5) model on the questions from the stanfordnlp/coqa dataset. It uses the binary type of calibration target score.
## Intended uses & limitations
More information needed
## Training procedure
### Training hyperparameters
This model was trained with the code available on the [parameterlab/apricot GitHub repository](https://github.com/parameterlab/apricot) using the following command:
```shell
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 --use-binary-targets --result-dir $result_dir --lr 0.00009584 --weight-decay 0.005793 --push-to-hub
```
### Framework versions
- Transformers 4.32.0
- Pytorch 2.0.0+cu117
- Datasets 2.14.6
- Tokenizers 0.13.3
## Citation
If you find 🍑 Apricot models useful for your work, please cite our paper:
``` latex
@inproceedings{ulmer-etal-2024-calibrating,
title = "Calibrating Large Language Models Using Their Generations Only",
author = "Ulmer, Dennis and
Gubri, Martin and
Lee, Hwaran and
Yun, Sangdoo and
Oh, Seong",
editor = "Ku, Lun-Wei and
Martins, Andre and
Srikumar, Vivek",
booktitle = "Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
month = aug,
year = "2024",
address = "Bangkok, Thailand",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.acl-long.824",
doi = "10.18653/v1/2024.acl-long.824",
pages = "15440--15459",
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.",
}
``` |