Unsupervised Domain Shift Detection with Interpretable Subspace Attribution

TL;DR

Detect unsupervised domain shifts using interpretable subspace attribution, identifying subtle differences in dataset probability distributions.

stat.ML 🔴 Advanced 2026-05-15 9 views
Sebastian Springer Alessandro Laio
unsupervised learning domain shift density anomaly subspace attribution ECG dataset

Key Findings

Methodology

This study presents a framework for detecting domain shifts using local two-sample scoring to identify density anomalies in high-dimensional feature spaces. It employs bidirectional tail-KS equalization and neighbor-enriched subspace localization to identify feature subspaces supporting anomalies.

Key Results

  • In 20-dimensional benchmarks, the method successfully recovered broad and localized shifts, identifying supporting feature subspaces.
  • On ECG datasets, device-induced shifts were detected, representative subsets extracted, and ECG features associated with acquisition contrast identified.
  • The method identified device-related distributional shifts in healthy ECG cohorts with differing device compositions.

Significance

This research provides a practical framework for detecting and attributing domain shifts, revealing hidden cohort biases before downstream modeling. It is effective on unlabeled datasets and applicable to various scenarios.

Technical Contribution

Introduces an unsupervised domain shift detection and attribution method, combining local two-sample scoring and neighbor-enriched subspace localization, offering new theoretical guarantees and engineering possibilities.

Novelty

First to combine local density anomaly detection with feature subspace attribution, providing an unsupervised method for domain shift detection, significantly differing from existing methods.

Limitations

  • The method's computational complexity on high-dimensional datasets may impact large-scale applications.
  • In some cases, it may not accurately identify all supporting feature subspaces.

Future Work

Future research could explore applications on larger datasets and optimize the algorithm's computational efficiency.

AI Executive Summary

In machine learning, comparing two collections of unlabeled samples is a fundamental task. Existing methods struggle to identify localized differences in feature subspaces. This study proposes an unsupervised domain shift detection tool that identifies subtle differences in dataset probability distributions by detecting localized density anomalies in high-dimensional feature spaces. The method includes local two-sample scoring, bidirectional tail-KS equalization, and neighbor-enriched subspace localization.

In 20-dimensional benchmarks, the method successfully recovered broad and localized shifts, identifying supporting feature subspaces. On healthy ECG datasets, device-induced shifts were detected, representative subsets extracted, and ECG features associated with acquisition contrast identified. This suggests the method can reveal hidden cohort biases before downstream modeling.

While the method's computational complexity on high-dimensional datasets is a limitation, its effectiveness and applicability on unlabeled datasets offer potential for various applications. Future research could explore applications on larger datasets and optimize computational efficiency.

Deep Analysis

Background

In machine learning, comparing unlabeled sample collections is fundamental, involving domain adaptation, dataset auditing, etc. Traditional methods like maximum mean discrepancy and energy distance tests can detect dataset-level distribution changes but struggle with localized differences in feature subspaces.

Core Problem

The core problem is detecting and attributing domain shifts on unlabeled datasets, particularly identifying localized density anomalies in feature subspaces. This is crucial for ensuring reliable data-driven analysis.

Innovation

This study innovatively combines local density anomaly detection with feature subspace attribution, proposing an unsupervised method for domain shift detection. It uses local two-sample scoring and neighbor-enriched subspace localization to identify feature subspaces supporting anomalies.

Methodology

  • �� Use local two-sample scoring to identify density anomalies.
  • �� Construct sample subsets with no detectable residual distributional differences using bidirectional tail-KS equalization.
  • �� Identify feature subspaces supporting anomalies using neighbor-enriched subspace localization.

Experiments

In 20-dimensional benchmarks, the method successfully recovered broad and localized shifts, identifying supporting feature subspaces. On healthy ECG datasets, device-induced shifts were detected, representative subsets extracted, and ECG features associated with acquisition contrast identified.

Results

In 20-dimensional benchmarks, the method successfully recovered broad and localized shifts, identifying supporting feature subspaces. On healthy ECG datasets, device-induced shifts were detected, representative subsets extracted, and ECG features associated with acquisition contrast identified.

Applications

The method is applicable for domain shift detection on unlabeled datasets, particularly in medical data analysis, where it can identify device-induced distributional shifts.

Limitations & Outlook

The method's computational complexity on high-dimensional datasets may impact large-scale applications. Future research could explore applications on larger datasets and optimize computational efficiency.

Plain Language Accessible to non-experts

Imagine you're shopping in a huge supermarket with thousands of products. You need to find items that have been moved for some reason. Our tool acts like a smart shopping assistant, quickly identifying these moved items and telling you which specific area they're in. This way, you can easily find what you need without wasting time searching the entire store.

ELI14 Explained like you're 14

Imagine you're playing a game where you need to find hidden treasures in a room. This tool is like a super detector that helps you quickly find where the treasures are hidden. It not only tells you where the treasures are but also why they're there. It's like having a superpower that helps you win the game easily!

Glossary

Domain Shift

Refers to changes in dataset probability distributions that may affect model performance.

Used to detect distributional differences between datasets.

Local Density Anomaly

Refers to abnormal density changes in specific feature spaces.

Used to identify anomalous regions in datasets.

Feature Subspace

Refers to the set of features supporting anomalies.

Used to identify key features of domain shifts.

Bidirectional Tail-KS Equalization

A statistical method for identifying and removing anomalous samples.

Used to construct sample subsets with no detectable residual distributional differences.

Neighbor-Enriched Subspace Localization

A method for identifying feature subspaces supporting anomalies.

Used to identify key features of domain shifts.

Open Questions Unanswered questions from this research

  • 1 How can this method be applied to larger datasets?
  • 2 How can the computational complexity on high-dimensional datasets be optimized?

Applications

Immediate Applications

Medical Data Analysis

Can be used to identify device-induced distributional shifts, improving the accuracy of medical data analysis.

Long-term Vision

Large-Scale Dataset Application

Future applications on larger datasets could help identify more complex domain shifts.

Abstract

We developed a tool for detecting domain shifts, namely subtle differences in the probability distributions of datasets. We identify these shifts using an algorithm designed to detect localised density anomalies in high-dimensional feature spaces. If an anomaly is present, we then identify the feature subspace in which the anomaly is most pronounced. This allows us to trace the domain shift to a small set of features, making the shift interpretable. Moreover, we provide a protocol for compensating domain shifts by extracting, from two unlabelled datasets, subsets of samples with no detectable residual distributional difference. We validate the framework on controlled 20-dimensional benchmarks with known ground truth, recovering both broad and localized shifts together with their supporting feature subspaces. We then apply it to healthy electrocardiogram (ECG) recordings represented by 782 features. In age- and sex-matched cohort comparisons differing in measurement-device composition, the method detects device-induced shifts, extracts representative subsets enriched in the imbalanced device components, and identifies ECG features associated with the acquisition contrast. These results suggest that density-shift detection and subspace attribution provide a practical framework for uncovering hidden cohort biases before downstream modelling.

stat.ML cs.LG