arXiv:2610.37727cs.LGOct 2026

Manuscript Offprint

arXiv:2610.37727

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

Ioannis Konstantoulas, Iliana Loi, Kyriakos Sgarbas

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

IOANNIS KONSTANTOULAS*, Department of Electrical and Computer Engineering, University of Patras, Greece

ILIANA LOI, Department of Electrical and Computer Engineering, University of Patras, Greece

KYRIAKOS SGARBAS, Department of Electrical and Computer Engineering, University of Patras, Greece

Background: In machine learning, learned symbolic approaches model reasoning by extracting data patterns that can be expressed as formal logic rules or by imposing weight-based constraints that guide neurons to approximate logical relationships. However, these approaches typically rely on static architectures that prevent them from being widely incorporated into deep neural models, while hindering seamless compatibility with gradient-based optimization across various tasks.

Objectives: To address the aforementioned problem, we introduce the Native Predicate Neuron, a differentiable logic reasoning neural module that enriches typical neural architectures with logic reasoning capabilities, in order to enhance their accuracy and convergence utilizing first-order logic quantization.

Methods: The proposed neuron natively expresses logic reasoning between relations by learning to alternate between logic operations, leveraging a single operation-selection trainable parameter. We devise a tailored gradient mechanism, where the forward pass operates through a dual-nature formulation that performs hard logical operations during training while maintaining differentiability for gradient propagation during backpropagation. Moreover, the Predicate Neuron enables the approximation of both continuous and non-continuous functions, by employing a quantization method to quantize both the neuron's input and choice state, facilitating convergence while explicitly resolving discontinuities that standard deep learning architectures struggle with.

Results: The Predicate Neuron is trained and evaluated across various deep learning architectures, including Fully-Connected, Convolutional, Recurrent and Transformer-based models, and benchmark datasets such as MNIST and Wikitext. Our results show that incorporating Predicate Neuron modules into neural structures accelerates convergence, while improving testing accuracy and accordingly reducing loss in the general case. In niche cases, where discontinuities or monotonic reasoning is required, the improvement in both convergence, accuracy and loss are staggering.

Conclusions: Overall, the proposed neuron can be natively incorporated into typical neural architectures, enabling fuzzy logic operations without decreasing the pre-existing neural network performance. The Predicate Neuron and respective custom layers integrating it, are available in Keras and Pytorch libraries ¹ ², facilitating its integration with a plethora of deep learning models.

JAIR Associate Editor: Insert JAIR AE Name

*Corresponding Author.

¹https://github.com/ioannisKonstantoulas/predicateneuron

²The Predicate Neuron is also available as a Python package and can be downloaded from: https://pypi.org/project/predicateneuron

Authors' Contact Information: Ioannis Konstantoulas, ORCID: 0009-0002-8438-6010, konstantou@ceid.upatras.gr, Department of Electrical and Computer Engineering, University of Patras, Patras, Greece; Iliana Loi, ORCID: 0000-0001-9112-0638, loi@ceid.upatras.gr, Department of Electrical and Computer Engineering, University of Patras, Patras, Greece; Kyriakos Sgarbas, ORCID: 0000-0002-1797-1343, sgarbas@upatras.gr, Department of Electrical and Computer Engineering, University of Patras, Patras, Greece.

Figure

This work is licensed under a Creative Commons Attribution International 4.0 License.

© 2026 Copyright held by the owner/author(s).

DOI: 10.1613/jair.1.xxxxxx

6:2 • Konstantoulas, Loi & Sgarbas

JAIR Reference Format:

Ioannis Konstantoulas, Iliana Loi, and Kyriakos Sgarbas. 2026. Predicate Neuron: Differentiable Quantization of Predicate Relations in Gradient-based Learning. Journal of Artificial Intelligence Research 4, Article 6 (October 2026), 23 pages. DOI: 10.1613/jair.1.xxxxx

References (30)