cs.LGOct 27, 2026

Predicate Neuron: Differentiable Quantization of Predicate Relations in Gradient-based Learning

Authors: Ioannis Konstantoulas, Iliana Loi, Kyriakos Sgarbas

Organizations: Department of Electrical and Computer Engineering, University of Patras, Patras, Greece

Abstract

In machine learning, symbolic reasoning approaches often rely on static architectures that hinder integration into deep neural networks and gradient-based optimization. To address this, we introduce the Native Predicate Neuron, a differentiable logic-reasoning neural module that enriches standard architectures with symbolic reasoning capabilities via first-order logic quantization. The proposed neuron models relational logic by learning to alternate between operations using a single trainable parameter. It features a tailored gradient mechanism with a dual-nature formulation: executing hard logical operations during training while maintaining differentiability for backpropagation. By quantizing both its input and choice state, the Predicate Neuron approximates continuous and non-continuous functions, effectively resolving discontinuities that standard deep learning architectures struggle with. We evaluate the Predicate Neuron across Fully-Connected, Convolutional, Recurrent, and Transformer architectures on benchmarks like MNIST and Wikitext. Results show that incorporating Predicate Neurons accelerates convergence, boosts accuracy, and lowers loss in general, with particularly strong improvements in tasks requiring monotonic reasoning or handling discontinuities. Overall, the Predicate Neuron natively integrates into standard neural networks to enable fuzzy logic operations and is available in Keras and PyTorch.

Figures & tables

Explore similar work

CardsList
  1. Differentiable Logic Programming to Mitigate Reasoning Shortcuts in Neurosymbolic Systems

    Jul 23, 2026Akihiro Takemura, Katsumi InoueDifferentiable LogicDifferentiable Programming

  2. Quantitative Linear Logic for Neuro-Symbolic Learning and Verification

    May 13, 2026Thomas Flinkow, Ekaterina Komendantskaya, Matteo Capucci +1Neural Network VerificationDifferentiable Logic