Integrating Fuzzy Logic into Deep Symbolic Regression

Wout Gerdes, Erman AcararXiv 2024 · DOI

Abstract

Credit card fraud detection systems face a critical "transparency paradox": while deep learning models offer high accuracy, their "black-box" nature complicates compliance with regulations like the GDPR. This paper introduces a novel framework that integrates fuzzy logic into Deep Symbolic Regression (DSR). By replacing standard mathematical operators with fuzzy implications, the authors generate human-readable models capable of handling data uncertainty. Experimental results on the PaySim dataset demonstrate that while fuzzy DSR currently trails state-of-the-art models in raw performance, it provides a significant leap in model transparency and reasoning alignment.

Introduction

The financial sector is increasingly reliant on automated systems to detect fraudulent transactions. However, the complexity of modern deep learning models often obscures the reasoning behind specific flags. Symbolic Regression (SR) offers a potential remedy by discovering closed-form mathematical equations; yet, standard SR struggles with the "vagueness" of real-world data. For instance, a "high" transaction amount is a relative concept rather than a fixed threshold. To address this, we propose a framework that incorporates fuzzy logic into DSR to manage inherent uncertainty while maintaining interpretability.

Methodology

The core of our approach builds upon Deep Symbolic Regression (DSR), which utilizes a Recurrent Neural Network (RNN) trained via Reinforcement Learning to search for optimal symbolic expressions. We extend this by augmenting the model’s operator library with fuzzy logic components.

Fuzzy Operator Library

Instead of traditional arithmetic operators ($+$, $-$, $\times$, $\div$), we introduce T-norms (fuzzy AND), T-conorms (fuzzy OR), and S-implications (fuzzy IF-THEN). We specifically evaluated three logic systems: Gödel, Product, and Łukasiewicz. The mathematical definitions for these operators are detailed in the table below.

Table 1: Definitions of fuzzy operators across Gödel, Product, and Łukasiewicz logic systems.

Data Fuzzification and Constraints

Continuous features, such as transaction amounts, are transformed into fuzzy sets based on percentiles (e.g., 0.2, 0.4, 0.6, 0.8). This allows the model to reason about "degrees of truth." Additionally, we tested a "constrained" implementation where the model was forced to use an S-implication as the root of the expression tree, ensuring the output always follows a logical rule structure.

Experimental Setup

The framework was evaluated using the PaySim dataset, a synthetic simulation of over 6 million mobile money transactions. The dataset is highly imbalanced, with only 0.13% of transactions being fraudulent. Consequently, performance was measured using F1 and F2 scores rather than simple accuracy.

Results and Discussion

Our analysis revealed a clear trade-off between performance and interpretability across different fuzzy logic systems.

Performance vs. Explainability

The Łukasiewicz implication emerged as the performance leader, achieving the highest F1-score (0.193) and Recall (0.256). Conversely, the Product implication served as the "sweet spot" for explainability, producing significantly simpler and more compact formulas (average complexity of 13.9 vs. 15.9 for Łukasiewicz).

Figure 1: Pareto fronts for Łukasiewicz and Product logic systems, illustrating the trade-off between model reward (F1-score) and complexity.

Structural Insights

Interestingly, forcing the model into a strict "If-Then" structure (constrained implementation) resulted in a performance penalty. The model achieved better results when allowed to discover its own logical structures autonomously. Furthermore, the conversion of precise numerical data into fuzzy categories led to an "information loss" trade-off. This explains why the fuzzy DSR model currently trails behind non-interpretable state-of-the-art models like XGBoost (F1-score of 0.84).

Conclusion

This work serves as a proof-of-concept for a new class of Explainable AI (XAI). By integrating fuzzy logic into symbolic regression, we can produce models that mirror human expert reasoning—such as "If transaction amount is high AND receiver balance is low, then fraud is likely." Future work will focus on reducing information loss through unsupervised fuzzy clustering and exploring more modern symbolic architectures to bridge the performance gap with black-box models.

Summary updated

BibTeX
@misc{gerdes2024integrating,
  author = {Wout Gerdes and Erman Acar},
  title = {{Integrating Fuzzy Logic into Deep Symbolic Regression}},
  year = {2024},
  eprint = {2411.00431},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.00431},
}
Figure