# 证据深度学习

证据深度学习（Evidential deep learning, EDL）是一种用于不确定性量化的神经网络训练方法。网络输出的不是单一的 softmax 概率向量，而是非负的证据，这些证据参数化了一个定义在类别概率上的[狄利克雷分布](https://www.edgepedia.org/zh/dirichlet-distribution)（概率向量上的概率分布，是该方法的核⼼）。单次前向传播即可同时给出预测和一个明确的“我不知道”质量，避免了集成方法和贝叶斯网络所需的重复推理，不过其不确定性估计的保真度仍存在活跃争议。

| 关键事实 | 值 |
|---|---|
| 网络输出 | 非负证据向量 \( e \)，例如 \( e = \mathrm{Softplus}(f(x)) \)，参数化类别概率上的狄利克雷分布 <sup>[1](https://arxiv.org/html/2409.04720v1)</sup> |
| 不确定性质量 | \( u = K/S \)，其中 \( S = \sum (e_{k} + 1) \)；无证据时 \( u = 1 \)，高置信度时 u 接近 0 <sup>[2](https://proceedings.neurips.cc/paper_files/paper/2018/file/a981f2b708044d6fb4a71a1463242520-Paper.pdf)</sup> |
| 训练损失 | 狄利克雷分布上的期望 MSE（平方和贝叶斯风险）加上向均匀狄利克雷分布的 KL 项，退火系数 \( \lambda_{t} = \min(1.0, t/10) \) <sup>[2](https://proceedings.neurips.cc/paper_files/paper/2018/file/a981f2b708044d6fb4a71a1463242520-Paper.pdf)</sup> |
| 推理成本 | 一次前向传播、一个网络，而 dropout 和集成方法需要重复采样推理 <sup>[1](https://arxiv.org/html/2409.04720v1)</sup> |
| 原始准确率 | MNIST 上 99.3%，CIFAR-5 上 83%，与 dropout 和集成基线相当 <sup>[2](https://proceedings.neurips.cc/paper_files/paper/2018/file/a981f2b708044d6fb4a71a1463242520-Paper.pdf)</sup> |
| 回归校准 | 证据回归论文实验中校准误差 0.033，对比集成方法 0.048、dropout 0.126 <sup>[3](https://proceedings.neurips.cc/paper_files/paper/2020/file/aab085461de182608ee9f607f3f7d18f-Paper.pdf)</sup> |
| 2024 年主要批评 | 学到的认知不确定性不可靠；EDL 可能更适合作为基于能量的分布外检测器，而非忠实的贝叶斯模型 <sup>[4](https://papers.nips.cc/paper_files/paper/2024/file/c3177be226ee12e34d6ba3b5e6fe6a5b-Paper-Conference.pdf)</sup> |

## 工作原理

EDL 用二阶预测分布替代 softmax 点估计。网络最后一层为 \( K \) 个类别中的每一个产生非负证据向量 \( e_{k} \geq 0 \)，使用 ReLU 或 Softplus 激活函数而非 softmax。<sup>[5](https://ar5iv.labs.arxiv.org/html/1910.06864)</sup> 证据参数化一个狄利克雷分布——多项分布的共轭先验——参数为 \( \alpha_{k} = e_{k} + 1 \)，狄利克雷强度 \( \alpha_{0} = S = \sum_{k} (e_{k} + 1) \)。<sup>[6](https://nn.labml.ai/uncertainty/evidence/index.html)</sup>

到登普斯特-谢弗信度质量的映射为 b_k = e_k/S 和 u = K/S，因此不确定性质量与总证据成反比，无证据时等于 1。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2018/file/a981f2b708044d6fb4a71a1463242520-Paper.pdf)</sup> 在均匀基础率 \( a_{i} = 1/C \) 和 \( W = C \) 的一般形式中，质量为 \( b_{i} = e_{i}/(\sum_{j} e_{j} + W) \) 和 \( u = W/(\sum_{j} e_{j} + W) \)。<sup>[1](https://arxiv.org/html/2409.04720v1)</sup> 主观意见是信度质量、不确定性质量和基础率的有序三元组 \( \omega_{X} = (b_{X}, u_{X}, a_{X}) \)，满足 \( \sum b_{X}(x) + u_{X} = 1 \) 和 \( \sum a_{X}(x) = 1 \)。<sup>[1](https://arxiv.org/html/2409.04720v1)</sup>

期望类别概率是狄利克雷均值，p̂_k = α_k/S。<sup>[6](https://nn.labml.ai/uncertainty/evidence/index.html)</sup> 与普通 softmax 的区别在于：均匀狄利克雷分布（无证据，\( u = 1 \)）表达的是知识缺乏，而均匀[分类分布](https://www.edgepedia.org/zh/categorical-distribution)表达的是所有类别等概率；EDL 能区分二者。<sup>[7](https://ar5iv.labs.arxiv.org/html/2110.03051)</sup>

## 实现方法

训练最小化狄利克雷预测分布上的损失。原始论文通过在 L2 范数损失下最小化贝叶斯风险来拟合分布，并以信息论复杂度项正则化。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2018/file/a981f2b708044d6fb4a71a1463242520-Paper.pdf)</sup> 在综述的记号中，每样本数据项在狄利克雷分布上对平方误差积分，

\[ L_{\text{mse-edl}} = \frac{1}{|D|} \sum_{(x,y) \in D} \sum_{i} \left[ \left( y_i - \frac{\alpha_i}{S} \right)^2 + \frac{\alpha_i (S - \alpha_i)}{S^2 (S + 1)} \right] \]

再加上向均匀狄利克雷分布的 KL 正则项 L_kl = (1/|D|) Σ KL(Dir(p, α̃), Dir(p, 1))，由退火系数 \( \mu_{t} = \min(1.0, t/10) \) 加权，其中 \( t \) 是训练轮次索引。<sup>[1](https://arxiv.org/html/2409.04720v1)</sup> 正则化形式使用移除非误导性证据后的狄利克雷参数 α̃_i = y_i + (1 − y_i)·α_i，因此 KL 项只收缩不符合标签的类别的证据 <sup>[2](https://proceedings.neurips.cc/paper_files/paper/2018/file/a981f2b708044d6fb4a71a1463242520-Paper.pdf)</sup>；当样本无法被正确分类时，KL 项实际上试图将总证据收缩至零。<sup>[6](https://nn.labml.ai/uncertainty/evidence/index.html)</sup>

该模型也可通过第二类最大似然训练。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2018/file/a981f2b708044d6fb4a71a1463242520-Paper.pdf)</sup> 开源实现提供三种基础损失：平方和[贝叶斯风险](https://www.edgepedia.org/zh/bayes-risk)（论文推荐为最稳定）、交叉熵贝叶斯风险和第二类最大似然。<sup>[8](https://github.com/LucaCtt/edl-losses/blob/main/README.md)</sup> 实验表明 MSE 形式相比交叉熵和负对数边际似然表现最佳。<sup>[9](https://proceedings.mlr.press/v202/deng23b/deng23b.pdf)</sup> 典型配方将 SS 贝叶斯风险与由 \( \min(1.0, \mathrm{epoch}/\mathrm{max\_epoch}) \) 加权的 KL 损失、独热目标和 Adam 优化器结合；在前几个轮次对 KL 权重退火可防止早期欠拟合。<sup>[10](https://github.com/clabrugere/evidential-deeplearning)</sup><sup> • </sup><sup>[8](https://github.com/LucaCtt/edl-losses/blob/main/README.md)</sup>

## 起源

EDL 由穆拉特·森索伊、兰斯·卡普兰和梅利赫·坎德米尔在《用于量化分类不确定性的证据深度学习》中提出，2018 年发布于 arXiv <sup>[11](https://doi.org/10.48550/arxiv.1806.01768)</sup>，并在 NeurIPS 2018 上发表。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2018/file/a981f2b708044d6fb4a71a1463242520-Paper.pdf)</sup> 它建立在两个前驱工作之上。登普斯特-谢弗证据理论将贝叶斯理论推广到主观概率，为辨识框架（互斥可能状态的集合，如类别标签）的子集分配信度质量。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2018/file/a981f2b708044d6fb4a71a1463242520-Paper.pdf)</sup> 奥敦·约桑在 2016 年出版的专著《主观逻辑》中，将辨识框架上的 DST 信度分配形式化为狄利克雷分布。<sup>[12](https://doi.org/10.1007/978-3-319-42337-1)</sup> 后来的综述认为，森索伊等人（2018）的工作是该术语的源头，也是基于狄利克雷的不确定性模型中的开创性工作。<sup>[7](https://ar5iv.labs.arxiv.org/html/2110.03051)</sup>

## 变体

回归扩展——阿米尼及其同事的深度证据回归（arXiv 2019，NeurIPS 2020）——在似然输出上放置证据先验：目标 y 取自高斯分布 \( N(\mu, \sigma^{2}) \)，其均值和方差服从正态逆伽马（NIG）分布，联合估计偶然不确定性和认知不确定性。<sup>[3](https://proceedings.neurips.cc/paper_files/paper/2020/file/aab085461de182608ee9f607f3f7d18f-Paper.pdf)</sup><sup> • </sup><sup>[13](https://doi.org/10.48550/arxiv.1910.02600)</sup> 一篇综述编录了更多回归头，包括采用正态逆威沙特先验的多变量深度证据回归和采用正态威沙特先验的回归先验网络。<sup>[7](https://ar5iv.labs.arxiv.org/html/2110.03051)</sup>

在分类方面，正则化证据神经网络（ENN）后续工作形式化了 ReLU 证据架构和期望损失加 KL 的目标。<sup>[5](https://ar5iv.labs.arxiv.org/html/1910.06864)</sup> 基于费希尔信息的 EDL（I-EDL）修改训练目标以改进 OOD 和误分类检测。<sup>[9](https://proceedings.mlr.press/v202/deng23b/deng23b.pdf)</sup> 一篇 NeurIPS 2024 分析将代表性分类方法——包括 PriorNets、带 MSE 损失的 EDL、Belief Matching、PostNet 和 NatPN——统一为一个目标的特例，差异在于似然、KL 方向、先验和参数化，并单独分类了基于蒸馏的方法如 END2 和 S2D。<sup>[4](https://papers.nips.cc/paper_files/paper/2024/file/c3177be226ee12e34d6ba3b5e6fe6a5b-Paper-Conference.pdf)</sup> 卡里米和萨马维（2024）的证据保形预测（ECP）将 EDL 与保形预测结合以产生不确定性集合。<sup>[14](https://doi.org/10.48550/arxiv.2406.10787)</sup>

## 应用

综述报告 EDL 用于自动驾驶、遥感、医学筛查、分子分析、开放集识别、主动学习和模型选择 <sup>[7](https://ar5iv.labs.arxiv.org/html/2110.03051)</sup>，一篇 2024 年综述将应用组织为计算机视觉、自然语言处理、跨模态学习、自动驾驶、开放世界任务和科学领域。<sup>[1](https://arxiv.org/html/2409.04720v1)</sup>

在医学分割十项全能（Medical Segmentation Decathlon）的心脏和前列腺 MRI 上使用 U-Net 骨干的生物医学分割中，EDL 模型在不确定性-误差相关性方面优于香农熵、蒙特卡洛 Dropout 和深度集成。<sup>[15](https://arxiv.org/html/2410.18461)</sup> 在主动学习中，基于 EDL 的采样在相似 Dice-Sørensen 系数下产生了比基于熵的采样更高的点双列不确定性-误差相关性。<sup>[15](https://arxiv.org/html/2410.18461)</sup>

## 局限与替代方案

主要吸引力在于成本：深度集成和贝叶斯神经网络通常需要多次前向传播或额外参数，造成阻碍工业采用的计算负担，而 EDL 的单次前向传播范式绕开了这一点。<sup>[1](https://arxiv.org/html/2409.04720v1)</sup> 在证据回归的对比评估中，证据方法在所有数据集上的负对数似然和推理速度均表现最佳，同时在 RMSE 上保持竞争力，且仅需一次前向传播和一个网络。<sup>[3](https://proceedings.neurips.cc/paper_files/paper/2020/file/aab085461de182608ee9f607f3f7d18f-Paper.pdf)</sup> 在原始分类实验中，EDL 在 MNIST 上达到 99.3%，在 CIFAR-5 上达到 83%，同时改善了[分布外检测](https://www.edgepedia.org/zh/out-of-distribution-detection)和对抗鲁棒性。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2018/file/a981f2b708044d6fb4a71a1463242520-Paper.pdf)</sup> I-EDL 在 OOD 检测 AUPR 上优于原始 EDL，一项贝叶斯基准报告 EDL 在 MNIST 上测试误差 1.08%，在域外 CIFAR 1-5 上 20.34%，与 MC Dropout 和 BEDL+Reg 相当。<sup>[9](https://proceedings.mlr.press/v202/deng23b/deng23b.pdf)</sup><sup> • </sup><sup>[16](https://export.arxiv.org/pdf/1906.00816)</sup>

两项 2024 年的批评挑战了其不确定性解释。一篇 NeurIPS 2024 分析得出结论：“EDL 方法尽管不确定性量化能力不佳，在下游任务上却仍能取得实际成效”，并且 EDL 方法可以更好地解释为基于能量模型的分布外检测算法；在本格斯等人的基础上，它报告学到的认知不确定性不可靠，即使有无穷数据也不会消失。<sup>[4](https://papers.nips.cc/paper_files/paper/2024/file/c3177be226ee12e34d6ba3b5e6fe6a5b-Paper-Conference.pdf)</sup> 一篇 ICML 2024 论文得出结论，认知不确定性通常未被忠实表示：正则化器主要稳定优化，产生一个不可超过的“不确定性预算”，因此这些度量无法定量解释，尽管相对解释足以用于 OOD 检测、对抗鲁棒性和主动学习；它假设 EDL 的 OOD 分数可以解释为特征空间中的密度估计。<sup>[17](https://raw.githubusercontent.com/mlresearch/v235/main/assets/juergens24a/juergens24a.pdf)</sup> 同一分析指出，若模型中没有随机性，预测分布会退化，并建议引入模型不确定性可以帮助 EDL 以额外计算成本忠实地量化不确定性。<sup>[4](https://papers.nips.cc/paper_files/paper/2024/file/c3177be226ee12e34d6ba3b5e6fe6a5b-Paper-Conference.pdf)</sup>

一个结构性局限是封闭世界假设：EDL 假设输入始终属于 K 个已知类别之一，其作者将其认定为对污染或异常数据的局限。<sup>[18](https://www.nature.com/articles/s41598-023-40649-w)</sup> 经典 EDL 在高数据不确定性样本被标注为独热向量时，也会过度惩罚对误标类别的证据学习。<sup>[9](https://proceedings.mlr.press/v202/deng23b/deng23b.pdf)</sup> 更广泛地说，贝叶斯式和证据式的预测不确定性方法一直受到批评并被证明存在问题。<sup>[19](https://proceedings.neurips.cc/paper_files/paper/2024/file/d42a8bf2f40555d4a5120300f98c88f6-Paper-Conference.pdf)</sup> 2023 年后的工作以混合方法回应：ECP 从根植于 EDL 的非一致性分数生成保形预测集，在集合大小和自适应性上优于三种最先进的 CP 集方法，同时保持对真实标签的覆盖率。<sup>[20](https://proceedings.mlr.press/v230/karimi24a.html)</sup>

## References

1. [A Comprehensive Survey on Evidential Deep Learning and Its Applications](https://arxiv.org/html/2409.04720v1)
2. [Evidential Deep Learning to Quantify Classification Uncertainty (NeurIPS 2018)](https://proceedings.neurips.cc/paper_files/paper/2018/file/a981f2b708044d6fb4a71a1463242520-Paper.pdf)
3. [Deep Evidential Regression (NeurIPS 2020)](https://proceedings.neurips.cc/paper_files/paper/2020/file/aab085461de182608ee9f607f3f7d18f-Paper.pdf)
4. [Are Uncertainty Quantification Capabilities of Evidential Deep Learning a Mirage? (NeurIPS 2024)](https://papers.nips.cc/paper_files/paper/2024/file/c3177be226ee12e34d6ba3b5e6fe6a5b-Paper-Conference.pdf)
5. [Quantifying Classification Uncertainty using Regularized Evidential Neural Networks](https://ar5iv.labs.arxiv.org/html/1910.06864)
6. [Evidential Deep Learning, annotated implementation (labml.ai)](https://nn.labml.ai/uncertainty/evidence/index.html)
7. [Prior and Posterior Networks: A Survey on Evidential Deep Learning Methods For Uncertainty Estimation](https://ar5iv.labs.arxiv.org/html/2110.03051)
8. [LucaCtt/edl-losses, PyTorch implementation of EDL losses](https://github.com/LucaCtt/edl-losses/blob/main/README.md)
9. [Uncertainty Estimation by Fisher Information-based Evidential Deep Learning (ICML 2023)](https://proceedings.mlr.press/v202/deng23b/deng23b.pdf)
10. [clabrugere/evidential-deeplearning, PyTorch implementation](https://github.com/clabrugere/evidential-deeplearning)
11. [Sensoy, Murat, Kaplan, Lance, Kandemir, Melih (2018). Evidential Deep Learning to Quantify Classification Uncertainty. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1806.01768)
12. [Audun Jøsang (2016). Subjective Logic. Artificial intelligence: foundations, theory, and algorithms/Artificial intelligence: Foundations, theory, and algorithms.](https://doi.org/10.1007/978-3-319-42337-1)
13. [Amini, Alexander and colleagues (2019). Deep Evidential Regression. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1910.02600)
14. [Karimi, Hamed, Samavi, Reza (2024). Evidential Uncertainty Sets in Deep Classifiers Using Conformal Prediction. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2406.10787)
15. [Uncertainty-Error correlations in Evidential Deep Learning models for biomedical segmentation](https://arxiv.org/html/2410.18461)
16. [Bayesian Evidential Deep Learning with PAC Regularization](https://export.arxiv.org/pdf/1906.00816)
17. [Is Epistemic Uncertainty Faithfully Represented by Evidential Deep Learning Methods? (ICML 2024, PMLR v235)](https://raw.githubusercontent.com/mlresearch/v235/main/assets/juergens24a/juergens24a.pdf)
18. [Learning and predicting the unknown class using evidential deep learning (Scientific Reports, 2023)](https://www.nature.com/articles/s41598-023-40649-w)
19. [Conformalized Credal Set Predictors (NeurIPS 2024)](https://proceedings.neurips.cc/paper_files/paper/2024/file/d42a8bf2f40555d4a5120300f98c88f6-Paper-Conference.pdf)
20. [Evidential Uncertainty Sets in Deep Classifiers Using Conformal Prediction (ECP, PMLR v230, 2024)](https://proceedings.mlr.press/v230/karimi24a.html)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Neural networks and deep learning › Titles A to H

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/evidential-deep-learning

English original: https://www.edgepedia.org/evidential-deep-learning
