The Alignment Paradox: How Post-Training Amplifies Confident Hallucinations in Language Models
Organizations: Institute of Information Engineering, Chinese Academy of Sciences, Beijing, China · School of Cyber Security, University of Chinese Academy of Sciences, Beijing, China
Abstract
Large language models (LLMs) can produce factually incorrect answers with high confidence, undermining their reliability and limiting the effectiveness of uncertainty-based error detection. While prior research attributes confident hallucinations to factors such as missing knowledge in training data, reasoning errors, or stochastic decoding, we uncover that post-training alignment itself is a primary driver of these errors, a phenomenon we call the Alignment Paradox. Across five model families evaluated on factual benchmarks, unaligned base models produce few high-confidence errors on long-tail factual queries, whereas instruction-tuned models multiply high-confidence errors () by more than an order of magnitude (10 to 35). Layer-wise probing with the Logit Lens reveals that this overconfidence emerges in late layers, where wrong-answer margins expand past 4.0 points after remaining near zero across early and intermediate layers. These findings motivate limiting margin growth during post-training. We implement this principle through an entropy-dependent margin bound in direct preference optimization (DPO). In multi-epoch experiments with Mistral-7B, the bounded objective reduces high-confidence errors by up to 35.3% relative to standard DPO while maintaining performance on evaluated general reasoning benchmarks. These results show that bounded margins mitigate confident hallucinations during post-training.
Figures & tables
| Model Family | Checkpoint | Acc (%) | Gate A | Gate B | Ratio | Gate C | Gate D | ECE |
|---|---|---|---|---|---|---|---|---|
| Mistral-7B | Base | 52.3 | 2,378 (10.7%) | 97 (0.4%) | 14.1 | 10,525 (47.3%) | 9,256 (41.6%) | 0.097 |
| Instruct | 41.6 | 4,133 (18.6%) | 1,366 (6.1%) | 11,605 (52.1%) | 5,125 (23.0%) | 0.378 | ||
| Qwen3-8B | Base | 45.9 | 1,885 (8.5%) | 50 (0.2%) | 35.4 | 11,986 (53.9%) | 8,318 (37.4%) | 0.042 |
| Instruct | 37.9 | 5,140 (23.1%) | 1,768 (7.9%) | 11,993 (53.9%) | 3,308 (14.9%) | 0.400 | ||
| LLaMA-3.1-8B | Base | 55.3 | 1,406 (6.3%) | 38 (0.2%) | 15.7 | 9,909 (44.5%) | 10,910 (49.0%) | 0.018 |
| Instruct | 45.6 | 4,996 (22.4%) | 596 (2.7%) | 11,494 (51.6%) | 5,157 (23.2%) | 0.262 |
| Model Family | Evaluation Condition | Gate B Count | Gate B (%) | Inflation vs. Base |
|---|---|---|---|---|
| Mistral-7B | C1: Base Few-Shot | 63 | 0.28% | 1.0 |
| C2: Instruct Chat Template | 1,630 | 7.32% | 25.9 | |
| C3: Instruct Bare Completion | 864 | 3.88% | 13.7 | |
| LLaMA-3-8B | C1: Base Few-Shot | 18 | 0.08% | 1.0 |
| C2: Instruct Chat Template | 637 | 2.86% | 35.4 | |
| C3: Instruct Bare Completion | 108 | 0.48% | 6.0 |
| Inference-Time Defense | Gate B Count | Gate B Reduction | Correct Retention | Effective Trade-off |
|---|---|---|---|---|
| Standard Instruct Baseline | 324 | 0.0% | 100.0% | Baseline |
| Defensive System Prompting | 306 | 5.6% | 65.2% | Severe over-hedging |
| Iterative Self-Correction | 308 | 4.9% | 81.4% (1.9% on LLaMA-3.1) | Corrupts valid answers |
| Self-Consistency (10 samples) | 302 | 6.8% | 97.4% | 68.4% rigid errors |
| DoLa Layer-Contrastive | 297 | 8.3% | 97.1% | Late margin limits gain |
| Entropy Thresholding | 308 | 4.8% | 97.0% | Bypassed by overconfidence |
| Starting Checkpoint | Optimization Objective | Acc (%) | Gate A | Gate B | Gate B | Gate B / Errors | ECE | Reduction |
|---|---|---|---|---|---|---|---|---|
| Mistral-7B-SFT | Standard DPO | 45.2 | 8,120 | 1,180 | – | 12.69% | 0.224 | Baseline |
| BDM-DPO (Ours) | 45.4 | 8,204 | 1,118 | -62 | 11.99% | 0.218 | -5.3% | |
| Mistral-7B-Instruct | Standard DPO | 47.6 | 8,973 | 1,630 | – | 15.37% | 0.282 | Baseline |
| BDM-DPO (Ours) | 47.6 | 9,012 | 1,591 | -39 | 15.01% | 0.279 | -2.4% | |
| LLaMA-3-8B-SFT | Standard DPO | 48.2 | 9,450 | 102 | – | 1.07% | 0.142 | Baseline |
| BDM-DPO (Ours) | 48.3 | 9,510 | 91 | -11 | 0.95% | 0.138 | -10.8% |
| Standard DPO | BDM-DPO (Ours) | Mitigation Effect | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Epoch | Acc (%) | Gate B | ECE | Acc (%) | Gate B | ECE | Gate B | Reduction | Acc | ||
| Epoch 1 | 47.6 | 1,630 | 3.61 | 0.282 | 47.6 | 1,591 | 3.60 | 0.279 | -39 | -2.4% | +0.0pp |
| Epoch 2 | 47.2 | 1,745 | 3.75 | 0.301 | 47.6 | 1,605 | 3.68 | 0.285 | -140 | -8.0% | +0.4pp |
| Epoch 3 | 46.8 | 1,890 | 3.92 | 0.324 | 47.5 | 1,612 | 3.71 | 0.291 | -278 | -14.7% | +0.7pp |
| Epoch 5 | 45.8 | 2,045 | 4.12 | 0.354 | 47.5 | 1,610 | 3.74 | 0.298 | -435 | -21.3% | +1.7pp |
| Epoch 8 | 43.8 | 2,409 | 4.38 | 0.391 | 47.6 | 1,559 | 3.78 | 0.332 | -850 | -35.3% | +3.8pp |
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
| Model Family | HuggingFace Repository Identifier | Parameters | Layers | Vocabulary |
|---|---|---|---|---|
| Mistral-7B Base | mistralai/Mistral-7B-v0.3 | 7.25B | 32 | 32,768 |
| Mistral-7B Instruct | mistralai/Mistral-7B-Instruct-v0.3 | 7.25B | 32 | 32,768 |
| Qwen3-8B Base | Qwen/Qwen3-8B-Base | 8.21B | 36 | 151,936 |
| Qwen3-8B Instruct | Qwen/Qwen3-8B | 8.21B | 36 | 151,936 |
| LLaMA-3.1-8B Base | meta-llama/Meta-Llama-3.1-8B | 8.03B | 32 | 128,256 |
| LLaMA-3.1-8B Instruct | meta-llama/Meta-Llama-3.1-8B-Instruct | 8.03B | 32 | 128,256 |
| Audit Classification Category | Count ( ) | Percentage (%) |
|---|---|---|
| Category 1: Genuine Factual Hallucination | 493 | 98.6% |
| Category 2: Geographic / Granularity Ambiguity | 3 | 0.6% |
| Category 3: Unlisted Colloquial Alias / Nickname | 2 | 0.4% |
| Category 4: Syntactic Parsing Truncation | 2 | 0.4% |
| Total Audited Sample | 500 | 100.0% |
| Epoch | Full Population Gate B (%) | Gate B Suppression (%) | Base Bias | |||
|---|---|---|---|---|---|---|
| Base | Standard DPO | BDM-DPO | Pilot Subset | Full Population | Gate B | |
| 1 | 7.25 | 7.32 | 7.15 | 16.0 | 2.4 | -5.95pp |
| 2 | 7.25 | 7.56 | 7.16 | 23.0 | 5.3 | -5.95pp |
| 3 | 7.25 | 9.19 | 7.18 | 34.9 | 21.9 | -5.95pp |
| 5 | 7.25 | 10.02 | 7.50 | 45.9 | 25.1 | -5.95pp |
| 8 | 7.25 | 10.82 | 7.00 | 50.0 | 35.3 | -5.95pp |
| Model | Benchmark | Acc (%) | Gate A | Gate B | Gate C | Gate D | ECE | Brier |
|---|---|---|---|---|---|---|---|---|
| Mistral-7B Base | PopQA | 28.5 | 3,010 | 42 | 8,895 | 562 | 0.045 | 0.182 |
| TriviaQA | 45.1 | 2,862 | 21 | 5,347 | 1,528 | 0.036 | 0.145 | |
| Mistral-7B Instruct | PopQA | 38.2 | 4,520 | 1,180 | 6,559 | 250 | 0.312 | 0.245 |
| TriviaQA | 59.6 | 4,453 | 450 | 3,473 | 1,382 | 0.243 | 0.188 | |
| LLaMA-3-8B Base | PopQA | 31.4 | 3,450 | 12 | 8,575 | 472 | 0.028 | 0.174 |
| TriviaQA | 47.8 | 3,090 | 6 | 5,085 | 1,577 | 0.019 | 0.138 |
| Architecture | Stage | Checkpoint | Len. (Corr. / Wrong) | Gate A (%) | Gate B (%) | High-Conf. Err. ( ) | First-Tok. Ent. | First-Tok. Marg. |
| Mistral-7B Lineage | Base | Mistral-7B-v0.1 | 3.0 / 3.2 | 12.96 | 0.84 | 186 | 3.148 | 1.586 |
| SFT | mistral-7b-sft-beta | 9.6 / 12.5 | 0.36 | 0.06 | 13 | 1.981 | 1.466 | |
| DPO | zephyr-7b-beta | 29.3 / 40.9 | 14.97 | 2.99 | 655 | 0.698 | 3.847 | |
| LLaMA-3.1-8B Lineage | Base | Meta-Llama-3.1-8B | 2.5 / 2.6 | 6.49 | 0.28 | 63 | 3.625 | 1.256 |
| SFT | Llama-3.1-Tulu-3-8B-SFT | 3.1 / 3.3 | 13.25 | 1.16 | 258 | 2.818 | 1.465 | |
| DPO | Llama-3.1-Tulu-3-8B-DPO | 3.2 / 3.5 | 21.29 | 2.79 | 621 | 2.150 | 1.776 |
| Model | Sampling Parameter | Value | Gate B Persist. (%) | Top-1 Agree (%) | Gold Elicitation (%) | Output Ent. ( ) | AUROC (SC) |
|---|---|---|---|---|---|---|---|
| Mistral-7B-Inst | Temperature ( ) | 0.0 (Greedy) | 100.0% | 100.0% | 0.0% | 0.000 | 0.500 |
| Temperature ( ) | 0.2 | 94.2% | 95.8% | 1.2% | 0.182 | 0.512 | |
| Temperature ( ) | 0.5 | 82.6% | 86.4% | 3.8% | 0.445 | 0.528 | |
| Temperature ( ) | 0.7 | 68.4% | 74.2% | 7.1% | 0.782 | 0.535 | |
| Temperature ( ) | 1.0 | 44.1% | 52.8% | 12.4% | 1.340 | 0.548 | |
| Nucleus ( ) | 0.90 ( ) | 67.8% | 73.9% | 7.4% | 0.791 | 0.534 |
| Model | Outcome | Sample Size ( ) | Total Layers ( ) | Mean | Mean | Final Top-1 Prob. |
|---|---|---|---|---|---|---|
| Mistral-7B (Instruct) | Wrong | 500 | 32 | 28.36 | 0.886 | 0.948 |
| Correct | 500 | 32 | 27.26 | 0.852 | 0.971 | |
| Mistral-7B (Base) | Wrong | 97 | 32 | 27.94 | 0.873 | 0.892 |
| Correct | 500 | 32 | 27.19 | 0.850 | 0.935 | |
| Qwen-8B (Instruct) | Wrong | 500 | 36 | 35.34 | 0.982 | 0.961 |
| Correct | 500 | 36 | 35.35 | 0.982 | 0.984 |
| Model | Dataset | Sample Size ( ) | R@1 | R@2 | R@5 | R@10 | R@100 | Median Rank |
|---|---|---|---|---|---|---|---|---|
| Mistral-7B | PopQA (Long-tail) | 320 | 0.019 | 0.100 | 0.209 | 0.309 | 0.653 | 42 |
| TriviaQA (Head) | 180 | 0.072 | 0.244 | 0.461 | 0.622 | 0.917 | 6 | |
| Qwen-8B | PopQA (Long-tail) | 310 | 0.016 | 0.126 | 0.281 | 0.432 | 0.810 | 16 |
| TriviaQA (Head) | 190 | 0.116 | 0.316 | 0.558 | 0.716 | 0.937 | 5 |
| Model Arm | Layer 8 AUROC | Layer 16 AUROC | Layer 24 AUROC | Layer 31 AUROC |
|---|---|---|---|---|
| Mistral-7B Base | ||||
| Standard DPO (Epoch 10) | ||||
| BDM-DPO (Epoch 10, Ours) | 0.779 0.011 | 0.807 0.014 | 0.823 0.009 |
| Model | Layer | Mode | Recovery (%) | Retention (%) | Net Gain | Gold Rank Shift | |
| Mistral-7B | 31 ( ) | Raw | 0.2 | 0.0 | 99.0 | 16.0 16.0 | |
| 31 ( ) | Normalized | 0.5 | 1.5 | 97.0 | 16.0 21.5 | ||
| 30 ( ) | Normalized | 0.5 | 3.5 | 88.5 † | 16.0 23.0 | ||
| 20 (Mid) | Normalized | 0.5 | 11.0 | 92.0 † | 16.0 20.0 | ||
| Qwen-8B | 35 ( ) | Normalized | 0.2 | 2.0 | 100.0 | 7.0 7.5 | |
| 34 ( ) | Normalized | 0.5 | 4.0 | 55.5 † | 7.0 11.0 |
| Model | Detector / Probe | AUROC | AUPR | FPR@95TPR |
|---|---|---|---|---|
| Mistral-7B (Instruct) | Softmax Max Prob. ( ) | 0.661 | 0.641 | 0.852 |
| Final Layer Entropy | 0.686 | 0.676 | 0.850 | |
| Self-Consistency ( ) | 0.535 | 0.981 | 0.082 | |
| Normalized Commit Layer ( ) | 0.608 | 0.665 | 0.902 | |
| Final Logit Margin | 0.609 | 0.591 | 0.874 | |
| Margin Rise ( ) | 0.622 | 0.603 | 0.888 |
| Model | Abstention Criterion | AURC | Acc@100% | Acc@80% | Acc@70% |
|---|---|---|---|---|---|
| Mistral-7B (Deployment ) | Random Rejection | 0.508 | 74.6 | 74.6 | 74.6 |
| Sequence Confidence ( ) | 0.364 | 74.6 | 77.7 | 79.1 | |
| Token Confidence ( ) | 0.368 | 74.6 | 77.5 | 78.8 | |
| Final-Layer Micro-Entropy ( ) | 0.355 | 74.6 | 77.7 | 79.1 | |
| Qwen-8B (Deployment ) | Random Rejection | 0.495 | 73.8 | 73.8 | 73.8 |
| Sequence Confidence ( ) | 0.309 | 73.8 | 79.3 | 82.0 |
| Model | Method | Paradigm | HCE Elim. (%) | Abstain / Hedge (%) | Retention (%) | Corrupted ( ) | Net Gain |
| Mistral-7B-Inst | Unconstrained Greedy (Control) | Baseline | 3.7% | 0.8% | 99.8% | 1 | +21 |
| Hedging Prompt ( Kadavath et al., 2022 ) | Prompt | 7.8% | 3.2% | 97.2% | 17 | +30 | |
| Self-Correction ( Huang et al., 2024 ) | 2-Turn Critic | 6.8% | 3.0% | 99.2% | 5 | +36 | |
| Self-Consistency ( ) ( Wang et al., 2023 ) | Sampling | 6.3% | 5.0% | 99.0% | 6 | +32 | |
| DoLa ( ) ( Chuang et al., 2024 ) | Decoding | 6.2% | 1.2% | 99.5% | 3 | +34 | |
| ET-Abstention (Raw ) | Epistemic Gate | 42.0% | 40.3% | 83.5% * | 99 | +153 |
| Tier | Configuration | Gate B (%) | #Gate B | Acc. (%) | ECE | ||
| Reference | Unaligned Base (Mistral-7B) | 3.252 | 0.863 | 7.00% | 140 | 46.8% | 0.3322 |
| Unconstrained | Standard DPO (1 Epoch Control) | 3.584 | 0.731 | 7.65% | 153 | 46.1% | 0.3603 |
| Static Clamp | 3.332 | 0.829 | 7.10% | 142 | 46.5% | 0.3430 | |
| Linear Decay | 3.320 | 0.837 | 6.95% | 139 | 46.8% | 0.3384 | |
| Dynamic Grid | 3.315 | 0.839 | 6.95% | 139 | 46.9% | 0.3367 | |
| 3.306 | 0.838 | 7.00% | 140 | 46.8% | 0.3380 |
| Paradigm | Objective / Method | Ref. Policy | Gate B (%) | #Gate B | Acc. (%) | ECE | ||
|---|---|---|---|---|---|---|---|---|
| Reference Checkpoint | Mistral-7B-Instruct-v0.3 | None | 3.609 | 0.907 | 7.25% | 1,615 | 47.8% | 0.3569 |
| Reference-Free | Vanilla SimPO ( ) | None | 3.799 | 0.986 | 7.58% | 1,687 | 45.4% | 0.3896 |
| Reference-Based | Standard DPO (Unbounded) | 3.916 | 0.796 | 7.37% | 1,641 | 47.1% | 0.3777 | |
| Epistemic Bounded | BDM-DPO (Ours) | 3.698 | 0.876 | 7.10% | 1,580 | 47.7% | 0.3608 |
| Method | Gate B (%) | #Gate B | Acc. (%) | ECE | |||
|---|---|---|---|---|---|---|---|
| 0.05 | Standard DPO | 4.071 | 0.743 | 7.64% | 1,701 | 46.8% | 0.3889 |
| BDM-DPO (Ours) | 3.687 | 0.877 | 7.18% | 1,599 | 47.6% | 0.3621 | |
| 0.10 | Standard DPO | 3.902 | 0.798 | 7.32% | 1,630 | 47.2% | 0.3771 |
| BDM-DPO (Ours) | 3.691 | 0.878 | 7.15% | 1,591 | 47.6% | 0.3617 | |
| 0.20 | Standard DPO | 3.785 | 0.840 | 7.16% | 1,595 | 47.4% | 0.3699 |
| BDM-DPO (Ours) | 3.686 | 0.878 | 7.15% | 1,593 | 47.6% | 0.3620 |
| Preference Dataset | Optimization Method | Gate B (%) | #Gate B | Acc. (%) | ECE | ||
|---|---|---|---|---|---|---|---|
| UltraFeedback ( Cui et al., 2024 ) | Standard DPO | 3.902 | 0.798 | 7.32% | 1,630 | 47.2% | 0.3771 |
| BDM-DPO (Ours) | 3.691 | 0.878 | 7.15% | 1,591 | 47.6% | 0.3617 | |
| Anthropic HH-RLHF ( Bai et al., 2022 ) | Standard DPO | 3.665 | 0.867 | 7.72% | 1,718 | 47.5% | 0.3623 |
| BDM-DPO (Ours) | 3.640 | 0.889 | 7.31% | 1,627 | 47.8% | 0.3584 |
| Architecture | Epoch | Method | Gate B (%) | #Gate B | Acc. (%) | ||
|---|---|---|---|---|---|---|---|
| Mistral-7B-Inst | Epoch 1 | Standard DPO | 3.916 | 0.796 | 7.37% | 1,641 | 47.1% |
| BDM-DPO | 3.698 | 0.876 | 7.10% | 1,580 | 47.7% | ||
| Epoch 10 | Standard DPO | 4.514 | 0.521 | 9.60% | 2,138 | 42.9% | |
| BDM-DPO | 3.784 | 0.812 | 6.65% | 1,481 | 47.6% | ||
| Llama-3.1-Tulu-3 | Epoch 1 | Standard DPO | 1.766 | 1.482 | 0.46% | 102 | 54.2% |
| BDM-DPO | 1.748 | 1.512 | 0.41% | 91 | 54.4% |
| Detection / Abstention Paradigm | Evaluation Metric | Reference SFT | Standard DPO | BDM-DPO (Ours) |
|---|---|---|---|---|
| Sampling Self-Consistency ( ) ( Wang et al., 2023 ) | AUROC | 0.535 | 0.508 (Blinded) | 0.658 (Revitalized) |
| Sequence Confidence ( ) ( Geifman & El-Yaniv, 2017 ) | AUROC | 0.612 | 0.564 (Degraded) | 0.714 (Sharpened) |
| Final-Layer Micro-Entropy ( ) (Ours) | AUROC | 0.686 | 0.615 (Compressed) | 0.781 (Restored) |
| Safe Selective Abstention ( ) | Net Gain | +21 | +8 (Collateral Loss) | +54 (Clean Rejection) |
| Model Variant | MMLU (5-shot) | GSM8K (8-shot CoT) | ARC-C (25-shot) | McNemar -value |
|---|---|---|---|---|
| Mistral-7B Base | 62.69% | 49.51% | 63.65% | (Baseline) |
| Standard DPO (Epoch 10) | 61.76% | 49.51% | 63.65% | Degradation ( ) |
| BDM-DPO (Epoch 10) | 62.70% | 51.55% | 63.65% | Preserved ( ) |
| Question | Ground Truth ( ) | Model Output ( ) | Gold Rank (L16 L-1) | Failure Mechanism | |||
|---|---|---|---|---|---|---|---|
| Domain: Entertainment & Cinema (Mistral-7B-Instruct, PopQA) | |||||||
| Who directed the movie Star Wars? | George Lucas | Guillermo del Toro | 0.992 | 0.038 | 4.85 | Rank 3 Rank 42 | Mid-layer competition; final-layer suppression. |
| Domain: World History (Qwen3-8B-Instruct, TriviaQA) | |||||||
| In which country was the Battle of Waterloo fought? | Belgium | France | 0.989 | 0.045 | 4.62 | Rank 2 Rank 18 | Strong semantic prior; gold token suppressed at L27. |
| Domain: Literature (Qwen3-8B-Instruct, PopQA) | |||||||
| Who wrote the novel “The Spy Who Came in from the Cold”? | John le Carré | Ian Fleming | 0.995 | 0.021 | 5.21 | Rank 5 Rank 64 | Genre author confusion; rapid late-layer margin surge. |
Hallucination in Language Models
Hallucination in language models studies how systems produce unsupported or false claims and how to detect, explain, and reduce them.
See all 247 papers