Learning First-Order Definable Concepts over Structures of Small Degree
Introduction
Traditional machine learning models, such as neural networks or support vector machines, are often defined by their optimization procedures. This paper proposes a declarative approach to machine learning, where concepts are defined using the formal language of first-order (FO) logic over background structures like graphs or relational databases. While logic offers high expressivity for relational data, it typically incurs high computational costs. This research identifies a specific structural constraint—polylogarithmic degree—under which FO-definable concepts become learnable in sublinear (polylogarithmic) time.
Problem Statement: Logic as a Hypothesis Space
The authors define a concept using an FO formula $\phi(\bar{x}; \bar{y})$, where $\bar{x}$ represents instance variables (the items to be classified) and $\bar{y}$ represents parameter variables that adapt the formula to a specific dataset. The goal is to find a formula and parameters that correctly classify instances based on the underlying relational structure.
As illustrated in the figure above, a background structure can be a directed graph where nodes have attributes (like colors). A first-order formula might define a concept such as "all red nodes that have a path of length 2 to a white node." The challenge is learning such rules efficiently when the background structure is massive. The authors investigate whether we can learn these concepts without scanning the entire structure.
Methodology: Exploiting Locality
The core of the proposed learning algorithm relies on Gaifman’s Locality Theorem. This theorem posits that any FO formula is "local"—its truth value for a set of variables depends only on the neighborhood of those variables within a fixed radius.
The authors design an algorithm, $\mathfrak{L}$, that leverages this locality:
- Local Access: The algorithm does not scan the entire structure $B$. Instead, it only queries the local neighborhoods of the vertices provided in the training set.
- Restricted Search Space: By focusing on "local types," the algorithm reduces the search space to a finite set of formulas and parameters within a small distance of the training data.
- Brute-Force Search: Theoretically, the algorithm iterates through all possible local formulas of a specific quantifier rank. While this approach is computationally intensive in terms of constants, its complexity relative to the database size $n$ remains polylogarithmic.
Key Theoretical Results
The paper provides several landmark proofs regarding the learnability of these concepts:
- PAC Learnability (Theorem 1.1): For structures where the maximum degree is polylogarithmic in $n$, FO-definable concepts are learnable in polylogarithmic time in the Probably Approximately Correct (PAC) framework.
- Agnostic Learning: The framework extends to the agnostic setting (Theorem 4.4), where the algorithm finds a hypothesis that minimizes training error even if no perfect FO formula exists for the data.
- VC-Dimension: The authors show that FO-definable concepts over bounded-degree structures have finite Vapnik-Chervonenkis (VC) dimension, a critical requirement for efficient generalization.
- Complexity Bounds: The running time is bounded by $O((\log n + d + t)^{O(1)})$, where $d$ is the maximum degree and $t$ is the number of training examples.
Discussion and Limitations
While the theoretical results are significant, the authors note several practical hurdles. The "hidden constants" in the polylogarithmic complexity—specifically the exponents related to the quantifier rank of the formulas—are currently too large for practical applications. Furthermore, the reliance on low-degree structures limits the applicability to dense graphs.
Future work aims to bridge the gap between this logical framework and practical machine learning. This includes exploring more powerful logics (like Monadic Second-Order logic) and investigating structures with high degrees but limited connectivity, such as planar graphs or those with bounded treewidth. Additionally, mapping these logical "local types" to feature vectors for use in modern ML libraries remains a promising avenue for research.
Summary updated