arXiv:2610.01646cs.DBOct 2026

Manuscript Offprint

arXiv:2610.01646

DIADA: Automatic Data Composition in Data Lakes

Marc Maynou, Albert Martin, Sergi Nadal, Anna Queralt, Oscar Romero

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Marc Maynou

Universitat Politècnica de Catalunya

Barcelona, Spain

marc.maynou@upc.edu

Albert Martin

Universitat Politècnica de Catalunya

Barcelona, Spain

albert.martin.g@upc.edu

Sergi Nadal

Universitat Politècnica de Catalunya

Barcelona, Spain

sergi.nadal@upc.edu

Anna Queralt

Universitat Politècnica de Catalunya

Barcelona, Spain

anna.queralt@upc.edu

ABSTRACT

Data lakes contain a plethora of attributes scattered across many tables that, when combined, provide enhanced assets for data analysis. Nonetheless, deciding which attributes belong together in meaningful relations remains a manual, per-task effort. Merging by joinability alone provides no guarantees regarding attribute relevance, while selecting features against a single target discards attributes useful to other tasks. To address this gap, we introduce the data composition problem: organizing a fragmented, heterogeneous lake into meaningful relations, agnostic of any particular analytical task so that the resulting organization can serve as a common foundation for diverse downstream analyses. We propose DIADA, a composition system that employs multivariate dependence as the criterion for assessing the meaningfulness of a relation and approximates it by hypothesizing independence among attributes and identifying those sets that violate this hypothesis. To do so, we map the attributes to a predicate space, forming a lattice under inclusion and mining those predicate sets that exhibit dependence among their constituents. We contribute a dedicated and scalable algorithm to effectively explore this space, outscaling classical algorithms for mining relationships, thus discovering dependencies that would otherwise be impractical to identify. We demonstrate that applying a single data composition process benefits diverse potential downstream tasks. This is the result of providing a subset of low-noise, statistically relevant attributes that increases the confidence that detected patterns are grounded in real relationships, thus preventing common modeling issues in large-scale environments.

PVLDB Reference Format:

Marc Maynou, Albert Martin, Sergi Nadal, Anna Queralt, and Oscar Romero. DIADA: Automatic Data Composition in Data Lakes. PVLDB, 20(1): XXX-XXX, 2027.

doi:XX.XX/XXX.XX

PVLDB Artifact Availability:

The source code, data, and/or other artifacts have been made available at https://github.com/dtak-upc/DIADA.

Oscar Romero

Universitat Politècnica de Catalunya

Barcelona, Spain

oscar.romero@upc.edu

1 INTRODUCTION

Modern data-driven organizations store their data in massive, heterogeneous repositories known as data lakes [21]. Their flexible ingestion policies, however, often turn these repositories into poorly organized data swamps where finding and preparing relevant data becomes cumbersome [38]. To mitigate this problem, organizations structure their data management pipelines into successive curation zones (e.g., the notions of bronze, silver, and gold layers used in the industry [14]) where data assets undergo increasing levels of refinement before being made available for downstream analytics [3]. However, automatically organizing the resulting assets to favor their subsequent use is a challenging task. We focus on this particular stage of the process: once data from different sources have been homogenized, how their attributes should be integrated into relevant relations for downstream analysis. We call this problem data composition: organizing the attributes of a fragmented data lake into meaningful relations.

Consider Figure 1a, which depicts a simplified data lake whose attributes are color coded according to their relevance to a specific target variable. For example, both the num_rooms of a property and the tax_rate of its neighborhood are likely to be informative to predict its market_value, whereas agent_phone_num is not related to either market_value or any other attribute. A naive approach to structure the data would run a data discovery task to identify candidate join attributes and perform a multiway join (Figure 1b) that combines potentially useful information scattered across datasets into a single relation. However, data discovery may propose spurious joins, such as property_id and station_id, alongside meaningful ones, such as the join on postal_code. Consequently, the relation supplied to an ML pipeline predicting, say, market_value, would contain inert attributes (gray) and an entire group of weather attributes (blue) irrelevant to this particular prediction task. Ideally, the joined table should be reorganized as shown in Figure 1c, with intrinsically related attributes composed into separate relations.

The task of data composition is mainly performed in a manual, slow and unreliable fashion by domain experts through the execution of handcrafted joins and partitions [1]. Alternatively, there are many research fields that propose automated methodologies to organize the attributes and relations of a data repository, each presenting a different way of characterizing the meaningfulness of the final relations. Nonetheless, all have important limitations towards performing data composition tasks. Functional dependency (FD) discovery identifies attribute sets that determine others [25],

This work is licensed under the Creative Commons BY-NC-ND 4.0 International License. Visit https://creativecommons.org/licenses/by-nc-nd/4.0/ to view a copy of this license. For any use beyond those covered by this license, obtain permission by emailing info@vldb.org. Copyright is held by the owner/author(s). Publication rights licensed to the VLDB Endowment.

Proceedings of the VLDB Endowment, Vol. 20, No. 1 ISSN 2150-8097. doi:XX.XX/XXX.XX

Figure

Figure 1: The data composition problem illustrated. A data lake (a) contains tables that can be used to satisfy predictive tasks. A multiway join is executed for these tables (b) to place all relevant information in a single asset, but a spurious join introduces unhelpful features in the dataset. Ideally, joined data should be separated into specific relations (c) to benefit any potential downstream task. In practice, this process is either done manually (costly and prone to errors) or substituted by automated techniques (d), which either select features for a specific target (and discard the rest) or preserve noisy data.

