Research Article
Context-aware prompting for collaborative problem solving skill identification
Synthesis: Collaborative problem solving (CPS) is a dual-faceted Problem Solving competence spanning a cognitive dimension (individual reasoning about the problem) and a social dimension (coordinating and communicating with others). To assess CPS, researchers typically collect process data from computer-mediated Collaborative Learning tasks and code each logged behavior into predefined CPS skills. Traditional manual coding is labor-intensive and unsuitable for large-scale or real-time analysis, prompting a body of automated coding work. However, most existing automated methods treat each utterance as an isolated instance and overlook the natural dependencies among behaviors in a CPS dialogue — yet the same message can map to different skills depending on context (e.g., "What should we do?" is coded as goal discovery or action-communication depending on the conversation phase).
To address this, the authors propose CAP4CPS (Context-Aware Prompting for CPS), an automated coding framework built on Prompt Engineering and Machine Learning that explicitly models contextual dependencies. CAP4CPS comprises three modules: a Context Extraction (CE) module that separately pulls the cognitive context (a speaker's own recent dialogue, window size w_c) and social context (recent dialogue from other participants, window size w_s); a Context-Infused Prompting (CIP) module that concatenates these contexts with a manually designed, fixed-prompt Large Language Models (LLMs) template and feeds them into BERT, using the [MASK]-token embedding as the ability representation; and an Ability Fusion (AF) module that applies multi-head attention to fuse cognitive and social ability embeddings into a unified CPS competency representation used for skill prediction. The model is evaluated on two CPS datasets (Three-Resistor and Mondrian Geometric Fantasy), annotated respectively with the CPS ontology of Andrews-Todd & Kerr and the PISA 2015 framework — linking this work to Educational Measurement and Educational NLP.
Key Findings
- CAP4CPS outperforms all baselines on both datasets. It reached Accuracy 81.04%, Weighted-F1 80.78%, and Cohen's Kappa 75.33% on Three-Resistor (besting BERT-finetune by 1.00%, 0.81%, 1.20%) and 83.27%, 83.17%, and 78.37% on Mondrian Geometric Fantasy (besting BERT-seq). Across 10 runs, gains were consistent with small standard deviations.
- Pre-trained language models dominate older approaches. BERT-based models (BERT-finetune, BERT-prompt, BERT-seq, CAP4CPS) all achieved Kappa above 0.70 on both datasets, whereas most N-gram-based machine-learning models (Naive Bayes, KNN, CPS-Rater) stayed below 0.70 and deep models (CNN/GRU/LSTM) failed to reach 0.70 on Three-Resistor.
- Gains come from architecture, not just BERT representations. Adding BERT mean-pooled embeddings boosted KNN and CPS-Rater substantially (CPS-Rater's Kappa up 66.3% on Mondrian) but degraded Random Forest, and these methods still trailed fine-tuned/prompted BERT — showing architectural design matters beyond rich semantic features.
- Every module contributes. Ablations showed removing context caused the largest drop, while removing the attention fusion also hurt — indicating both multi-dimensional context modeling and modeling cognitive-social interdependence matter. Removing both (w/o All) gave the weakest results.
- Context length has a saturating effect. Larger cognitive (
w_c) and social (w_s) context windows generally improved Kappa up to a point, after which performance became robust; a short cognitive context was the most harmful, because a speaker's own utterances form a coherent narrative across multiple consecutive statements. - Low-frequency skills remain hard. Error analysis showed the model misclassifies rare skills toward semantically similar, frequent ones (e.g., 30% of CRF→SSI on Three-Resistor; 38% of D1→D2, 33% of A3→B3 on Mondrian), and struggles with highly implicit expressions where literal meaning diverges from the intended skill.
What this means for practice
- Assessment professionals. Use context-aware automated coding to pre-screen or replace manual CPS coding in large analytics pipelines, where CAP4CPS reached Kappa 75.33% on Three-Resistor and 78.37% on Mondrian Geometric Fantasy, and keep human review for high-stakes decisions.
- Learning analytics designers. Model each utterance as situated: extract the speaker's own recent dialogue and the other participants' recent dialogue separately, then fuse them with attention, since removing context caused the largest ablation drop.
- Learning analytics designers. Expect weak performance on rare skill categories and implicit expressions (30% of CRF cases were coded as SSI on Three-Resistor) and add calibration data, oversampling, or human review of rare classes before high-stakes use.
- Researchers. Tune the cognitive and social context windows separately: short cognitive windows were the most harmful because a speaker's own utterances form a narrative, and gains flatten once windows grow large.
- Assessment professionals. Prefer fixed-prompt tuning of a pre-trained model when labeled data are limited — every BERT-based variant exceeded Kappa 0.70 on both datasets while most N-gram models stayed below that.
Limitations
- Only two datasets were used, each with a different population and ontology: Three-Resistor (378 US university and community-college participants; final 34,851 manipulation entries and 15,895 chat entries, 11 subskills) and Mondrian Geometric Fantasy (840 Chinese Grade 10–11 students; 229 of 280 teams valid; 245,034 entries, PISA 2015's 12 subskills).
- Class imbalance is severe: the social dimension accounts for 75.1% of the Three-Resistor data, and rare skills such as CMC and CRF are systematically misclassified toward frequent, semantically similar ones.
- Chat entries are extremely short — 99% contain fewer than 16 words on both datasets — which limits the lexical evidence available for skill inference.
- Ground truth came from manual coding with 20% of the data double-coded (Kappa 0.937 overall, 0.871 for chat), the prompt template is manually fixed, and no real-time deployment was tested, so claims about near-real-time feedback remain prospective.
Connected Concepts
- Collaborative Learning
- Problem Solving
- Prompt Engineering
- Educational Measurement
- Learning Analytics
- Educational NLP
- Machine Learning
- Large Language Models (LLMs)
- Automated Assessment
Connected Articles
- Towards an adaptive AI scaffold for developing student collaborative problem solving — Both target collaborative problem solving in educational settings; this paper focuses on automated CPS skill coding from process data, complementing that article's focus on scaffolding student CPS development.
- Modelling Individual Participants as LLM Agents in Collaborative Problem Solving Simulations — Both model participants and interaction in CPS tasks; CAP4CPS codes chat behaviors into skills via prompted language models, while that article simulates individual participants as LLM agents.
- Assessment in Team Problem-Solving Exercises in Computing Education — Both concern assessment of team problem solving; CAP4CPS contributes automated, context-aware scoring of CPS skills, which could support the assessment approaches discussed there.
Citation
Context-aware prompting for collaborative problem solving skill identification — Zhu, M., Feng, L., Wang, X., & Huang, W. (2026). Computers and Education: Artificial Intelligence, 10, 100567.