What Models Know, How Well They Know It: Knowledge-Weighted Fine-Tuning for Learning When to Say "I Don't Know"
Organizations: NAVER CLOUD · Seoul National University · KAIST
Abstract
While large language models (LLMs) demonstrate strong capabilities across diverse user queries, they still suffer from hallucinations, often arising from knowledge misalignment between pre-training and fine-tuning. To address this misalignment, we reliably estimate a fine-grained, instance-level knowledge score via multi-sampled inference. Using the knowledge score, we scale the learning signal according to the model's existing knowledge, while encouraging explicit "I don't know" responses for out-of-scope queries. Experimental results show that this approach allows the model to explicitly express uncertainty when it lacks knowledge, while maintaining accuracy on questions it can answer. Furthermore, we propose evaluation metrics for uncertainty, showing that accurate discrimination between known and unknown instances consistently improves performance.
Figures & tables
| Question | SFT Response | KWT Response |
| Which genus contains more species: Fallopia or Nicandra? | Fallopia | Fallopia |
| Where was the host of Pressure Pad born? | Glasgow, Scotland | Glasgow, Scotland <IDK> |
| Metric | KP-Acc | KP-F1 | KNP-Acc | KNP-F1 |
| EM | 63.2 | 57.2 | 71.2 | 55.8 |
| Rouge | 82.4 | 85.8 | 83.8 | 81.6 |
| LLM-as-a-judge | 93.4 | 94.8 | 93.8 | 93.4 |
| EM | Rouge | LLM | |||||||
| KnowledgeScore (KS) | HaluEval | MedQA | SciQ | HaluEval | MedQA | SciQ | HaluEval | MedQA | SciQ |
| 0 | 66.75 | 87.98 | 40.00 | 49.83 | 80.28 | 25.84 | 47.74 | 67.34 | 14.38 |
| 0.2 | 9.34 | 6.60 | 12.66 | 12.59 | 10.26 | 11.97 | 13.13 | 15.74 | 9.07 |
| 0.4 | 7.24 | 2.63 | 9.58 | 9.41 | 4.45 | 9.80 | 8.80 | 7.69 | 9.21 |
| 0.6 | 5.85 | 1.56 | 9.21 | 8.48 | 2.63 | 10.75 | 8.55 | 4.75 | 10.79 |
| 0.8 | 5.68 | 0.87 | 10.52 | 8.76 | 1.58 | 13.21 | 9.34 | 2.77 | 15.93 |
| Correct | Incorrect | |
| Response w/ IDK | A | B |
| Response w/o IDK | C | D |
| Model | HaluEval | MedQA | SciQ |
| SFT | 31.0 | 20.4 | 62.7 |
| FT-TOP | 29.5 | 17.2 | 63.9 |
| R-Tuning | 30.3 | 19.7 | 64.6 |
| KWT (EM) | 30.7 | 16.9 | 62.1 |
| KWT (Rouge) | 30.3 | 16.9 | 63.8 |
| KWT (LLM) | 29.8 | 18.5 | 62.6 |
| Dataset | Model | nAUPC | A-FPR | IDK Precision |
| HaluEval | R-Tuning | 2.7 | 50.2 | 80.4 |
| KWT (EM) | 8.8 | 25.4 | 86.7 | |
| KWT (Rouge) | 10.2 | 14.5 | 88.9 | |
| KWT (LLM) | 11.3 | 11.41 | 92.1 | |
| MedQA | R-Tuning | -2.0 | 75.3 | 82.9 |
| KWT (EM) | 1.3 | 49.3 | 87.6 |
| Dataset | Model | nAUPC | A-FPR | IDK Precision |
| RefuNQ | R-Tuning | -1.9 | 73.3 | 81.6 |
| KWT (EM) | 2.2 | 45.8 | 86.0 | |
| KWT (Rouge) | 5.4 | 22.1 | 90.7 | |
| KWT (LLM) | 5.7 | 19.7 | 91.0 | |
| SelfAware | R-Tuning | -2.0 | 70.7 | 74.7 |
| KWT (EM) | 4.6 | 42.3 | 80.5 |
| Domain | Dataset | Acc | nAUPC |
| ID | HaluEval | 27.9 (–1.9) | 11.3 (0.0) |
| MedQA | 18.3 (–0.2) | 5.8 (+1.5) | |
| SciQ | 62.6 (0.0) | 40.2 (+2.1) | |
| OOD | RefuNQ | 17.5 (–4.0) | 5.4 (-0.3) |
| SelfAware | 27.0 (–3.9) | 11.1 (+1.2) |
| Dataset | Model | nAUPC | A-FPR | IDK Precision |
| HaluEval | KWT-RF | 9.2 (-2.1) | 25.5 (+14.1) | 87.1 (–5.0) |
| KWT-U | 9.9 (-1.4) | 22.3 (+10.9) | 88.1 (–4.0) | |
| MedQA | KWT-RF | 2.1 (-2.2) | 45.9 (+24.3) | 86.5 (–4.7) |
| KWT-U | 2.6 (-1.7) | 41.8 (+20.2) | 86.5 (–4.7) | |
| SciQ | KWT-RF | 33.9 (-4.2) | 11.1 (+7.4) | 70.3 (–8.0) |
| KWT-U | 38.1 (0.0) | 8.0 (+4.3) | 71.9 (–6.4) |
| Dataset | Model | nAUPC | A-FPR | IDK Precision |
| HaluEval | KWT + k | 57.8 (+46.5) | 3.5 (–7.9) | 68.6 (–23.5) |
| SciQ | KWT + k | 62.9 (+24.8) | 1.4 (–2.3) | 81.4 (+3.1) |
| Backbone | Method | HaluEval | MedQA | SciQ | Avg |
| Llama3.2-3B | SFT | 31.0 | 20.4 | 62.7 | 38.0 |
| KWT (non-IDK) | 30.5 | 21.1 | 65.9 | 39.2 | |
| KWT | 29.8 | 18.5 | 62.6 | 37.0 | |
| Qwen2.5-3B | SFT | 29.5 | 19.3 | 70.7 | 39.8 |
| KWT (non-IDK) | 30.6 | 21.3 | 71.8 | 41.2 | |
| KWT | 29.8 | 17.8 | 72.4 | 40.0 |
| Model | HaluEval | MedQA | SciQ | Avg |
| SFT | 3.54 | 3.06 | 5.14 | 3.91 |
| SEAL | 3.71 | 3.20 | 5.11 | 4.01 |
| KWT | 3.30 | 2.56 | 5.20 | 3.69 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | NEC | RefuNQ | SelfAware | ||||||
| IDK Score | IDK Score | IDK Score | |||||||
| R-Tuning | 94.45 | 100 | 52.78 | 87.82 | 95.44 | 53.81 | 86.95 | 77.71 | 45.38 |
| KWT (EM) | 79.92 | 81.67 | 50.88 | 68.62 | 81.96 | 56.67 | 68.46 | 43.02 | 37.28 |
| KWT (Rouge) | 38.18 | 49.76 | 55.79 | 50.57 | 69.86 | 59.65 | 39.54 | 21.22 | 40.84 |
| KWT (LLM) | 50.05 | 67.13 | 58.54 | 47.13 | 66.77 | 59.82 | 41.98 | 16.18 | 37.10 |
| Dataset | Model | Acc | nAUPC | A-FPR | IDK Precision |
| HaluEval | R-Tuning | 30.4 | 5.7 | 38.3 | 83.5 |
| SEAL | 27.8 | 10.6 | 0.0 † | 100.0 † | |
| KWT (EM) | 30.9 | 9.1 | 25.6 | 87.0 | |
| KWT (Rouge) | 30.9 | 10.9 | 14.9 | 89.5 | |
| KWT-RF (LLM) | 30.1 | 11.0 | 17.0 | 90.7 | |
| KWT-U (LLM) | 30.1 | 10.9 | 15.6 | 90.5 |
| Model | HaluEval | MedQA | SciQ |
| R-Tuning | 89.5 | 89.6 | 73.7 |
| SEAL | 35.0 | 33.8 | 12.4 |
| KWT (LLM) | 56.1 | 51.1 | 22.2 |
| Dataset | Model | Acc | nAUPC | A-FPR | IDK Precision |
| HaluEval | KWT (prepend-IDK) | 29.7 | 8.3 | 26.8 | 87.2 |
| KWT (only-IDK) | 21.2 | 11.2 | 0.0 † | 100.0 † | |
| KWT (append-IDK) | 29.8 | 11.3 | 11.4 | 92.1 | |
| MedQA | KWT (prepend-IDK) | 16.3 | 1.7 | 45.2 | 89.6 |
| KWT (only-IDK) | 7.5 | 3.6 | 0.0 † | 100.0 † | |
| KWT (append-IDK) | 18.5 | 4.3 | 21.6 | 91.2 |
LLM Abstention
Large language model abstention studies when AI systems should answer, ask for more information, defer, or withhold unsupported claims.
See all 99 papers