which can guide the separation of datasets into normalized relations. However, these constraints are deterministic, and the classical approaches to detect them are syntactic [40] and scale poorly [26], making them not suitable for data lakes' heterogeneity and large size. Data discovery [19, 38] presents semantic and scalable techniques to identify tables that are related and can be combined, but does not assess the relevance of the attributes in the relation. This leads to noise not being filtered out, as the spurious join in Figure 1b illustrates. To address this, we can introduce techniques to select the relevant subset of attributes out of the combined data. Figure 1d exemplifies two main families of such approaches. On one hand, the selection of attributes can be guided by the association to a predictive target (i.e., target-driven, such as data augmentation and supervised selection [10, 11, 27]). However, assessing attribute relevance against a given target discards whatever is not associated with it, yet these deleted attributes might provide information that a different task may need (e.g., blue features for predicting monthly_temp). Thus, the costly selection process must be executed anew for every new target. On the other hand, target-agnostic approaches (e.g., unsupervised feature selection [36, 46]) circumvent this problem by not conditioning attribute importance on a target, instead seeking to preserve some structural property of the data (e.g., cluster structure). However, as they do not explicitly assess the degree of shared information across attributes, uninformative attributes may be preserved if they contribute to the original and potentially noisy structure being captured.

At the core of this problem lies the need for assessing the relatedness of sets of attributes and, therefore, guide the separation of features into strongly intra-related groups. We argue that relatedness is, fundamentally, a question of shared information: two attributes are related when knowledge of one changes what is expected of the other. This notion extends naturally from pairs of attributes to arbitrary sets through their multivariate dependence [49], that is, the extent to which each attribute is conditioned by all the others jointly. This dependence is precisely what analytical tasks look for, as it allows patterns to be defined and exploited to extract insight or perform inference. A meaningful relation is, therefore, one whose attributes exhibit strong multivariate dependence. However, metrics that fully compute such a notion (i.e., total correlation [49] and its variants [35]) are exponential to estimate due to the combinatorial explosion of assessing increasingly large sets of features jointly [5]. Thus, current methods to compute multivariate dependence either fail to scale or opt exclusively for pairwise dependencies. Take a property's floor_number, its district's flood_risk, and its market_value from Figure 1: the marginal effects of both floor_number and flood_risk over market_value are likely to be minimal and, hence, missed. Nonetheless, ground floors are cheaper where flooding is a risk. Thus, only when both are observed does the strong dependence with market_value appear.

In this work we aim at providing an approach that efficiently approximates multivariate dependencies across sets of attributes at scale. This methodology is encapsulated in DIADA, the first system that performs automatic data composition based on evaluating the amount of shared information across sets of attributes. To do so, DIADA hypothesizes that all attributes in the relation are independent, and its goal is to detect which groups of attributes violate that independence hypothesis. DIADA uses an intermediate abstraction layer that decouples raw data formats from multivariate dependency analysis, allowing dependencies to be discovered across heterogeneous data. More precisely, every attribute is mapped to a set of predicates via a Boolean function over a chosen domain.

(e.g., individual tuples or pairs of tuples). The combination of these predicates results in a space that forms a lattice under inclusion. DIADA then mines this lattice to extract predicate sets whose joint probability departs from what is expected by assuming predicate independence. Such a departure indicates that the corresponding attributes are related and should be composed into the same relation. DIADA, thus, approximates multivariate dependence by applying a statistical test regarding the independence of predicates.

Exploring such a lattice reduces to the well-studied problem of mining frequent itemsets. Nonetheless, scaling this search to an entire data lake still introduces computational challenges both in the number of rows (i.e., horizontal, as there are more predicates per attribute) and columns (i.e., vertical, as there are more combinations of predicates). To address this, DIADA introduces an approximation factor, a statistically validated ceiling on how uncertain any estimated probability may remain. Thus, DIADA performs an informed and traceable search that prunes the space by navigating only towards predicate sets whose relatedness is still highly uncertain. Consequently, our approach provides a statistics-based definition of meaningful relations in this context, and contributes an efficient and scalable method to approximate multivariate dependencies that allow us, for the first time, to operationalize the problem of data composition.

Our experiments showcase how these optimizations allow DI-ADA to outscale traditional miners in the context of data lakes and discover dependencies that could otherwise be impractical to detect. We prove that in realistic scenarios DIADA correctly filters noisy attributes from relations while preserving relevant attributes, which other approaches are not able to do. We also demonstrate that not composing data prior to executing downstream tasks negatively impacts the final models, as scalable analytical pipelines are not able to effectively preserve relevant data. By executing DIADA a single time, diverse downstream models improve both their performance and generalization, regardless of their target.

Contributions. Our contributions are as follows:

  • We define the data composition problem: how to organize a fragmented lake into meaningful relations, agnostic of any target attribute. We take multivariate dependence as the composition criterion.

  • We introduce an approximate and scalable algorithm that mines a predicate-set lattice to detect sets of dependent attributes, outperforming classical methods for frequent itemset mining as attributes grow, discovering dependencies that would be otherwise impractical.

  • We present DIADA: the first system for automatic data composition, which implements the above algorithm. We showcase that applying a single, target-agnostic composition task improves the utility and robustness of downstream modeling pipelines regardless of the target attribute, as composing generates meaningful datasets not conditioned on a given process.