Introduction
Deep learning models are often criticized as "black boxes." While the underlying mathematics—primarily element-wise multiplications and additions—is well-understood, explaining why a specific computation leads to a particular decision remains challenging. In probabilistic logic, standard multiplication ($x \cdot w$) in convolutional layers can be interpreted as a fuzzy AND operation. While some researchers have explored XOR operations to improve interpretability, these are typically manually prescribed. This paper investigates whether a neural network can learn its own logical operators from scratch, potentially uncovering more efficient processing methods and clearer internal "reasoning."
The Universal Logic Operator (ULO)
The authors introduce the Universal Logic Operator (ULO), a parametric binary function capable of representing various classical logic rules through its learnable parameters. The ULO is defined as:
$$U_\theta(x, y) = \alpha xy + \beta y + \gamma x + b$$
where $x$ and $y$ represent the input and weight, respectively, and $\theta = \{\alpha, \beta, \gamma, b\}$ are the parameters optimized during training. By adjusting these four values, the ULO can instantiate several fundamental logic gates.
During training, the network optimizes these parameters alongside standard weights and biases, allowing individual kernels to evolve into specific logic gates (e.g., AND, OR, XOR) or complex mixtures thereof.
Experimental Evaluation
The ULO-based approach was evaluated on three standard image classification benchmarks: MNIST (7-layer CNN), CIFAR-10 (21-layer ResNet), and CIFAR-100 (21-layer ResNet). The performance of ULO-equipped networks was compared against architectures using fixed operators (AND, OR, XOR, MP) and the Parametric Activation Function (PAF).
Results and Key Insights
The experimental results demonstrate that ULO-based networks achieve comparable or superior accuracy to standard multiplication-based ("AND") networks across all tested datasets.
Key Findings:
- Performance and Convergence: ULO significantly outperformed fixed logic alternatives like OR or Modus Ponens, which showed slower learning and lower final accuracy. It also proved more robust than the single-parameter PAF, especially on the complex CIFAR-100 dataset.
- The Dominance of AND: When initialized randomly, ULO parameters frequently gravitated toward the "AND" region. This suggests that standard multiplication is a naturally effective choice for image data, though not the only viable one.
- Interpretability: By visualizing the $(\alpha, \beta, \gamma)$ parameters on a 3D unit ball, researchers can observe the network's logic evolving from random noise into structured clusters near specific logic rules. This provides a bridge between connectionist neural networks and symbolic logic.
- Logical Mixtures: Many learned ULOs do not map perfectly to a single classical category but instead form "mixed" behaviors. These mixtures may capture nuances in data that standard multiplication misses.
Conclusion and Future Work
The Universal Logic Operator offers a promising path toward more interpretable deep learning by allowing networks to learn their own inference rules. While it introduces a small parameter overhead (three additional parameters per kernel), the potential for mapping these learned rules directly to hardware logic gates could lead to highly efficient, low-power inference. Future research will focus on deepening the connection between network optimization and logical inference, aiming for models that can explain decisions through explicit logical statements.
Summary updated