Last updated on September 27, 2024
If you ask any question to a Large Language Model (LLM), in most cases, it will likely generate an answer, be it correct or incorrect. This is undesirable as it can propagate incorrect information to the users. Recently, Air Canada had to compensate its customer for providing incorrect information regarding bereavement fares. Such actions can cost companies significant money and tarnish their reputation.
Self-Calibration prompting is a self-evaluation technique that asks the model to evaluate its output after generating it. Experiments show that, while challenging, models can self-evaluate their answers as either true or false.
Employing Self-Calibration is a two-step process:
Let's see an example.
Step 1:
Ask the model, "Who is the first president of the United States?"
Step 2:
Ask the model to self-evaluate if the proposed answer is true or false.
You can also use Few-Shot Prompting:
Step 1: Get the initial response
Step 2: Validate the response
Self-evaluation results for Lambada 52B
Larger models make fewer Self-Calibration errors
The study clearly shows that LLMs are capable of evaluating their own response using a simple prompt. This can be used to minimize the number of false positive and false negative responses from the model. It also helps to establish confidence in the model.
Saurav Kadavath. (2022). Language Models (Mostly) Know What They Know. https://arxiv.org/abs/2207.05221 β© β©2 β©3