Skip to main content
QUICK REVIEW

[Paper Review] Out-of-Distribution Generalization Analysis via Influence Function

Haotian Ye, Chuanlong Xie|arXiv (Cornell University)|Jan 21, 2021
Domain Adaptation and Few-Shot LearningComputer Science43 references10 citations
TL;DR

This paper proposes using the variance of influence functions as a metric to assess out-of-distribution (OOD) generalization performance, addressing the limitation of relying on test accuracy over observed domains. It demonstrates that this metric correlates better with true OOD accuracy than traditional methods like IRM penalty, especially when the true OOD distribution is unknown or unobserved.

ABSTRACT

The mismatch between training and target data is one major challenge for current machine learning systems. When training data is collected from multiple domains and the target domains include all training domains and other new domains, we are facing an Out-of-Distribution (OOD) generalization problem that aims to find a model with the best OOD accuracy. One of the definitions of OOD accuracy is worst-domain accuracy. In general, the set of target domains is unknown, and the worst over target domains may be unseen when the number of observed domains is limited. In this paper, we show that the worst accuracy over the observed domains may dramatically fail to identify the OOD accuracy. To this end, we introduce Influence Function, a classical tool from robust statistics, into the OOD generalization problem and suggest the variance of influence function to monitor the stability of a model on training domains. We show that the accuracy on test domains and the proposed index together can help us discern whether OOD algorithms are needed and whether a model achieves good OOD generalization.

Motivation & Objective

  • To address the critical limitation of using test accuracy on observed domains as a proxy for OOD generalization, which can be misleading when the true OOD distribution is unobserved.
  • To develop a model-agnostic metric that can reliably indicate whether an OOD algorithm is necessary, even when the full set of target domains is unknown.
  • To provide a stable, interpretable, and comparative measure of model robustness across different algorithms, independent of hyperparameter tuning.
  • To overcome the shortcomings of IRM penalty as a selection metric, which can be biased and uncorrelated with actual OOD performance due to overfitting on the penalty term.

Proposed method

  • Adopt influence functions from robust statistics to measure the sensitivity of model predictions to training data points across domains.
  • Compute the variance of influence functions across training domains as a stability metric, denoted as $\mathcal{V}_{{\bm{\gamma}}|{\bm{\theta}}}$, to assess model consistency under distribution shift.
  • Use a shuffling baseline to normalize the variance metric, enabling relative comparison across different models and algorithms without requiring absolute scale interpretation.
  • Propose a two-stage evaluation: first, use the influence variance to determine if OOD generalization is needed; second, use test accuracy to rank models within the same OOD category.
  • Apply the metric to real-world benchmarks like Colored MNIST, VLCS, and PACS, comparing it against ERM, IRM, Mixup, and gDRO.
  • Demonstrate that low influence variance correlates strongly with high OOD accuracy, even when test accuracy fails to predict it.

Experimental results

Research questions

  • RQ1Can test accuracy on observed domains reliably estimate a model’s true OOD generalization performance?
  • RQ2Is there a model-agnostic metric that can detect whether OOD generalization is necessary, even when the full set of target domains is unknown?
  • RQ3How does the variance of influence functions compare to IRM penalty as a predictor of OOD robustness?
  • RQ4Can influence function variance help distinguish between models that generalize well to unseen domains and those that merely overfit to training domains?
  • RQ5Does the proposed metric remain effective across diverse algorithms and datasets, even when hyperparameters are not optimally tuned?

Key findings

  • Test accuracy on observed domains can be a poor proxy for OOD accuracy, as shown in Colored MNIST where ERM outperforms IRM on test domains but IRM achieves significantly better OOD accuracy.
  • The influence function variance metric $\mathcal{V}_{{\bm{\gamma}}|{\bm{\theta}}}$ consistently correlates with OOD performance across multiple datasets and algorithms, with lower values indicating better OOD generalization.
  • In VLCS, gDRO shows the highest influence variance (5.17 on average), indicating poor stability, while ERM and Mixup show lower values (2.05 and 2.70), aligning with their better OOD performance.
  • IRM penalty is a poor selection metric because it can be low even when OOD performance is poor (e.g., IRM penalty of 2.59e-4 but OOD accuracy of only 38.64% on C domain), and high for models like Mixup despite similar OOD accuracy to ERM.
  • The proposed metric enables reliable model selection without relying on hyperparameter tuning, as it is invariant to the scale of the penalty and robust across different algorithms.
  • When $\mathcal{E}_{all} \setminus \mathcal{E}_{tr} = \{S\}$, the shuffle version of $\mathcal{V}_{{\bm{\gamma}}|{\bm{\theta}}}$ is significantly smaller than the standard version for gDRO, indicating it captures fewer invariant features, while ERM and Mixup show minimal difference, suggesting better stability.

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.