Introduction
Representing heterogeneous tabular data in a machine-readable format remains a significant challenge in data science. While supervised models like XGBoost or TabNet excel at specific tasks, they require retraining for every new target variable. This paper proposes a framework for generating "universal embeddings"—task-independent vector representations of rows and entities—that can be applied to diverse downstream applications such as classification, regression, and outlier detection without task-specific training.
Methodology
The proposed approach utilizes a multi-stage pipeline to transform raw tables into compact, informative embeddings.
1. Graph Construction and Numerical Handling
The process begins by representing a table as a bipartite graph. One set of nodes represents individual rows, while the other represents "entities" (unique categorical values or numerical bins). To preserve the ordinal nature of numerical data, the authors employ a probabilistic binning strategy. Instead of hard assignment, a numerical value is linked to its two nearest bin centers with weights proportional to its proximity, ensuring that the continuous relationship between values is captured within the discrete graph structure.
2. Graph Reduction
To maintain scalability for datasets with millions of rows, the bipartite graph is "collapsed" into an edge-weighted graph consisting only of entity nodes. Edges are created between entities based on their co-occurrence within the same row, with weights reflecting the frequency of these associations.
3. Learning with Graph Auto-Encoders (GAEs)
A Graph Auto-Encoder is trained to reconstruct the weighted adjacency matrix of the reduced graph. Unlike standard GAEs that focus on link prediction, this model uses a regression-based loss (L1 and L2 norms) to accurately recover edge weights. The resulting encoder produces dense entity embeddings.
4. Row Embedding Aggregation
Final row representations are generated by averaging the embeddings of the entities contained within that row. This inductive capability allows the model to embed new, unseen rows in real-time as long as the constituent entities were present during the initial graph construction.
Experimental Evaluation
The framework was evaluated using two distinct Kaggle datasets: the Titanic dataset (classification) and the Rossmann Store Sales dataset (large-scale regression). The performance was compared against EmbDI, a prominent unsupervised embedding method.
Key Results
- Efficiency in Low Dimensions: The method achieves peak performance at remarkably low embedding dimensions (e.g., $d=15$). This efficiency is critical for industrial applications where storage costs for high-dimensional vectors can be prohibitive.
- Stability and Convergence: A strong correlation was observed between the reduction of GAE reconstruction loss and the improvement in downstream task metrics (AUC and RMSPE), indicating that the unsupervised objective effectively captures the underlying data structure.
- Zero-Shot Performance: The model demonstrated robust performance on test data not seen during training, confirming its utility for production environments where data evolves over time.
Conclusion and Future Work
This research presents a scalable, task-agnostic method for embedding tabular data. By leveraging graph-based representations and probabilistic binning, the model captures complex relationships between categorical and numerical features. Future work will explore extending this framework to multi-table relational databases by incorporating foreign key relationships and integrating unstructured data types like text and images.
Summary updated