A Pre-training Framework for Relational Data with Information-theoretic Principles

Quang Truong, Zhikai Chen, Mingxuan Ju, Tong Zhao, Neil Shah, Jiliang Tang

Abstract

Relational databases (RDBs) present unique challenges for deep learning due to their complex schemas and diverse downstream tasks. We present Task Vector Estimation (TVE), a novel pre-training framework that leverages information-theoretic principles to learn task-aware representations. By predicting aggregated future states—termed "task vectors"—across a database schema, TVE captures essential temporal and relational dynamics. Our evaluation on the RelBench benchmark demonstrates that TVE significantly outperforms traditional self-supervised methods, particularly in data-scarce environments.

Introduction

Relational Deep Learning (RDL) aims to apply the power of deep neural networks to structured relational data. However, RDBs are fundamentally different from unstructured data like images or text. A single database often supports a wide array of tasks, such as churn prediction or sales forecasting, each defined by specific temporal windows and complex relational logic.

Standard self-supervised learning (SSL) techniques, such as Masked Autoencoders (MAE) or Contrastive Learning (CL), often struggle in this domain. These methods tend to focus on reconstructing input features or maximizing local similarities, which may capture irrelevant noise rather than the underlying signals necessary for downstream tasks. Furthermore, they frequently overlook the temporal nature of relational tasks, which typically involve predicting future events based on historical data.

The Task Vector Estimation (TVE) Framework

To address these limitations, we propose Task Vector Estimation (TVE). Unlike traditional SSL, which focuses on the past or the present, TVE shifts the pre-training objective toward estimating the future.

Comparison of self-supervised pre-training paradigms for relational data.

As shown in the figure above, while MAE and CL focus on input reconstruction or latent consistency, TVE explicitly models the relationship between the current state and a future "task vector." This approach ensures that the learned representations are inherently task-aware and better suited for the predictive nature of RDL.

Task Vector Construction

The core of our framework is the construction of the task vector. For a given entity, such as a customer, the framework traverses the database schema to identify all related records within a specified "next-window" of time.

The process of constructing a task vector from a relational schema.

The construction process involves:

  1. Schema Traversal: Identifying relevant tables and join paths across the database.
  2. Aggregation: Applying SQL-style operators (e.g., COUNT, MEAN, SUM) to summarize future activity.
  3. Vectorization: Combining these summaries into a multi-dimensional "task vector" that serves as a proxy for potential downstream labels.

Information-Theoretic Grounding

The TVE framework is grounded in information theory. We prove that a representation learned using this "side-channel" information (the task vector) is more "sufficient" for downstream tasks than one derived solely from input data. Specifically, the paper demonstrates that if a representation is sufficient for both the input features and the task vector, it is guaranteed to preserve at least as much information about the final label as a standard representation.

Experimental Evaluation

We evaluated TVE using the RelBench benchmark, focusing on datasets like rel-amazon and rel-hm. To simulate real-world business constraints, we introduced "data-limited" tasks where labels are scarce.

Key Results

  • Low-Data Performance: TVE consistently outperformed non-pretrained baselines and traditional SSL methods (MAE and CL) in scenarios with limited labeled data, showing significant improvements in ROC-AUC and MAE.
  • Linear Probing: Representations learned by TVE proved to be highly predictive even when the backbone was frozen, outperforming other methods in linear probing experiments.
  • Efficiency: TVE achieved lower per-batch runtimes compared to MAE or CL by focusing loss computation on "root" entities rather than every node in a sampled subgraph.

Conclusion and Future Work

Task Vector Estimation provides a robust foundation for pre-training in Relational Deep Learning. By focusing on future dynamics rather than past reconstruction, it produces stable and task-relevant representations. Future work will explore replacing heuristic SQL aggregators with learnable set encoders and managing the dimensionality of task vectors in increasingly complex schemas.

Summary updated

BibTeX
@inproceedings{truong2025pre,
  author = {Quang Truong and Zhikai Chen and Mingxuan Ju and Tong Zhao and Neil Shah and Jiliang Tang},
  title = {{A Pre-training Framework for Relational Data with Information-theoretic Principles}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=xNUNxRj2vJ},
}
Figure