Manuscript Offprint
arXiv:2611.03744CaRe-KT: Continuity-Aware Retrieval-Augmented Reasoning for Knowledge Tracing
Mehrnoush Mohammadi, Kamal Berahmand, Mohammad Morsali, Shazia Sadiq, Wojtek Tomaszewski, and Hassan Khosravi
This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.
Abstract—Knowledge tracing (KT) estimates learners' evolving knowledge states from their interaction histories and underpins exercise recommendation and instructional support in adaptive learning systems. Recent retrieval-augmented KT models improve these estimates by explicitly accessing cross-learner behavioral evidence at prediction time. However, most follow a retrieve-then-predict pipeline in which relevance governs evidence acquisition, while the predictive influence of retrieved evidence is determined separately during downstream inference. This decoupling leaves a retrieval-inference alignment gap in KT, as behavioral relevance varies with the learner's evolving state and prediction context, potentially undermining reliable knowledge estimation and well-targeted adaptive learning support. To address this gap, we propose CaRe-KT, a query-adaptive framework that maintains relevance continuity between evidence acquisition and inference without equating retrieval relevance with predictive utility. CaRe-KT introduces an Evidence-Graph Cache (EGC) that combines persistent question-level relational compatibility with interaction-level temporal validity, progressively refining query-relevant questions into temporally valid historical anchors that form a query-specific evidence subgraph. Each anchor retrieves the learning trajectory that preceded it, and these trajectories are encoded with the target learner's history in a shared representation space shaped by outcome-supervised contrastive learning. CaRe-KT then reasons over this evidence through attention that combines the carried acquisition relevance with learned query-evidence compatibility, so that relevance informs the influence of each trajectory without determining it. Across five benchmarks, CaRe-KT outperforms strong KT baselines and remains robust under sparse-history and cold-start conditions, supporting relevance continuity as a design principle for retrieval-augmented KT.
Index Terms—Knowledge Tracing, Retrieval-Augmented Reasoning, Query-Adaptive Retrieval, Relevance Continuity.
I. INTRODUCTION
Knowledge tracing (KT) aims to infer a learner's evolving knowledge state from historical interactions,

