TL;DR
PromptCD is a novel framework that uses "soft prompt transfer" to solve the accuracy drop-off in cross-domain cognitive diagnosis. By bridging the gap between different schools (student-aspect) and different subjects (exercise-aspect), it allows educational AI models to generalize effectively to new environments with minimal data.
What Problem Does This Paper Address?
Cognitive Diagnosis (CD) is the backbone of personalized learning; it’s the process of estimating a student's mastery of specific concepts based on their past answers. However, standard CD models are "homebodies"—they perform well on the data they were trained on but struggle when moved to a new domain.
This creates a Cross-Domain Cognitive Diagnosis (CDCD) challenge. Imagine a model trained on math students in an urban school. If you try to use it for geography students in a rural school, the accuracy plummets. This happens for two main reasons:
- Student-Aspect Shifts: Students from different schools or demographics have different background knowledge.
- Exercise-Aspect Shifts: Exercises in different subjects (e.g., Math vs. Physics) require different cognitive patterns.
Traditional fixes, like retraining the model from scratch on new data, often lead to "catastrophic forgetting" of the old domain or overfitting on the small amount of new data available.

Methods
The authors introduce PromptCD, a framework that leverages soft prompt transfer. Unlike "hard prompts" (fixed text instructions), soft prompts are learnable continuous vectors that are prepended to the original student and exercise embeddings.
The framework operates in two stages:
- Pre-training Stage: The model learns "personalized prompts" for entities that overlap across domains (like a student taking multiple subjects) and "shared prompts" for domain-specific characteristics (like the general difficulty of a specific school).
- Fine-tuning Stage: These learned prompts are transferred to the target domain. The model uses a small amount of "few-shot" data from the new domain to adapt these prompts, effectively "tuning" the model to the new environment without destroying its core diagnostic logic.
The authors propose two specific instantiations: PromptCD-S (tailored for student-side shifts) and PromptCD-E (tailored for exercise-side shifts). They also introduce a "Prompt-to-Representation Mapping" strategy (Ours+) that uses the learned prompts to initialize representations in the target domain, replacing the noisy process of random initialization.
Datasets
The researchers evaluated their framework using the SLP dataset, a large-scale real-world K-12 dataset.
- Exercise-aspect scenarios: They tested transfers between Humanities (Chinese, History, Geography) and Sciences (Mathematics, Physics, Biology).
- Student-aspect scenarios: They categorized students from 30 different schools into four "bins" (A, B, C, D) based on average performance levels to simulate cross-school domain shifts.
Key Insights and Ideas
- Prompts as Knowledge Bridges: Instead of trying to force a student's "Math embedding" to work for "Physics," the soft prompt acts as a translator, capturing the underlying "basic capability" that transfers across subjects.
- Handling the "Dual-Aspect" Nature: Most previous work only looked at one side of the coin (usually subjects). PromptCD is scenario-agnostic, meaning it can handle shifts in who is learning and what is being learned.
- Efficiency through Few-Shot Learning: By focusing on prompt tuning rather than full model retraining, PromptCD achieves high accuracy even when very little data (as low as 10%) is available in the new target domain.
Key Results
PromptCD was tested against several state-of-the-art baselines (like TechCD and ZeroCD) across four different "backbone" diagnostic models (IRT, MIRT, NeuralCD, and KSCD).
- Massive Accuracy Gains: In student-aspect scenarios, PromptCD improved the Area Under Curve (AUC) metric by up to 27.9% compared to models without prompt transfer.
- Robustness: In exercise-aspect scenarios (e.g., transferring to Biology), the framework saw AUC increases from 0.667 to 0.798.
- Consistency: The "Ours+" version (with prompt-to-representation mapping) consistently outperformed other versions, proving that prompts contain rich information that can be used to "warm-start" new domains.
Limitations and Future Work
While PromptCD is a major step forward, the authors and the nature of the work suggest a few areas for growth:
- Simultaneous Dual-Aspect Shifts: The current experiments mostly focus on shifting one aspect at a time (either students or exercises). Future work could explore "extreme" cross-domain scenarios where both students and subjects are entirely new.
- Prompt Engineering Complexity: While soft prompts reduce the need for manual "hard" prompt engineering, determining the optimal dimensionality for these prompts still requires some trial and error.
- Interpretability: While the model performs well, "soft prompts" are essentially black-box vectors. Finding ways to map these back to human-understandable educational concepts could help teachers better trust the AI's diagnosis.
Summary updated