Interpretable Multi-task Learning with Shared Variable Embeddings

Maciej Zelaszczyk, Jacek MandziukarXiv 2024 · DOI

Introduction

Multi-task learning (MTL) traditionally assumes that tasks share a common input structure. However, real-world tabular data often consists of "disjoint" tasks where features vary significantly across datasets—for instance, predicting medical outcomes versus chemical toxicity. Existing Variable Embedding (VE) methods, such as the Traveling Observer Model (TOM), assign unique vectors to every variable, creating a "black box" that fails to leverage similarities between related features across tasks. This paper introduces Shared Variable Embeddings (SVE), an architecture designed to bridge this gap by mapping variables to a compact set of shared "concept" embeddings.

Methods: Shared Variable Embeddings

The core of the proposed approach is the SVE layer, which utilizes an attention mechanism to process input variables.

Architecture of the Shared Variable Embedding (SVE) model, illustrating the flow from variable space to processed embeddings via cross-attention.

The process involves four key stages:

  1. Raw Embeddings: Each variable is initially represented by a "raw" embedding acting as a query.
  2. Shared Base: A small, learnable set of $D$ shared embeddings (keys and values) represents abstract concepts.
  3. Cross-Attention: Raw embeddings attend to the shared base, resulting in a "processed" embedding that is a weighted combination of shared concepts.
  4. Sparsity via $\alpha$-entmax: To enhance interpretability and efficiency, a sparse attention mechanism (1.05-entmax) is employed, forcing variables to associate with only a few relevant shared concepts.

The authors also explored structural constraints, such as orthogonalization and stable rank, to ensure the shared embeddings remain distinct and non-redundant.

Experimental Results

The SVE method was evaluated on two large-scale tabular MTL benchmarks: UCI-121 (121 diverse classification datasets) and PMLB (159 classification tasks). The sparse 1.05-entmax variant achieved a state-of-the-art 81.9% accuracy on the UCI-121 test set, outperforming the vanilla baseline.

Performance comparison of different SVE variants on the UCI-121 benchmark, highlighting accuracy and zero-shot capabilities.

Beyond raw performance, the model exhibits several key advantages:

  • Efficiency: The sparse model reached peak performance in approximately 10,300 steps, a 36.4% reduction in training time compared to the standard shared method (16,200 steps).
  • Zero-Shot Capability: As shown in the results table, SVE models achieved high accuracy without per-task fine-tuning, indicating the learning of robust, universal representations of tabular data.
  • Interpretability: Qualitative analysis revealed that variables naturally cluster into "Subject Areas" (e.g., physics, biology) based on their mapping to shared embeddings.

Discussion and Future Work

While highly effective for tabular data, the authors suggest extending the "shared variable" logic to other domains, such as computer vision, where image patches could serve as variables. Future research could also explore alternative methods for restricting the shared space, such as vector quantization, or utilizing self-supervised pre-training on unlabeled data to further enhance performance in data-scarce scenarios.

Summary updated

BibTeX
@misc{zelaszczyk2024interpretable,
  author = {Maciej Zelaszczyk and Jacek Mandziuk},
  title = {{Interpretable Multi-task Learning with Shared Variable Embeddings}},
  year = {2024},
  eprint = {2405.06330},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.06330},
}
Figure