Fig. 1. Retrieval-inference alignment in retrieval-augmented KT. (a) Existing pipelines admit a fixed number of evidence items ① by time-agnostic relevance ② and discard that relevance before inference ③, so stale evidence can dominate. (b) CaRe-KT admits a query-adaptive evidence set ①, refines relevance by temporal validity ②, and carries it into inference ③, where it informs but does not dictate influence. Values are illustrative.
typically through the prediction of future performance. Reliable estimation of this latent state is central to intelligent tutoring and adaptive learning systems, where it informs decisions such as personalized exercise recommendation, learning-path adaptation, and the timely provision of instructional support. Over the past decade, KT has progressed from probabilistic latent-state models to increasingly expressive neural architectures based on recurrent networks [1], memory networks [2], attention mechanisms [3], [4], and graph neural networks [5], [6]. These models have substantially improved predictive performance by learning complex dependencies within a student's interaction sequence [7].
Despite these advances, most conventional KT models remain fundamentally history-centric, estimating a learner's current state primarily from its own observed trajectory under globally shared parameters learned from population-level interaction data. Cross-learner behavioral regularities are therefore implicitly absorbed within these shared parameters, with no explicit mechanism for accessing specific historical experiences that may be informative for the current learner state [8], [9]. This limitation becomes particularly restrictive when a learner's history is sparse, noisy, or unreliable, as is common for new learners with few recorded interactions, low-activity learners with fragmented practice, and newly introduced questions with little response history [10], [11].
Recent collaborative and retrieval-enhanced KT methods have begun to relax this parametric paradigm by externalizing historical interaction records as retrievable evidence and selec-
M. Mohammadi and S. Sadiq are with the School of Electrical Engineering and Computer Science, The University of Queensland, Brisbane, Australia (e-mail: m.mohammadibolbanabad@uq.edu.au; shazia@eecs.uq.edu.au).
K. Berahmand is with the School of Computing Technologies, RMIT University, Melbourne, Australia (e-mail: kamal.berahmand@rmit.edu.au).
M. Morsali is with the School of Telecommunications and Aerospace Engineering, Universitat Politècnica de Catalunya, Spain (e-mail: mohammadmorsali1381@gmail.com).
W. Tomaszewski is with the Australian Research Council Centre of Excellence for Children and Families over the Life Course, The University of Queensland, Brisbane, Australia (e-mail: w.tomaszewski@uq.edu.au.)
H. Khosravi is with the Institute for Teaching and Learning Innovation, The University of Queensland, Brisbane, Australia (e-mail: h.khosravi@uq.edu.au).
Corresponding author: Mehrnoush Mohammadi.
tively accessing relevant cross-learner behavioral information at prediction time [8], [12], [13]. This shift introduces an explicit evidence acquisition layer into knowledge-state inference, making prediction dependent not only on encoding the target learner's trajectory, but also on establishing which external behavioral evidence is relevant to the current prediction context. Existing methods typically realize this process through a retrieve-then-predict pipeline, in which relevant historical interactions are first identified by an explicit relevance criterion and then encoded and aggregated for prediction. However, this decomposition introduces a retrieval-inference alignment gap, where relevance governs which historical interactions are admitted as evidence, while their predictive influence is determined separately during downstream inference without explicitly preserving the relevance relation established during retrieval [14]–[18](Fig. 1(a)). Educationally, this disconnect can undermine both the reliability and accountability of learner-state estimation. When the influence of cross-learner evidence becomes detached from its relevance to the target learner, the system risks mistaking behavioral similarity for evidence of mastery, leading to instructional decisions that reinforce irrelevant learning patterns, overlook real knowledge gaps, or misjudge readiness for progression. Furthermore, such decisions may lack a defensible evidential basis, limiting educators' ability to scrutinize and justify interventions that affect learners' progress.
Closing this gap, however, requires more than carrying retrieval scores into downstream prediction. Once retrieval-derived relevance remains active during reasoning, it becomes part of the context through which retrieved evidence is interpreted. A coarse or static relevance relation may therefore be insufficient, since the usefulness of historical behavior can vary across prediction contexts even when the evidence itself appears related to the query [19], [20]. This is particularly consequential in KT, where behavioral relevance is inherently non stationary. As the learner state evolves, both the informativeness of a given historical interaction and the amount of evidence worth using change from one query to another. Yet the relevance available in current pipelines is usually established over a predefined number of candidates and without explicitly accounting for the temporal validity of individual interactions [8], [11]–[13], so carrying it forward would let outdated or weakly related interactions shape inference for some queries while informative ones remain excluded for others. Behavioral relevance should therefore retain persistent relational information while adapting its interpretation to the evolving prediction context.
Motivated by this principle, we propose CaRe-KT (Fig. 1(b)), a query-adaptive retrieval-augmented KT framework that realizes relevance continuity through a shared relevance structure. CaRe-KT acquires evidence through an Evidence-Graph Cache (EGC), which combines persistent question-level relational compatibility with interaction-level temporal validity to form, for each query, an evidence subgraph of temporally valid historical interactions whose edge weights record acquisition relevance. Each selected interaction anchors a learning trajectory that preceded it, and these trajectories are encoded alongside the target learner's history in
a shared behavioral representation space, shaped by outcome-supervised contrastive learning and query-consistency regularization. CaRe-KT then reasons over the learned representations through relevance-informed attention, where evidence-subgraph relevance is combined with learned query-specific compatibility, allowing retrieval relevance to guide the influence of retrieved evidence without directly determining its predictive contribution. Extensive experiments on five benchmark datasets demonstrate that CaRe-KT consistently outperforms strong KT baselines and remains robust under sparse and cold-start conditions.
The key contributions of this work are as follows.
We identify the retrieval-inference alignment gap in retrieval-augmented KT and introduce relevance continuity as a design principle that preserves the rationale for evidence acquisition throughout reasoning without equating retrieval relevance with predictive utility.
We propose the EGC, a query-adaptive evidence acquisition mechanism that refines persistent question-level relations into temporally valid, query-specific evidence subgraph with adaptive cardinality, enabling trajectory-grounded retrieval under evolving prediction contexts.
We design a relevance-informed reasoning mechanism that couples carried acquisition relevance, as a trained prior, with learned query-evidence compatibility in attention, over a structured representation space shaped by supervised contrastive and query-consistency regularization, so that relevance informs the influence of each retrieved trajectory while compatibility adapts it to the current query.
We evaluate CaRe-KT on five benchmark datasets against thirteen baselines, demonstrating consistent improvements in predictive performance, robustness under sparse-history and question cold-start conditions, and the effectiveness of relevance continuity through ablation studies.
A. Parametric Knowledge Tracing
Knowledge tracing (KT) has evolved from probabilistic latent-state models, such as Bayesian KT (BKT), to neural architectures that capture increasingly complex temporal and structural dependencies in learners' interactions [7], [21].
DKT [1] models knowledge-state evolution through a recurrent hidden state. Building on this formulation, IEKT [22], DIMKT [23], and QIKT [24] introduce individual cognition, question difficulty, and question-centric representations, respectively. In contrast to a single recurrent state, memory-augmented approaches [25], [26] maintain a separate knowledge representation for each concept. Attention-based models, including SAKT [27], AKT [28], SparseKT [29], simpleKT [30], stableKT [31], and UKT [32], selectively capture dependencies among historical interactions. Graph-based approaches further incorporate relational structure through concept graphs [33], question-concept associations [34], and dynamic student-question interactions in DyGKT [5]. Recent hybrid architectures integrate complementary modeling mechanisms to improve the characterization of evolving knowledge states [2], [35], [36]
Despite these diverse architectures, knowledge-state estimation remains primarily grounded in the target learner's observed trajectory, with broader behavioral regularities primarily encoded in shared model parameters and learned representations rather than explicitly accessed as query-relevant instance-level evidence at inference time [8]. This reliance becomes particularly restrictive under the sparse and highly skewed interaction patterns common in educational data, where many questions are sparsely observed and individual learners may have insufficient interaction histories for reliable knowledge-state estimation [37], [38].
B. Retrieval-Augmented Knowledge Tracing
Collaborative KT methods extend individual-history inference by explicitly incorporating behavioral evidence from other learners. CoKT [8] retrieves peer records that share the target question or its concepts, ranks them by BM25 similarity of their preceding sequences, and combines the attention-weighted evidence with the learner's own representation for prediction. CoSKT [11] retrieves students whose learning experiences overlap with the target learner, derives a common knowledge state from their sequences, and fuses it with the individual state through gating under a self-supervised consistency constraint. RACL [39] selects historical interaction prefixes by pedagogical similarity over representation, concept overlap, and difficulty, and uses them both as inter-learner contrastive supervision and as evidence aggregated through target-conditioned cross-attention. FINER [40] shifts the retrieval unit from peers to learning patterns, retrieving the follow-up performance trends of learners who exhibited a similar recent pattern and aggregating them through similarity-aware attention that weights each trend by its frequency and contextual similarity before combining it with the learner's own sequence.
These methods share a common design in which retrieved evidence is weighted by a learned aggregator. A second group instead structures the search space for evidence acquisition and delegates prediction to a large language model. RAG-KT [12] aligns multi-source student information through question groups, retrieves similar students by fusing behavioral, structural, and ability-related similarities, and assembles the retrieved evidence as structured context for LLM-based prediction. MicroC-KT [13] organizes learners into latent communities, matches the target learner to a community using bi-granular summaries, and retrieves peer evidence within that community through multi-route ranking before structured prompting.
Collectively, these methods demonstrate the value of explicit cross-learner evidence, yet largely retain a retrieve-then-predict decomposition in which relevance determines evidence acquisition while downstream influence is reconstructed separately through attention, gating, or prompting. Beyond this separation, evidence acquisition itself is often only partially adaptive: predefined top- budgets impose a uniform evidence cardinality across heterogeneous queries, while relevance is typically established over peer-, sequence-, or community-level candidates without explicitly refining individual interactions by their temporal validity for the current query.
TABLE I SUMMARY OF MAIN NOTATION.
| Symbol | Description |
|---|---|
| Student, question, and concept sets | |
| Query interaction and response outcome | |
| Concept set and semantic representation of | |
| Chronological history of student before | |
| Global interaction memory before | |
| Retrieved behavioral evidence and its relevance structure | |
| Active Evidence-Graph Cache (EGC) | |
| Historical occurrence buffer of question | |
| Relational compatibility and interaction-level relevance | |
| Adaptive relevance boundary and candidate question set | |
| Selected historical interaction anchors | |
| Query-specific weighted evidence subgraph | |
| Behavioral trajectory preceding anchor | |
| Query and evidence trajectory representations | |
| Query-evidence compatibility and attention weight | |
| Evidence-conditioned representation and prediction |
C. Retrieval-Inference Alignment in Retrieval-Augmented Learning
Beyond KT, recent retrieval-augmented reasoning increasingly questions a strict separation between evidence acquisition and downstream inference [41]. R²AG [42] identifies a semantic gap between retrievers and generators arising from their distinct objectives and shows that propagating retrieval information into generation better anchors downstream reasoning, while ARL2 [43] similarly demonstrates the benefits of aligning retrieval with downstream model feedback. Alignment alone does not settle how retrieved evidence should be used, however, as recent empirical studies show that relevance, although informative, does not by itself determine the utility of retrieved evidence [17], [19], [44]. This finding has motivated methods that keep the influence of retrieved evidence adaptive. Self-RAG [45] decides during generation whether and how retrieved content is used, REPLUG [46] trains the retriever on language-model feedback, and RA-DIT [16] adapts retriever and generator jointly. Taken together, these studies indicate that effective retrieval-augmented reasoning requires both relevance continuity and sufficient flexibility for downstream utility to be adaptively determined during inference.
In KT, this balance is particularly consequential because behavioral relevance is both query- and time-dependent, while the downstream utility of retrieved evidence additionally depends on the learner's evolving state. Accordingly, retrieval relevance should inform, rather than dictate, downstream evidence use, making retrieval-inference alignment a central challenge under evolving learner contexts.
III. PROBLEM FORMULATION
Let , and denote the sets of students, questions, and knowledge concepts, respectively, where each question is associated with a concept set . A student-question interaction is represented as , where denotes the student, the question, the response correctness, and the interaction's position in the globally ordered event sequence. Table I summarizes the main notations used throughout the paper.
Given an incoming query , conventional KT models estimate the probability that student correctly answers question at time as:
where denotes the chronological interaction history of student preceding .
Beyond individual trajectories, let denote the global behavioral memory. For retrieval-augmented KT, evidence acquisition is formulated as
where denotes the query-conditioned retrieval operator, is the resulting behavioral evidence, and denotes the relevance relations governing its selection. The prediction is then formulated as
where remains available during inference, while the predictive influence of the retrieved evidence is determined adaptively by .
IV. PROPOSED METHOD
In this section, we introduce CaRe-KT, a Continuity-aware Retrieval-augmented Reasoning framework for KT that maintains relevance continuity from evidence acquisition to downstream reasoning while allowing the predictive influence of retrieved evidence to remain context-adaptive. At its core, the Evidence-Graph Cache (EGC) is a dynamically maintained weighted question graph that encodes persistent semantic-conceptual relationships among observed questions while maintaining per-question historical occurrence buffers. Fig. 2 illustrates its query-level workflow. For each incoming query, CaRe-KT activates a compatibility-based neighborhood around the target question in the EGC and refines it according to the temporal validity of associated historical occurrences, yielding a temporally grounded, interaction-level evidence subgraph. Each subgraph node serves as a historical interaction anchor, indexing the global interaction memory to retrieve the learner trajectory preceding that interaction. The retrieved trajectories, together with the current query trajectory, are then encoded in a shared representation space, where an outcome- and stage-aware contrastive regularization shapes its geometry and query-consistency regularization stabilizes the query representation under history perturbations. Rather than discarding the relevance information used in evidence selection, CaRe-KT carries the resulting subgraph weights into attention, where they interact with learned query-evidence compatibility to determine the relative influence of historical trajectory representations. The aggregated evidence supports correctness prediction, followed by causal cache and memory updates upon observing the actual response.
A. Dynamic Relevance Modeling
CaRe-KT models query-dependent behavioral relevance through two complementary factors: relational compatibility, which captures persistent semantic and conceptual relations between questions, and temporal validity, which reflects the query-specific usefulness of historical evidence over time. These factors are organized through the Evidence-Graph Cache (EGC), a dynamically maintained weighted question graph that supports query-adaptive evidence acquisition.
At time , the historical EGC is represented as a dynamic graph , where contains the active historically observed questions, encodes undirected question relations, and stores their relational compatibilities. Each node is associated with a semantic representation , a concept set , and an interaction buffer , containing only its historical occurrences.
The relational compatibility between and is defined by combining semantic similarity and conceptual overlap
where and denote cosine similarity normalized to and Jaccard similarity, respectively. The mixing coefficient is determined by the degree of conceptual agreement:
where is the sigmoid function, and and are learnable parameters, with . Consequently, stronger concept agreement increases the contribution of conceptual similarity, whereas weaker agreement places greater emphasis on semantic similarity.
For an incoming query , CaRe-KT activates a query-centered EGC view. If , it is added to the node set, , with semantic representation , concept set , and an empty interaction buffer . Its relational compatibilities with the existing historical nodes are then computed using Eq. (4); otherwise, its existing node, historical observations, and relational compatibilities are retained. While represents persistent question-level compatibility, individual occurrences of may differ in their temporal relevance to the current query. For each , CaRe-KT therefore defines
where controls temporal decay. This refinement preserves the underlying question relation while differentiating historical interactions according to their temporal proximity to the prediction context. All eligible occurrences satisfy , ensuring that relevance estimation uses only historical information.
B. Query-Adaptive Evidence Subgraph Construction
Given the dynamic relevance model, CaRe-KT constructs a query-specific evidence subgraph through hierarchical refinement: question-level screening identifies a relevant region of the EGC, while interaction-level filtering resolves candidate questions into temporally valid historical anchors.
- Question-Level Candidate Identification. For the incoming query , CaRe-KT first localizes the region

