[Paper Review] Foundations of Symbolic Languages for Model Interpretability
This paper introduces FOIL, a first-order logic-based declarative language for specifying interpretable queries over machine learning models, particularly decision trees and decision diagrams. It establishes the computational complexity of evaluating FOIL queries and demonstrates that efficient evaluation is achievable through structural restrictions or fragment limitations, with a prototype implementation showing practical feasibility.
Several queries and scores have recently been proposed to explain individual predictions over ML models. Given the need for flexible, reliable, and easy-to-apply interpretability methods for ML models, we foresee the need for developing declarative languages to naturally specify different explainability queries. We do this in a principled way by rooting such a language in a logic, called FOIL, that allows for expressing many simple but important explainability queries, and might serve as a core for more expressive interpretability languages. We study the computational complexity of FOIL queries over two classes of ML models often deemed to be easily interpretable: decision trees and OBDDs. Since the number of possible inputs for an ML model is exponential in its dimension, the tractability of the FOIL evaluation problem is delicate but can be achieved by either restricting the structure of the models or the fragment of FOIL being evaluated. We also present a prototype implementation of FOIL wrapped in a high-level declarative language and perform experiments showing that such a language can be used in practice.
Motivation & Objective
- To develop a principled, declarative language for specifying interpretability queries in machine learning.
- To ensure soundness and fidelity of explanations by grounding the language in formal logic (FOIL).
- To analyze the computational complexity of evaluating FOIL queries over interpretable models like decision trees and decision diagrams.
- To enable practical deployment through a prototype implementation of FOIL in a high-level declarative syntax.
- To explore the conditions under which FOIL evaluation remains tractable despite exponential input space.
Proposed method
- FOIL is defined as first-order logic with two predicates: Pos(e), indicating a full instance e is classified as positive, and e ⊆ e', indicating e' can fill undefined features of e.
- The language supports existential queries such as ∃x (Pos(x) ∧ (⊥,⊥,⊥,⊥,0,1,⊥) ⊆ x), expressing whether a model can classify a partial instance as positive.
- Real-valued features are compiled into Boolean encodings using a fixed ordering of feature values, enabling translation into FOIL’s Boolean instance space.
- Decision trees are compiled into binary decision diagrams (BDDs) that preserve model semantics while enabling efficient query evaluation.
- A key technical insight is that even non-free BDDs derived from decision trees can support efficient evaluation if paths remain consistent across gadget components.
- The evaluation algorithm leverages determinization of partial instances to check existence of positive completions, adapted from FBDD evaluation techniques.
Experimental results
Research questions
- RQ1Can a declarative logic-based language be systematically designed to express diverse interpretability queries in ML models?
- RQ2What is the computational complexity of evaluating FOIL queries over decision trees and decision diagrams?
- RQ3Under what structural or syntactic constraints does FOIL evaluation remain tractable despite the exponential input space?
- RQ4Can the formal semantics of FOIL ensure sound and faithful explanations without requiring further justification?
- RQ5To what extent can FOIL be compiled into standard data structures like BDDs while preserving query semantics and efficiency?
Key findings
- FOIL enables the specification of interpretable queries such as 'Is there a positive instance consistent with this partial input?' using a clean, logical syntax.
- The evaluation of existential FOIL queries is tractable over decision trees when compiled into BDDs, even if not strictly free, due to consistent path semantics across gadget components.
- The complexity of FOIL evaluation is polynomial when restricted to fragments or when models have bounded structure, such as in decision trees with ordered feature encodings.
- The prototype implementation demonstrates that FOIL can be used in practice, supporting interactive query formulation and model exploration in a user-friendly syntax.
- The compilation of real-valued features into Boolean encodings preserves the semantics of threshold queries, enabling correct translation into FOIL logic.
- The approach ensures that explanations are formally sound, as the logic’s semantics directly reflect the model’s behavior without approximation or ambiguity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.