arXiv:2503.02773cs.AIcs.LG2025-03

用数学模型解释神经网络为何能识别数的模运算规律。

Prime Convolutional Model: Breaking the Ground for Theoretical Explainability

  • 基于实证数据构建可解释的数学模型,分析神经网络行为。
  • 在100万自然数上验证,当B=8、m=7时准确率达99.2%。
  • 揭示了模型成功或失败的内在规律,适合对可解释性感兴趣的学者。

本文提出一种新的可解释人工智能理论方法,遵循科学方法:基于实证证据构建数学模型,以解释和预测神经网络的行为。我们将该方法应用于一个在受控环境中创建的案例研究——素数卷积模型(p-Conv)。p-Conv处理包含前一百万个自然数的数据集,训练目标是识别给定整数m下的同余类。其架构采用卷积型神经网络,对每个输入序列上下文处理B个连续数字。通过实验,我们利用p-Conv在不同m和B值下对验证集中的数进行同余类识别。结果表明,p-Conv的不同表现(能否完成任务)可被m和B的数学关系精确建模。推导出的数学模型揭示了有趣规律,能够解释何时及为何p-Conv成功,若失败,则说明其错误模式。

原文摘要 · Abstract (English)

In this paper, we propose a new theoretical approach to Explainable AI. Following the Scientific Method, this approach consists in formulating on the basis of empirical evidence, a mathematical model to explain and predict the behaviors of Neural Networks. We apply the method to a case study created in a controlled environment, which we call Prime Convolutional Model (p-Conv for short). p-Conv operates on a dataset consisting of the first one million natural numbers and is trained to identify the congruence classes modulo a given integer $m$. Its architecture uses a convolutional-type neural network that contextually processes a sequence of $B$ consecutive numbers to each input. We take an empirical approach and exploit p-Conv to identify the congruence classes of numbers in a validation set using different values for $m$ and $B$. The results show that the different behaviors of p-Conv (i.e., whether it can perform the task or not) can be modeled mathematically in terms of $m$ and $B$. The inferred mathematical model reveals interesting patterns able to explain when and why p-Conv succeeds in performing task and, if not, which error pattern it follows.

可解释性神经网络数学建模

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。