Fig. 2. Overall framework of CaRe-KT, which realizes relevance continuity from evidence acquisition to knowledge-state inference. ① The Evidence-Graph Cache refines persistent question-level compatibility through query-adaptive candidate screening and temporally valid interaction-anchor selection, yielding a query-specific evidence subgraph whose edge weights preserve acquisition relevance. ② Selected anchors guide temporally grounded trajectory retrieval, while a shared encoder and complementary regularizers establish a behaviorally structured representation space for the retrieved trajectories and target history. ③ The preserved relevance enters attention alongside learned query-evidence compatibility (orange arrow), informing the influence of each trajectory without determining it. ④ The fused representation yields , and the observed response updates the cache and memory. Numerical values are illustrative.
of the historical question space that may contain relevant evidence. For each with nonempty Obs, let
denote its most recent historical occurrence. Since Eq. (6) decreases monotonically with temporal distance, gives the maximum occurrence-level relevance of to the current query. CaRe-KT defines a query-adaptive relevance boundary
where controls relative selectivity. The candidate question set is then given by
Unlike fixed-cardinality retrieval, this criterion adapts the candidate region to the query-specific relevance distribution.
- Interaction-Level Anchor Identification. Each candidate question may have multiple historical occurrences with different temporal relevance. For each , CaRe-KT retains an occurrence as an evidence anchor if
The resulting anchor set is
These anchors identify temporally relevant historical interactions rather than merely related questions.
- Evidence Subgraph Construction. The selected anchors and incoming query define a query-centered weighted evidence subgraph
where , with . Each anchor is connected to the query node through an edge , weighted by
The resulting subgraph retains interaction-level acquisition relevance alongside the selected historical anchors, providing the shared evidence structure for subsequent retrieval and relevance-informed reasoning.
C. Temporally Anchored Behavioral Evidence Retrieval
Given the query-specific evidence subgraph , each historical anchor node identifies the student history to be accessed and the temporal boundary at which it should be retrieved. CaRe-KT then extracts the prefix of student 's interaction history observed before from the global interaction memory :
Retrieval at preserves the behavioral context available prior to the anchored interaction, preventing subsequent interactions of the same student from influencing its representation. Distinct anchors from the same student may therefore yield different historical prefixes, capturing different stages of learning.
The retrieved behavioral evidence is collected as
where is the historically observed response at anchor . The query node is represented using the target learner's causal history , without accessing the unknown response .
D. Trajectory-Aware Evidence Representation Learning
Each retrieved anchor associates a preceding learner trajectory with an observed response that characterizes performance at a particular stage of learning. CaRe-KT encodes these trajectories and the target learner's history into a shared behavioral representation space, where complementary regularizers promote outcome-discriminative structure and stabilize learner-history representations for subsequent knowledge-state inference.
Each interaction is represented by combining question content with its observed response:
where denotes concatenation and the question representation integrates semantic and conceptual information:
Here, is the multi-hot concept representation of , and are learnable projections, and is the observed-response representation, with the embedding matrix .
The resulting interaction representations are processed chronologically by a shared GRU encoder . For a trajectory of length , its behavioral representation is
where follow the temporal order of . The same encoder produces from the target learner's causal history. To condition this representation on the target question, CaRe-KT constructs
where follows Eq. (17), and projects the concatenated learner-history and target-question representations into the reasoning space. Thus, encodes historical learner behavior, whereas provides the question-conditioned representation used for downstream evidence reasoning. Two complementary regularizers further structure the behavioral space and stabilize the learner-history encoding.
a. Trajectory-Aware Contrastive Regularization. Historical anchor responses provide supervision for distinguishing behavioral trajectories. CaRe-KT leverages this anchor-level supervision through a trajectory-aware supervised contrastive regularizer that shapes the geometry of the retrieved trajectory representation space by increasing representational compatibility among trajectories sharing the same anchor outcome, while temporal proximity modulates their pairwise influence. For each anchor , the positive set is
Let denote anchors with at least one positive counterpart. The supervised contrastive objective is then defined as
where is the temperature parameter. The similarity function combines representational similarity with temporal proximity:
where controls temporal sensitivity. This formulation promotes outcome-discriminative behavioral representations while reducing the similarity contribution of temporally distant anchors.
b. Query Representation Stabilization. Although contrastive regularization structures the retrieved behavioral representations, perturbations of the target learner's history may alter its encoded state and affect subsequent question-conditioned reasoning. CaRe-KT therefore introduces a consistency objective over the target learner's causal history. Given , two order-preserving views and are generated through random interaction masking [47] and encoded by the shared to obtain and . Their consistency is encouraged through a symmetric objective inspired by SimSiam [48]:
where denotes negative cosine similarity with stop-gradient applied to the target representation in each directional term. By enforcing local consistency across perturbed views of the same causal history, this objective stabilizes the position of the central query representation within the contrastively structured behavioral space.
The combined representation regularization objective is
where and control the respective regularization strengths.
E. Query-Conditioned Evidence Reasoning
The query-specific evidence subgraph preserves both the selected behavioral evidence and its acquisition-derived relevance. CaRe-KT reasons over this structure by combining persistent evidence relevance with learned query-evidence compatibility, allowing retrieved trajectories to contribute according to the current learner state and target question.
a. Query-Conditioned Evidence Fusion. Let denote the historical anchor nodes connected to the query node . CaReKT integrates their behavioral representations through query-conditioned attention, yielding
where the residual pathway retains the question-conditioned query representation , while controls the relative influence of each retrieved trajectory. To maintain relevance continuity, the attention weights incorporate the acquisition-derived edge relevance alongside learned query-evidence compatibility:
(26) where denotes learned compatibility between the current query and historical evidence. Consequently, acquisition relevance remains available as a structural prior during reasoning, while learned compatibility adapts the relative contribution of retrieved trajectories to the current prediction context.
b. Prediction. The evidence-conditioned representation is mapped to the probability of a correct response to question by student :
where . Prediction is then supervised through the binary cross-entropy objective
F. Dynamic Cache and Memory Maintenance
After observing , CaRe-KT updates and appends to the global interaction memory , making the interaction available for subsequent queries. To bound the active evidence space, the EGC is periodically pruned by retaining only occurrences within a temporal horizon , i.e., . Nodes with empty observation buffers and edges with negligible relational compatibility are also removed. While temporal decay continuously attenuates the relevance of older occurrences, pruning removes outdated evidence from the active EGC. The global interaction memory remains unpruned, preserving complete learner histories for retrieval through EGC-selected anchors.
G. Model Learning and Optimization
Let denote the trainable parameters of CaRe-KT. Model learning jointly optimizes response prediction and behavioral representation regularization:
Gradients are propagated through all differentiable components involved in the prediction process.
H. Computational Complexity
Let , , and denote the numbers of active EGC questions, candidate questions, and selected anchors, respectively, with . Given stored relational compatibilities and temporally ordered observation buffers, question-level screening costs . The monotonic temporal decay in Eq. (6) enables binary-search-based anchor identification, yielding an evidence-subgraph construction cost of . Let denote the representation dimension, the target history length, and the total retrieved trajectory length. Sequential encoding and evidence fusion require , while training additionally incurs for contrastive regularization. Hence, per-query inference requires , with an additional during training. Previously encoded historical trajectories can be reused at
Algorithm 1 CaRe-KT Query-Level Inference
Input: Chronological queries ; historical memory ; EGC ; trained parameters
Output: Predicted correctness probabilities
1: for each query in chronological order do
▷ Phase I: Query-Adaptive Evidence acquisition
2: if then
3: Add to ; compute its compatibilities ▷ Eqs. (4)–(5)
4: end if
5: Compute adaptive relevance boundary ▷ Eq. (8)
6: Select candidate questions ▷ Eq. (9)
7: Identify temporally valid anchors ▷ Eqs. (10)–(11)
8: Build subgraph with weights ▷ Eqs. (12)–(13)
▷ Phase II: Behavior-Aware Trajectory Encoding
9: for each anchor do
10: Retrieve preceding trajectory from ▷ Eq. (14)
11: Encode ▷ Eqs. (16)–(18)
12: end for
13: Encode target history
14: ▷ Eqs. (17), (19)
▷ Phase III: Relevance-Informed Reasoning
15: Compute learned compatibility , ▷ Eq. (26)
16: ▷ relevance continuity
17: Aggregate from and ▷ Eq. (25)
18: Predict from ▷ Eq. (27)
▷ Phase IV: Causal update
19: Observe ; append to and to
20: end for
inference when their representations are cached under fixed encoder parameters. For unseen questions, computing EGC compatibilities adds , where denotes the per-pair compatibility evaluation cost.
V. EXPERIMENTS
In this section, we empirically evaluate CaRe-KT through five research questions. RQ1: How does CaRe-KT perform compared with state-of-the-art KT models across diverse datasets? RQ2: How robust is CaRe-KT under sparse and cold-start conditions? RQ3: How does relevance continuity, through combining acquisition-derived relevance with learned query–evidence compatibility, affect CaRe-KT's predictive performance? RQ4: How effectively does the EGC construct query-adaptive and temporally valid behavioral evidence for prediction? RQ5: How does behaviorally structured representation learning affect CaRe-KT's predictive performance? We further conduct sensitivity analyses to examine the robustness of CaRe-KT to its key hyperparameters.
A. Experimental Setup
- Datasets: We evaluate CaRe-KT on five public benchmarks (Table II) chosen to reflect a range of conditions under which adaptive learning systems operate. DBE-KT22 was collected from a university database course and Slepemapy.cz from an adaptive system for practising geography facts, while ASSISTment09 , XES3G5M , and Junyi were collected from
https://doi.org/10.26193/6DZWOH
https://www.fi.muni.cz/adaptivelearning/data/slepemapy/
Obtained through EduData, https://github.com/bigdata-ustc/EduData.
https://github.com/ai4ed/XES3G5M
TABLE II STATISTICAL PROPERTIES OF THE EVALUATION DATASETS.
| Dataset | Students | Questions | Concepts | Interactions |
|---|---|---|---|---|
| DBE-KT22 | 1.3k | 212 | 93 | 162.0k |
| ASSISTment09 | 4.2k | 26.7k | 110 | 401.8k |
| XES3G5M | 18.1k | 7.7k | 865 | 5,549.6k |
| Slepemapy.cz | 91.3k | 4.5k | 1,458 | 10,087.3k |
| Junyi | 247.6k | 0.7k | 39 | 25,926.0k |
online mathematics platforms for school-age learners. Beyond domain and scale, they differ in two properties central to retrieval-augmented KT. Cross-learner evidence per question is sparsest on ASSISTment09 and densest on Junyi, and question text is available only on DBE-KT22 and XES3G5M, with descriptive metadata elsewhere.
- Baselines: We compare CaRe-KT with thirteen representative KT models in three groups:
-
Sequential state-based models. DKT [1], together with IEKT [22], DIMKT [23], and QIKT [24], which extend recurrent state modeling with individual cognition, question difficulty, and question-centric representations, respectively.
-
Attention- and graph-based models. AKT [28], simpleKT [30], stableKT [31], and UKT [32], which weight past interactions through attention, while DyGKT [5] models learner-question interactions as a dynamic graph.
-
Collaborative and retrieval-augmented models. CoKT [8], CoSKT [11], RACL [39], and FINER [40], which draw on evidence from other learners and are the most direct comparison for CaRe-KT.
-
Evaluation Metrics: We evaluate predictive performance with three metrics widely adopted in KT [5], [6]: the area under the ROC curve (AUC), average precision (AP), and root mean squared error (RMSE). AUC and AP assess how well correct responses are ranked above incorrect ones, whereas RMSE measures the error of the predicted probabilities.
-
Implementation Details: All models are evaluated under a global chronological data split [5]: interactions are sorted by timestamp and split 80%/10%/10% into training, validation, and test sets, so that testing involves strictly future interactions. For the question-level cold-start scenario, questions covering 10% of the interactions are withheld from training and validation and used only for testing (averaged over five random subsets on DBE-KT22, which has only 212 questions). Every model is scored on the same test interactions under a common online protocol, in which parameters are frozen after training and each scored interaction becomes available to all models thereafter; the collaborative baselines retrieve from the same global memory as CaRe-KT. Baselines use official implementations, or pyKT [49] for the sequential and attention-based models, with recommended hyperparameters and only the minimal corrections this protocol requires (e.g., removing a label leak in FINER). Question content is the question text on DBE-KT22 and XES3G5M. The other datasets provide no question text, so a short description is composed from metadata, namely the question identifier and skill names on ASSISTment09, the place name, place type, map, and question
type on Slepemapy.cz, and the exercise name, topic, and area on Junyi. All content is embedded with a frozen all-MiniLM-L6-v2 encoder [50]. We use dimension 128, histories of up to 200 interactions, at most 20 anchors, , and interactions, and , and train with Adam (learning rate , batch size 128, dropout 0.1) for up to 100 epochs with early stopping (patience 10). This configuration was selected on DBE-KT22 and ASSISTment09 validation data and used for all datasets. For every model, the checkpoint with the lowest validation loss is tested, with a fixed random seed, on NVIDIA A100 and H100 GPUs with PyTorch 2.11.
B. Results and Analysis
-
RQ1. Overall Predictive Performance: As shown in Table III, CaRe-KT achieves the best AUC and AP on all five datasets, improving AUC over the strongest baseline by 0.36 (DBE-KT22), 1.49 (ASSISTment09), 1.50 (Slepemapy.cz), 1.82 (Junyi) and 3.11 (XES3G5M), and AP by 0.69 to 2.16. The strongest baseline differs across datasets (CoKT, stableKT, RACL, RACL and DyGKT, respectively), suggesting that existing designs are tailored to particular data characteristics, whereas CaRe-KT generalizes across them. The largest gain occurs on XES3G5M, where only 11% of test interactions involve questions seen during training. Question-specific parameters cannot be learned for unseen questions, which most severely affects CoSKT (58.96 AUC, below DKT), as its prediction layer is indexed by question identity. CaRe-KT instead represents questions by their content (Eq. (17)), so the EGC can retrieve evidence for unseen questions through related ones. On Junyi and Slepemapy.cz, where large learner populations provide dense cross-learner evidence, the strongest baselines exploit cross-learner information (RACL, FINER, CoSKT), yet CaRe-KT still adds 1.82 and 1.50 AUC and attains the lowest RMSE on Junyi, consistent with the benefit of preserving acquisition relevance during reasoning. The margin is narrowest on DBE-KT22, where a small, fully observed item pool favours all strong models and the top four lie within 0.43 AUC, although the AP gain (+0.69) is nearly twice the AUC gain. In probability estimation, CaRe-KT obtains the lowest RMSE on Junyi and XES3G5M and the second lowest elsewhere, trailing the best baseline (IEKT, stableKT and RACL, respectively) by at most 0.0007. None of these is competitive on RMSE on other datasets, and CaRe-KT is the only model ranked in the top two on every dataset for every metric. Its advantage therefore lies mainly in discrimination, while its calibration matches the best dataset-specific baseline.
-
RQ2. Robustness under Sparse and Cold-Start Conditions:
a) Cold-start: Table IV reports performance on questions withheld from training. CaRe-KT achieves the best AUC and AP on all five datasets and the lowest RMSE on four, with RACL marginally ahead on DBE-KT22 (0.4070 vs. 0.4073). Its AUC margin over the strongest baseline widens relative to Table III on every dataset, reaching +1.18 on DBE-KT22, +2.46 on ASSISTment09, +4.71 on Slepemapy.cz, +3.19 on Junyi and +6.17 on XES3G5M (vs. +0.36 to +3.11). Models
TABLE III
OVERALL PERFORMANCE ON FIVE DATASETS. THE BEST RESULT IN EACH COLUMN IS SHADED DARK BLUE AND IN BOLD, WHILE THE SECOND BEST IS SHADED LIGHT BLUE AND UNDERLINED. ARROWS INDICATE THE PREFERRED DIRECTION (↑ HIGHER IS BETTER, ↓ LOWER IS BETTER)
| Model | DBE-KT22 | ASSISTment09 | Slepemapy.cz | Junyi | XES3G5M | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DKT | 76.55 | 89.72 | 0.4031 | 69.45 | 84.08 | 0.444 | 64.62 | 83.94 | 0.3861 | 69.01 | 90.70 | 0.3612 | 65.14 | 88.85 | 0.4007 |
| AKT | 76.53 | 89.75 | 0.4080 | 77.43 | 88.31 | 0.423 | 67.39 | 85.59 | 0.3802 | 73.10 | 91.72 | 0.3549 | 69.12 | 89.42 | 0.3871 |
| IEKT | 79.11 | 91.14 | 0.3894 | 76.97 | 88.74 | 0.477 | 69.87 | 87.00 | 0.3795 | 77.09 | 92.76 | 0.3514 | 72.49 | 91.09 | 0.3655 |
| DIMKT | 75.56 | 89.62 | 0.4174 | 75.53 | 88.69 | 0.452 | 68.09 | 84.03 | 0.3793 | 72.51 | 91.02 | 0.3556 | 72.75 | 90.70 | 0.3624 |
| QIKT | 79.59 | 91.14 | 0.3912 | 71.98 | 85.54 | 0.434 | 69.79 | 86.97 | 0.378 | 75.38 | 92.09 | 0.3575 | 66.65 | 88.88 | 0.4026 |
| simpleKT | 75.08 | 89.26 | 0.4189 | 65.52 | 78.89 | 0.472 | 68.62 | 86.51 | 0.3801 | 76.98 | 92.84 | 0.3544 | 69.78 | 89.86 | 0.3752 |
| DyGKT | 79.44 | 91.05 | 0.3909 | 70.35 | 85.57 | 0.462 | 72.49 | 88.39 | 0.3763 | 80.35 | 94.01 | 0.3411 | 75.39 | 92.40 | 0.3606 |
| stableKT | 75.48 | 89.55 | 0.4174 | 81.45 | 87.06 | 0.3786 | 77.53 | 92.08 | 0.377 | 80.56 | 94.36 | 0.3394 | 70.43 | 90.27 | 0.3783 |
| UKT | 75.82 | 89.46 | 0.4098 | 74.78 | 86.84 | 0.431 | 77.96 | 92.23 | 0.375 | 80.21 | 93.87 | 0.3378 | 70.62 | 90.42 | 0.3926 |
| CoKT | 79.62 | 91.18 | 0.3904 | 79.25 | 87.84 | 0.396 | 71.40 | 87.50 | 0.3794 | 78.95 | 92.60 | 0.336 | 73.09 | 91.32 | 0.3664 |
| CoSKT | 77.23 | 87.86 | 0.3993 | 73.18 | 81.62 | 0.4467 | 78.66 | 92.26 | 0.3768 | 77.92 | 93.32 | 0.3526 | 58.96 | 82.07 | 0.4978 |
| RACL | 79.55 | 91.17 | 0.3910 | 81.26 | 88.05 | 0.403 | 79.05 | 93.01 | 0.3708 | 80.97 | 94.19 | 0.3373 | 70.51 | 90.14 | 0.368 |
| FINER | 78.30 | 90.44 | 0.3958 | 79.31 | 86.65 | 0.4133 | 78.97 | 92.45 | 0.3759 | 76.32 | 92.38 | 0.3523 | 67.99 | 89.58 | 0.3791 |
| CaRe-KT | 79.98 | 91.87 | 0.3901 | 82.94 | 90.01 | 0.3788 | 80.55 | 94.37 | 0.3714 | 82.79 | 95.33 | 0.3285 | 78.50 | 94.56 | 0.3565 |
relying on question-specific parameters or per-question histories degrade sharply, as DyGKT loses 21.30 AUC on Junyi and 13.06 on Slepemapy.cz, CoKT loses 12.26 on DBE-KT22, and CoSKT falls below 60 AUC everywhere. RACL and FINER remain the two strongest baselines on ASSISTment09, Slepemapy.cz and Junyi, consistent with peer evidence staying accessible for withheld questions, yet RACL still loses 6.11 and 5.05 AUC on the latter two. CaRe-KT loses only 0.59–1.55 AUC on XES3G5M, Slepemapy.cz and ASSISTment09, as content-based compatibility (Eqs. (4)-(5)) links a withheld question to related ones without its own response history. Its larger decreases on DBE-KT22 (-3.17) and Junyi (-3.68) coincide with the two smallest item pools (212 and 0.7k questions), which leave few candidates in .
b) Sparse history: To emulate learners with limited interaction histories, each target learner's history is restricted to its most recent interactions, while other learners' data remain unchanged and all models are retrained for each (Fig. 3). The comparison spans three datasets of different scale and content type and includes every baseline that is strongest on at least one dataset in Table III (CoKT, stableKT, RACL, and DyGKT), together with FINER. Among these models, CaRe-KT achieves the best AUC at every on DBE-KT22, XES3G5M, and Slepemapy.cz. Its margin over the strongest baseline is largest at the shortest history on XES3G5M (5.30 at vs. 3.11 at ) and Slepemapy.cz (1.69 vs. 1.50), and remains narrow on DBE-KT22 (0.08-0.48), where the leading models perform comparably. Reducing the history from 100 to 10 interactions lowers the AUC of CaRe-KT by only 0.56-0.99, a smaller decrease than that of any baseline on the same dataset. On XES3G5M and Slepemapy.cz, CaRe-KT with only ten interactions outperforms every baseline with 100. This robustness is consistent with the EGC acquiring evidence from the query question and its temporal context, independently of the length of the learner's own history. CaRe-KT also attains the lowest RMSE in all settings except on Slepemapy.cz, where RACL is marginally lower.
- Ablation Study (RQ3-RQ5): To isolate the contribution of each component, Table V removes or replaces one at a time under the protocol of Section V-A4, grouping rows by the two terms of relevance-informed attention (RQ3), the presence and

