arXiv:2609.01537cs.LGSep 2026

Manuscript Offprint

arXiv:2609.01537

Quantum Sparse Autoencoders for Q-Matrix Estimation in Cognitive Diagnosis

Arif Hassan Zidan, Yi Pan, Bowen Guo, Xiang Li, Yu Bao, Yingfeng Wang, Tianming Liu, Wei Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Q-matrices play a central role in cognitive diagnosis within educational data mining (EDM), specifying which latent skills each assessment item requires. Data-driven Q-matrix estimation remains challenging when assessments involve many correlated skills and when real response patterns depart from idealized generative assumptions. We introduce a novel quantum sparse autoencoder (QSAE) for Q-matrix estimation, which, to the best of our knowledge, is the first application of quantum machine learning (QML) to cognitive diagnosis. Overall, the QSAE embeds each student's binary response vector into a quantum circuit using an encoder, compresses it into a sparse latent representation, and maps that representation to the Q-matrix. We benchmark the QSAE against a classical autoencoder (CAE) across 60 simulated datasets and 9 real-world assessment datasets. The results reveal complementary strengths. Although the CAE partially achieves higher average accuracy under several simulation conditions, the QSAE is substantially more stable across replications, exhibiting lower variance in 49 of the 60 conditions. Moreover, on real assessment data, the QSAE outperforms the CAE on 6 of the 9 datasets. These findings suggest that the principal advancement of QML in this setting is not universal accuracy improvement, but enhanced robustness and capability to explore latent-structure complexity in real datasets.

Introduction

Quantum machine learning (QML) has emerged as an active research frontier at the intersection of quantum computing and artificial intelligence, motivated by the possibility that quantum systems can represent and process information in ways that are difficult to reproduce classically (Cerezo et al. 2022; Jiang et al. 2026). Encoding classical data into an n-qubit quantum state provides access to a 2n2^{n}-dimensional Hilbert space, creating an exponentially large representation space in which complex structures that are difficult to separate in the original feature space may become more amenable to learning (Havlíček et al. 2019). On current noisy intermediate-scale quantum (NISQ) devices, much of this potential is explored through hybrid quantum-classical variational algorithms (Cerezo et al. 2021; Pan et al. 2025; Jahin et al. 2025; Pan et al. 2026).

QML is anticipated to be particularly valuable in domains characterized by complex, high-dimensional, and structured observations, such as drug discovery, materials science, and scientific data analysis (Jiang et al. 2026). A recurring challenge in these domains is representation learning: transforming high-dimensional observations into compact latent representations that preserve the information most relevant to downstream inference. Quantum autoencoders (QAEs) provide a natural mechanism for this purpose by using parameterized quantum circuits to compress input states into lower-dimensional latent subsystems (Pan et al. 2025). Importantly, this compression principle is not inherently domain-specific. Whenever observed data are governed by a relatively small number of hidden factors, learning a compact latent representation may provide a useful route to recovering the underlying structure. Educational assessment provides a particularly compelling example of such a setting. Therefore, we adopt this paradigm to investigate whether quantum representation learning can reveal latent structure in educational assessment data.

Traditionally, in educational measurement, diagnostic classification models (DCMs) (Henson, Templin, and Willse 2009; Rupp, Templin, and Henson 2010; Bradshaw 2016; Lin et al. 2025) infer students' mastery of latent skills, or attributes, from their observed item responses. A fundamental component of a DCM is the Q-matrix (Tatsuoka 1983), a binary matrix in which entry (j,k)(j, k) indicates whether item j requires attribute k. The Q-matrix therefore defines the item–attribute dependency structure on which subsequent diagnostic inference depends. In practice, however, Q-matrices are commonly specified manually by domain experts, making the process costly, labor-intensive, and potentially subjective (Pongsophon 2026). For example, on a widely used Trends in International Mathematics and Science Study (TIMSS) mathematics assessment, two expert coders agreed on only approximately 89% of Q-matrix entries (Li, Ma, and Xu 2022). These limitations have motivated increasing interest in estimating Q-matrices accurately.

Data-driven Q-matrix estimation nevertheless remains challenging. The search space grows exponentially with the number of items and attributes; the latent attributes are unobserved and identifiable only up to permutation; educational datasets are often modest in size; and correlations among attributes can obscure the true item–attribute rela-

∗^{*}Corresponding author.

tionships (Li, Ma, and Xu 2022; Islam et al. 2025). Conventional approaches can perform well when the assumed generative structure closely matches the data, but their performance may deteriorate when real-world responses deviate from idealized model assumptions. These challenges motivate the exploration of alternative representation learning with different inductive biases.

In this work, we develop an innovative quantum sparse autoencoder (QSAE) to provide an effective alternative for data-driven Q-matrix estimation. We introduce a QSAE framework that first embeds each student's binary response vector into an eight-qubit quantum circuit using a response-to-quantum-state encoding specifically designed for educational assessment data. A parameterized quantum encoder then compresses the response information into a K-dimensional sparse latent representation intended to capture the underlying skill structure, from which the Q-matrix is subsequently recovered. The imposed sparsity encourages the QSAE to retain the most informative latent features while suppressing noise and spurious variation, potentially improving robustness when applied to real-world response data. The encoder-decoder architecture extends the MolQAE framework (Pan et al. 2025) from molecular representation learning to educational assessment data. To the best of our knowledge, this is the first study to apply a quantum autoencoder to Q-matrix estimation and the first use of quantum representation learning for cognitive diagnosis.

Rather than assuming that the quantum model should universally outperform its classical counterpart, we ask a more informative question: under what data conditions does each representation-learning approach provide an advantage? To answer this question, we benchmark the proposed QSAE against a classical autoencoder (CAE) following the evaluation protocol of (Li, Ma, and Xu 2022; Ramos-Pulido et al. 2025). The comparison covers 60 simulated conditions generated under the Deterministic Inputs, Noisy “And” gate (DINA) model (Nájera et al. 2023; Gu and Xu 2019) and 9 real-world assessment datasets. Performance is evaluated using standard Q-matrix recovery criteria, including overall error (OE), out-of-true-positive error (OTP), and out-of-true-negative error (OTN) (Li, Ma, and Xu 2022).

The results reveal a complementary pattern. Under clean simulated conditions, where the data-generating structure is well aligned with the inductive bias of the classical model, the CAE achieves higher average recovery accuracy, consistent with expectations from prior representative work (Li, Ma, and Xu 2022). However, the QSAE exhibits substantially greater stability across replications, producing lower standard deviations in 49 of the 60 simulated conditions. More importantly, across the 9 real datasets, the QSAE outperforms the CAE on 6 datasets. These findings suggest that the primary advantage of the proposed QSAE is not universal superiority under idealized conditions, but rather its robustness to sampling variability and model misspecification in more realistic settings.

Overall, this work makes the following contributions:

• A quantum sparse autoencoder framework for Q-matrix estimation. We introduce, to the best of our knowledge, the first QSAE-based approach to Q-matrix recovery and the first application of quantum representation learning to cognitive diagnosis.

• A systematic quantum–classical benchmark. We conduct a controlled comparison between the proposed QSAE and a classical autoencoder across 60 simulated DINA conditions and 9 real assessment datasets using standard Q-matrix recovery metrics (OE, OTP, and OTN) (Li, Ma, and Xu 2022).

• An empirical characterization of complementary strengths. We show that the CAE achieves stronger recovery accuracy under well-specified simulations, whereas the QSAE provides greater replication stability and stronger performance across real datasets.

References (32)