Rectify Heterogeneous Models with Semantic Mapping

Han-Jia Ye, De-Chuan Zhan, Yuan Jiang, Zhi-Hua Zhou

The Challenge of Evolving Environments

In real-world applications, data is rarely stationary. Consider a document classifier: over time, "hot topics" change, and the keywords (features) used to categorize news today might be entirely different from those used five years ago. Similarly, in recommendation systems, new products constantly arrive while old ones vanish.

Standard machine learning models often fail in these dynamic settings due to two primary reasons:

  1. Feature Mismatch: Most models rigidly expect the exact same input dimensions they were trained on.
  2. Data Scarcity: When a new environment emerges, we usually have very few labeled examples to train a brand-new model from scratch.

To tackle this, researchers are exploring the "Learnware" philosophy—creating models that are reusable (can be enhanced with limited data) and evolvable (can handle variations in the environment).

The REFORM Framework

To address the challenge of model reuse across different feature spaces, this paper introduces REFORM (REctiFy via heterOgeneous pRedictor Mapping). The framework operates in two main stages to bridge the gap between old and new domains:

The REFORM framework architecture showing the EMIT and Semantic Mapping stages.
  1. EMIT (Encode Meta InformaTion): To connect two different feature spaces, the system needs to understand how they relate. If features already have "meta-information" (like Word2Vec embeddings for text), REFORM utilizes it. If not, the EMIT module discovers meta-representations by reconstructing task-specific features using a shared set of features common to both the old and new tasks.
  2. Semantic Mapping via Optimal Transport (OT): Once features are represented in a common meta-space, REFORM uses Optimal Transport to find the most efficient way to "move" the weights of the old model into the new feature space. This aligns the distributions of the two feature sets based on their semantic similarity, rather than just their indices.

The authors provide two algorithmic implementations: REFORMA (which uses an adaptive scale approach to handle features with different magnitudes) and REFORMB (which incorporates the mapping optimization directly into the training process using a specialized solver).

Key Insights: Efficiency in Small Data

A major takeaway from REFORM is its ability to treat the old model as a "biased regularizer." Instead of starting from scratch, it tells the new model: "Don't stray too far from what we already know, but adjust for these new features."

Accuracy on the reut8 dataset demonstrating REFORM's superiority with very few labeled examples.

Because Optimal Transport provides a mathematically principled way to align heterogeneous spaces based on semantic meaning, REFORM is incredibly efficient. By reusing the structural knowledge of an old model, it can achieve high accuracy with as few as two labeled examples per class in the new environment—a scenario where standard SVMs or deep neural networks would typically fail or severely overfit.

Empirical Results

The researchers evaluated REFORM across a diverse range of tasks, proving its robustness:

  • Synthetic Benchmarks: Across 9 datasets (including Caltech30, Reuters, and Spambase) where features were artificially split to simulate environment changes, REFORM outperformed baselines in 8 of them.
  • Real-World Shifts: In a task predicting the quality of Amazon reviewers across different time periods (2000-2002 vs. 2003-2005), REFORM maintained stable performance even as the feature set (the items being reviewed) transitioned, whereas other methods showed high variance or significant drops.
  • Deep Learning Potential: The authors demonstrated that by applying REFORM to the first layer of a neural network, they could improve accuracy on a shifted MNIST-Fashion task from 0.084 (direct application) to 0.660, even with extremely limited data.

Limitations and Future Directions

While powerful, REFORM has some limitations. The EMIT strategy relies on the existence of at least some shared features between the old and new tasks to build the initial mapping; bridging completely disjoint tasks without external meta-information remains difficult.

Additionally, much of the theoretical grounding focuses on linear predictors. While the authors show a "Deep Extension," a more native integration into complex, non-linear deep architectures is a suggested path for future research. Finally, future iterations of the framework will need to address environments where the classes themselves (the labels), not just the features, increase or decrease over time.

Summary updated

BibTeX
@inproceedings{ye2018rectify,
  author = {Han-Jia Ye and De-Chuan Zhan and Yuan Jiang and Zhi-Hua Zhou},
  title = {{Rectify Heterogeneous Models with Semantic Mapping}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure