Keywords

1 Introduction

The rapid development of ITS and MOOC platforms greatly facilitates building KT models by collecting a large size of learner’s learning and exercise data in a rapid and inexpensive way. Yet, the collected massive and consecutive exercise questions are usually associated with multiple concepts, and the traditional KT models cannot well handle the questions without explicit labels and capture the relationships among a large size of concepts (e.g., 100 or more concepts). Accordingly, deep learning models are recently introduced into the KT domain because of their powerful representation capability [12]. Given the sequential and temporal characteristics of learner’s exercise data, the recurrent neural network (RNN) [14] is frequently adopted for building the deep learning based knowledge tracing (DLKT) models. Since it is difficult to directly measure the actual knowledge state of a learner, the existing DLKT models often adopt an alternative solution that minimizes the difference between the predicted and the real responses on exercise questions. Hence, the major output of DLKT models are the predicted performance on next questions. As a popular implementation variants of RNN, the long short-term memory (LSTM) unit [11] and GRU [7] are widely used in the DLKT models, and have achieved comparable or even better prediction performance in comparison to the traditional KT models [6, 12].

Similar as the deep learning models operating as a “black-box” in many other domains [10], the existing DLKT models also suffer from the interpretability issue, which has painfully impeded the practical applications of DLKT models in the education domain. The main reason is that it is principally hard to map a deep learning model’s abstract decision (e.g. predicting correct on next question) into the target domain that end-users could easily make sense of (e.g., enabling the ITS designers or users to understand why predicting correct on next question). In this work, we attempt to tackle the above issue by introducing the proper interpreting method for the DLKT models. In particular, we adopt a post-hoc interpreting method as the tool to understand and explain the RNN-based DLKT models, and the experiment results validate its feasibility.

2 Related Work

As indicated earlier, deep learning models are recently introduced into the KT domain, as they have enough capacity to automatically learn the inherent relationships and do not require explicit labels on the concept level. Deep knowledge tracing (DKT) [12] that utilizes LSTM can be regarded as the pioneer work, while some limitations have been reported [15]. Subsequently, other DLKT models [5, 6, 17, 18] are proposed to improve KT performance.

The interpretability can be categorized into ante-hoc and post-hoc interpretabilities. Among different methods for post-hoc interpretability, the LRP method [3] can be regarded as a typical one, where the share of model output received by each neuron is properly redistributed by its predecessors to achieve the relevance conservation, and the injection of negative relevance is controlled by its hyperparameters. LRP method is applicable and empirically scales to general deep learning models. It has been adopted for image classification [1], machine translation [8] and text analysis [2]. In the education domain, researchers have started interpreting KT models [16], but most studies target on the traditional simple-structured Bayesian network-based ones [4, 13]. In this work, we mainly focus on explaining the DLKT models by using the LRP interpretability method.

3 Interpreting RNN-Based KT Model

3.1 RNN-Based DLKT Model

A number of DLKT models, such as DKT [12], adopt LSTM or similar architectures (e.g., GRU) to accomplish the KT task. As a typical RNN architecture, the model maps an input sequence vectors {\(\mathbf{x}_0, ..., \mathbf {{x}_{t-1}}, \mathbf {{x}_t},...\)} to an output sequence vectors {\(\mathbf{y}_0,..., \mathbf {{y}_{t-1}}, \mathbf {{y}_t},...\)}, where \(\mathbf{x}_t\) represents the interaction between learners and exercises, and \(\mathbf{y}_t\) refers to the predicted probability vectors on mastering the concepts. The standard LSTM unit is usually implemented in the DLKT models as follows:

