Skip to main content
QUICK REVIEW

[Paper Review] Mandoline: Model Evaluation under Distribution Shift

Mayee Chen, Karan Goel|arXiv (Cornell University)|Jul 1, 2021
Machine Learning and Data ClassificationComputer Science10 citations
TL;DR

Mandoline is a user-guided model evaluation framework that improves performance estimation under distribution shift by leveraging practitioner-defined 'slicing functions' to guide density ratio estimation. By reweighting source data using slice-based importance weights, Mandoline reduces estimation error by up to 3× compared to standard importance weighting, especially under high-dimensional or non-overlapping support shifts.

ABSTRACT

Machine learning models are often deployed in different settings than they were trained and validated on, posing a challenge to practitioners who wish to predict how well the deployed model will perform on a target distribution. If an unlabeled sample from the target distribution is available, along with a labeled sample from a possibly different source distribution, standard approaches such as importance weighting can be applied to estimate performance on the target. However, importance weighting struggles when the source and target distributions have non-overlapping support or are high-dimensional. Taking inspiration from fields such as epidemiology and polling, we develop Mandoline, a new evaluation framework that mitigates these issues. Our key insight is that practitioners may have prior knowledge about the ways in which the distribution shifts, which we can use to better guide the importance weighting procedure. Specifically, users write simple "slicing functions" - noisy, potentially correlated binary functions intended to capture possible axes of distribution shift - to compute reweighted performance estimates. We further describe a density ratio estimation framework for the slices and show how its estimation error scales with slice quality and dataset size. Empirical validation on NLP and vision tasks shows that Mandoline can estimate performance on the target distribution up to 3x more accurately compared to standard baselines.

Motivation & Objective

  • Address the challenge of evaluating machine learning models on target distributions that differ from training data due to distribution shift.
  • Overcome limitations of standard importance weighting, which fails under high-dimensional data or non-overlapping support between source and target distributions.
  • Leverage practitioner knowledge about potential distribution shifts by allowing them to define noisy, correlated slicing functions as proxies for shift axes.
  • Develop a theoretically grounded framework that provides error bounds under realistic assumptions, even when support overlap is minimal.
  • Enable accurate, retraining-free evaluation of pre-trained models on new target distributions using minimal human input in the form of slicing functions.

Proposed method

  • Users define 'slicing functions'—noisy, correlated binary functions—to identify potential axes of distribution shift in data, such as linguistic patterns or metadata.
  • The framework projects both source and target data into a slice space, reducing dimensionality and enabling more stable density ratio estimation compared to raw feature-based methods.
  • A graphical model is used to represent slice correlations and incompleteness, incorporating user confidence in slice quality to improve robustness.
  • The method extends LL-KLIEP to denoise density ratio estimates using prior knowledge about slice reliability, reducing variance from noisy or incomplete slices.
  • Performance on the target distribution is estimated by reweighting labeled source data using the estimated slice-level density ratios.
  • Theoretical analysis provides a bias-variance decomposition of estimation error, showing that bias depends on slice quality and variance on data size and distributional properties.

Experimental results

Research questions

  • RQ1How can model evaluation be improved when the target deployment distribution differs significantly from the training distribution?
  • RQ2To what extent can user-defined slicing functions reduce estimation error in importance weighting under distribution shift?
  • RQ3How does the framework perform when slicing functions are noisy, correlated, or incomplete?
  • RQ4Can a denoising mechanism for density ratio estimation improve robustness to poor-quality slicing functions?
  • RQ5What theoretical guarantees can be provided for reweighting-based evaluation under support shift, where standard importance weighting fails?

Key findings

  • Mandoline reduces estimation error by up to 3× compared to standard importance weighting baselines when slicing functions fully capture the distribution shift.
  • Even with noisy or incomplete slicing functions, Mandoline shows minimal performance degradation, demonstrating robustness to imperfect user input.
  • The framework maintains low error under high-dimensional settings where standard importance weighting fails due to high variance in density ratio estimates.
  • Theoretical analysis confirms that estimation error is bounded under realistic assumptions, with bias depending on slice quality and variance on data size and distributional properties.
  • Empirical evaluation on NLP and computer vision tasks confirms that Mandoline outperforms existing baselines in estimating model performance on target distributions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.