All models

DTransformer for KT

Transformer for knowledge tracing that diagnoses a learner's knowledge state before predicting the next response.

Tabular and recommender · 291 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (52 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
434.9K
Operations
291
Framework
PyTorch
Recurrent
No
Published
WWW 2023
Cited by
119 (as of 30 October 2026)
Authors
Yu Yin, Le Dai, Zhenya Huang and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15776
Graph hash
fa40d31d694857610905746cd63aab3dabcb5cc39dbc99f866020ce80f0b21ec
Skeleton hash
33c6133c763c15804e45f7d01d7a056a2fc7344e1da61f9eb65348d5cdf1cffe
Architecture hash
0ae4428965abcc1e858f5eccc670edf3270f2616bf122a94ba920b22b109ec60
Diagram SHA-256
c4e6f68d1e167a70ab08ac27f4d8bc5d3f0b1eddc69daed1ad23e49b0925ebd8
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

DTransformer, short for Diagnostic Transformer, is a model for knowledge tracing, the task of following how a learner's knowledge state evolves along the learning process. The paper argues that most models trace patterns of learners' activities instead of the knowledge that the learners themselves acquire.

DTransformer works in two steps: it estimates question-level mastery first, then diagnoses knowledge-level proficiency. Both steps use multi-head attention with temporal effects, in which the temporal effect decays exponentially with distance and a max-out operation models cumulative learning gain from past experiences. An attentive read-out module then uses the knowledge state to predict the learner's next performance.

Training adds a contrastive loss that draws together knowledge states from sequences of the same learner and pushes other pairs away. The paper reports that DTransformer has the best performance on almost all metrics on 4 datasets, and that in multi-step prediction its performance does not decline too quickly compared with DKT and AKT. The released training script names four datasets: assist09, assist17, algebra05 and statics.

Key idea. DTransformer diagnoses a learner's knowledge proficiency from question-level mastery states, and trains with a contrastive loss aimed at keeping the knowledge state diagnosis stable.

  • DTransformer
  • Diagnostic Transformer
  • knowledge tracing
  • knowledge state diagnosis
  • Temporal and Cumulative Attention
  • contrastive learning
  • student modeling
  • next performance prediction

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@inproceedings{Yin_2023, series={WWW ’23}, title={Tracing Knowledge Instead of Patterns: Stable Knowledge Tracing with Diagnostic Transformer}, url={http://dx.doi.org/10.1145/3543507.3583255}, DOI={10.1145/3543507.3583255}, booktitle={Proceedings of the ACM Web Conference 2023}, publisher={ACM}, author={Yin, Yu and Dai, Le and Huang, Zhenya and Shen, Shuanghong and Wang, Fei and Liu, Qi and Chen, Enhong and Li, Xin}, year={2023}, month=Apr, pages={855–864}, collection={WWW ’23} }