$$\begin{aligned} {\mathrm{{f}}_\mathrm{{t}}} = \mathrm{{\sigma }}\left( {{\mathbf{{W}}_{\mathrm{{fh}}}}{\mathrm{{h}}_{\mathrm{{t}} - 1}} + {\mathbf{{W}}_{\mathrm{{fx}}}}{\mathbf{{x}}_\mathrm{{t}}} + {\mathrm{{b}}_\mathrm{{f}}}} \right) \end{aligned}$$
(1)
$$\begin{aligned} {\mathrm{{i}}_\mathrm{{t}}} = \mathrm{{\sigma }}\left( {{\mathbf{{W}}_{\mathrm{{ih}}}}{\mathrm{{h}}_{\mathrm{{t}} - 1}} + {\mathbf{{W}}_{\mathrm{{ix}}}}{\mathbf{{x}}_\mathrm{{t}}} + {\mathrm{{b}}_\mathrm{{i}}}} \right) \end{aligned}$$
(2)
$$\begin{aligned} \widetilde{{\mathrm{{C}}_\mathrm{{t}}}} = \mathrm{{tanh}}\left( {{\mathbf{{W}}_{\mathrm{{ch}}}}{\mathrm{{h}}_{\mathrm{{t}} - 1}} + {\mathbf{{W}}_{\mathrm{{cx}}}}{\mathbf{{x}}_\mathrm{{t}}} + {\mathrm{{b}}_\mathrm{{c}}}} \right) \end{aligned}$$
(3)
$$\begin{aligned} {\mathrm{{C}}_\mathrm{{t}}} = {\mathrm{{f}}_\mathrm{{t}}}\odot {\mathrm{{C}}_{\mathrm{{t}} - 1}} + {\mathrm{{i}}_\mathrm{{t}}}\odot \widetilde{{\mathrm{{C}}_\mathrm{{t}}}} \end{aligned}$$
(4)
$$\begin{aligned} {\mathrm{{o}}_\mathrm{{t}}} = \mathrm{{\sigma }}\left( {{\mathbf{{W}}_{\mathrm{{oh}}}}{\mathrm{{h}}_{\mathrm{{t}} - 1}} + {\mathbf{{W}}_{\mathrm{{ox}}}}{\mathbf{{x}}_\mathrm{{t}}} + {\mathrm{{b}}_\mathrm{{o}}}} \right) \end{aligned}$$
(5)
$$\begin{aligned} {\mathrm{{h}}_\mathrm{{t}}} = {\mathrm{{o}}_\mathrm{{t}}}\odot \mathrm{{tanh}}\left( {{\mathrm{{C}}_\mathrm{{t}}}} \right) . \end{aligned}$$
(6)

After getting the LSTM output \(h_t\), the DLKT models usually further adopt an additional layer to output the final predicted results \(y_t\) as below:

$$\begin{aligned} {\mathbf{{y}}_\mathrm{{t}}} = \mathrm{{\sigma }}\left( {{\mathbf{{W}}_{\mathrm{{yh}}}}{\mathrm{{h}}_\mathrm{{t}}} + {\mathrm{{b}}_\mathrm{{y}}}} \right) \end{aligned}$$
(7)

From the above implementations, we see that the RNN-based DLKT models usually consist of two types of connections: weighted linear connection, i.e., Eq. (1), (2), (3), (5), (7), and multiplicative connection, i.e., Eq. (4) and (6). The two types would be interpreted by LRP in different ways.

3.2 Interpreting DLKT Models Using LRP Method

Considering the RNN-based DLKT model given in Eq. (1) to (7) and the LRP method, interpreting can be accomplished by computing the relevance as below:

$$\begin{aligned}&{R_{{\mathrm{{h}}_\mathrm{{t}}}}} = \frac{\mathbf{{W_{yh}}\mathrm {h_t}}}{\mathbf{{W_{yh}}}\mathrm {h_t} + {b_y} + \varepsilon * \mathrm{{sign}}(\mathbf {W_{yh}}\mathrm {h_t} + {b_y})} * R_{{y_t}}^d&\end{aligned}$$
(8)
$$\begin{aligned}&{R_{{C_t}}} = {R_{{h_t}}}&\end{aligned}$$
(9)
$$\begin{aligned}&{R_{{f_t}{C_{t - 1}}}} = \frac{{{f_t}{C_{t - 1}}}}{{{C_t} + \varepsilon * sign({C_t})}} * {R_{{C_t}}}&\end{aligned}$$
(10)
$$\begin{aligned}&{R_{{C_{t - 1}}}} = {R_{{f_t}{C_{t - 1}}}}&\end{aligned}$$
(11)
$$\begin{aligned}&{R_{{i_t}{{\tilde{C}}_t}}} = \frac{{{i_t}{{\tilde{C}}_t}}}{{{C_t} + \varepsilon * sign({C_t})}} * {R_{{C_t}}}&\end{aligned}$$
(12)
$$\begin{aligned}&{R_{{{\tilde{C}}_t}}} = {R_{{i_t}{{\tilde{C}}_t}}}&\end{aligned}$$
(13)

