Learning Relational Tabular Data without Shared Features

Zhaomin Wu, Shida Wang, Ziyang Wang, Bingsheng HearXiv 2025 · DOI

Abstract

Traditional relational machine learning relies on shared keys, such as User IDs or emails, to join disparate tables. However, in many real-world scenarios, these keys are missing due to privacy concerns, anonymization, or heterogeneous schemas. We present Leal (Latent Entity Alignment Learning), a framework designed to learn across tables without shared features or pre-aligned samples. Leal utilizes a soft alignment mechanism guided by training loss and a differentiable cluster sampler to maintain efficiency on large-scale datasets. Experimental results across real-world and synthetic datasets demonstrate that Leal significantly outperforms single-table baselines, reducing error by up to 26.8%.

Introduction

Data silos represent a significant hurdle in modern data science. While relational learning typically assumes tables are linked by explicit keys, real-world "data lakes" often contain datasets that are highly heterogeneous and lack common identifiers. This "latent alignment" problem is particularly acute when dealing with cross-domain datasets where functional relationships exist but are not explicitly mapped.

Latent alignment example: Bank transactions and Bitcoin wallets share no features, yet relationships can be inferred from data distributions.

For instance, a bank withdrawal might correlate with a Bitcoin deposit in a separate, anonymous wallet table. Existing methods either require "fuzzy" shared features or struggle with the computational complexity of joining large, unkeyed tables. Leal addresses this by discovering functional dependencies through the training process itself.

Methodology

Leal introduces two primary innovations to address the challenges of latent alignment and scalability:

Soft Alignment via Loss Decay

The fundamental premise of Leal is that properly aligned data yields lower training loss than misaligned data. The framework employs an attention mechanism to compare records in a primary table against candidate records in a secondary table. By minimizing the overall prediction error, the model learns to assign higher alignment probabilities to pairs that represent true functional dependencies. This approach is formally supported by the observation that loss serves as a reliable signal for alignment quality.

Differentiable Cluster Sampler

To overcome the $O(N \times M)$ computational bottleneck of exhaustive row-to-row comparisons, Leal utilizes a cluster sampler. This module organizes the secondary table into clusters and learns to sample the most relevant records based on learned cluster weights and in-cluster probabilities. This approach ensures the model remains efficient on large-scale datasets while avoiding overfitting on irrelevant noise.

The Leal architecture, featuring primary and secondary processing pipelines and the detailed Cluster Sampler module.

Experimental Evaluation

The framework was evaluated on a diverse mix of ten datasets:

  • Real-World Datasets: Five cases (accidents, bike, hdb, hepatitis, house) where shared features were intentionally removed to test latent learning capability.
  • Synthetic Datasets: Five UCI datasets (breast, covertype, gisette, letter, superconduct) where features were randomly split into non-overlapping tables.

Results and Discussion

Leal consistently outperformed state-of-the-art "Solo" models (e.g., TabM, FT-Transformer) trained only on primary tables.

  • Predictive Performance: On the house dataset, Leal achieved a 26.8% reduction in Root Mean Squared Error (RMSE) compared to the best baseline. Gains were more pronounced on real-world datasets, which often feature complex many-to-many relationships.
  • Scalability and Efficiency: The cluster sampler allowed Leal to process large datasets like covertype (581k instances) in approximately 11 hours. While this represents a computational overhead compared to single-table training, it is significantly more efficient than naive join-and-learn strategies.
  • Hyperparameter Sensitivity: The authors found that the number of candidate neighbors ($K$) must be carefully tuned; setting $K$ too large can introduce noise and degrade performance.

Conclusion

Leal demonstrates that functional dependencies can be discovered and leveraged for cross-table learning even in the absence of shared keys. By using the model's loss as a guide for alignment and employing efficient sampling techniques, Leal bridges disconnected data silos. Future work will focus on extending the framework to multi-table star schemas and improving the sensitivity of the initial clustering process.

Summary updated

BibTeX
@misc{wu2025learning,
  author = {Zhaomin Wu and Shida Wang and Ziyang Wang and Bingsheng He},
  title = {{Learning Relational Tabular Data without Shared Features}},
  year = {2025},
  eprint = {2502.10125},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.10125},
}
Figure