VC-Dimension Based Generalization Bounds for Relational Learning

Ondrej Kuzelka, Yuyi Wang, Steven Schockaert · DOI

Abstract

Statistical Relational Learning (SRL) often involves data sampled from large, interconnected structures where the independent and identically distributed (i.i.d.) assumption does not hold. Traditional generalization bounds in this domain have relied on the cardinality of the hypothesis space, rendering them inapplicable to infinite hypothesis classes such as neural networks or models with continuous parameters. This paper establishes the first VC-dimension-based generalization bounds for relational learning. By modeling training data as a subgraph induced by nodes sampled without replacement, the authors derive bounds that depend on the VC-dimension rather than the size of the hypothesis class. These results demonstrate that the effective sample size in relational settings is $\lfloor n/k \rfloor$, providing a theoretical foundation for the analysis of modern neuro-symbolic and graph-based models.

1. Introduction

In Statistical Relational Learning (SRL), the primary objective is to model dependencies within structured data, such as social networks, knowledge graphs, or biological systems. Unlike classical machine learning, where data points are assumed to be i.i.d., relational data is inherently interconnected. A common scenario involves observing a single large graph and using a sampled fragment—a subgraph—to train a model. The fundamental theoretical question is: how well does a model's performance on a small training fragment generalize to the global structure?

Previous attempts to answer this question utilized generalization bounds based on the size of the hypothesis class. While useful for finite sets of logical formulas, these bounds fail when the hypothesis space is infinite, a common occurrence in modern models that incorporate continuous numerical attributes or differentiable architectures like Lifted Relational Neural Networks.

2. Problem Formulation

The authors address the challenge of estimating the probability that a relational formula holds true across a global domain based on a sample. They consider a setting where $n$ nodes (domain elements) are sampled uniformly without replacement from a larger global graph. The training data consists of the subgraph induced by these $n$ nodes.

The goal is to bound the deviation between the empirical risk (measured on the sample) and the true risk (on the global structure). In infinite hypothesis spaces, the cardinality $|H|$ is infinite, making standard union bounds ($\\log |H|$) diverge. To resolve this, the authors turn to the Vapnik-Chervonenkis (VC) dimension, which measures the capacity of a hypothesis class regardless of its size.

3. Methodology

The core difficulty in deriving these bounds lies in the non-independence of the sampled relational data. To overcome this, the authors employ a multi-step mathematical strategy:

3.1 Independent Block Extraction

The authors define a sampling process that partitions the $n$ sampled nodes into $\lfloor n/k \rfloor$ independent, non-overlapping fragments of size $k$. Here, $k$ represents the number of nodes involved in a specific relational formula (e.g., $k=2$ for binary predicates).

3.2 U-Statistics and Block Averages

By treating the relational sample as a form of U-statistic, the authors utilize the "average of sums-of-i.i.d. blocks" technique. This allows them to decompose the complex dependencies of the global graph into a structure that can be analyzed using tools from classical probability theory.

3.3 Moment-Generating Functions

The proof involves bounding the moment-generating function of the error. By applying Jensen’s inequality, the authors generalize the tail bounds derived from the independent blocks back to the full relational sample, effectively bridging the gap between relational sampling and i.i.d. statistical learning theory.

4. Key Theoretical Insights

The paper yields several critical insights into the nature of relational generalization:

  • Effective Sample Size: The research establishes that for a relational property involving $k$ nodes, the "effective" number of independent observations is $\lfloor n/k \rfloor$. This is significantly lower than the total number of possible tuples ($n^k$), reflecting the inherent redundancy and dependence in relational data.
  • Equivalence Classes: A key observation is that for any finite global graph, even an infinite hypothesis class can only produce a finite number of mutually non-equivalent predictions. This allows the application of finite-sample techniques before transitioning to the VC-dimension framework.
  • Applicability to Neuro-Symbolic AI: By moving beyond size-based bounds, this theory provides the first rigorous guarantees for relational models with infinite hypothesis spaces, including graph kernels and neuro-symbolic architectures.

5. Main Results

The authors present two primary theorems that characterize the generalization error:

  • Theorem 1 (Expected Error): The expected maximum deviation across the hypothesis class is bounded by: $$2 \cdot \sqrt{\frac{2d \log(2e \lfloor n/k \rfloor / d)}{\lfloor n/k \rfloor}}$$ where $d$ is the VC-dimension of the hypothesis class.

  • Theorem 2 (Tail Bound): The authors provide an exponential tail bound for the probability that the estimation error exceeds a threshold $\epsilon$.

Notably, these bounds mirror the functional form of classical VC bounds, with the standard sample size $n$ replaced by the effective relational sample size $\lfloor n/k \rfloor$.

6. Conclusion and Future Work

This work provides a vital theoretical link between VC-dimension and relational learning. However, several avenues for future research remain. The current bounds focus on the agnostic learning setting; exploring the "realizable" case (where the true model exists within the hypothesis class) could lead to faster convergence rates. Additionally, extending these results to a PAC-Bayesian framework could yield tighter, more practically applicable bounds for real-world relational datasets.

Summary updated

BibTeX
@inproceedings{kuzelka2018vc,
  author = {Ondrej Kuzelka and Yuyi Wang and Steven Schockaert},
  title = {{VC-Dimension Based Generalization Bounds for Relational Learning}},
  booktitle = {ECML/PKDD},
  year = {2018},
  doi = {10.1007/978-3-030-10928-8\_16},
}
Figure