Manuscript Offprint

arXiv:2609.01262

Solving In-Table Prediction Problems by Deep Neural Networks with Performance Evaluation Using Synthetic Data

Xiao Zhao, Daniela Oelke

Abstract

Tabular deep learning (TDL) leverages neural networks (NN) to extract patterns from tabular data. Traditional TDL methods follow a supervised learning paradigm, where a target feature is explicitly given. In this work, however, we explore a different approach by employing deep NNs to learn relationships among individual columns within a given table. We investigate whether NNs can predict the values of arbitrarily selected columns in a given table based on the remaining known columns. We call this problem In-Table Prediction (ITB), which is slightly different from table imputation methods and the pretraining task of TDL. Three potential usage scenarios are identified, which, to our best knowledge, have not been extensively studied in the literature. A self-supervised learning approach is applied to address this problem by randomly selecting columns to be masked out and used as learning targets. This work focuses on tabular datasets containing only continuous features. To handle missing values in continuous features, a novel neural layer is proposed to embed both numerical and empty values. Synthetic data is generated based on predefined column relationships, with empty values inserted using two distinct mechanisms. Additionally, an adapted masking strategy is employed to create test data. Performances of three NN architectures, namely MLP, Resnet and Transformer, are evaluated using the generated synthetic data. We conclude that, the attention-based structure outperforms the other two networks, when a sufficiently large number of training examples is available and a relatively large embedding length is chosen. We stress that these findings are obtained under controlled, synthetic conditions with a small number of columns and it should therefore be regarded as an initial, narrowly-scoped investigation rather than a general characterization of ITP on real-world tabular data.

1 Motivation and contribution

Since the breakthrough of deep learning technology on image classification problems (cf. Krizhevsky et al. (2012) and references therein), deep learning (DL) has gained tremendous successes in advancing the methodologies in Computer Vision (CV) and Natural Language Processing (NLP). To extend this success to tabular data, a lot of researches have been conducted recently (Somvanshi et al., 2024; Borisov et al., 2024; Gorishniy et al., 2021; Rubachev et al., 2022). In comparison to CV and NLP, where image data and language data are homogeneous, tabular data are heterogeneous and structured. A table usually contains multiple columns, which may have different data types, and multiple rows, which are organized in a structured way. Although the semantic meaning of each column can be derived from column names or column content, this is not always possible and straightforward. For those reasons, tabular datasets were considered the last “unconquered castle” for DL (Kadra et al., 2021).

The heterogeneous format of tabular data leads to challenges, when one applies DL approaches. It was claimed that traditional ML methods like Gradient-Boosted Decision Trees (GBDT) (Chen & Guestrin, 2016; Dorogush et al., 2018), perform better than DL-based approaches (Kadra et al., 2021; Borisov et al., 2024). Some other researches showed that DL-based approaches are comparable, or even better in certain cases, than tree-based approaches (Huang et al., 2020a; Rubachev et al., 2022). The main disadvantage of tree-based systems is that they typically cannot be trained end-to-end and make use of greedy, local optimization techniques to build trees. Deep tabular learning can benefit from pre-training tasks, which is the workhorse of DL for vision and language tasks (Rubachev et al., 2022).

This work follows the research direction of applying DL to tabular data. However, we do not aim to solve supervised learning tasks, in which all columns of a table are used to predict another feature. In this work we consider a slightly different problem than Missing Value Imputation (MVI), which we call In-Table Prediction (ITP). Given an uncompleted row of a pre-defined table, in which some values of the columns are missing, the task of ITP is to predict the missing values based on the remaining positions of this row. DL is proposed to solve this problem and we evaluate the performances based on synthetic data.

We consider ITP as a related, but different problem than MVI. MVI replaces the 'NaN' values inside a table. In this work, 'NaN' values are called empty values. The goal of MVI is that the imputed table has no 'NaN' any more and can therefore be processed by down-streaming pipelines, e.g. applying machine learning (ML) algorithm, or computing statistics. This is because the down-streaming pipelines are not compatible with 'NaN' values. ITP does not aim to replace 'NaN' values inside a table, but aims to replace user-defined missing positions in a table. Depending on the context, the user-defined missing positions are called "masked positions" or "missing positions" in this work. The ground-truth (GT) values of masked position can be empty or typical values (a numeric for continuous features or a class ID for categorical features). In this way, ITP assumes that the empty value 'NaN' represents a special status of columns, which should also be recovered during the prediction. In short, MVI replaces empty values 'NaN' for down-streaming pipelines, while ITP replaces masked position for data completion.

ITP has the following usage scenarios. First, ITP can be used to complete the input of a user when a new row of the table is created. During the creation time of a new row, the user could receive suggestions on which values should be used. Second, ITP can be used to recover the data to its original status if some columns of the data are missing or were lost, e.g. due to technical issues. ITP can help to recover the correct values of missing data. Third, by manually inserting masked positions to an existing table, ITP can be used to verify the correctness of the masked positions. Different processes in the world are generating tables every day. Assume that a new table is obtained, ITP could be used to check if some positions of interest conform to the reference data.

Contributions of this work:

(1) Define a slightly different ML problem than MVI for tabular data and compare it with MVI. This problem is called In-Table Prediction (ITP) in this work. In contrast to MVI, the goal of ITP is not to fill out 'NaN' values but to predict the correct values on arbitrarily masked positions. Three usage scenarios are identified for ITP, which cannot be addressed by MVI straightforwardly.

(2) Propose a novel neural layer to embed numeric features and integrate it with the existing DNN to solve IVP for tabular data with continuous features. To ensure methodological rigor and the reliability of the results, this study focuses exclusively on numerical datasets; the inclusion of categorical features is beyond the scope of this work. The continuous features may contain numbers as well as empty values. The proposed neural layer converts them into trainable embeddings, which are fed into the major layers of DNN. Following Gorishniy et al. (2021), MLP, Resnet and Transformer are used as major neural layers in this work.

(3) The proposed structures are applied to solve ITP using generated data. Although related work to pre-train a DNN exists (Rubachev et al., 2022), to our knowledge, nobody has solved ITP by applying NNs. This work proposes a novel structure to address this problem and evaluate the performances based on synthetic data. Compared to the usage of real data, hidden relationships of columns can be predefined in synthetic data, which make it direct to interpret the evaluation results of performances. Our aim is to find out: (1) Can the proposed network learn the predefined relationships regrading to the ground-truth numerical values and the positions of empty values? (2) How good is the performance, regarding to different data size, different types of mechanisms of inserting missing values and different embedding lengths.

References (38)