NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multitask Kernel-based Learning with Logic Constraints

Michelangelo Diligenti, Marco Gori, Marco Maggini, Leonardo RigutiniECAI 2010 · DOI

Abstract

This paper introduces a framework for "semantic-based regularization," integrating First-Order Logic (FOL) constraints into kernel-based multi-task learning. By mapping logical rules to continuous penalty functions via t-norms, the authors bridge symbolic knowledge and statistical learning. The framework employs a two-stage "Piagetian" learning strategy to navigate non-convex optimization. Evaluation on high-dimensional benchmarks shows that logic constraints significantly enhance accuracy and data efficiency, particularly when labeled data is sparse.

Introduction

Standard machine learning models, such as Support Vector Machines (SVMs), excel at pattern recognition but often fail to incorporate known domain rules. In high-dimensional spaces where labeled data is scarce—a challenge known as the "curse of dimensionality"—statistical models frequently struggle to generalize. This research addresses the gap between symbolic logic, representing high-level human knowledge, and statistical learning, which operates on raw data. The goal is to enforce logical relationships (e.g., taxonomic hierarchies) within the learning algorithm itself.

Methodology

The proposed multi-task learning scheme treats each task as learning a specific unary predicate. To integrate logic into a gradient-based optimization framework, the authors utilize t-norms (specifically the product t-norm) to map Boolean operations (AND, OR, NOT) onto continuous, differentiable functions in the range [0, 1].

The objective function is formulated as a primal optimization problem:

  1. Loss Term: Measures the fit to labeled data.
  2. Regularization Term: Ensures model smoothness via the RKHS norm.
  3. Penalty Term: Penalizes violations of logic constraints on both labeled and unlabeled data.

Despite the complexity of these logic penalties, the authors prove a Representer Theorem, showing the optimal solution remains a kernel expansion over available samples. To mitigate the risk of local minima in the non-convex cost function, a two-stage Piagetian Learning strategy is used: the model is first initialized on labels alone before introducing logic constraints.

Experimental Setup

The framework was evaluated on three artificial benchmarks designed to test dimensionality and logical complexity:

  • Exponentially Increasing Class Regions: Evaluates handling of varying data density.
  • 3-Class Hierarchy: Tests resilience to increasing input dimensions (3D to 10D) where specific class implications exist.
  • 4-Class Complex Logic: Involves nested logical implications to test the limits of the t-norm implementation.
Model performance across various logical benchmarks: (a) 3-class hierarchy, (b) 4-class complex logic, and (c) high-dimensional logic tasks.

Key Results and Discussion

The inclusion of logic constraints acts as a semi-supervised bridge, allowing the model to leverage unlabeled data to understand the feature space's structure.

Accuracy improvements as a function of supervised patterns and unsupervised logic constraints.

Key findings include:

  • Significant Accuracy Gains: In high-dimensional tests, the logic-constrained model outperformed standard kernel machines by approximately 20% in accuracy.
  • Data Efficiency: The benefits of logic were most pronounced with low supervised sample counts. As labeled data increased, standard models eventually converged toward the logic-constrained performance, indicating that logic effectively substitutes for missing labels.
  • Statistical Significance: T-student tests confirmed the improvements were statistically significant across multiple experimental runs.

Conclusion

Semantic-based regularization provides a robust method for injecting domain knowledge into statistical learners. While the current framework handles unary predicates, future work aims to extend this to relational logic and address the computational complexity of kernel expansions on massive datasets.

Summary updated

BibTeX
@inproceedings{diligenti2010multitask,
  author = {Michelangelo Diligenti and Marco Gori and Marco Maggini and Leonardo Rigutini},
  title = {{Multitask Kernel-based Learning with Logic Constraints}},
  booktitle = {ECAI},
  year = {2010},
  doi = {10.3233/978-1-60750-606-5-433},
}
Figure