Mining conditional functional dependency rules on big data

Mingda Li, Hongzhi Wang, Jianzhong Li

Abstract

Conditional Functional Dependencies (CFDs) are critical for data cleaning and quality management. However, discovering CFDs from massive, low-quality datasets remains a significant challenge due to computational complexity and the presence of noise. This paper introduces a scalable framework that combines a novel one-pass sampling technique (BRRSC) with fault-tolerant discovery algorithms (DFCFD) and graph-based conflict resolution. Experimental results demonstrate that the framework achieves sub-linear scalability and high precision, successfully processing billion-tuple datasets where traditional methods fail.

Introduction

In modern data management, Conditional Functional Dependencies (CFDs) extend traditional functional dependencies by incorporating conditions on attribute values. For instance, while a standard dependency might state that "Zip Code determines City," a CFD specifies that "If Country is 'US', then Zip Code determines City." These rules are essential for automated data cleaning systems to identify and correct inconsistencies.

Mining CFDs from "Big Data" faces two primary hurdles: volume and quality. Massive datasets often exceed memory limits, making multi-pass algorithms impractical. Furthermore, real-world big data is frequently "dirty," containing errors that can mislead traditional discovery algorithms into producing noisy or incorrect rules. This research proposes a system designed to be both scalable and fault-tolerant to bridge this gap.

Methodology

The proposed framework follows a four-stage pipeline designed for efficiency and accuracy on large-scale, noisy data.

Overview of the proposed CFD discovery framework

1. BRRSC: Representative and Random Sampling

To handle datasets with billions of rows, the framework employs the BRRSC (Representative and Random Sampling) algorithm. This one-pass approach utilizes a reservoir-style sampling method enhanced by "tuple selection criteria." By filtering out "misleading" tuples—those that are incomplete or represent extreme outliers—the algorithm ensures that the resulting sample is representative of the general rules governing the data.

2. DFCFD: Dynamical Fault-tolerant CFD Discovery

The core discovery process involves the DFCFD algorithm, which synthesizes and "upgrades" three classic discovery methods: TANE, FastCFD, and CFDMiner. These are transformed into BCTANE, BFCFD, and BCFDM, respectively. The primary innovation is the introduction of an error threshold ($e$), allowing the system to accept rules that are "mostly" true. This fault tolerance enables the discovery of valid patterns even when the underlying data contains random entry errors.

Synthesis of three CFD discovery algorithms within the DFCFD component

3. Conflict Resolution (MWID)

Because the discovery process is fault-tolerant, it may generate contradictory rules. To resolve these, the authors model rules as nodes in a graph where edges represent conflicts. A modified Maximal Weight Independent Set (MWIS) algorithm is then applied to select the most robust and compatible set of rules based on their support in the data.

4. Adaptive Parameter Selection

The framework includes a multi-objective optimization strategy to tune parameters such as sample size and error thresholds. This allows users to balance the trade-off between discovery speed and rule quality based on specific application requirements.

Experimental Evaluation

The framework was evaluated using both synthetic and real-world datasets, including TPC-H benchmark data scaled to 1.2 billion tuples (~2.1 TB) to test extreme scalability, as well as the SUSY and DBLP article datasets.

Key Results

  • Scalability: The algorithm demonstrates sub-linear time complexity. It successfully processed a billion-tuple dataset within a reasonable timeframe, whereas traditional methods like DDQS experienced exponential increases in response time beyond 70,000 tuples.
  • Precision: Despite the presence of noise, the framework achieved over 96.5% precision, finding rules nearly identical to those discovered on perfectly clean versions of the same datasets.
  • Efficiency: On high-arity datasets (e.g., 55 attributes), the proposed method reduced discovery time by over 20% compared to standard ensemble baselines by dynamically switching between algorithms based on attribute count.

Conclusion

This research provides a mathematically rigorous and scalable solution for CFD discovery in the era of Big Data. By treating sampling as a noise filter and utilizing graph-based conflict resolution, the framework ensures high-quality rule mining from dirty datasets. Future work includes extending the implementation to distributed platforms like Spark or Flink and expanding the framework to support other types of data dependencies.

Summary updated

BibTeX
@article{li2020mining,
  author = {Mingda Li and Hongzhi Wang and Jianzhong Li},
  title = {{Mining conditional functional dependency rules on big data}},
  journal = {Big Data Min. Anal.},
  year = {2020},
  doi = {10.26599/bdma.2019.9020019},
}
Figure