An Empirical Study on the Robustness of Knowledge Injection Techniques Against Data Degradation

Andrea Rafanelli, Matteo Magnini, Andrea Agiollo, Giovanni Ciatto, Andrea OmiciniWOA 2024 · OpenReview

Abstract

Symbolic Knowledge Injection (SKI) is a prominent approach for integrating human-defined rules into neural networks to improve performance and interpretability. However, the robustness of these neuro-symbolic systems under data degradation remains under-explored. This paper, presented at WOA 2024, proposes a novel statistical metric, the Robustness Score ($\rho$), to quantify how symbolic knowledge preserves model performance when training data is compromised by noise, missing samples, or label errors. Through an empirical study involving three injection techniques (KINS, KILL, and KBANN) across diverse classification tasks, we demonstrate that while SKI generally acts as a "safety net," its efficacy is highly dependent on the injection mechanism and the alignment of the symbolic knowledge with the underlying data distribution.

1. Introduction

Neural Networks (NNs) have achieved remarkable success across various domains but remain inherently brittle, often requiring vast amounts of high-quality data and struggling with logical consistency. Symbolic Knowledge Injection (SKI) attempts to bridge this gap by embedding human-defined rules—such as logical constraints or domain expertise—directly into sub-symbolic neural architectures. While existing research primarily focuses on the performance improvements (e.g., accuracy gains) provided by SKI, this study shifts the focus toward robustness: the ability of a model to maintain performance when trained on degraded or anomalous data.

2. Methodology: The Robustness Score ($\rho$)

The central contribution of this work is the introduction of a standardized metric to quantify robustness gain. The Robustness Score ($\rho$) measures the relationship between the magnitude of a data perturbation and the resulting change in model performance.

To mathematically quantify the extent of data degradation, the authors utilize Kullback-Leibler (KL) divergence. This allows for a precise measurement of how much a dataset's distribution has shifted due to perturbations, providing a rigorous basis for comparing robustness across different models and tasks.

3. Symbolic Knowledge Injection Mechanisms

The study evaluates three distinct SKI methodologies, each representing a different approach to knowledge integration:

  • KINS (Knowledge Injection via Neural Structure): This method augments an existing network with specific neural modules designed to mimic the behavior of logical rules.
  • KILL (Knowledge Injection via Loss Lattice): This approach incorporates a "penalty" term into the loss function, incentivizing the model to satisfy symbolic constraints during the backpropagation process.
  • KBANN (Knowledge-Based Artificial Neural Networks): This technique constructs the entire network architecture based on the structure of the provided logic rules, ensuring a deep integration of symbolic knowledge.

4. Experimental Setup

The robustness of these techniques was tested against three degradation strategies:

  1. Sample Drop: Simulating data scarcity by removing training samples.
  2. Noise Addition: Simulating sensor or measurement errors via Gaussian noise.
  3. Label Flipping: Simulating human annotation errors by intentionally mislabeling data.

Experiments were conducted on three UCI repository datasets: Breast Cancer Wisconsin (BCW), Splice Junction (PSJGS), and Census Income (CI). Domain-specific logic rules, formulated in Prolog syntax, served as the injected knowledge for each task.

5. Key Results and Discussion

The empirical results confirm that "educated" models—those with injected symbolic knowledge—are generally more resilient than standard neural networks.

5.1 Mechanism-Specific Strengths

The choice of injection mechanism significantly impacts robustness. KBANN proved most effective against missing data (Sample Drop), likely due to its architecture being fundamentally grounded in the rules. Conversely, KILL demonstrated superior performance in handling Label Flipping. By penalizing rule violations in the loss function, KILL effectively allows the model to "ignore" corrupted labels that contradict the logical constraints. For instance, on the Census Income dataset, KILL achieved a robustness gain of 1.17.

5.2 The Liability of Sub-optimal Knowledge

A critical finding emerged from the Splice Junction dataset, where the injected knowledge was incomplete (only describing one of three classes well). In scenarios with high data scarcity, this lopsided knowledge actually hindered the model, suggesting that incomplete or biased symbolic knowledge can become a liability when the training data is insufficient to correct it.

5.3 The Challenge of Noise

Across all experiments, Gaussian noise proved to be the most difficult degradation to overcome. While SKI provided some resilience, the robustness gains were notably lower compared to scenarios involving missing data or label errors.

6. Conclusion

This study provides a rigorous framework for evaluating the robustness of neuro-symbolic systems. The findings highlight that symbolic knowledge acts as a vital "insurance policy" for AI, providing a logical baseline that models can rely on when data quality falters. Future work will aim to extend this metric to regression tasks, explore the impact of more complex fuzzy logic, and evaluate the scalability of these techniques for Large Language Models (LLMs).

Summary updated

BibTeX
@inproceedings{rafanelli2024empirical,
  author = {Andrea Rafanelli and Matteo Magnini and Andrea Agiollo and Giovanni Ciatto and Andrea Omicini},
  title = {{An Empirical Study on the Robustness of Knowledge Injection Techniques Against Data Degradation}},
  booktitle = {WOA},
  year = {2024},
  url = {https://openreview.net/forum?id=hio3NuKcHb},
}
Figure