From Features to Structure: Task-Aware Graph Construction for Relational and Tabular Learning with GNNs

Tamara Cucumides, Floris GeertsarXiv 2025 · DOI

Introduction

Relational databases and tabular datasets are the backbone of modern data science, yet they are not inherently structured for Graph Neural Networks (GNNs). Traditional Relational Deep Learning (RDL) often relies on database schemas—specifically primary and foreign key links—to construct graphs. However, these schema-derived structures are frequently sparse and fail to capture predictive signals residing in non-key attributes.

Relational and tabular data structures often lack the explicit graph topology required for GNNs.

The challenge lies in determining which attributes should be integrated into the graph structure to best support a specific prediction task without introducing noise or redundancy.

The auGraph Framework

To bridge this gap, the authors introduce auGraph, a framework that treats graph construction as an iterative, task-guided optimization process. Rather than using a static schema, auGraph dynamically "promotes" predictive attributes into structural nodes.

The auGraph pipeline: from raw tabular data to iterative graph augmentation and final GNN training.

The process begins with a base Relational Entity Graph (REG). It then iteratively selects specific columns (attributes) and transforms their unique values into new "attribute nodes." Edges are established between these new nodes and the original row nodes containing those values, effectively enriching the graph's topology with task-relevant information.

Task-Aware Scoring and Selection

The core innovation of auGraph lies in its selection mechanism. Instead of promoting all features—which often introduces noise—auGraph uses four distinct scoring metrics to rank attributes:

  • Statistical (Mutual Information): Captures raw dependence between attributes and labels.
  • Graph-aware (Entropy Gain & Path Disagreement): Evaluates if adding an attribute improves label homogeneity within neighborhoods.
  • Model-based (GNN Gain): Uses a proxy GNN to measure actual validation performance improvements.

By iteratively adding attributes and re-scoring, the system accounts for redundancy and ensures that the final graph structure reflects the underlying logic of the specific prediction task.

Experimental Results

Evaluation across synthetic and real-world datasets demonstrates the superiority of task-aware construction:

  • Synthetic Data: auGraph achieved 0.816 accuracy, outperforming the standard REG (0.784) and "All-promote" (0.728) baselines.
  • Relational Data (Hepatitis): The framework reached an F1-score of 0.939, edging out the base REG (0.930).
  • Tabular Data (UCI Mushroom): On flat tables with no pre-existing schema, auGraph achieved a near-perfect 0.985 F1-score, significantly better than kNN-based graphs (0.937).

Conclusion

auGraph demonstrates that structural complexity does not always equate to better performance. By reframing graph construction as a task-aware feature selection problem, it enables GNNs to operate more effectively on tabular and relational data. Future work will explore temporal dynamics and deeper theoretical grounding for task-optimal graph structures.

Summary updated

BibTeX
@misc{cucumides2025from,
  author = {Tamara Cucumides and Floris Geerts},
  title = {{From Features to Structure: Task-Aware Graph Construction for Relational and Tabular Learning with GNNs}},
  year = {2025},
  eprint = {2506.02243},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.02243},
}
Figure