arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.02830cs.CL
收藏

GRADE: 通过梯度子空间动态探测语言模型中的知识差距

GRADE: Probing Knowledge Gaps in LLMs through Gradient Subspace Dynamics

Beihang University(北航);Cardiff University(卡迪夫大学);King’s College London(伦敦国王学院)

Yujing Wang, Yuanbang Liang, Yukun Lai, Hainan Zhang, Hanqi Yan

AI总结:

GRADE通过梯度子空间动态探测语言模型中的知识差距,量化知识缺口并验证其在多个基准上的有效性及抗扰性。

摘要:

检测模型内部知识是否足以正确回答给定问题是部署负责任的大语言模型的基本挑战。除了通过LLM自报告外,最近的方法探索模型内部,如响应标记的隐藏状态,以捕捉激活的知识量。我们提出GRADE(梯度动态知识缺口检测),通过梯度跨层秩比与相应隐藏状态子空间的比值量化知识缺口。这受到梯度作为给定目标所需知识更新估计器的性质的启发。我们验证了GRADE在六个基准上的有效性,并展示了其对输入扰动的鲁棒性。此外,我们还展示了梯度链如何为长形式回答生成可解释的知识缺口解释。

英文摘要:

Detecting whether a model's internal knowledge is sufficient to correctly answer a given question is a fundamental challenge in deploying responsible LLMs. In addition to verbalising the confidence by LLM self-report, more recent methods explore the model internals, such as the hidden states of the response tokens, to capture how much knowledge is activated. We argue that such activated knowledge may not align with what the query requires, e.g., capturing the stylistic and length-related features that are uninformative for answering the query. To fill the gap, we propose GRADE (GRAdient Dynamics for knowlEdge gap detection), which quantifies the knowledge gap via the cross-layer rank ratio of the gradient to that of the corresponding hidden state subspace. This is motivated by the property of gradients as estimators of the required knowledge updates for a given target. We validate GRADE on six benchmarks, demonstrating its effectiveness and robustness to input perturbations. In addition, we present a case study demonstrating how the gradient chain can generate interpretable explanations of knowledge gaps in long-form answers. Code is available at https://github.com/yjEugenia/llm-aware

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