Expert-guided Regularization via Distance Metric Learning

Shouvik Mani, Mehdi Maasoumy, Sina Khoshfetrat Pakazad, Henrik OhlssonarXiv 2019

Abstract

In high-dimensional data regimes where the number of features significantly exceeds the number of observations, traditional machine learning models are prone to overfitting. We introduce Distance Metric Learning Regularization (DMLreg), a novel framework that incorporates expert domain knowledge into the regularization process. By utilizing intuitive pairwise similarity comparisons to learn a feature-weighted distance metric, DMLreg informs feature-specific priors in a Bayesian linear model. Our results on simulated high-dimensional datasets demonstrate that DMLreg consistently outperforms standard techniques such as Lasso and Ridge regression by effectively leveraging human expertise to distinguish signal from noise.

1. Introduction: The Curse of Dimensionality

A fundamental challenge in modern machine learning is the "high-dimensional" regime, where the number of features ($n$) is large relative to the number of observations ($m$). In such scenarios, models often mistake random noise for meaningful patterns, a phenomenon known as the "curse of dimensionality." Standard solutions like Ridge and Lasso regression mitigate this by applying a global penalty parameter ($\lambda$) to shrink coefficients toward zero. However, these methods are "blind" to domain-specific insights, treating every feature with equal skepticism.

In many specialized fields, such as genomics or high-stakes engineering, domain experts possess valuable "tacit" knowledge regarding which features are likely to be relevant. The difficulty lies in eliciting this knowledge; asking a specialist to rank the importance of thousands of variables is an intractable task. DMLreg addresses this by extracting expert knowledge through intuitive comparisons and embedding it directly into the model's regularization structure.

2. Methodology: DMLreg

The DMLreg framework consists of two primary stages:

2.1 Knowledge Elicitation via Distance Metric Learning (DML)

Instead of direct feature ranking, experts are asked to perform pairwise similarity comparisons between observations (e.g., "Are these two samples similar?"). This task is significantly more intuitive for humans. These comparisons are used to learn a Mahalanobis distance metric, specifically a diagonal matrix $A$. The diagonal elements $A_{ii}$ represent learned feature importance weights: if a feature is critical for determining similarity, its corresponding weight in $A$ is adjusted accordingly.

2.2 Informed Regularization

The weights from the distance matrix $A$ are integrated into a Bayesian linear model. While standard Ridge regression assumes all coefficients $\theta_i$ originate from a Gaussian prior with uniform variance, DMLreg assigns feature-specific priors. The variance of each coefficient is determined by $A_{ii}$. Consequently, features identified as important by the expert are less penalized, while irrelevant features are shrunk more aggressively toward zero.

3. Experimental Evaluation

The researchers evaluated DMLreg using simulated high-dimensional datasets with $m=100$ observations and varying feature counts $n \in \{10, 25, 50, 75, 100\}$. In these simulations, only the first 10 features were truly associated with the response variable, while the remainder were noise.

Validation MSE of baseline models (k-NN, Linear Regression, Ridge, and Lasso) as feature count increases.

As illustrated in Figure 1, standard baseline models exhibit significant performance degradation as the number of features increases. Linear regression, in particular, shows extreme overfitting at $n=100$. While Ridge and Lasso provide better stability, their error rates still climb as noise features are added.

4. Key Results and Insights

Experimental comparisons revealed several critical findings:

  • Superior Performance: DMLreg (with perfect or noisy expert knowledge) consistently achieved lower Validation Mean Squared Error (MSE) than Lasso, Ridge, and k-Nearest Neighbors.
  • Beyond Global Tuning: Even when Lasso's penalty was perfectly tuned via cross-validation, DMLreg performed better because it could apply varying levels of shrinkage across different features based on expert guidance.
  • Efficiency of Expertise: The model is remarkably efficient; providing just 25 pairwise comparisons yielded nearly the same performance boost as 700 pairs, suggesting a low barrier to entry for human experts.
  • The Expertise Threshold: The method's success depends on the quality of the expert. If the expert provides random noise ("Incorrect" guidance), DMLreg performs worse than standard Lasso, highlighting its role as an amplifier of valid expertise.

5. Conclusion and Future Directions

DMLreg represents a significant step toward bridging the gap between human expertise and automated machine learning. By moving elicitation from the feature space to the sample space, it makes domain knowledge integration practical for high-dimensional problems. Future work will explore methods to automatically detect and discount unreliable expert advice and extend the distance matrix to capture inter-feature correlations.

Summary updated

BibTeX
@misc{mani2019expert,
  author = {Shouvik Mani and Mehdi Maasoumy and Sina Khoshfetrat Pakazad and Henrik Ohlsson},
  title = {{Expert-guided Regularization via Distance Metric Learning}},
  year = {2019},
  eprint = {1912.03984},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.03984},
}
Figure