# 深度知识追踪

深度知识追踪（Deep Knowledge Tracing，DKT）是一种机器学习方法，它使用循环神经网络来建模学生不断演变的知识状态，并预测学生在评估序列的下一步中正确回答每个可能的练习或技能的概率。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2015/file/bac9162b47c56fc8a4d2a519803d51b3-Paper.pdf)</sup> 它属于智能辅导系统和自适应学习中使用的学生模型中的知识追踪家族，其任务被形式化为：给定学生的交互历史 \( X \)，预测学生正确回答练习 \( e_{t} \) 的概率 \( P(r_{t} = 1 \mid X, e_{t}) \)。<sup>[2](https://slangscience.github.io/slang/papers/2024A%20Survey%20of%20Explainable%20Knowledge%20Tracing.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 预测内容 | 根据学生的交互历史，预测下一时间步每个技能或练习正确作答的概率<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2015/file/bac9162b47c56fc8a4d2a519803d51b3-Paper.pdf)</sup> |
| 核心架构 | 一个LSTM循环网络，其隐藏层作为潜在知识状态，对所有技能进行联合建模<sup>[3](https://educationaldatamining.org/EDM2016/proceedings/paper_144.pdf)</sup> |
| 输入编码 | 对于 \( M \) 个练习，使用维度为 \( 2M \) 的独热向量，编码回答了哪个练习以及是否回答正确<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2015/file/bac9162b47c56fc8a4d2a519803d51b3-Paper.pdf)</sup> |
| 标志性结果 | 在ASSISTments基准数据集（15,931名学生、124个练习标签、526K条答案）上AUC为0.86，而标准BKT为0.67<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2015/file/bac9162b47c56fc8a4d2a519803d51b3-Paper.pdf)</sup> |
| 主要缺陷 | 数万个参数几乎无法解释，以及被称为“波动性”的不稳定振荡预测<sup>[3](https://educationaldatamining.org/EDM2016/proceedings/paper_144.pdf)</sup><sup> • </sup><sup>[4](https://link.springer.com/article/10.1007/s10489-022-03621-1)</sup> |
| 标准指标 | AUC（在综述涵盖的84项DKT研究中有90.5%使用）、准确率（57.14%）和RMSE（15.48%）<sup>[5](https://jyx.jyu.fi/bitstreams/26ecd5e4-368b-42a1-865c-430b20a0de02/download)</sup> |
| 后续模型 | 基于记忆的模型（DKVMN）、基于自注意力的模型（SAKT、AKT）和基于Transformer的模型（SAINT+）<sup>[6](https://www.utupub.fi/server/api/core/bitstreams/5a3d72b0-e5ab-4f5c-a005-2cc8a71dab64/content)</sup> |

## 工作原理

DKT将学生的知识状态视为循环神经网络的隐藏层。在每个时间步，网络接收一个编码学生最新交互的向量，并更新一个全循环隐藏层，其中每个隐藏单元都与所有其他隐藏单元相连；该隐藏层保留了输入历史的相关方面，并作为学生所知内容的潜在的、连续取值的表示。<sup>[3](https://educationaldatamining.org/EDM2016/proceedings/paper_144.pdf)</sup> 网络输出一个长度为 \( N \) 的向量，给出正确回答 \( N \) 个技能型问题各自的概率。<sup>[7](https://ar5iv.labs.arxiv.org/html/2101.11335)</sup>

贝叶斯知识追踪（BKT）是深度学习之前的主流方法，它将学习者的潜在知识建模为一组二元变量，每个概念对应一个变量，分别表示理解或不理解，并使用隐马尔可夫模型更新概率；它假设知识状态仅取决于前一状态，用四个概率参数涵盖初始掌握、学习、猜测和失误。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2015/file/bac9162b47c56fc8a4d2a519803d51b3-Paper.pdf)</sup><sup> • </sup><sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC12218354/)</sup><sup> • </sup><sup>[6](https://www.utupub.fi/server/api/core/bitstreams/5a3d72b0-e5ab-4f5c-a005-2cc8a71dab64/content)</sup> 单个DKT实例对一个领域中的所有技能进行联合建模，其输入交织了多个技能的练习。<sup>[9](https://par.nsf.gov/biblio/10074161)</sup>

对于不同练习数量 \( M \) 较小的数据集，输入 \( x_{t} \) 是交互元组 \( \{q_{t}, a_{t}\} \) 的独热编码，即回答了哪个练习以及是否回答正确的组合，因此 \( x_{t} \in \{0,1\}^{2M} \)；向量中的单个1同时指示回答了哪个技能以及是否回答正确。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2015/file/bac9162b47c56fc8a4d2a519803d51b3-Paper.pdf)</sup><sup> • </sup><sup>[10](https://files.eric.ed.gov/fulltext/ED592679.pdf)</sup> 对于不同练习数量较大的数据集，则改为为每个输入元组分配一个随机高斯向量 \( n_{q,a} \sim N(0, I) \)。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2015/file/bac9162b47c56fc8a4d2a519803d51b3-Paper.pdf)</sup> LSTM产生输出 \( y_{t} \in (0,1)^{S} \)，每个时间步每个技能一个概率，下一步的预测使用时间 \( t+1 \) 的技能标签来选择。<sup>[11](https://ar5iv.labs.arxiv.org/html/2112.15072)</sup>

## 实施方法

实践者在从[ASSISTments](https://www.edgepedia.org/zh/assistments)或[Khan Academy](https://www.edgepedia.org/zh/khan-academy)数据等日志中提取的学生尝试序列上训练DKT。每次尝试贡献一个按上述方式编码的元组 \( (s_{t}, c_{t}) \)，模型以每次学生尝试的二元交叉熵损失 \( L(\boldsymbol{y}^{T} \cdot \delta(s_{t+1}), c_{t+1}) \) 进行训练，仅考虑时间 \( t+1 \) 的技能标签。<sup>[11](https://ar5iv.labs.arxiv.org/html/2112.15072)</sup>

评估采用按学生划分的交叉验证，使每个学生的数据只出现在一个部分中。标准方案使用5折交叉验证，典型设置保留10%的验证集用于早停。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2015/file/bac9162b47c56fc8a4d2a519803d51b3-Paper.pdf)</sup><sup> • </sup><sup>[11](https://ar5iv.labs.arxiv.org/html/2112.15072)</sup> AUC是文献中的主导指标，在综述涵盖的84项DKT研究中有76项（90.5%）报告了该指标，48项研究（57.14%）报告了准确率，13项（15.48%）报告了RMSE。<sup>[5](https://jyx.jyu.fi/bitstreams/26ecd5e4-368b-42a1-865c-430b20a0de02/download)</sup> 各研究的评估实践并不统一，即使同一模型在相同数据集上，报告的AUC也存在显著不一致；开源基准pyKT通过在9个流行数据集和21个常用对比模型实现上进行标准化预处理来解决这一问题。<sup>[12](https://doi.org/10.1109/tkde.2025.3552759)</sup>

## 起源

深度知识追踪由克里斯·皮耶希及其同事于2015年在论文《深度知识追踪》中提出，发布于arXiv。<sup>[13](https://doi.org/10.48550/arxiv.1506.05908)</sup><sup> • </sup><sup>[1](https://proceedings.neurips.cc/paper_files/paper/2015/file/bac9162b47c56fc8a4d2a519803d51b3-Paper.pdf)</sup> 它代表了深度学习在知识追踪中的首次重要应用，使用LSTM网络捕捉学生学习过程的复杂性，取代了BKT和逻辑回归模型等早期手工特征方法。<sup>[14](https://arxiv.org/pdf/2501.14256)</sup><sup> • </sup><sup>[5](https://jyx.jyu.fi/bitstreams/26ecd5e4-368b-42a1-865c-430b20a0de02/download)</sup>

该方法建立在两个早期模型家族之上。基于马尔可夫过程的知识追踪以BKT及其两状态隐马尔可夫模型为代表，将学生知识状态视为从观测响应中更新的隐藏二元变量。<sup>[2](https://slangscience.github.io/slang/papers/2024A%20Survey%20of%20Explainable%20Knowledge%20Tracing.pdf)</sup> 逻辑回归替代方案包括表现因素分析，由菲利普·I·帕夫利克、岑浩和肯尼斯·R·柯丁格于2009年在《人工智能前沿与应用》上提出，作为知识追踪的替代方法，据信当每次响应需要多个技能时表现更好。<sup>[15](https://doi.org/10.3233/978-1-60750-028-5-531)</sup><sup> • </sup><sup>[7](https://ar5iv.labs.arxiv.org/html/2101.11335)</sup>

## 变体

若干命名变体修改了原始架构。DKT+引入两个正则化项以提高知识追踪预测的一致性，DKT-F通过考虑遗忘行为来增强知识追踪。<sup>[14](https://arxiv.org/pdf/2501.14256)</sup> DKVMN由张佳妮及其同事于2016年提出，用记忆网络替代扁平隐藏状态，允许自动学习隐藏技能。<sup>[16](https://doi.org/10.48550/arxiv.1611.08108)</sup><sup> • </sup><sup>[17](https://archives.iw3c2.org/www2017/proceedings/proceedings/p765.pdf)</sup><sup> • </sup><sup>[7](https://ar5iv.labs.arxiv.org/html/2101.11335)</sup> 后来的架构超越了循环结构。SAINT+由申东敏及其同事于2020年提出，采用[Transformer](https://www.edgepedia.org/zh/transformer)架构整合时间特征，在EdNet数据上进行正确性预测。<sup>[18](https://doi.org/10.48550/arxiv.2010.12042)</sup><sup> • </sup><sup>[6](https://www.utupub.fi/server/api/core/bitstreams/5a3d72b0-e5ab-4f5c-a005-2cc8a71dab64/content)</sup>

## 应用

在ASSISTments基准数据集（15,931名学生、124个练习标签、526K条答案）上，LSTM DKT达到AUC 0.86，而边际预测为0.62，标准BKT为0.67，文献中报告的最佳BKT结果为0.69。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2015/file/bac9162b47c56fc8a4d2a519803d51b3-Paper.pdf)</sup> 在一项跨九个真实世界数据集的广泛实证比较中，具有正确特征集的逻辑回归在中等规模或每个学生交互数量极大的数据集上领先，而深度知识追踪在大规模数据集或精确时间信息最为重要的数据集上领先，BKT等马尔可夫过程方法则落后于其他方法。<sup>[19](https://jedm.educationaldatamining.org/index.php/JEDM/article/view/451)</sup> 已发表文献记录了BKT在Cognitive Tutor和MATHia中的部署，但未提及任何在生产环境中运行DKT本身的辅导系统、MOOC或自适应平台。<sup>[6](https://www.utupub.fi/server/api/core/bitstreams/5a3d72b0-e5ab-4f5c-a005-2cc8a71dab64/content)</sup>

## 局限性与替代方案

**可解释性。** DKT的优势是有代价的：它是一个拥有数万个参数的大型神经网络模型，几乎无法解释，而扩展BKT模型保留了遗忘率和学生能力等具有心理学意义的参数。<sup>[3](https://educationaldatamining.org/EDM2016/proceedings/paper_144.pdf)</sup> DKT的预测还表现出波动性，即估计知识状态的不稳定振荡，一项分析通过用有限状态自动机对DKT建模来研究这一现象，该自动机的状态演化在外部输入下是可观测的。<sup>[4](https://link.springer.com/article/10.1007/s10489-022-03621-1)</sup> 后来的分析发现了更多陷阱：DKT更可能学习到一个“能力”模型，而非随时间追踪每个技能，且未经训练的循环网络可以达到与训练过的DKT模型相似的结果。<sup>[7](https://ar5iv.labs.arxiv.org/html/2101.11335)</sup>

**评估注意事项。** 为DKT报告的AUC数值是在所有技能汇总预测上计算的，而非按技能计算ROC曲线；提出该方法的论文未描述其AUC计算过程，但其发布的代码实现了汇总计算。<sup>[3](https://educationaldatamining.org/EDM2016/proceedings/paper_144.pdf)</sup> 两个主要指标——准确率和AUC——并不评估可解释性。<sup>[2](https://slangscience.github.io/slang/papers/2024A%20Survey%20of%20Explainable%20Knowledge%20Tracing.pdf)</sup>

**替代方案。** BKT仍然是一个活跃的研究方向，近期有关于可解释性、参数理论和公平性的工作，并已部署在Cognitive Tutor和MATHia等智能辅导系统中。<sup>[6](https://www.utupub.fi/server/api/core/bitstreams/5a3d72b0-e5ab-4f5c-a005-2cc8a71dab64/content)</sup> 在深度模型中，基于注意力的方法指出了实际约束：AKT需要历史和未来交互作为输入，这使实际应用复杂化，因为未来的响应通常不可用。<sup>[14](https://arxiv.org/pdf/2501.14256)</sup> 自2023年底以来，有理论依据的Transformer知识追踪模型在标准化基准数据集上报告了新的最先进结果，并被提议作为未来研究的简单基础模型类别。<sup>[20](https://jedm.educationaldatamining.org/index.php/JEDM/article/view/961)</sup>

## References

1. [Deep Knowledge Tracing (NeurIPS 2015)](https://proceedings.neurips.cc/paper_files/paper/2015/file/bac9162b47c56fc8a4d2a519803d51b3-Paper.pdf)
2. [A survey of explainable knowledge tracing (2024)](https://slangscience.github.io/slang/papers/2024A%20Survey%20of%20Explainable%20Knowledge%20Tracing.pdf)
3. [How Deep is Knowledge Tracing? (Khajah, Lindsey, Mozer; EDM 2016; same paper as arXiv:1604.02416 and the NIPS 2016 workshop copy)](https://educationaldatamining.org/EDM2016/proceedings/paper_144.pdf)
4. [What is wrong with deep knowledge tracing? Attention-based knowledge tracing (Applied Intelligence)](https://link.springer.com/article/10.1007/s10489-022-03621-1)
5. [A Systematic Review of Deep Knowledge Tracing (2015-2025): Toward Responsible AI for Education](https://jyx.jyu.fi/bitstreams/26ecd5e4-368b-42a1-865c-430b20a0de02/download)
6. [University of Turku thesis on knowledge tracing models](https://www.utupub.fi/server/api/core/bitstreams/5a3d72b0-e5ab-4f5c-a005-2cc8a71dab64/content)
7. [On the Interpretability of Deep Learning Based Models for Knowledge Tracing](https://ar5iv.labs.arxiv.org/html/2101.11335)
8. [Deep learning based knowledge tracing in intelligent tutoring systems (review + MSKT)](https://pmc.ncbi.nlm.nih.gov/articles/PMC12218354/)
9. [Does deep knowledge tracing model interactions among skills?](https://par.nsf.gov/biblio/10074161)
10. [Going Deeper with Deep Knowledge Tracing](https://files.eric.ed.gov/fulltext/ED592679.pdf)
11. [Empirical Evaluation of Deep Learning Models for Knowledge Tracing: Of Hyperparameters and Metrics on Performance and Replicability](https://ar5iv.labs.arxiv.org/html/2112.15072)
12. [Deep Learning Based Knowledge Tracing: A Review, a Tool and Empirical Studies (pyKT)](https://doi.org/10.1109/tkde.2025.3552759)
13. [Piech, Chris and colleagues (2015). Deep Knowledge Tracing. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1506.05908)
14. [Deep Knowledge Tracing (arXiv preprint, 2025)](https://arxiv.org/pdf/2501.14256)
15. [Pavlik Philip I., Cen Hao, Koedinger Kenneth R. (2009). Performance Factors Analysis – A New Alternative to Knowledge Tracing. Frontiers in artificial intelligence and applications.](https://doi.org/10.3233/978-1-60750-028-5-531)
16. [Zhang, Jiani and colleagues (2016). Dynamic Key-Value Memory Networks for Knowledge Tracing. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1611.08108)
17. [Dynamic Key-Value Memory Networks for Knowledge Tracing (Zhang et al., WWW 2017)](https://archives.iw3c2.org/www2017/proceedings/proceedings/p765.pdf)
18. [Shin, Dongmin and colleagues (2020). SAINT+: Integrating Temporal Features for EdNet Correctness Prediction. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2010.12042)
19. [When is Deep Learning the Best Approach to Knowledge Tracing? (Journal of Educational Data Mining)](https://jedm.educationaldatamining.org/index.php/JEDM/article/view/451)
20. [Principled Transformers for Predictive Performance in Knowledge Tracing (JEDM)](https://jedm.educationaldatamining.org/index.php/JEDM/article/view/961)

---
*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/deep-knowledge-tracing

English original: https://www.edgepedia.org/deep-knowledge-tracing
