Agent4CD: Generative Agent for Cognitive Diagnosis in Intelligent Education.

Authors:

Abstract
Cognitive diagnosis (CD) is a central assessment approach in intelligent education that aims to uncover learners' knowledge mastery and latent cognitive abilities under examination conditions. However, existing models primarily infer learners' knowledge state based on their final performance, thus failing to capture the reasoning trajectories during problem-solving and struggling to address the dissociation between ability and performance caused by short-term affective fluctuations. To address these challenges, we propose a generative agent for CD (Agent4CD) in intelligent education that enhances interpretability and provides greater personalization and adaptability. Specifically, the framework constructs learner profiles and incorporates a memory module to integrate historical responses. It leverages the reasoning capabilities of large language models (LLMs) to dynamically model cognitive paths and knowledge evolution. The affect perception module utilizes LLMs' contextual understanding to identify students' transient affective state, helping to mitigate misjudgments of ability caused by affective fluctuations. Meanwhile, a dual-reflection mechanism supports both real-time intervention and long-term ability development. Experiments demonstrate that Agent4CD outperforms existing methods in diagnostic accuracy, interpretability, and personalization. To facilitate further research, data and code are publicly available at https://github.com/xinjiesun-ustc/Agent4CD.
Funding Information
  • National Natural Science Foundation of China (62567004)
  • National Natural Science Foundation of China (62507010)
  • Guizhou Provincial Science and Technology Projects (QKHJCMS[2026]753)
  • Guizhou Provincial Science and Technology Projects (QKHJC-MS[2026]754)
  • University of Science and Technology of China–Liupanshui Normal University Counterpart Cooperation and Development Joint Fund (USTC-LPSNU-2025-10)
  • “Xin Zhi Qian Yan” Leading Project of the Guizhou Association for Science and Technology (QKX2026-KC-YZ048)
  • Decision-Making Consultation Project of the Guizhou Association for Science and Technology (QKX2026-ZX-031)
  • Decision-Making Consultation Project of the Liupanshui Association for Science and Technology (czxxm-26-14)