cs.LGOct 5, 2026

ReMaD: Tuning-free Domain Adaptation for Classification and Out-of-Distribution Detection

Authors: Elijah Bolluyt, Cristina Comaniciu

Organizations: Stevens Institute of Technology, Hoboken, NJ, 07030, USA

Abstract

We introduce Reduced-rank Mahalanobis Distance (ReMaD), a novel prototypical distance-based refinement to classification and out-of-distribution (OOD) detection using pretrained models without finetuning. We use embeddings of the target dataset to fit closed-form distribution statistics in the model's latent space which can classify in-distribution samples and detect OOD samples, all without training or prior knowledge of the OOD data. Building on prototype classification and OOD detection, we analyze the distribution properties of large pretrained models when processing new datasets; based on this analysis, we formulate a simple modification to Mahalanobis Distance to adapt models' latent space distributions to new domains by removing unused features, without the finetuning or hyperparameter searches required by other adaptation procedures. We demonstrate the efficacy of this method to adapt existing large pretrained image embedding models to new classification domains outside their trained capabilities by testing across four target datasets, with competitive performance in both classification and OOD detection.

Explore similar work

CardsList
  1. Geometry over Density: Few-Shot Cross-Domain OOD Detection

    May 5, 2026Shawn Li, You Qin, Jiate Li +4Out-Of-Distribution DetectionUnlabeled Data

  2. MaRS: Robust Out-of-Distribution Detection via Mahalanobis Residual Scoring

    Jun 21, 2026Francesco Di Salvo, Sebastian Doerrich, Christian LedigOut-Of-Distribution DetectionOut-Of-Distribution

  3. AOE: Exhaustive Out-of-Distribution Detection via Recalibrating Outlier Labels

    May 27, 2026Fengqiang Wan, Qing-Yuan Jiang, Yang YangOut-Of-Distribution DetectionOutliers