Assessing the Existence of a Function in a Dataset with the g3 Indicator
Pierre Faure-Giovagnoli, Jean-Marc Petit, Vasile-Marian Scuturici
Abstract
Taking domain knowledge into account is a long-standing issue in AI, especially nowadays where huge amounts of data are collected in the hope of delivering new insights and value. Let us consider the following scenario. Let D(y, x1, . . . , xn) be a dataset, Alice a data scientist, Bob a domain expert and y = f (x1, . . . , xn) a function known by Bob from his background knowledge. We are interested in the following simple yet crucial questions for Alice: how to define the satisfaction of f in D and how difficult is it to measure that satisfaction? It turns out that those problems are related to functional dependencies (FDs) and especially FD measurements used to quantify their satisfaction in a dataset such as the g3 indicator.
In this paper, we examine the computation of g3 with crisp FDs (aka. exact FDs) and a large class of non-crisp FDs replacing strict equality by more flexible predicates. Interestingly, it is known that the computation of g3 with crisp FDs is polynomial but turns out to be NP-Hard for non-crisp FDs. In this paper, we propose different exact and approximate solutions for the computation of g3 for both types. First, for crisp FDs with very large datasets, we propose solutions based on uniform and stratified random sampling. Second, for non-crisp FDs we present a detailed computation pipeline with various computation optimizations, including approximation algorithms and adaptations of recent developments in sublinear algorithms for NP-Hard problems.
We also propose an in-depth experimental study of the algorithms presented in terms of time performances and approximation accuracy. All the algorithms are also made available through FASTG3, an open-source Python library designed to be intuitive and efficient thanks to an underlying C++ implementation.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers1
Ask how each one uses itRelated papers
- Anytime Algorithms for Approximate Functional DependenciesSanjivni Rana, Junya Ogawa, Suraj Shetiya, Senjuti Basu Roy et al.KDD 2025
- Efficient Discovery of Relaxed Functional DependenciesMengran Li, Zijing Tan, Honghui Yang, Shuai MaVLDB 2025
- IndiBits: Incremental Discovery of Relaxed Functional Dependencies using Bitwise SimilarityBernardo Breve, Loredana Caruccio, Stefano Cirillo, Vincenzo Deufemia et al.ICDE 2023 · 7 citations
- Capturing Associations in GraphsWenfei Fan, Ruochun Jin, Muyang Liu, Ping Lu et al.VLDB 2020 · 33 citations
- Improving Data Imputation Through a Tuned Strategy for Dependency DiscoveryBernardo Breve, Loredana Caruccio, Tullio Pizzuti, Giuseppe PoleseICDE 2026
