Cognitive state models must possess data⁃forgetting capabilities to comply with relevant laws and privacy protection requirements. However,existing cognitive diagnostic models focus on performance optimization while neglecting learners' privacy needs. To address this gap,we propose a machine⁃forgetting framework for cognitive diagnosis that tackles the problem of data forgetting in this domain. First,leveraging a partitioning approach based on cognitive states,we segment the data according to the similarity of learners' cognitive states and train cognitive diagnostic submodels in parallel within each partition. Second,employing a cross⁃attention⁃based model aggregation mechanism,we compute attention weights by fusing prediction outputs with the feature representations of the submodels,thereby enhancing the final model's generalization across diverse learner groups. Extensive experiments conducted on four real⁃world datasets demonstrate that our framework effectively enables data forgetting in cognitive diagnostic models,significantly reducing computational resource consumption and training time while maintaining model performance.
近年来,机器遗忘已成为学术界的研究热点,其核心目标在于从机器学习模型中精确移除特定数据的影响.在遗忘的有效性方面,重训练(Retrain)被视为是最彻底的方法[8],即通过在删除目标数据后的数据集上重新训练模型来实现完全遗忘.然而,尽管该方法能保证理论上的遗忘效果,但在面对大规模数据集时,高昂的计算成本与时间开销使其难以满足实际应用中的实时性需求.为了降低计算负担,Bourtoule et al[9]提出代表性的SISA框架,将训练数据划分为多个互不重叠的分片并独立训练子模型,最终通过多数投票机制来聚合预测结果.SISA利用数据分片与并行训练策略,显著降低了重训练的代价.随后,针对推荐系统任务,Chen et al[10]的RecEraser框架引入基于用户⁃项目交互的自适应数据划分策略,并设计了基于注意力机制的聚合算法,在实现数据遗忘的同时有效保持了推荐模型的性能.然而,现有的机器遗忘框架难以直接应用于认知诊断任务.认知诊断模型的核心在于通过学生的答题序列挖掘其潜在的认知状态,现有方法在进行数据划分与模型聚合时,仅考虑了数据层面的交互特征,没有挖掘学生独特的认知属性,在数据划分阶段破坏了认知诊断所需的特征分布,导致模型在遗忘后的诊断准确性大幅下降.因此,设计一种能够感知认知状态的遗忘框架尤为迫切.
针对现有研究的局限性,本文提出一种面向认知诊断的机器遗忘框架(Unlearning Framework for Cognitive Diagnosis,UFCD),旨在高效实现认知诊断模型的数据遗忘,并有效缓解分区⁃聚合框架对模型性能的影响.UFCD的基础架构采用典型的分区⁃聚合框架,通过数据划分与并行训练,大幅降低模型重训练所需的时间与计算成本.然而,该方法不可避免地会影响最终模型的预测性能,为此,提出以下优化方案.
(2)基于交叉注意力的模型聚合机制(Cross⁃Attention⁃Based Model Aggregation Mechanism,CMAM).针对传统静态平均或投票机制无法适应异构子模型的聚合问题来设计CMAM,将待预测样本的特征作为查询,各分区的认知状态分布特征作为键.通过综合评估预测样本与各子模型“擅长领域”的匹配度,动态计算注意力权重并进行自适应聚合,显著提升最终模型的预测精度与泛化能力.
(2)基于影响函数(Influence Functions,IF)的方法,致力于从统计学角度量化并消除数据对模型参数的影响.Guo et al[19]的“认证遗忘”框架利用影响函数近似计算单点删除的参数变化,并在强凸模型上提供了理论保障.在此基础上,Sekhari et al[20]进一步优化该框架的存储与计算开销,通过利用充分统计量,使算法能够在不访问完整历史数据集的情况下执行遗忘.针对深层非凸神经网络中Hessian矩阵求逆的计算瓶颈,Mehta et al[21]的基于稀疏参数选择的L⁃CODEC策略通过识别关键参数子空间并应用分块牛顿更新,将昂贵的二阶计算限制在低维空间中.Cheng et al[22]的GNNDELETE框架强调“删除一致性”与“邻域影响约束”,确保边的移除操作仅在局部子图中传播,从而在阻断特定依赖的同时,最大程度保留图的全局结构完整性.Chien et al[23]聚焦于遗忘的理论边界,针对简单图卷积网络(SGC)提出一种认证图遗忘学习方法CGU,让节点、边及特征遗忘得到严格理论保证.MEGU[24]采用基于学习的方法,通过构造损失函数来微调模型,在修正模型的同时实现推理保护.
(1)基础分区框架及其优化.Bourtoule et al[9]的SISA框架将数据划分为互不重叠的分片并独立训练子模型,使遗忘操作的代价被限制在局部子模型内.为了克服SISA随机划分导致的数据异构性,Yan et al[25]的ARCANE框架摒弃了传统的随机平衡划分策略,采用基于类别的划分机制,利用单类分类器独立训练各子模型.这种设计将遗忘操作的影响严格限制在单一类别边界内,有效缓解跨类干扰带来的精度损失.
(2)面向特定数据结构的遗忘.针对具有复杂拓扑结构的图数据与交互数据,传统的随机划分会切断隐式协作信号.在推荐系统领域,Rec⁃Eraser[10]提出基于用户⁃项目交互的均衡划分与自适应聚合机制,以保留局部协作信号.Li et al[26]的LASER框架利用超图技术创建平衡的数据划分,优化用户协同信息的保留.在聚合阶段,LASER采用逐步训练策略,从简单到复杂进行训练,以最大化模型对协同信息的利用.SARU模型[6]利用谱聚类结合大语言模型,成功在保证遗忘效率的同时,缓解数据移除导致的推荐准确率下降问题.针对图神经网络,GraphEraser[27]包含“均衡图划分、分片训练、重要性聚合”的三阶段流程,设计了保持图结构完整性的划分算法,生成节点规模均衡的子图分片,在聚合阶段,通过学习各分片模型的重要性权重,优化全局模型的效用.Zhang[28]的GraphRevoker框架旨在解决图划分带来的信息丢失问题,通过设计图属性感知的划分算法以及基于对比学习的子模型聚合策略,成功在加速遗忘过程的同时,显著提升遗忘操作的模型效用及可靠性.此外,对于天然契合SISA思想的树模型(随机森林[29]),Brophy and Lowd[30]的DARE方法进一步优化树内部的更新效率,采用双层节点结构,上层随机节点仅随机选择分裂属性与阈值,降低对数据的依赖,下层贪婪节点基于基尼指数等指标进行精细划分.通过缓存节点统计信息与叶节点数据,DARE仅需更新受影响的子树分支,而非整棵树.
ASSIST2017来源于2017 ASSISTments Data Mining Competition,包含2004-2007年的学生答题记录以及练习与知识概念之间的关联关系,为评估学生的学习表现和知识掌握情况提供重要数据支持.然而,与ASSIST0910类似,它缺少知识点之间的交互数据,这在研究知识概念的复杂关联时带来了一定的挑战.
数据集涵盖的习题均为客观题,即作答得分被二值化为0(错误)或1(正确).为了全面、客观地量化各认知诊断模型及遗忘方法的性能差异,选取准确率(Accuracy,ACC)、曲线下面积(Area Under Curve,AUC)、均方根误差(Root Mean Square Error,RMSE)以及平均绝对误差(Mean Absolute Error,MAE)四个主流评估指标.各指标的具体定义如下.
AndersonA, HuttenlocherD, KleinbergJ,et al. Engaging with massive online courses∥Proceedings of the 23rd International Conference on World Wide Web. New York,NY,USA:Association for Computing Machinery,2014:687-698.
[2]
NguyenT. The effectiveness of online learning:Beyond no significant difference and future horizons. MERLOT Journal of Online Learning and Teaching,2015,11(2):309-319.
[3]
UdovichenkoY G, NogaevaV U. General data protection regulation. Actual Problems of Russian Law,2018(8):221-224.
[4]
IllmanE, TempleP. California consumer privacy act. The Business Lawyer,2019,75(1):1637-1646.
BourtouleL, ChandrasekaranV, Choquette⁃ChooC A,et al. Machine unlearning∥2021 IEEE Symposium on Security and Privacy. San Francisco,CA,USA:IEEE,2021:141-159.
[10]
ChenC, SunF, ZhangM,et al. Recommendation unlearning∥Proceedings of the ACM Web Conference 2022. New York,NY,USA:Association for Computing Machinery,2022:2768-2777.
[11]
GargS, GoldwasserS, VasudevanP N. Formalizing data deletion in the context of the right to be forgotten∥Advances in Cryptology 2020.Cham:Springer,2020:373-402.
[12]
LiY Y, ChenC C, ZhengX L,et al. Selective and collaborative influence function for efficient recommendation unlearning. Expert Systems with Applications,2023,234:121025.
[13]
ZhangH B, NakamuraT, IsoharaT,et al. A review on machine unlearning. SN Computer Science,2023,4(4):337.
[14]
WuY J, DobribanE, DavidsonS. DeltaGrad:Rapid retraining of machine learning models∥Proceedings of the 37th International Conference on Machine Learning. New York,NY,USA:PMLR,2020:10355-10366.
[15]
ByrdR H, NocedalJ, SchnabelR B. Representations of quasi⁃Newton matrices and their use in limited memory methods. Mathematical Programming,1994,63(1):129-156.
[16]
CaoX Y, JiaJ Y, ZhangZ X,et al. FedRecover:Recovering from poisoning attacks in federated learning using historical information∥2023 IEEE Symposium on Security and Privacy.San Francisco,CA,USA:IEEE,2023:1366-1383.
[17]
ThackerW C. The role of the Hessian matrix in fitting models to measurements. Journal of Geophysical Research. Oceans,1989,94(C5):6177-6196.
[18]
NeelS, RothA, Sharifi⁃MalvajerdiS. Descent⁃to⁃delete:Gradient⁃based methods for machine unlearning∥Proceedings of the 32nd International Conference on Algorithmic Learning Theory. New York,NY,USA:PMLR,2021:931-962.
[19]
GuoC, GoldsteinT, HannunA,et al. Certified data removal from machine learning models∥Proceedings of the 37th International Conference on Machine Learning. Brookline,NY,USA:JMLR.org,2020:3832-3842.
[20]
SekhariA, AcharyaJ, KamathG,et al. Remember what you want to forget:Algorithms for machine unlearning∥Proceedings of the 35th International Conference on Neural Information Processing Systems. Red Hook,NY,USA:Curran Associates Inc,2021:18075-18086.
[21]
MehtaR, PalS, SinghV,et al. Deep unlearning via randomized conditionally Independent hessians∥2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition. New Orleans.LA,USA:IEEE,2022:10412-10421.
[22]
ChengJ L, DasoulasG, HeH,et al.GNNDelete:A general strategy for unlearning in graph neural networks∥The 11th International Conference on Learning Representations. Kigali,Rwanda:ICLR,2023:1-23.
[23]
ChienE, PanC, MilenkovicO. Efficient model updates for approximate unlearning of graph⁃structured data∥The 11th International Conference on Learning Representations. Kigali,Rwanda:ICLR,2022:1-33.
[24]
LiX K, ZhaoY L, WuZ Y,et al. Towards effective and general graph unlearning via mutual evolution. Proceedings of the AAAI Conference on Artificial Intelligence,2024,38(12):13682-13690.
[25]
YanH N, LiX G, GuoZ Y,et al. Arcane:An efficient architecture for exact machine unlearning∥Proceedings of the 31st International Joint Conference on Artificial Intelligence Main Track. Vienna,Austria:IJCAI,2022:4006-4013.
[26]
LiY Y, ChenC C, ZhengX L,et al. Making recommender systems forget:Learning and unlearning for erasable recommendation. Knowledge⁃Based Systems,2024,283:111124.
[27]
ChenM, ZhangZ K, WangT H,et al. Graph unlearning∥Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security. New York,NY,USA:Association for Computing Machinery,2022:499-513.
[28]
ZhangJ H. Graph unlearning with efficient partial retraining∥Companion Proceedings of the ACM Web Conference 2024. New York,NY,USA:Association for Computing Machinery,2024:1218-1221.
[29]
FriedmanJ H. Greedy function approximation:A gradient boosting machine. Annals of Statistics,2001,29(5):1189-1232.
[30]
BrophyJ, LowdD. Machine unlearning for random forests∥Proceedings of the 38th International Conference on Machine Learning. New York,NY,USA:PMLR,2021:1092-1104.
[31]
RosenbaumP R. Testing the conditional independence and monotonicity assumptions of item response theory. Psychometrika,1984,49(3):425-435.
[32]
YangH W, QiT L, LiJ,et al. A novel quantitative relationship neural network for explainable cognitive diagnosis model. Knowledge⁃Based Systems,2022,250:109156.
[33]
GinartA, GuanM, ValiantG,et al. Making ai forget you:data deletion in machine learning. Advances in Neural Information Processing Systems,2019,32:3513-3526.
[34]
ChenP H, WeiW, HsiehC J,et al. Overcoming catastrophic forgetting by Bayesian generative regularization∥Proceedings of the 38th International Conference on Machine Learning. New York,NY,USA:PMLR,2021:1760-1770.
[35]
GaoL N, ZhaoZ Y, LiC,et al. Deep cognitive diagnosis model for predicting students' performance. Future Generation Computer Systems,2022,126:252-262.
[36]
AckermanT A. Multidimensional item response theory models∥Balakrishnan N,Colton T,Everitt B,et al. Wiley StatsRef:Statistics Reference Online:https://doi.org/10.1002/9781118445112.stat06401,2014-09-29.
[37]
De La TorreJ. DINA model and parameter estimation:A didactic. Journal of Educational and Behavioral Statistics,2009,34(1):115-130.
[38]
WangX Z, KouL Y, SugumaranV,et al. Emotion correlation mining through deep learning models on natural language text. IEEE Transactions on Cybernetics,2021,51(9):4400-4413.
[39]
NguyenQ P, OikawaR, DivakaranD M,et al. Markov chain monte Carlo⁃based machine unlearning:unlearning what needs to be forgotten∥Proceedings of the 2022 ACM on Asia Conference on Computer and Communications Security. New York,NY,USA:Association for Computing Machinery,2022:351-363.