Fig. 3. Performance under restricted learner history. AUC (top) and RMSE (bottom) of CaRe-KT and five baselines on DBE-KT22 (a, d), XES3G5M (b, e), and Slepemapy.cz (c, f) when each target learner's history is limited to its most recent L interactions, with other learners' data unchanged.
construction of EGC evidence (RQ4), and the two regularizers (RQ5). Since component contributions depend on the availability and characteristics of supporting evidence, we conduct the ablation on three datasets with three distinct evidence regimes. On DBE-KT22, every test question has its own response history, and the three strongest models lie within 0.4 AUC (Table III), providing a setting with strong question-specific evidence and limited performance separation. On XES3G5M, 89% of test interactions involve questions unseen during training, making cross-question evidence acquisition particularly important. On Slepemapy.cz, 91k learners provide a large pool of historical interactions, making evidence selection and weighting especially relevant to examine. ASSISTment09 and Junyi are excluded owing to sparse evidence (Section V-A1) and computational cost, respectively.
a) RQ3. Effect of relevance continuity: Relevance continuity is realized through the two terms of Eq. (26). Removing the acquisition relevance , so that attention rests on learned compatibility alone, lowers AUC by 0.30, 1.95 and 1.05 on DBE-KT22, XES3G5M and Slepemapy.cz, with RMSE rising in step, the largest loss among the weighting variants on every dataset. On DBE-KT22 this single change reduces the margin over CoKT from 0.36 to 0.06 AUC. Removing the learned compatibility instead costs 0.18, 0.75 and 0.70, so acquisition relevance makes the larger contribution while learned compatibility adapts the weighting to the query, and
TABLE IV
QUESTION-LEVEL COLD-START PERFORMANCE ON FIVE DATASETS. THE BEST RESULT IN EACH COLUMN IS SHADED DARK BLUE AND IN BOLD, WHILE THE SECOND BEST IS SHADED LIGHT BLUE AND UNDERLINED. ARROWS INDICATE THE PREFERRED DIRECTION ( HIGHER IS BETTER, LOWER IS BETTER)
| Model | DBE-KT22 | ASSISTment09 | Slepemapy.cz | Junyi | XES3G5M | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ↑AUC | ↑AP | ↓RMSE | ↑AUC | ↑AP | ↓RMSE | ↑AUC | ↑AP | ↓RMSE | ↑AUC | ↑AP | ↓RMSE | ↑AUC | ↑AP | ↓RMSE | |
| DKT | 75.63 | 85.71 | 0.4347 | 58.67 | 69.99 | 0.478 | 59.99 | 82.98 | 0.422 | 57.33 | 81.93 | 0.483 | 69.83 | 89.15 | 0.3894 |
| AKT | 74.77 | 87.39 | 0.4474 | 62.99 | 73.23 | 0.479 | 59.34 | 83.09 | 0.440 | 57.39 | 82.51 | 0.432 | 70.52 | 89.08 | 0.3954 |
| IEKT | 73.98 | 87.52 | 0.4447 | 63.24 | 73.48 | 0.469 | 62.22 | 83.94 | 0.418 | 57.47 | 82.31 | 0.421 | 71.74 | 89.88 | 0.3823 |
| DIMKT | 59.05 | 81.69 | 0.4913 | 64.84 | 74.30 | 0.460 | 54.78 | 79.78 | 0.418 | 53.08 | 80.28 | 0.409 | 70.36 | 89.02 | 0.3909 |
| QIKT | 70.76 | 82.71 | 0.4359 | 66.24 | 73.50 | 0.474 | 62.58 | 84.56 | 0.418 | 58.56 | 83.03 | 0.406 | 71.14 | 89.26 | 0.3886 |
| simpleKT | 72.92 | 84.29 | 0.4401 | 64.11 | 73.98 | 0.479 | 63.96 | 85.31 | 0.409 | 57.48 | 82.40 | 0.411 | 69.69 | 88.68 | 0.3862 |
| DyGKT | 69.72 | 86.92 | 0.4851 | 60.23 | 71.02 | 0.478 | 59.43 | 81.98 | 0.462 | 59.05 | 83.42 | 0.407 | 71.26 | 89.94 | 0.3849 |
| stableKT | 72.63 | 86.72 | 0.4656 | 71.84 | 80.91 | 0.442 | 64.10 | 85.78 | 0.408 | 69.62 | 88.54 | 0.385 | 70.42 | 89.06 | 0.3854 |
| UKT | 69.81 | 86.61 | 0.4270 | 75.58 | 84.98 | 0.425 | 66.44 | 87.14 | 0.403 | 70.37 | 89.35 | 0.386 | 70.15 | 88.94 | 0.3908 |
| CoKT | 67.36 | 85.83 | 0.4168 | 71.55 | 81.59 | 0.458 | 63.52 | 84.31 | 0.453 | 73.61 | 82.33 | 0.402 | 65.81 | 87.94 | 0.4012 |
| CoSKT | 57.00 | 79.69 | 0.499 | 59.38 | 64.36 | 0.4808 | 55.99 | 79.47 | 0.485 | 58.77 | 86.00 | 0.496 | 57.18 | 79.67 | 0.503 |
| RACL | 72.96 | 89.18 | 0.407 | 77.26 | 84.85 | 0.427 | 72.94 | 90.69 | 0.3854 | 75.92 | 93.13 | 0.346 | 69.66 | 88.74 | 0.385 |
| FINER | 71.65 | 88.54 | 0.409 | 78.93 | 86.53 | 0.4117 | 74.90 | 91.62 | 0.380 | 75.74 | 92.75 | 0.3446 | 70.73 | 89.37 | 0.382 |
| CaRe-KT | 76.81 | 90.77 | 0.4073 | 81.39 | 88.79 | 0.4036 | 79.61 | 93.54 | 0.3771 | 79.11 | 94.45 | 0.3406 | 77.91 | 94.22 | 0.3601 |
TABLE V
ABLATION RESULTS FOR CARE-KT VARIANTS ON DBE-KT22, XES3G5M, AND SLEPEMAPY.CZ, EVALUATED BY AUC AND RMSE.
| Variant | DBE-KT22 | XES3G5M | Slepemapy.cz | |||
|---|---|---|---|---|---|---|
| ↑AUC | ↓RMSE | ↑AUC | ↓RMSE | ↑AUC | ↓RMSE | |
| CaRe-KT (full) | 79.98 | 0.3901 | 78.50 | 0.3565 | 80.55 | 0.3714 |
| RQ3: relevance continuity | ||||||
| w/o Acq. Relevance | 79.68 | 0.3912 | 76.55 | 0.3633 | 79.50 | 0.3748 |
| w/o Compatibility | 79.80 | 0.3908 | 77.75 | 0.3591 | 79.85 | 0.3732 |
| Learned- | 79.92 | 0.3902 | 78.40 | 0.3569 | 80.20 | 0.3722 |
| MLP Fusion | 79.78 | 0.3908 | 77.40 | 0.3602 | 79.72 | 0.3735 |
| Post-hoc Reweight | 79.72 | 0.3910 | 76.90 | 0.3620 | 79.60 | 0.3744 |
| RQ4: query-adaptive evidence | ||||||
| w/o Retrieval | 79.11 | 0.3930 | 74.56 | 0.3682 | 72.83 | 0.3787 |
| Top-K Evidence | 79.70 | 0.3907 | 77.55 | 0.3598 | 79.75 | 0.3734 |
| w/o Temp. Decay | 79.76 | 0.3905 | 78.00 | 0.3583 | 79.65 | 0.3737 |
| Semantic Only | 79.72 | 0.3908 | 78.15 | 0.3577 | 79.65 | 0.3737 |
| Concept Only | 79.78 | 0.3904 | 76.50 | 0.3635 | 79.95 | 0.3729 |
| RQ5: structured representation | ||||||
| w/o | 79.76 | 0.3909 | 77.90 | 0.3586 | 79.85 | 0.3732 |
| w/o | 79.81 | 0.3906 | 78.20 | 0.3576 | 80.00 | 0.3728 |
| w/o | 79.70 | 0.3911 | 77.50 | 0.3600 | 79.75 | 0.3734 |
neither term alone recovers the full model. Three alternative fusions test whether the additive form itself is responsible. Replacing the unit weight on with a learned coefficient () costs only 0.06, 0.10 and 0.35, with converging to 0.9, 1.3 and 1.1. Supplying as an input to a one-hidden-layer compatibility function (MLP Fusion) costs 0.20, 1.10 and 0.83, and training without it and rescaling by it at inference (Post-hoc Reweight), as a retrieve-then-predict pipeline would, costs 0.26, 1.60 and 0.95, close to removing the term entirely. The gain therefore comes from relevance entering reasoning as a prior alongside, rather than inside, the learned compatibility, and from attention being trained in its presence.
b) RQ4. Effectiveness of query-adaptive evidence construction: The contribution of the EGC is assessed first by removing the evidence it constructs and then by altering how it is constructed. Removing retrieval altogether, while keeping the content-based question representations of Eq. (17), costs 0.87, 3.94 and 7.72 AUC on DBE-KT22, XES3G5M and Slepemapy.cz, the largest loss in Table V on every dataset.
The gain on unseen questions is therefore not explained by semantic embeddings alone, and the loss grows with the density of cross-learner evidence. Among the construction choices, a fixed budget equal to the mean anchor count in place of the adaptive boundary costs 0.28, 0.95 and 0.80 AUC, with RMSE rising in step, so a uniform evidence cardinality is inferior to a query-specific one even when the average number of anchors is matched. Removing temporal decay costs 0.22, 0.50 and 0.90, the largest construction loss on Slepemapy.cz, indicating that distinguishing historical occurrences by their temporal validity contributes beyond question-level relevance. The two compatibility signals of Eq. (4) differ in importance across datasets. On XES3G5M, whose questions carry text and are mostly unseen at test time, concept overlap alone loses 2.00 AUC, the largest change among the construction variants and marginally more than removing acquisition relevance, whereas semantic similarity alone loses 0.35. On Slepemapy.cz, whose content is metadata, the order reverses (0.60 against 0.90), supporting the combination of both signals rather than reliance on either alone.
c) RQ5. Effect of behaviorally structured representation learning: The representation space over which attention operates is shaped by on the retrieved trajectories and on the target history. Removing both costs more than removing either. On DBE-KT22 the loss is 0.28 AUC against 0.22 for and 0.17 for , on XES3G5M 1.00 against 0.60 and 0.30, and on Slepemapy.cz 0.80 against 0.70 and 0.55. The contrastive term is the larger of the two throughout, consistent with its role in shaping the evidence space that attention reads, while the consistency term provides an additional, smaller gain. Together, the regularizers improve prediction by shaping complementary aspects of the behavioral representations used in relevance-informed reasoning.
- Sensitivity Analysis: We examine how far the performance of CaRe-KT changes when each of the three hyperparameters that control its mechanisms is varied from the configuration of Section V-A4 while all other settings are held fixed. The relevance boundary (Eq. 8) is varied over , the decay half-life (Eq. 6) over interactions, and the weight of , reported as the effective ratio of the regularization term to the prediction

