Scalable extraction and visualization of multi-attribute logical and functional dependencies in tabular data
Authors: Chaithra Umesh, Arvind Lomrore, Neethu D, Kristian Seegel-Schultz, Saptarshi Bej, Olaf Wolkenhauer
Organizations: Institute of Computer Science, University of Rostock, Germany · School of Data Science, Indian Institute of Science Education and Research, Thiruvananthapuram, India · Leibniz-Institute for Food Systems Biology, Technical University of Munich, Freising, Germany · Stellenbosch Institute for Advanced Study, South Africa
Understanding the structural relationships among attributes in tabular data is fundamental to machine learning and pattern recognition. While functional dependency (FD) discovery has been extensively studied, scalable discovery of logical dependencies (LDs), particularly as the number of attributes and dependency order increase, remains underexplored. These dependencies capture non-deterministic, condition-specific relationships among pairwise or multiple attributes. Furthermore, existing approaches do not provide a unified framework for extracting multi-attribute LDs and FDs. To address these limitations, we propose LDTool and HLDTool for extracting and visualizing multi-attribute LDs and FDs from tabular data. LDTool extends dependency discovery beyond pairwise relationships, while HLDTool enables scalable extraction through hypergraph-guided search-space reduction. Experiments on three simulated and eleven real-world datasets demonstrate that the proposed framework extracts meaningful LDs and FDs while improving scalability. LDTool recovers the same FDs as existing FD discovery methods with lower runtime in high-dimensional feature spaces, whereas HLDTool enables dependency discovery in datasets with hundreds of features. The proposed framework provides interpretable visualizations of dependency structures and supports applications in exploratory data analysis and the quantitative evaluation of synthetic tabular data.
Figures & tables
Figure 1 : Overview of the proposed dependency extraction framework. LDTool performs direct extraction of multi-attribute logical and functional dependencies in low-dimensional datasets. For high-dimensional feature spaces, HLDTool employs hypergraph-guided dependency discovery, while a feature-tree–based approximation accelerates the construction of the dependency matrix for very high-dimensional datasets.
Dataset
Rows
Attrs.
FDs
LDs
Simulated_data_3 [ 37 ]
100
8
6
17
Simulated_data_4 [ 37 ]
100
15
33
214
Shopping behavior [ 20 ]
3900
15
1
1527
Adult [ 1 ]
47592
15
2
700
Online shopping [ 31 ]
12330
18
1
518
Migraine [ 32 ]
377
20
33
1308
Table 1: Summary of the experimental datasets together with the number of extracted FDs and LDs. Dependencies are reported up to the third layer, except for METABRIC and Tic insurance , where only first and second layer dependencies are extracted because of the high feature dimensionality.
Dataset dimensionality
Tool
Low-dimensional
LDTool
High-dimensional
HLDTool
Table 2 : Selection of dependency extraction tools based on dataset dimensionality.
Figure 2 : Extracted logical and functional dependencies from the global house purchase and global student digital behavior datasets using LDTool . The extracted LDs capture meaningful relationships, such as those between city and salary and between field of study and stress level. Since FDs are a special case of LDs, LDTool identifies both local logical patterns and globally valid dependencies. Lower q -values indicate stronger logical dependencies.
Dataset
Designed dependencies
Extracted by LDTool
Simulated_data_3
4
4
Simulated_data_4
11
10
Simulated_data_7
6
6
Table 3 : Validation of LDTool using explicitly designed dependencies in the simulated datasets.
Figure 3 : Evaluation of HLDTool on the US Census , TIC Insurance , and METABRIC datasets. (a) Scalability with respect to the maximum hyperedge size. (b) Effect of the hypergraph construction threshold τH . Increasing either parameter recovers higher-order LDs and FDs, but at the cost of gradually increasing runtime. As exhaustive higher-order dependency extraction becomes computationally infeasible for high-dimensional datasets, HLDTool provides a scalable and configurable alternative that enables practical dependency discovery.
Brute-force
VP-tree
Dataset
Time
LDs
FDs
Time
LDs
FDs
Mushroom
1.05s
31
2
0.93s
31
2
House purchase
1.34s
187
1
0.46s
187
1
Consumer shopping
1.43s
129
0
0.44s
129
0
Simulated_data_7
1.69s
10
4
0.46s
10
4
Student behavior
3.00s
617
35
0.54s
436
34
Table 4 : Comparison of brute-force and VP-tree computation of the Q -matrix for first-layer LD and FD extraction. The VP-tree substantially reduces runtime while recovering most dependencies.
Dataset
Features
FDTool
LDTool (FD)
LDTool (FD+LD)
Simulated_data_3
8
0:00.084
0:00.492
0:00.881
Simulated_data_4
15
0:00.364
0:01.766
0:09.088
Shopping behavior
15
0:02.536
0:05.186
0:15.424
Adult
15
0:04.173
0:23.036
0:36.305
Online shopping
18
0:05.919
0:26.273
0:45.920
Migraine
20
0:02.029
0:10.035
0:37.046
Table 5 : Runtime comparison between FDTool and the proposed LDTool for dependency extraction up to the first three layers across the same datasets, except for METABRIC , which is restricted to the first layer due to its high dimensionality. Runtime is reported as minutes: seconds (mm:ss.sss). While FDTool extracts only FDs, LDTool extracts both LDs and FDs. For smaller datasets, LDTool extracts both dependency types in runtime comparable to FDTool . When restricted to FD extraction, LDTool requires less time, particularly for datasets with a larger number of features, while identifying the same number of FDs.
Figure 4 : Comparison of force-directed, dendrogram, hypergraph, and manually constructed FDTool visualizations for simulated_data_4 . All visualizations consistently recover the same dependency groups. In the FDTool graph, arrows denote FDs and double-headed arrows denote bidirectional (bijective) dependencies.
Anomaly detection in tabular data is challenging due to high dimensionality, complex feature dependencies, and heterogeneous noise. Many existing methods rely on proximity-based cues and may miss anomalies caused by violations of complex feature dependencies. Dependency-based anomaly detection provides a principled alternative by identifying anomalies as violations of dependencies among features. However, existing methods often struggle to model such dependencies robustly and to scale to high-dimensional data with complex dependency structures. To address these challenges, we propose uLEAD-TabPFN, a dependency-based anomaly detection framework built on Prior-Data Fitted Networks (PFNs). uLEAD-TabPFN identifies anomalies as violations of conditional dependencies in a learned latent space, leveraging frozen PFNs for dependency estimation. Combined with uncertainty-aware scoring, the proposed framework enables robust and scalable anomaly detection. Experiments on 57 tabular datasets from ADBench show that uLEAD-TabPFN achieves particularly strong performance in medium- and high-dimensional settings, where it attains the top average rank. On high-dimensional datasets, uLEAD-TabPFN improves the average ROC-AUC by nearly 20% over the average baseline and by approximately 2.8% over the best-performing baseline, while maintaining overall superior performance compared to state-of-the-art methods. Further analysis shows that uLEAD-TabPFN provides complementary anomaly detection capability, achieving strong performance on datasets where many existing methods struggle.
Matching dependency is a generalization of the functional dependency concept, which allows users to apply custom similarity functions for matching individual attributes. Matching dependencies have a wide range of applications for solving various data quality problems, such as entity resolution, data deduplication, data integration, schema matching, and many more. However, their discovery is a very computationally intensive problem, which limits their practical application. In this paper, we describe a number of optimization techniques for HyMD - currently the state-of-the-art algorithm for the discovery of matching dependencies. These optimizations belong to both technical and scientific domains. The most important of them are: 1) a new sampling technique, 2) a faster generalization lookup technique, and 3) an improved representation of a dependency. The first one aims to raise the efficiency of inference from record pairs, while the last two are designed to speed up lattice-related operations. To evaluate our optimizations, we implemented our version of HyMD in Desbordante, an open-source high-performance data profiler. Experiments demonstrated that they allow for a speedup of more than 40x over the state-of-the-art implementation on average, reaching a speedup greater than 170x in some cases. Finally, the improved version of HyMD is ready to use by anyone. It comes with bidirectional Python integration, which allows calling the C++ algorithm implementation from Python programs while allowing users to supply their custom matching functions.
Alexey Shlyonskikh, Michael Sinelnikov, Daniil Nikolaev +2
Saint-Petersburg University Saint-Petersburg, Russia
Data profiling aims to extract complex patterns from data for further analysis and use that data in domains such as data cleaning, data deduplication, anomaly detection, and many more. Functional dependencies (FDs) are one of the most well-known patterns. However, they are poorly suited for these tasks, as real data is usually dirty, and the rigid definition of FDs does not allow algorithms to locate them. For this reason, there are several formulations aimed at relaxing FDs to support dirty data, with approximate functional dependency (AFD) being the most popular one. Another formulation is the Probabilistic Functional Dependency (pFD), which we aim to support inside Desbordante - a science-intensive, high-performance and open-source data profiling tool implemented in C++. However, pFDs are relatively poorly studied, compared to AFDs. In this paper we study pFDs, both analytically and empirically. We start by assessing how different pFDs and AFDs are by studying cases in which pFDs have an edge over AFDs. Then, we implement the algorithm for pFD discovery, as well as study its run time and memory consumption. We also compare it with an AFD discovery algorithm. Lastly, we study the output of both algorithms to learn whether or not it is possible to use AFD discovery algorithm to get pFDs and vice versa.
Ilia Barutkin, Maxim Fofanov, Sergey Belokonny +2
Saint-Petersburg University · Saint-Petersburg, Russia