SAINT-KT
An encoder-decoder Transformer for knowledge tracing: exercises go to the encoder, responses to the decoder.
Tabular and recommender · 554 operations Checked
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
- 41.6M
- Operations
- 554
- Framework
- PyTorch
- Recurrent
- No
- Published
- L@S 2020
- Cited by
- 279 (as of 24 October 2026)
- Authors
- Youngduck Choi, Youngnam Lee, Junghyun Cho and others
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19930
- Graph hash
- dc15205120c87f94da0393d695d49b8c7b8022a65e375156b936c8a6247d42a2
- Skeleton hash
- 49b233b7aed26ff6173b1cf17853749fd50528b7486b4ca9d7c36ea817390f37
- Architecture hash
- 0778849a386ff0d18cb9fa0e38210833f05ef97b15a528318ac832b81d77aa32
- Diagram SHA-256
- 26ad76dfc140aa36427b56b1f8b881d8bcca580f801b96a487e25b7fefddad08
- 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
SAINT, short for Separated Self-AttentIve Neural Knowledge Tracing, is a Transformer based model for knowledge tracing. Knowledge tracing is the modeling of a student's knowledge through learning activities, a problem the paper places in computer-aided education. The model's output is a series of probability values, produced by a linear layer followed by a sigmoid.
What sets SAINT apart is that the two input sequences are kept separate: exercise embeddings enter the encoder and response embeddings enter the decoder, which allows attention layers to be stacked multiple times. The paper contrasts this with the usual practice of using exercises as queries and exercise-response pairs as keys and values, which it says lacks empirical support. The decoder alternates self-attention over the responses with attention to the encoder output. A mask keeps each position from attending to later positions.
The evaluation uses EdNet, data from a mobile education application named Santa with 627,347 users and 72,907,005 response data points. On it the paper reports an AUC improvement of 1.8% over SAKT. Its best performing SAINT has 4 layers and a latent space dimension of 512, with an ACC of 0.7368 and an AUC of 0.7811.
Key idea. SAINT is an encoder-decoder Transformer for knowledge tracing in which exercise and response embedding sequences enter the encoder and decoder separately, allowing attention layers to be stacked multiple times.
- SAINT
- SAINT-KT
- Separated Self-AttentIve Neural Knowledge Tracing
- knowledge tracing
- SAINT knowledge tracing
- deep knowledge tracing
- student response prediction
- EdNet
- personalized learning
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{choi2021appropriatequerykeyvalue,
title={Towards an Appropriate Query, Key, and Value Computation for Knowledge Tracing},
author={Youngduck Choi and Youngnam Lee and Junghyun Cho and Jineon Baek and Byungsoo Kim and Yeongmin Cha and Dongmin Shin and Chan Bae and Jaewe Heo},
year={2021},
eprint={2002.07033},
archivePrefix={arXiv},
primaryClass={cs.LG},
doi={https://doi.org/10.1145/3448139.3448188},
url={https://arxiv.org/abs/2002.07033},
}