通过激活匹配生成简洁可读的模型决策解释并发现内部计算回路
EXP-CAM: Explanation Generation and Circuit Discovery Using Classifier Activation Matching
- 用轻量级自编码器学习二值掩码,聚焦图像关键区域
- 生成的解释能忠实保留模型预测结果且结构紧凑
- 可进一步构建通道级图谱,揭示模型内部决策机制
机器学习模型在训练中会习得大量决策规则,但高维输入空间下这些规则难以识别与解释。本文提出EXP-CAM:一种基于分类器激活匹配的解释生成与电路发现方法。该方法通过训练轻量级自编码器生成二值掩码,聚焦图像决策关键区域,同时抑制无关背景。训练目标融合多层激活对齐、输出标签一致性、稀疏性与紧凑性先验,以及保证解释忠实性的鲁棒性约束。生成的最小解释不仅保持原模型决策,还具备简洁性和可读性。进一步地,通过前向传播与梯度分析,构建通道级图谱,以入边权重乘源激活、特征到类别连接以分类权重乘特征激活进行评分。该方法实现了从输入级最小解释到模型内部计算机制的可解释桥梁。
原文摘要 · Abstract (English)
Machine learning models, by virtue of training, learn a large repertoire of decision rules for any given input, and any one of these may suffice to justify a prediction. However, in high-dimensional input spaces, such rules are difficult to identify and interpret. In this paper, we introduce EXP-CAM: an explanation generation and circuit discovery approach using Classifier Activation Matching. EXP-CAM can generate minimal and faithful explanations for the decisions of pre-trained image classifiers that not only preserve the model's decision but are also concise and human-readable. We aim to identify minimal explanations that not only preserve the model's decision but are also concise and human-readable. To achieve this, we train a lightweight auto-encoder to produce binary masks that learns to highlight the decision-wise critical regions of an image while discarding irrelevant background. The training objective integrates activation alignment across multiple layers, consistency at the output label, priors that encourage sparsity, and compactness, along with a robustness constraint that enforces faithfulness. The minimal explanations so generated also lead us to mechanistically interpreting the model internals. In this regard we also introduce a circuit readout procedure wherein using the explanation's forward pass and gradients, we identify active channels and construct a channel-level graph, scoring inter-layer edges by ingress weight magnitude times source activation and feature-to-class links by classifier weight magnitude times feature activation. Together, these contributions provide a practical bridge between minimal input-level explanations and a mechanistic understanding of the internal computations driving model decisions.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。