Manuscript Offprint

arXiv:2608.28209

Generalized Context in Cross Attention for Transfer Learning of Disjoint Tabular Data

Kazi F. Akhter, Ibna Kowsar, Manar D. Samad

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Unlike images and text, applying transfer learning to tabular data is challenging due to heterogeneity in feature types, structures, and semantics across disparate domains. Existing methods assume shared features across data tables to enable knowledge transfer between domains, which is unrealistic in practice. This paper introduces generalized context learning to remove the requirement of shared features across domains. The generalized context captured by transformer projection weights for key, value, and query provides rule-based generalization rather than the domain-specific context conventionally learned from transformer activations. Projection weights for key from the source domain interact with the weight for query in the target domain to achieve Cross-domain Attention Transfer Learning (CATTLE) in a data-agnostic manner. Our experiments on ten pairs of disjoint source-target data sets show that CATTLE can learn generalized context from a single source data set and is rank-wise and statistically superior to nine state-of-the-art baselines, including machine learning, deep learning, and transfer learning methods using large-scale pre-trained models. CATTLE achieves the best average rank (2.9) and delivers a 3.7% average AUROC gain over the baseline methods. The CATTLE source code is available at 1^{1}.

Keywords generalized context, transfer learning, tabular data, cross-attention, cross-domain

1 Introduction

Beyond what conventional machine learning can achieve, transfer learning has enabled a significant breakthrough in contemporary artificial intelligence. Transfer learning leverages the general knowledge of the world embedded in large, pre-trained models to adapt them in learning new domains with limited data. The conceptual framework of transfer learning is established in computer vision and language models because images and text are conducive to transfer learning representations. Computer vision architectures, such as convolutional neural networks (CNNs) and vision transformers (ViTs), are successful in transfer learning because images provide generalizable, shared, and hierarchical feature representations that facilitate knowledge transfer across various domains [1]. For example, large-vision models (e.g. ViT, VLM), trained with a diverse collection of natural images, can be finetuned using monochromatic medical images for downstream disease classification tasks [2].

In contrast, data structured as rows and columns of tables, also known as tabular data, have some fundamental distinctions from images and text. First, tabular data contain a heterogeneous feature space [3], including numerical, categorical, ordinal and textual data types, unlike the homogeneous distribution of pixels and words in images and text. Consequently, traditional feature engineering and empirical selection of classifier models are still in practice for tabular data. Therefore, no single learning method consistently stands out as the best model for a diverse set of tabular data [4]. Second, the tabular feature spaces from two distinct domains are often disparate and disjoint. For

1^{1}https://github.com/mdsamad001/CATTLE—cross-domain-transfer-learning-for-Tabular-Data example, banking transaction tables do not share plausible features with electronic health records data. Differences between diverse feature spaces pose a major challenge to acquiring broadly applicable knowledge, which is essential for effective transfer learning and for developing large foundation models. To this end, contemporary transfer learning approaches assume and exploit shared features between tabular data sets, typically within a single application domain, to ensure sufficient feature overlap [5, 6, 7]. Transfer learning within the same domain assumes that the source and target data sets share similar feature distributions and contexts, enabling straightforward adaptation through model fine-tuning. In real-world scenarios, tabular datasets from different domains often vary greatly in their structure, feature types, and value distributions, and they rarely share overlapping features. A data-agnostic learning framework may alleviate the need for overlapping feature spaces and facilitate transfer learning between disjoint tabular data sets. This paper introduces a novel method that leverages transformer projection weights to learn a data-agnostic, general context, rather than relying on traditional attention-weighted data representations. While attention-weighted data representations provide a data-dependent means for cross-domain transfer learning, our data-agnostic approach facilitates cross-domain learning by engineering the projection weights pertaining to key, value, and query representations. A single source tabular data set may be sufficient for data-agnostic learning without requiring a large number of data sets from numerous application domains. The subsequent sections provide additional motivation and background literature toward the contributions of this paper.

References (33)