where \(R_{{y_t}}^d\) is the value of the \(d^{th}\) dimension of the prediction output \(y_t\), and the item \(\varepsilon *sign()\) is a stabilizer. Finally, the calculated relevance value \(R_{{x_t}}\) for the input \(x_t\) can be derived as

$$\begin{aligned}&{R_{{x_t}}} = \frac{\mathbf{{W_{cx}}{x_t}}}{\mathbf{{W_{ch}}}\mathrm {h_{t - 1}} + \mathbf{{W_{cx}}{x_t}} + \mathrm {b_c} + \varepsilon * \mathrm{{sign}}(\mathbf {W_{ch}}\mathrm {h_{t - 1}} + \mathbf{{W_{cx}}{x_t}} + \mathrm {b_c})}*{R_{{{\tilde{C}}_t}}}&\end{aligned}$$

Note that the above process is applicable to computing the relevance of the model inputs (e.g., \(x_{t-1}\)), while computing \(R_{C_{t-1}}\) might be slightly different.

4 Evaluation

We choose the public educational dataset ASSISTment 2009–2010 [9], and the dataset used for training the DLKT model consists of 325,637 answering records on 26,688 questions associated with 110 concepts from 4,151 students. The built DLKT model adopts the LSTM unit with the hidden dimensionality of 256. During the training process, the mini-batch size and the dropout are set to 20 and 0.5 respectively. Considering KT as a classification problem and the exercise results as binary variables, namely 1 representing correct and 0 representing incorrect answers, the overall prediction accuracy achieves 0.75.

Fig. 1.
figure 1

Histogram of the consistent rate on both positive and negative prediction groups

We conduct the experiment to understand the relationship between the LRP interpreting results and the model prediction results. Specifically, we choose 48,673 exercise sequences with a length of 15, i.e., each sequence consisting of 15 individual questions, as the test dataset for the interpreting tasks. For each sequence, we take its first 14 questions as the input to the built DLKT model, and the last one to validate the model’s prediction on the 15th question. As the result, the DKLT model correctly predicts the last question for 34,311 sequences, where the positive and negative results are 25,005 and 9,306 respectively. Based on the correctly predicted sequences, we adopt the LRP method to calculate the relevance values of the first 14 questions, and then investigate whether the sign of relevance values is consistent with the correctness of learner’s answer. Specifically, we define consistent question among the previous exercise questions as “either the correctly-answered questions with a positive relevance value” or “the falsely-answered questions with a negative relevance value”. Accordingly, we compute the percentage of such consistent questions in each sequence, and name it as consistent rate. Intuitively, a high consistent rate reflects that most correctly-answered questions have a positive contribution and most falsely-answered questions have a negative contribution to the predicted mastery probability on the given concept. Figure 1 shows the histogram of the consistent rate on both groups of positive prediction (i.e., the mastery probability above 50%) and negative prediction (i.e., the mastery probability below 50%). Clearly, we see that the majority of the exercise sequences achieve 90% (or above) consistent rate, which partially validates the question-level feasibility of using LRP method to interpret DLKT model’s prediction results.

5 Conclusion

We have introduced a post-hoc interpretability method into KT domain, which is applicable to general RNN-based DLKT models. We demonstrated the promise of this approach via using its LRP method to explain DLKT models. We conducted the preliminary experiments to validate the proposed method.