Fig. 4. Sensitivity of CaRe-KT to (a, d) , (b, e) , and (c, f) the regularization weight, as the change in AUC and RMSE relative to the full model of Table V, marked by the dashed lines. Mean one standard deviation over three seeds on DBE-KT22 and one seed on XES3G5M. The regularization axis is the effective ratio of to .
loss (Section V-A4), over , where 0 is the variant without in Table V and 1.1 is the full model. Each point is retrained from scratch and selected on validation loss as in the main experiments. Fig. 4 reports the resulting change in test AUC and RMSE relative to the full model on DBE-KT22 (three seeds) and XES3G5M, two datasets that differ by an order of magnitude in interactions and in the share of unseen test questions.
On DBE-KT22, no setting departs from the default by more than the seed-to-seed variation of the full model (standard deviation 0.19 AUC over three seeds), so on this dense and fully observed item pool none of the three parameters requires tuning. On XES3G5M, where 89% of test questions are unseen, each curve peaks at or near the default and falls at both ends. Tightening the boundary () costs more than relaxing it (0.9 against 0.6 AUC), because an unseen question must draw its evidence from related ones. A short half-life excludes older occurrences that are still informative, whereas a long one approaches the no-decay variant of Table V. The regularization weight shows a plateau between 0.25 and 1.1, and at 2.0 RMSE degrades faster than AUC. The defaults therefore lie within a stable region on both datasets.
VI. DISCUSSION
A. Principal Findings
The results show that CaRe-KT is most effective when target-specific information is scarce. Its margin is largest on XES3G5M, where most test questions are unseen, it widens on all five datasets when questions are withheld from training, and it is largest at the shortest learner histories on XES3G5M and Slepemapy.cz. Conventional KT models are weakest in these conditions, as their estimates rest on parameters and histories tied to the target learner or question. CaRe-KT instead draws on evidence acquired through question content and temporal validity, and retains the relevance of that evidence when weighting it. The ablation attributes this advantage to the design as a whole rather than to any single part of it. Of the two terms of relevance-informed attention, acquisition relevance is the one whose removal costs more on every dataset. The query-adaptive EGC matters most where evidence must be drawn from related questions, as on XES3G5M, and the two
regularizers contribute a smaller but consistent gain through the representations that attention reads. The framework also has limits. The margin is narrow where strong models converge on a small, fully observed item pool, as on DBE-KT22, and the gains concern ranking more than probability error.
B. Educational Implications
In learning technologies, a knowledge estimate matters through the decisions it informs, such as which exercise to recommend, when to advance a learner, and where an educator should intervene. The findings bear on four aspects of such decisions.
Early adaptivity for learners with short records. In a learner's first interactions, adaptive systems often rely on default sequences or population-level estimates [7], [8], so the learners about whom least is known receive the least personalized support. CaRe-KT loses at most 0.99 AUC points when the visible history is reduced from 100 to 10 interactions (Section V-B), and on XES3G5M and Slepemapy.cz its predictions from ten interactions are more accurate than those of every compared baseline given 100. This suggests that remediation and progression decisions could be personalized from the early stages of engagement.
Evidence-grounded estimates for educators. A mastery estimate is a claim about a learner, and principled assessment requires such claims to be warranted by identifiable evidence [51]. CaRe-KT attaches to each prediction the prior interactions it retrieved, the relevance that led to their retrieval, and the weight each received. Teacher dashboards and open learner models [52] could therefore present the comparable learning experiences behind a prediction alongside the prediction itself, giving educators grounds to judge whether similar behavior is in fact relevant evidence before acting on it.
Tracing newly authored content. On platforms where teachers author and share exercises, the question bank is continually revised [53]. Models that learn a parameter per question cannot trace a new item until responses to it accumulate [10], [11]. CaRe-KT represents a question by its content (Eq. 17) and links it through the EGC to related questions. A new item is therefore supported by the trajectories of learners who practiced related material from the time it is first assigned. Under question-level cold start, CaRe-KT remains the most accurate model on all five datasets, including the three that provide only metadata (Table IV). Since the cache and memory are updated online (Section IV-F), teachers could add or revise exercises during a term without retraining the model. This advantage narrows on small question banks, which contain few related items (Section VI-C).
Matching estimates to instructional decisions. A knowledge estimate serves two kinds of instructional decision. Some decisions order learners or exercises relative to one another, whereas others compare a predicted probability with a fixed criterion [54]. CaRe-KT achieves the best AUC and AP on all five datasets, and its RMSE is the lowest on two datasets in the overall evaluation (Table III), on four under question-level cold start (Table IV), and in all but one sparse-history setting (Fig. 3). Its advantage is therefore most consistent in ranking correct responses above incorrect ones, which makes its predictions well suited to decisions of the first kind, such as which learners need attention first or which exercise to present next. For decisions of the second kind, the predicted probabilities should be calibrated and verified before deployment, which is a standard post-hoc procedure [55] rather than an obstacle to such use.
C. Limitations and Future Work
Three considerations define the scope of this study and the work that follows from it. First, in line with standard practice in KT, the evaluation is offline and measures the prediction of logged responses. Whether more reliable early estimates lead to better instructional decisions and learning outcomes is a question for classroom deployment, where the evidence subgraph can also be developed into teacher-facing explanations through co-design with educators. Second, CaRe-KT draws its strength from question content. It remained effective with metadata descriptions alone, but its cold-start losses were larger on the two smallest item pools, which suggests that richer content encoders would benefit domains with few or sparsely described questions. Third, CaRe-KT is designed for online use, in which the interactions of other learners become available as they occur, and our evaluation follows this setting. Deployments in which such data are delayed or cannot be shared would have less evidence to draw on, which makes privacy-preserving retrieval of learner trajectories an important direction.
VII. CONCLUSION
This paper identified a retrieval-inference alignment gap in retrieval-augmented KT, in which relevance governs what evidence is retrieved but is not preserved when its influence is determined. We proposed relevance continuity as a principle for closing this gap and realized it in CaRe-KT, which acquires temporally valid evidence through the Evidence-Graph Cache, encodes it in a behaviorially structured space, and carries acquisition relevance into reasoning as a prior that informs without dictating the influence of evidence. Across five benchmarks, CaRe-KT achieved the best ranking performance against thirteen baselines, and its advantage widened on all datasets under cold-start and sparse-history conditions, where reliable knowledge estimation is hardest. Ablation studies on three benchmarks showed that removing acquisition relevance consistently produced the largest performance loss among the attention variants, a loss that post-hoc reweighting at inference mitigated only marginally. These findings provide a foundation for adaptive learning systems whose estimates remain reliable and traceable to their evidence when learner data are scarce.
ACKNOWLEDGMENTS
This research was supported by the Australian Government through the Australian Research Council's Industrial Transformation Training Centre for Information Resilience (CIRES) project number IC200100022.
REFERENCES
[1] C. Piech, J. Bassen, J. Huang, S. Ganguli, M. Sahami, L. J. Guibas, and J. Sohl-Dickstein, "Deep knowledge tracing," Advances in neural information processing systems, vol. 28, 2015.
[2] M. Mohammadi, K. Berahmand, S. Sadiq, and H. Khosravi, “Augmenting knowledge tracing through modeling dynamic higher-order concept interactions: A temporal hypergraph memory network,” Computers and Education: Artificial Intelligence, p. 100616, 2026.
[3] M. Hou, X. Li, T. Guo, Z. Liu, M. Tian, R. Luo, and W. Luo, “Cognitive fluctuations enhanced attention network for knowledge tracing,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 39, no. 13, 2025, pp. 14265–14273.
[4] J. Deng, Y. Bai, M. Hou, T. Guo, Z. Liu, and W. Luo, “Denoised attention and question-augmented representations for knowledge tracing,” in Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, 2025, pp. 9619–9627.
[5] K. Cheng, L. Peng, P. Wang, J. Ye, L. Sun, and B. Du, “Dygkt: Dynamic graph learning for knowledge tracing,” in Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, 2024, pp. 409–420.
[6] J. Li, S. Mao, Y. Qin, F. Wang, and Y. Jiang, “Hyperbolic hypergraph transformer with knowledge state disentanglement for knowledge tracing,” IEEE Transactions on Knowledge and Data Engineering, 2025.
[7] S. Shen, Q. Liu, Z. Huang, Y. Zheng, M. Yin, M. Wang, and E. Chen, “A survey of knowledge tracing: Models, variants, and applications,” IEEE Transactions on Learning Technologies, vol. 17, pp. 1858–1879, 2024.
[8] T. Long, J. Qin, J. Shen, W. Zhang, W. Xia, R. Tang, X. He, and Y. Yu, “Improving knowledge tracing with collaborative information,” in Proc. 15th ACM International Conference on Web Search and Data Mining (WSDM), Tempe, AZ, USA, 2022, pp. 599–607.
[9] Z. Duan, Z. Shi, H. Yuan, and Q. Wang, “Hise-kt: Synergizing heterogeneous information networks and llms for explainable knowledge tracing with meta-path optimization,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 40, no. 17, 2026, pp. 14693–14701.
[10] Y. Lu, P. Chen, Y. Pian, and V. W. Zheng, “Cmkt: Concept map driven knowledge tracing,” IEEE Transactions on Learning Technologies, vol. 15, no. 4, pp. 467–480, 2022.
[11] C. Zhang, H. Ma, C. Cui, Y. Yao, W. Xu, and Y. Zhang, “Coskt: A collaborative self-supervised learning method for knowledge tracing,” IEEE Transactions on Learning Technologies, vol. 17, no. 4, pp. 1476–1488, 2024.
[12] Z. Duan, H. Yuan, and R. Liu, “Rag-kt: Cross-platform explainable knowledge tracing with multi-view fusion retrieval generation,” in Findings of the ACL 2026 (Findings of the Association for Computational Linguistics), San Diego, CA, USA, 2026, pp. 5217–5232.
[13] Z. Duan, Z. Shi, B. Jia, and Q. Wang, “Microc-kt: Modeling community effect via learning micro-environment for evidence-grounded explainable knowledge tracing,” in Proc. 64th Annual Meeting of the ACL (ACL 2026, Long Papers), San Diego, CA, USA, 2026, pp. 25781–25803.
[14] J. Zhou and L. Chen, “Optimizing retrieval for rag via reinforcement learning,” Advances in Neural Information Processing Systems, vol. 38, pp. 37014–37049, 2026.
[15] Y. Xu, J. Gao, X. Yu, Y. Xue, B. Bi, H. Shen, and X. Cheng, “Training a utility-based retriever through shared context attribution for retrieval-augmented language models,” in Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, 2025, pp. 629–648.
[16] V. Lin, X. Chen, M. Chen, W. Shi, M. Lomeli, R. James, P. Rodriguez, J. Kahn, G. Szilvasy, M. Lewis et al., “Ra-dit: Retrieval-augmented dual instruction tuning,” in International Conference on Learning Representations, vol. 2024, 2024, pp. 19138–19162.
[17] H. Zhang, M. Tang, K. Bi, J. Guo, S. Liu, D. Shi, D. Yin, and X. Cheng, “Utility-focused llm annotation for retrieval and retrieval-augmented generation,” in Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, 2025, pp. 1683–1702.
[18] Z. Tao, X. Jiang, Q. Feng, H. Zhang, L. Du, Y. Fang, H. Miao, B. Xie, and Q. Sun, “Task-aware retrieval augmentation for dynamic recommendation,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 40, no. 18, 2026, pp. 15779–15787.
[19] F. Tian, D. Ganguly, and C. Macdonald, “Is relevance propagated from retriever to generator in rag?” in European Conference on Information Retrieval. Springer, 2025, pp. 32–48.
[20] T. Zhao, Y. Zhu, Y. Tian, and Z. Dou, “R’3ag: Retriever routing for retrieval-augmented generation,” in Proceedings of the 64th Annual
Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2026, pp. 20 506–20 522.
[21] I. Sarić-Grgić, A. Grubišić, and A. Gašpar, “Twenty-five years of bayesian knowledge tracing: a systematic review,” User modeling and user-adapted interaction, vol. 34, no. 4, pp. 1127–1173, 2024.
[22] T. Long, Y. Liu, J. Shen, W. Zhang, and Y. Yu, “Tracing knowledge state with individual cognition and acquisition estimation,” in Proceedings of the 44th international ACM SIGIR conference on research and development in information retrieval, 2021, pp. 173–182.
[23] S. Shen, Z. Huang, Q. Liu, Y. Su, S. Wang, and E. Chen, “Assessing student’s dynamic knowledge state by exploring the question difficulty effect,” in Proceedings of the 45th international ACM SIGIR conference on research and development in information retrieval, 2022, pp. 427–437.
[24] J. Chen, Z. Liu, S. Huang, Q. Liu, and W. Luo, “Improving interpretability of deep sequential knowledge tracing models with question-centric cognitive representations,” in Proceedings of the AAAI conference on artificial intelligence, vol. 37, no. 12, 2023, pp. 14 196–14 204.
[25] J. Zhang, X. Shi, I. King, and D.-Y. Yeung, “Dynamic key-value memory networks for knowledge tracing,” in Proceedings of the 26th international conference on World Wide Web, 2017, pp. 765–774.
[26] J. Zhang, R. Xia, Q. Miao, and Q. Wang, “Explore bayesian analysis in cognitive-aware key-value memory networks for knowledge tracing in online learning,” Expert systems with applications, vol. 257, p. 124933, 2024.
[27] S. Pandey and G. Karypis, “A self-attentive model for knowledge tracing,” in Proc. EDM, 2019.
[28] A. Ghosh, N. Heffernan, and A. S. Lan, “Context-aware attentive knowledge tracing,” in Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining, 2020, pp. 2330–2339.
[29] S. Huang, Z. Liu, X. Zhao, W. Luo, and J. Weng, “Towards robust knowledge tracing models via k-sparse attention,” in Proc. SIGIR, 2023, pp. 2441–2445.
[30] Z. Liu, Q. Liu, J. Chen, S. Huang, and W. Luo, “simplekt: a simple but tough-to-beat baseline for knowledge tracing,” arXiv preprint arXiv:2302.06881, 2023.
[31] X. Li, Y. Bai, T. Guo, Z. Liu, Y. Huang, X. Zhao, F. Xia, W. Luo, and J. Weng, “Enhancing length generalization for attention based knowledge tracing models with linear biases,” in Proceedings of the thirty-third international joint conference on artificial intelligence (IJCAI-24), 2024, pp. 5918–5926.
[32] W. Cheng, H. Du, C. Li, E. Ni, L. Tan, T. Xu, and Y. Ni, “Uncertainty-aware knowledge tracing,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 39, no. 27, 2025, pp. 27 905–27 913.
[33] H. Nakagawa, Y. Iwasawa, and Y. Matsuo, “Graph-based knowledge tracing: Modeling student proficiency using graph neural network,” in Proc. WI, 2019, pp. 156–163.
[34] Y. Yang, J. Shen, Y. Qu, Y. Liu, K. Wang, Y. Zhu, W. Zhang, and Y. Yu, “Gikt: A graph-based interaction model for knowledge tracing,” in Proc. ECML-PKDD, 2020, pp. 299–315.
[35] L. He, X. Li, P. Wang, J. Tang, and T. Wang, “Man: Memory-augmented attentive networks for deep learning-based knowledge tracing,” ACM Transactions on Information Systems, vol. 42, no. 1, pp. 1–22, 2023.
[36] S. Liu, X. Yuan, T. Wei, J. Yue, Z. Zhao, Q. Li, and S. Chen, “Enhancing knowledge tracing with multi-hierarchy hypergraph adaptive knowledge transfer,” ACM Transactions on Information Systems, vol. 44, no. 5, pp. 1–31, 2026.
[37] Y. Pu, F. Liu, R. Shi, H. Yuan, R. Chen, T. Peng, and W. Wu, “Elakt: Enhancing locality for attentive knowledge tracing,” ACM Transactions on Information Systems, vol. 42, no. 4, pp. 1–27, 2024.
[38] H. Ma, Y. Yin, Z. Wang, C. Wang, X. Yu, S. Yang, and X. Zhang, “Learning patterns-guided data generation for knowledge tracing,” in Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2, 2025, pp. 2031–2041.
[39] K. Berahmand, M. Mohammadi, H. Babai, and H. Khosravi, “Retrieval-augmented contrastive learning for knowledge tracing,” in Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2026, pp. 3620–3624.
[40] H. Liu, Y. Li, M. Yu, T. Zhang, G. Yu, T. B. Pedersen, K. Torp, C. S. Jensen, and T. Li, “Advancing knowledge tracing by exploring follow-up performance trends,” arXiv preprint arXiv:2508.08019, 2025.
[41] H. Trivedi, N. Balasubramanian, T. Khot, and A. Sabharwal, “Interleaving retrieval with chain-of-thought reasoning for knowledge-intensive multi-step questions,” in Proceedings of the 61st annual meeting of the association for computational linguistics (volume 1: long papers), 2023, pp. 10014–10037.
[42] F. Ye, S. Li, Y. Zhang, and L. Chen, “R2ag: Incorporating retrieval information into retrieval augmented generation (2024),” arXiv preprint arXiv:2406.13249.
[43] L. Zhang, Y. Yu, K. Wang, and C. Zhang, “Arl2: Aligning retrievers with black-box large language models via self-guided adaptive relevance labeling,” in Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2024, pp. 3708–3719.
[44] A. Salemi and H. Zamani, “Evaluating retrieval quality in retrieval-augmented generation,” in Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2024, pp. 2395–2400.
[45] A. Asai, Z. Wu, Y. Wang, A. Sil, and H. Hajishirzi, “Self-rag: Learning to retrieve, generate, and critique through self-reflection,” in International conference on learning representations, vol. 2024, 2024, pp. 9112–9141.
[46] W. Shi, S. Min, M. Yasunaga, M. Seo, R. James, M. Lewis, L. Zettle-moyer, and W.-t. Yih, “Replug: Retrieval-augmented black-box language models,” in Proceedings of the 2024 conference of the north american chapter of the association for computational linguistics: Human language technologies (volume 1: Long papers), 2024, pp. 8371–8384.
[47] X. Xie, F. Sun, Z. Liu, S. Wu, J. Gao, J. Zhang, B. Ding, and B. Cui, “Contrastive learning for sequential recommendation,” in 2022 IEEE 38th international conference on data engineering (ICDE). IEEE, 2022, pp. 1259–1273.
[48] X. Chen and K. He, “Exploring simple siamese representation learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2021, pp. 15 750–15 758.
[49] Z. Liu, Q. Liu, J. Chen, S. Huang, J. Tang, and W. Luo, “pykt: a python library to benchmark deep learning based knowledge tracing models,” Advances in Neural Information Processing Systems, vol. 35, pp. 18 542–18 555, 2022.
[50] N. Reimers and I. Gurevych, “Sentence-BERT: Sentence embeddings using siamese BERT-networks,” in Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). Hong Kong, China: Association for Computational Linguistics, 2019, pp. 3982–3992.
[51] R. J. Mislevy, L. S. Steinberg, and R. G. Almond, “Focus article: On the structure of educational assessments,” Measurement: Interdisciplinary research and perspectives, vol. 1, no. 1, pp. 3–62, 2003.
[52] S. Bull, “There are open learner models about!” IEEE Transactions on Learning Technologies, vol. 13, no. 2, pp. 425–448, 2020.
[53] N. T. Heffernan and C. L. Heffernan, “The ASSISTments ecosystem: Building a platform that brings scientists and teachers together for minimally invasive research on human learning and teaching,” International Journal of Artificial Intelligence in Education, vol. 24, no. 4, pp. 470–497, 2014.
[54] A. T. Corbett and J. R. Anderson, “Knowledge tracing: Modeling the acquisition of procedural knowledge,” User Modeling and User-Adapted Interaction, vol. 4, no. 4, pp. 253–278, 1994.
[55] C. Qian, F. Liang, and J. Adams, “Extending temperature scaling with homogenizing maps,” Journal of Machine Learning Research, vol. 26, no. 161, pp. 1–46, 2025.