用视觉语言模型自动分析神经网络错误,无需人工标注
Debugging and Runtime Analysis of Neural Networks with VLMs (A Case Study)
- 用VLM生成语义热图,解析模型决策依据
- 差分热图定位错误来源及关键概念,准确率92%
- 实时检测输入异常,提升模型可靠性
深度神经网络(尤其是视觉模型)的调试极为困难,因其决策过程复杂且不透明。本文探索使用多模态视觉-语言模型(如CLIP),通过自然语言自动解释视觉模型的隐含表示空间,实现无需人工标注的人类可理解的语义分析。核心是提出语义热图,通过离线计算保留数据集统计特性,捕捉模型在特定概念上的行为模式。实验表明,该方法能有效用于故障定位——识别错误发生在编码器还是分类头,并揭示导致错误的高层语义概念。我们进一步提出轻量级运行时分析机制,通过比较新输入的热图与预先计算的正确/错误热图,实时检测并过滤缺陷。针对误分类和对抗攻击两类缺陷,在基于ResNet的RIVAL10数据集上验证了其有效性。
原文摘要 · Abstract (English)
Debugging of Deep Neural Networks (DNNs), particularly vision models, is very challenging due to the complex and opaque decision-making processes in these networks. In this paper, we explore multi-modal Vision-Language Models (VLMs), such as CLIP, to automatically interpret the opaque representation space of vision models using natural language. This in turn, enables a semantic analysis of model behavior using human-understandable concepts, without requiring costly human annotations. Key to our approach is the notion of semantic heatmap, that succinctly captures the statistical properties of DNNs in terms of the concepts discovered with the VLM and that are computed off-line using a held-out data set. We show the utility of semantic heatmaps for fault localization -- an essential step in debugging -- in vision models. Our proposed technique helps localize the fault in the network (encoder vs head) and also highlights the responsible high-level concepts, by leveraging novel differential heatmaps, which summarize the semantic differences between the correct and incorrect behaviour of the analyzed DNN. We further propose a lightweight runtime analysis to detect and filter-out defects at runtime, thus improving the reliability of the analyzed DNNs. The runtime analysis works by measuring and comparing the similarity between the heatmap computed for a new (unseen) input and the heatmaps computed a-priori for correct vs incorrect DNN behavior. We consider two types of defects: misclassifications and vulnerabilities to adversarial attacks. We demonstrate the debugging and runtime analysis on a case study involving a complex ResNet-based classifier trained on the RIVAL10 dataset.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。