Code and Pixels: Multi-Modal Contrastive Pre-training for Enhanced Tabular Data Analysis
Kankana Roy, Lars Krämer, Sebastian Domaschke, Malik Haris, Roland Aydin, Fabian Isensee, Martin Held
TL;DR
This work introduces MT-CMTM, a multi-task, multi-modal pre-training framework that uses Masked Tabular Modeling and image-tabular contrastive learning to enrich a tabular encoder (1D-ResNet-CBAM) while enabling deployment with tabular data alone. By pre-training on paired image+tabular data from HIPMP and DVM, MT-CMTM achieves superior downstream performance in both regression and classification tasks, outperforming strong tabular baselines and maintaining robustness in low-data scenarios. Key contributions include the HIPMP dataset, the 1D-ResNet-CBAM tabular encoder, and comprehensive ablations and explainability analyses that elucidate how multi-task signals improve generalization. The results demonstrate the practical value of leveraging auxiliary imaging information during pre-training to enhance tabular data analysis across domains, with potential applicability to other cost-constrained multimodal settings.
Abstract
Learning from tabular data is of paramount importance, as it complements the conventional analysis of image and video data by providing a rich source of structured information that is often critical for comprehensive understanding and decision-making processes. We present Multi-task Contrastive Masked Tabular Modeling (MT-CMTM), a novel method aiming to enhance tabular models by leveraging the correlation between tabular data and corresponding images. MT-CMTM employs a dual strategy combining contrastive learning with masked tabular modeling, optimizing the synergy between these data modalities. Central to our approach is a 1D Convolutional Neural Network with residual connections and an attention mechanism (1D-ResNet-CBAM), designed to efficiently process tabular data without relying on images. This enables MT-CMTM to handle purely tabular data for downstream tasks, eliminating the need for potentially costly image acquisition and processing. We evaluated MT-CMTM on the DVM car dataset, which is uniquely suited for this particular scenario, and the newly developed HIPMP dataset, which connects membrane fabrication parameters with image data. Our MT-CMTM model outperforms the proposed tabular 1D-ResNet-CBAM, which is trained from scratch, achieving a relative 1.48% improvement in relative MSE on HIPMP and a 2.38% increase in absolute accuracy on DVM. These results demonstrate MT-CMTM's robustness and its potential to advance the field of multi-modal learning.
