Skip to main content
QUICK REVIEW

[Paper Review] Model Agnostic Sample Reweighting for Out-of-Distribution Learning

Xiaofang Zhou, Yong Lin|arXiv (Cornell University)|Jan 24, 2023
Domain Adaptation and Few-Shot LearningComputer Science10 citations
TL;DR

MAPLE introduces a bilevel optimization framework that learns sample weights to reweight training data, enabling weighted ERM to outperform state-of-the-art OOD methods while being model-agnostic and less prone to overfitting in large networks.

ABSTRACT

Distributionally robust optimization (DRO) and invariant risk minimization (IRM) are two popular methods proposed to improve out-of-distribution (OOD) generalization performance of machine learning models. While effective for small models, it has been observed that these methods can be vulnerable to overfitting with large overparameterized models. This work proposes a principled method, extbf{M}odel extbf{A}gnostic sam extbf{PL}e r extbf{E}weighting ( extbf{MAPLE}), to effectively address OOD problem, especially in overparameterized scenarios. Our key idea is to find an effective reweighting of the training samples so that the standard empirical risk minimization training of a large model on the weighted training data leads to superior OOD generalization performance. The overfitting issue is addressed by considering a bilevel formulation to search for the sample reweighting, in which the generalization complexity depends on the search space of sample weights instead of the model size. We present theoretical analysis in linear case to prove the insensitivity of MAPLE to model size, and empirically verify its superiority in surpassing state-of-the-art methods by a large margin. Code is available at \url{https://github.com/x-zho14/MAPLE}.

Motivation & Objective

  • Address OOD generalization, especially for overparameterized models, by avoiding overfitting in regularization-based methods.
  • Transform the optimization from model parameters to sample weights to reduce generalization risk.
  • Automatically learn sample weights without strong priors or group labels.
  • Provide theoretical insights in linear settings and empirical validation across datasets and model sizes.

Proposed method

  • Formulate MAPLE as a bilevel optimization where the inner loop minimizes a weighted ERM loss on training data and the outer loop updates sample weights by minimizing an OOD criterion on a validation set.
  • Solve the bilevel problem via projected gradient descent with truncated backpropagation to compute gradients of the outer objective with respect to weights.
  • Represent the weight space as a smaller, model-agnostic space to mitigate overfitting linked to large neural networks.
  • Optionally incorporate sparsity to enforce that only a subset of training samples influence the inner optimization, reducing computation.
  • Provide theoretical results showing identifiability of ideal sample weights in the linear case and finite-sample generalization bounds that depend on weight-space complexity rather than model size.

Experimental results

Research questions

  • RQ1Can MAPLE identify sample weights that remove reliance on spurious features while maintaining or improving OOD performance?
  • RQ2Is the learned sample-weight mapping robust to different model sizes and architectures?
  • RQ3How does MAPLE compare to IRM and GroupDRO under varying data regimes and overparameterization?
  • RQ4Does incorporating sparsity in the weight design improve generalization and computational efficiency?
  • RQ5What are the theoretical guarantees for MAPLE in linear and finite-sample settings?

Key findings

  • MAPLE achieves superior OOD performance compared with state-of-the-art methods across multiple tasks and models.
  • In linear settings, there exists a weight function that yields the debiased optimal predictor, and MAPLE can identifiably recover it under suitable conditions.
  • Finite-sample analysis shows generalization bounds that depend on the weight-space complexity and validation data size, not on model capacity.
  • Empirical results indicate MAPLE can achieve comparable or better worst-group accuracy than Oracle (ERM without spurious features) in some cases.
  • The learned sample weights show transferability across different network backbones on the same task (e.g., weights learned with ResNet-18 apply to ResNet-50).
  • MAPLE can outperform regularization-based methods by avoiding overfitting through searching in the sample-weight space rather than the full model parameter space.

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.