Chameleon: Learning Model Initializations Across Tasks With Different Schemas

Lukas Brinkmeyer, Rafael Rêgo Drumond, Randolf Scholz, Josif Grabocka, Lars Schmidt-Thieme

Abstract

Parametric models, and particularly neural networks, require weight initialization as a starting point for gradient-based optimization. Recent work shows that a specific initial parameter set can be learned from a population of supervised learning tasks. Using this initial parameter set enables a fast convergence for unseen classes even when only a handful of instances is available (model-agnostic meta-learning). Currently, methods for learning model initializations are limited to a population of tasks sharing the same schema, i.e., the same number, order, type, and semantics of predictor and target variables. In this paper, we address the problem of meta-learning parameter initialization across tasks with different schemas, i.e., if the number of predictors varies across tasks, while they still share some variables. We propose Chameleon, a model that learns to align different predictor schemas to a common representation. In experiments on 23 datasets of the OpenML-CC18 benchmark, we show that Chameleon can successfully learn parameter initializations across tasks with different schemas, presenting, to the best of our knowledge, the first cross-dataset few-shot classification approach for unstructured data.

Introduction

Optimization-based meta-learning algorithms, such as MAML and REPTILE, have demonstrated remarkable success in few-shot learning by identifying a highly adaptable set of initial model weights. However, these methods typically assume that all tasks share a uniform input schema. In image domains, this is often achieved through resizing. In contrast, tabular or unstructured data often present heterogeneous schemas where the number, order, and semantics of features vary between datasets (e.g., one medical dataset might record [age, blood pressure] while another records [heart rate, age]). This schema mismatch prevents standard meta-learning models from processing diverse datasets simultaneously.

Overview of the Chameleon framework aligning heterogeneous task schemas into a common representation for a downstream meta-model.

The Chameleon Framework

To overcome the schema barrier, we introduce Chameleon, a learnable alignment module designed to map varying feature spaces into a shared representation.

Architecture

The Chameleon module acts as a set-wise feature transformation network. As shown in Figure 2, it processes an input dataset $X_\tau$ with an arbitrary number of features $F_\tau$ and generates a task-specific reordering matrix $\Pi(X_\tau)$. The module utilizes 1D convolutions with a kernel size of 1, ensuring invariance to the initial feature order. A final softmax layer produces the alignment matrix, which, when multiplied by the original input, shifts and aligns features into a fixed-size common target schema of dimension $K$.

Detailed architecture of the Chameleon module, showing the sequence of 1D convolutions used to generate the reordering matrix.

Training Strategy

Training is conducted in two distinct phases:

  1. Reordering-Training (Pretraining): The Chameleon module is first trained to predict correct feature alignments. This is supervised by creating meta-datasets with known permutations (e.g., by sub-sampling and shuffling features from a single source).
  2. Meta-Learning: The aligned features are fed into a classifier. The entire system is then optimized using the REPTILE algorithm to find a robust weight initialization across the diverse task population.

Experimental Evaluation

We evaluated Chameleon on 23 tabular datasets from the OpenML-CC18 benchmark and on latent space alignment using EMNIST.

Key Results

  • Few-Shot Performance: On OpenML datasets, the Chameleon + REPTILE approach significantly outperformed random initialization and naive padding baselines. In "No-Split" scenarios, performance approached that of an "Oracle" model with perfect feature knowledge.
  • Generalization: The model successfully aligned novel features not seen during meta-training, demonstrating that it learns generalizable alignment principles rather than just memorizing specific mappings.
  • Latent Space Translation: Experiments on EMNIST showed that Chameleon can align disparate latent embedding spaces (e.g., 32-dimensional digit embeddings vs. 64-dimensional letter embeddings), allowing meta-models to transfer knowledge across different feature extractors.

Conclusion

Chameleon provides a novel solution for meta-learning across heterogeneous schemas. By learning to align disparate feature spaces into a common representation, it enables the application of optimization-based meta-learning to unstructured and tabular data across multiple datasets. Future work will explore scaling to higher-dimensional data and extending the framework to time-series and reinforcement learning environments.

Summary updated

BibTeX
@misc{brinkmeyer2019chameleon,
  author = {Lukas Brinkmeyer and Rafael Rêgo Drumond and Randolf Scholz and Josif Grabocka and Lars Schmidt-Thieme},
  title = {{Chameleon: Learning Model Initializations Across Tasks With Different Schemas}},
  year = {2019},
  eprint = {1909.13576},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.13576},
}
Figure