Views
No views yet
meta-llama/Llama-3.1-8B-Instruct via GRPO reinforcement learning to emit a special <uncertain> token when the model is uncertain during reasoning, enabling uncertainty-guided adaptive retrieval.<uncertain> at any point where it lacks confidence in a fact. A lightweight ridge regression probe (trained on layer-13 hidden states at the <uncertain> span) then decides whether to trigger BM25 retrieval and a second-pass generation.meta-llama/Llama-3.1-8B-Instruct<uncertain> in contexts where retrieval would help<uncertain> spans must be trained to use this model for adaptive RAG. The probe AUROC on held-out data is ~0.82. Use the companion probe artifact uncertain_probe_layer13_alpha3000.pkl from the AdaRAGUE repository.| Dataset | EM | F1 | Trigger Rate |
|---|---|---|---|
| HotpotQA | 32.6 | 42.7 | 67.4% |
| MuSiQue | 7.6 | 14.1 | 94.2% |
| 2WikiMultiHopQA | 26.2 | 29.6 | 59.2% |
| NQ | 31.4 | 41.0 | 52.0% |
| TriviaQA | 56.6 | 63.2 | 34.0% |
| Overall | 30.9 | 38.1 | 61.4% |
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3tokenizer = AutoTokenizer.from_pretrained("your-username/uncertain-calibrate")
4model = AutoModelForCausalLM.from_pretrained("your-username/uncertain-calibrate")
5
6SYSTEM = (
7 "You are a helpful reasoning assistant. Think step by step. "
8 "If at any point you are uncertain about a fact, emit the special token "
9 "<uncertain> to signal that you need more information. "
10 "End your response with 'Answer: <your answer>' on the last line."
11)
12
13prompt = tokenizer.apply_chat_template([
14 {"role": "system", "content": SYSTEM},
15 {"role": "user", "content": "Who directed the film Interstellar?"},
16], tokenize=False, add_generation_prompt=True)
17
18