arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.13073cs.LGcs.CV
收藏

使用逻辑编程和核分组提升卷积神经网络的可解释性

Using Logic Programming and Kernel-Grouping for Improving Interpretability of Convolutional Neural Networks

The University of Texas at Dallas(德克萨斯大学达拉斯分校)

Parth Padalkar, Gopal Gupta

AI总结:

提出神经符号框架NeSyFOLD-G,通过核分组算法和RBML算法FOLD-SE-M将CNN最后一层转化为可解释的逻辑规则集,显著减小规则集规模并提升模型可解释性。

摘要:

在深度学习领域,卷积神经网络(CNN)的可解释性,尤其是在图像分类任务背景下,仍然是一个巨大的挑战。为此,我们提出了一个神经符号框架 NeSyFOLD-G,它使用 CNN 的最后一层核生成符号规则集,使其底层知识具有可解释性。NeSyFOLD-G 与其他类似框架的不同之处在于,我们首先利用各种核生成的特征图之间的余弦相似度,在 CNN 中找到相似核的组(核分组)。一旦找到这样的核组,我们就对 CNN 中每个核组的输出进行二值化,并用它生成一个二值化表,作为基于规则的机器学习(RBML)算法 FOLD-SE-M 的输入数据。然后,FOLD-SE-M 生成可用于进行预测的规则集。我们提出了一种新颖的核分组算法,并表明对相似核进行分组可以显著减小 FOLD-SE-M 生成的规则集的规模,从而提高可解释性。该规则集以符号方式封装了已训练 CNN 的连接主义知识。该规则集可以被视为一个正规逻辑程序,其中每个谓词的真值取决于 CNN 中的一个核组。使用用于训练的图像的少量语义分割掩码,将规则集中的每个谓词映射到一个概念,使其易于人类理解。然后可以用该规则集替换 CNN 的最后一层,从而获得 NeSy-G 模型,随后该模型可用于图像分类任务。目标导向的 ASP 系统 s(CASP) 可用于获取使用 NeSy-G 模型做出的任何预测的依据。我们还提出了一种新颖的算法,用其相应核组所表示的语义概念来标记规则集中的每个谓词。

英文摘要:

Within the realm of deep learning, the interpretability of Convolutional Neural Networks (CNNs), particularly in the context of image classification tasks, remains a formidable challenge. To this end we present a neurosymbolic framework, NeSyFOLD-G that generates a symbolic rule-set using the last layer kernels of the CNN to make its underlying knowledge interpretable. What makes NeSyFOLD-G different from other similar frameworks is that we first find groups of similar kernels in the CNN (kernel-grouping) using the cosine-similarity between the feature maps generated by various kernels. Once such kernel groups are found, we binarize each kernel group's output in the CNN and use it to generate a binarization table which serves as input data to FOLD-SE-M which is a Rule Based Machine Learning (RBML) algorithm. FOLD-SE-M then generates a rule-set that can be used to make predictions. We present a novel kernel grouping algorithm and show that grouping similar kernels leads to a significant reduction in the size of the rule-set generated by FOLD-SE-M, consequently, improving the interpretability. This rule-set symbolically encapsulates the connectionist knowledge of the trained CNN. The rule-set can be viewed as a normal logic program wherein each predicate's truth value depends on a kernel group in the CNN. Each predicate in the rule-set is mapped to a concept using a few semantic segmentation masks of the images used for training, to make it human-understandable. The last layers of the CNN can then be replaced by this rule-set to obtain the NeSy-G model which can then be used for the image classification task. The goal directed ASP system s(CASP) can be used to obtain the justification of any prediction made using the NeSy-G model. We also propose a novel algorithm for labeling each predicate in the rule-set with the semantic concept(s) that its corresponding kernel group represents.

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

↑