Metric-Based Auto-Instructor for Learning Mixed Data Representation

Songlei Jian, Liang Hu, Longbing Cao, Kai Lu

Introduction

In real-world data science, datasets are rarely homogeneous. Most practical applications involve "mixed data," which combines continuous numerical measurements (e.g., age, income, temperature) with categorical labels (e.g., occupation, color, gender). Representing this data in a way that machine learning models can effectively process is a significant challenge. Continuous features exist in a metric space where Euclidean distances are meaningful, while categorical features lack a natural mathematical distance.

Existing approaches often fail by either ignoring the complex couplings between these different feature types or by focusing solely on data reconstruction (as in standard Autoencoders) rather than learning representations that are inherently discriminative. This paper introduces the Metric-Based Auto-Instructor (MAI), an unsupervised framework designed to learn high-quality representations that capture both feature-level interactions and object-level discrimination.

The MAI Framework

The core of the MAI model is a three-layer architecture that utilizes a unique "auto-instructive" training loop. Unlike supervised metric learning, which requires manual labels to define similarity, MAI uses two collaborative neural "instructors"—the P-Instructor and the C-Instructor—that supervise each other through contrastive distance metrics.

Dual Encoding Spaces

To capture the multifaceted nature of mixed data, MAI represents each object in two distinct encoding spaces:

  1. Plain Encoding (Fᴾ): A standard concatenation of one-hot encoded categorical features and raw continuous values.
  2. Coupled Encoding (Fᶜ): A sophisticated space that employs joint density estimation via product kernels. This explicitly models the dependencies between continuous and categorical features, capturing the "interaction strength" between specific values (e.g., how a specific age correlates with a specific occupation).
The MAI architecture showing the P-Instructor and C-Instructor collaborating through an auto-instructive metric learning loop.

Auto-Instructive Metric Learning

The model maps these encodings into a latent space where distance represents similarity. The training process uses a peer-teaching strategy: one instructor evaluates a triplet of objects $(x, x_i, x_j)$ to determine their relative similarity (e.g., "$x$ is more similar to $x_i$ than to $x_j$"). This "contrastive order" serves as a supervision signal for the other instructor. By forcing these two different perspectives to reach a mutual consensus, the model filters out noise and focuses on the underlying discriminative structure of the data.

Experimental Evaluation

The authors evaluated MAI on eight real-world UCI datasets, including Echo, Hepatitis, Heart, and the large-scale Census Income dataset (over 32,000 objects). These datasets were chosen for their mix of feature types and the availability of ground-truth labels for evaluation purposes (though labels were not used during training).

Key Results

The learned representations were tested using clustering algorithms like k-means and DBSCAN, with performance measured by Adjusted Mutual Information (AMI).

  • Clustering Performance: MAI-F (the feature-based variant) demonstrated a significant improvement in clustering quality, showing an average 33% improvement over plain encoding and 27% over standard Autoencoders.
  • Visual Discrimination: t-SNE visualizations reveal that MAI produces much tighter and more distinct clusters compared to baseline methods, which often result in overlapping or "smeared" representations.
t-SNE visualizations comparing (a) Plain encoding, (d) Autoencoder, and (e-f) MAI variants. MAI demonstrates significantly clearer cluster separation.
  • Efficiency: The model exhibits fast convergence, typically reaching a stable state within 15 iterations, making it practical for larger datasets.

Conclusion and Future Work

The Metric-Based Auto-Instructor provides a robust solution for unsupervised representation learning on mixed data. By leveraging dual encoding spaces and a mutual consensus mechanism, it successfully captures complex feature couplings and enhances object-level discrimination.

Future research may address the computational overhead associated with kernel density estimation in extremely high-dimensional spaces. Additionally, extending the current shallow architecture into a "stacked" deep structure could potentially capture even more complex hierarchical relationships within mixed data environments.

Summary updated

BibTeX
@inproceedings{jian2018metric,
  author = {Songlei Jian and Liang Hu and Longbing Cao and Kai Lu},
  title = {{Metric-Based Auto-Instructor for Learning Mixed Data Representation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11597},
}
Figure