Purging the Gray Zone: Latent-Geometric Denoising for Precise Knowledge Boundary Awareness
Organizations: Computational Linguistics and Consciousness Sciences Lab, Southern University of Science and Technology
Abstract
Large language models (LLMs) often exhibit hallucinations due to their inability to accurately perceive their own knowledge boundaries. Existing abstention fine-tuning methods typically partition datasets directly based on response accuracy, causing models to suffer from severe label noise near the decision boundaries and consequently exhibit high rates of abstentions or hallucinations. This paper adopts a latent space representation perspective, revealing a "gray zone" near the decision hyperplane where internal belief ambiguity constitutes the core performance bottleneck. Based on this insight, we propose the GeoDe (Geometric Denoising) framework for abstention fine-tuning. This method constructs a truth hyperplane using linear probes and performs "geometric denoising" by employing geometric distance as a confidence signal for abstention decisions. This approach filters out ambiguous boundary samples while retaining high-fidelity signals for fine-tuning. Experiments across multiple models (Llama3, Qwen3) and benchmark datasets (TriviaQA, NQ, SciQ, SimpleQA) demonstrate that GeoDe significantly enhances model truthfulness and demonstrates strong generalization in out-of-distribution (OOD) scenarios. Code is available at https://github.com/Notbesidemoon/GeoDe.
Figures & tables
| Dataset | TriviaQA | NQ | SciQ | SimpleQA | ||||||||
| Method | ||||||||||||
| Llama3-8B-Instruct | ||||||||||||
| IDK | 78.7 | 35.3 | 48.8 | 61.4 | 56.3 | 58.7 | 83.3 | 5.6 | 10.4 | 14.6 | 64.0 | 23.8 |
| Uncertainty | 67.7 | 46.4 | 55.0 | 45.9 | 18.0 | 25.9 | 64.7 | 17.9 | 28.0 | 10.0 | 52.2 | 16.8 |
| R-Tuning | 77.3 | 71.6 | 74.4 | 47.0 | 78.1 | 58.7 | 69.9 | 58.2 | 63.5 | 14.6 | 96.1 | 25.4 |
| Probe-Tuning TBG | 78.8 | 72.8 | 75.7 | 51.6 | 7 9.1 | 62.5 | 81.4 | 53.4 | 64.5 | 12.8 | 96.1 | 22.6 |
| Golden | Golden & RRN | |||||||||
| Acc. | Hallu. | Acc. | Hallu. | |||||||
| ICL | - | - | - | 71.2 | 28.8 | - | - | - | 63.8 | 36.2 |
| IDK | 76.1 | 45.5 | 57.0 | 58.1 | 17.9 | 71.6 | 45.6 | 55.7 | 52.7 | 23.6 |
| R-Tuning | 80.8 | 52.5 | 63.7 | 61.0 | 11.8 | 74.4 | 53.3 | 62.1 | 50.4 | 15.3 |
| Probe-tuning TBG | 83.8 | 47.9 | 61.0 | 67.3 | 13.0 | 81.1 | 48.6 | 60.8 | 63.3 | 16.8 |
| GeoDe TBG | 75.2 | 52.5 | 61.8 | 51.5 | 9.2 | 74.3 | 56.9 | 64.5 | 49.1 | 11.4 |
| Dataset | TriviaQA | NQ | SciQ | SimpleQA | ||||||||
| 6.25% | 66.9 | 69.2 | 68.1 | 42.2 | 70.0 | 52.6 | 71.0 | 40.5 | 51.6 | 11.2 | 63.8 | 19.1 |
| 12.5% | 72.8 | 74.0 | 73.4 | 48.2 | 70.9 | 57.4 | 85.6 | 48.5 | 61.9 | 12.1 | 64.8 | 20.4 |
| 25% | 77.7 | 77.4 | 77.6 | 54.3 | 71.3 | 61.6 | 81.8 | 47.2 | 59.8 | 13.0 | 67.3 | 21.7 |
| 50% | 75.6 | 75.6 | 75.6 | 51.1 | 70.9 | 59.4 | 85.4 | 45.7 | 59.6 | 12.5 | 64.1 | 20.9 |
| 75% | 75.8 | 75.0 | 75.4 | 50.7 | 70.4 | 58.9 | 86.0 | 45.9 | 59.9 | 12.3 | 63.3 | 20.6 |
| Dataset | TriviaQA | NQ | ||||
| Metric | ||||||
| Ours TBG | 77.7 | 77.4 | 77.6 | 54.3 | 71.3 | 61.6 |
| -middle | 74.9 | 74.2 | 74.6 | 50.0 | 70.2 | 58.4 |
| -nearest | 75.2 | 71.2 | 73.2 | 49.7 | 69.6 | 58.0 |
| Ours SLT | 75.6 | 75.6 | 75.6 | 51.6 | 71.7 | 60.0 |
| -middle | 75.4 | 72.8 | 74.1 | 50.1 | 69.2 | 58.1 |
| Method | Alcuna | FalseQA | SA |
| Llama3-8b-Instruction | |||
| IDK | 78.4 | 49.8 | 50.9 |
| Uncertainty | 19.2 | 8.5 | 15.4 |
| R-Tuning | 98.3 | 91.8 | 98.1 |
| Probe-Tuning TBG | 99.2 | 91.8 | 99.7 |
| GeoDe TBG | 98.2 | 92.4 | 99.2 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | TriviaQA | NQ | SciQ | SimpleQA | ||||||||
| Method | ||||||||||||
| Qwen3-1.7B | ||||||||||||
| R-Tuning | 56.7 | 87.0 | 68.7 | 38.8 | 89.4 | 54.1 | 66.5 | 73.6 | 69.9 | 5.9 | 63.3 | 10.8 |
| GeoDe | 56.9 | 89.0 | 69.5 | 38.0 | 92.2 | 53.8 | 77.0 | 73.2 | 75.0 | 6.8 | 98.5 | 12.7 |
| Qwen3-4B | ||||||||||||
| R-Tuning | 69.4 | 80.6 | 74.6 | 44.1 | 71.2 | 54.5 | 83.0 | 63.3 | 71.8 | 10.9 | 65.2 | 18.7 |
| Size | Llama Acc. | Qwen Acc. | |
| TriviaQA Train | 87622 | 66.17 | 54.93 |
| TriviaQA Val | 11313 | 65.55 | 54.65 |
| NQ | 3610 | 40.86 | 34.04 |
| SciQ | 1000 | 72.50 | 81.60 |
| SimpleQA | 4326 | 6.80 | 5.59 |
| Alcuna | 2001 | - | - |
| Dataset | Cohen’s Kappa |
| TriviaQA | 0.9558 |
| NQ | 0.9119 |
| SciQ | 0.8281 |
| SimpleQA | 0.9318 |
| Input | Content | Conf. |
| Case 1 — GT: Italic languages ; Model output: River Tiber | ||
| Question | Where did the Latin language originate from? | 0.605 |
| Golden | Latin is a member of the broad family of Italic languages . Its alphabet, the Latin alphabet, emerged from the Old Italic alphabets, which in turn were derived from the Greek and Phoenician scripts. Historical Latin came from the prehistoric language of the Latium region, specifically around the River Tiber , where Roman civilization first developed. | 0.456 |
| Noise | The solecisms and non-Classical usages occasionally found in late Latin texts also shed light on the spoken language. A windfall source lies in the chance finds of wax tablets such as those found at Vindolanda on Hadrian’s Wall. The Romance languages, a major branch of the Indo-European language family, comprise all languages that descended from Latin, the language of the Roman Empire. | 0.721 |
| Case 2 — GT: Darth Vader ; Model output: Jake Lloyd | ||
| Question | Who was Anakin Skywalker? | 0.983 |
LLM Hallucination Mitigation
Large language model hallucination mitigation develops ways to detect and reduce unsupported, fabricated, or inconsistent outputs.
See all 178 papers