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

Quantifying the Loss of Acyclic Join Dependencies

Batya Kenig, Nir Weinberger · DOI

Abstract

Acyclic join dependencies (AJDs) are fundamental to database normalization, ensuring lossless decomposition. However, real-world datasets often deviate from these ideal structures. This paper establishes a formal connection between the information-theoretic $\mathcal{J}$-measure and the physical redundancy (spurious tuples) generated by approximate acyclic joins. We prove that the $\mathcal{J}$-measure is equivalent to the KL-divergence between the empirical and induced distributions. Furthermore, we provide deterministic lower bounds and probabilistic upper bounds within a random relation model, demonstrating that information-theoretic metrics serve as accurate proxies for join loss in large-scale databases.

Introduction

In database theory, acyclic schemas are prized for their computational efficiency and space-saving properties. A join dependency (JD) is considered lossless if a relation can be decomposed and subsequently reconstructed via a join operation without introducing spurious tuples. While textbooks focus on perfect JDs, practical applications often deal with "almost" acyclic data. Quantifying the degree of loss in these approximate schemas is critical for automated schema discovery and data integration.

Previous work introduced the $\mathcal{J}$-measure, an information-theoretic metric to quantify how "close" a schema is to being lossless. However, a formal connection between this abstract measure and the tangible "loss" felt by a database engineer—the number of spurious tuples—was previously missing.

Theoretical Framework: The $\mathcal{J}$-Measure as KL-Divergence

A key contribution of this work is the variational representation of the $\mathcal{J}$-measure. We prove that the $\mathcal{J}$-measure is exactly the KL-Divergence ($D_{KL}$) between the empirical distribution of the original relation and the distribution induced by the acyclic join. This identifies the $\mathcal{J}$-measure as a fundamental geometric property of the data's information structure, representing the information lost when approximating a complex multivariate distribution with a simpler, acyclic one.

Quantifying Spurious Tuples

The physical manifestation of a lossy join is the generation of "spurious tuples"—extra, redundant rows that weren't in the original data. Let $\rho(R, S)$ represent the relative number of these redundant rows. The paper establishes two primary bounds:

  1. Deterministic Lower Bound: We prove that $J(T) \leq \log(1 + \rho(R, S))$. This means if the $\mathcal{J}$-measure is high, a significant number of spurious tuples is guaranteed.
  2. Probabilistic Upper Bound: Since deterministic upper bounds are impossible due to potential "pathological" datasets, we utilize a Random Relation Model. Using tools like Poissonization and Logarithmic Sobolev Inequalities (LSIs), we show that with high probability, $\log(1 + \rho) \leq J(T) + \epsilon$, where $\epsilon$ vanishes as the database size increases.
Convergence of mutual information $I(A_S; B_S)$ towards the theoretical bound $\log(1 + \frac{d_A d_B}{N})$ as the parameter $d$ increases, demonstrating the tightness of the probabilistic model.

Key Insights and Results

As illustrated in the experimental analysis of the random relation model, the information-theoretic measures stay tightly clustered around their expected values. For large databases, the $\mathcal{J}$-measure becomes a near-perfect proxy for the physical redundancy created by the schema. This "aha moment" elevates the $\mathcal{J}$-measure from a heuristic to a fundamental property of data information geometry.

Conclusion and Future Work

By bridging database theory and information theory, this work provides a rigorous framework for evaluating approximate joins. The equivalence between KL-divergence and join loss offers a powerful tool for database engineers.

The primary limitation is the reliance on the Random Relation Model for the upper bound. Real-world data often contains functional dependencies and skew that aren't uniform. Future work will explore more complex data models to see if these tight bounds hold under more realistic, non-uniform distributions, potentially improving automated "approximate schema discovery" algorithms.

Summary updated

BibTeX
@inproceedings{kenig2023quantifying,
  author = {Batya Kenig and Nir Weinberger},
  title = {{Quantifying the Loss of Acyclic Join Dependencies}},
  booktitle = {PODS},
  year = {2023},
  doi = {10.1145/3584372.3588658},
}
Figure