Abstract
The relational model is a ubiquitous representation of big-data, in part due to its extensive use in databases. In this paper, we propose the Equivariant Entity-Relationship Network (EERN), which is a Multilayer Perceptron equivariant to the symmetry transformations of the Entity-Relationship model. To this end, we identify the most expressive family of linear maps that are exactly equivariant to entity relationship symmetries, and further show that they subsume recently introduced equivariant maps for sets, exchangeable tensors, and graphs. The proposed feed-forward layer has linear complexity in the data and can be used for both inductive and transductive reasoning about relational databases, including database embedding, and the prediction of missing records. This provides a principled theoretical foundation for the application of deep learning to one of the most abundant forms of data. Empirically, EERN outperforms different variants of coupled matrix tensor factorization in both synthetic and real-data experiments.
Introduction
Most of the world's "big data" resides in relational databases (SQL). However, deep learning has historically struggled to ingest this data in its native form. Researchers typically choose between flattening tables into single vectors—which destroys structural relationships and fails to scale—or treating the database as a graph, which often ignores the specific "types" and constraints defined in an Entity-Relationship (ER) diagram. Traditional statistical relational learning often relies on Coupled Matrix Tensor Factorization (CMTF), which makes rigid assumptions about data generation. The Equivariant Entity Relationship Network (EERN) provides a principled foundation for applying deep learning to relational data while respecting its unique symmetries.
Methodology: The Equivariant Entity-Relationship Layer
The core innovation is the Equivariant Entity-Relationship Layer (EERL). The model represents a relational database as a set of "coupled sparse tensors." For instance, a TAKES(Student, Course) table is represented as a 2D tensor where dimensions correspond to the number of students and courses.
Symmetry and Equivariance
A key requirement for relational reasoning is equivariance: if the list of students is shuffled in one table, it must be shuffled identically in every other table where "Student" appears. To achieve this, the authors derive a specific parameter-sharing scheme where weights are "tied" based on mathematical structures related to Bell numbers. This ensures the model learns patterns about types of entities and relations rather than specific individuals.
Despite the mathematical complexity, the layer maintains linear complexity ($O(N)$) relative to data size, implemented through efficient pooling and broadcasting operations. This architecture generalizes prior models, reducing to Deep Sets when only one entity exists and to Equivariant Graph Networks when there is only one relation.
Empirical Evaluation
The authors evaluated EERN across synthetic and real-world datasets:
- Synthetic Relational Data: EERN significantly outperformed variants of Coupled CP and Tucker Factorization (C-CPF and C-TKF), particularly in high-sparsity scenarios (90% missing data). The network successfully propagates information across the relational schema, showing that access to "side" tables significantly improves prediction accuracy.
- European Soccer Database (UEFA): Using data for ~11,000 players and 25,000 matches, EERN achieved 53% accuracy in predicting match outcomes without temporal data, matching professional bookies.
- NHL Hockey Database: The model reached 74% accuracy, again outperforming traditional tensor factorization methods.
Conclusion
EERN enables powerful inductive reasoning; because the number of parameters is independent of the number of instances, a model trained on one database can be applied to a completely different database with the same schema but new entities. Future work will focus on scaling to industrial-scale databases through sophisticated mini-batch sampling and integrating temporal dynamics to handle databases that evolve over time.
Summary updated