Beyond Single-Value Metrics: Evaluating and Enhancing LLM Unlearning with Cognitive Diagnosis
Yicheng Lang, Kehan Guo, Yue Huang, Yujun Zhou, Haomin Zhuang, Tianyu Yang, Yao Su, Xiangliang Zhang
TL;DR
The paper tackles the inadequacy of single-value metrics for assessing LLM unlearning by introducing UNCD, a Cognitive Diagnosis Modeling-based framework that enables fine-grained forgetting evaluation. It provides UNCD-Cyber, a cyberattack-focused benchmark, and UNCD-Agent, a data-generation approach for targeted forgetting. Across two base models and eight unlearning methods, UNCD exposes residual harmful knowledge that QA metrics overlook, and demonstrates improved forgetting when CDM-guided diagnostics inform data generation. This granular evaluation approach offers a practical pathway to safer, more effective unlearning in LLMs via iterative refinement.
Abstract
Due to the widespread use of LLMs and the rising critical ethical and safety concerns, LLM unlearning methods have been developed to remove harmful knowledge and undesirable capabilities. In this context, evaluations are mostly based on single-value metrics such as QA accuracy. However, these metrics often fail to capture the nuanced retention of harmful knowledge components, making it difficult to assess the true effectiveness of unlearning. To address this issue, we propose UNCD (UNlearning evaluation via Cognitive Diagnosis), a novel framework that leverages Cognitive Diagnosis Modeling for fine-grained evaluation of LLM unlearning. Our dedicated benchmark, UNCD-Cyber, provides a detailed assessment of the removal of dangerous capabilities. Moreover, we introduce UNCD-Agent, which refines unlearning by diagnosing knowledge remnants and generating targeted unlearning data. Extensive experiments across eight unlearning methods and two base models demonstrate that UNCD not only enhances evaluation but also effectively facilitates the removal of harmful LLM abilities.
