Skip to content

aclai-lab/Sole.jl

Repository files navigation

Sole.jl – Long live transparent modeling!

A framework for symbolic, transparent, and interpretable machine learning!

Manifesto

Symbolic learning is machine learning based on symbolic logic. Its peculiarity lies in the fact that the learned models enclose an explicit knowledge representation, which offers many opportunities:

  • Verifying that the model's thought process is adequate for a given task;
  • Learning of new insights by simple inspection of the model;
  • Manual refinement of the model at a later time.

These levels of transparency (or interpretability) are generally not available with standard machine learning methods, thus, as AI permeates more and more aspects of our lives, symbolic learning is becoming increasingly popular. In spite of this, implementations of symbolic algorithms (e.g., extraction of decision trees or rules) are mostly scattered across different languages and machine learning frameworks.

Enough with this! The lesser and lesser minoritarian theory of symbolic learning deserves a programming framework of its own!

JuliaCon 2023 30-minute talk

Sole.jl

Sole.jl is a collection of Julia packages for symbolic learning and reasoning. Although at an embryonic stage, Sole.jl covers a relatively wide range of functionality that is of interest for the symbolic community, but it also fills some gaps with a few functionalities for standard machine learning pipelines. At the time of writing, the framework comprehends the following packages:

  • SoleLogics.jl provides the logical layer for symbolic learning. It provides a useful codebase for computational logic, which features easy manipulation of:
  • SoleData.jl provides the data layer for representing logisets, that is, the logical counterpart to machine learning datasets:
    • Optimized data structures, useful when learning models from datasets;
  • SoleModels.jl defines the building blocks of symbolic modeling, featuring:
    • Definitions for (logic-agnostic) symbolic models (mainly, decision rules/lists/trees/forests);
    • Support for mixed, neuro-symbolic computation.

Altogether, Sole.jl makes for a powerful tool built with an eye to formal correctness, and is of use for both machine learning practitioners and computational logicians.

Q: Ok, so what symbolic learning methods do you people provide? A: At the moment, ModalDecisionTrees.jl is the only package compatible with Sole.jl, and it provides novel decision tree algorithms based on modal temporal and spatial logics for time-series and image classification. Checkout the related talk at JuliaCon22.

Q: Why the name? A: Sole stands for SymbOlic LEarning; it also means "sun" in Italian, a hint to the enlightening power of transparent modeling.

About

The package is developed by the ACLAI Lab @ University of Ferrara.

Long live transparent modeling!