Skip to main content
QUICK REVIEW

[Paper Review] Domain-Adjusted Regression or: ERM May Already Learn Features Sufficient for Out-of-Distribution Generalization

Elan Rosenfeld, Pradeep Ravikumar|arXiv (Cornell University)|Feb 14, 2022
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

This paper challenges the assumption that out-of-distribution (OOD) generalization failure in deep learning stems from poor feature learning, arguing instead that the bottleneck lies in robust linear regression on existing features. It proposes Domain-Adjusted Regression (DARE), a convex, domain-specific adjustment method that aligns domains in a canonical latent space via covariance whitening and learns a minimax-optimal linear predictor, achieving state-of-the-art performance on OOD benchmarks with minimal retraining.

ABSTRACT

A common explanation for the failure of deep networks to generalize out-of-distribution is that they fail to recover the "correct" features. We challenge this notion with a simple experiment which suggests that ERM already learns sufficient features and that the current bottleneck is not feature learning, but robust regression. Our findings also imply that given a small amount of data from the target distribution, retraining only the last linear layer will give excellent performance. We therefore argue that devising simpler methods for learning predictors on existing features is a promising direction for future research. Towards this end, we introduce Domain-Adjusted Regression (DARE), a convex objective for learning a linear predictor that is provably robust under a new model of distribution shift. Rather than learning one function, DARE performs a domain-specific adjustment to unify the domains in a canonical latent space and learns to predict in this space. Under a natural model, we prove that the DARE solution is the minimax-optimal predictor for a constrained set of test distributions. Further, we provide the first finite-environment convergence guarantee to the minimax risk, improving over existing analyses which only yield minimax predictors after an environment threshold. Evaluated on finetuned features, we find that DARE compares favorably to prior methods, consistently achieving equal or better performance.

Motivation & Objective

  • To investigate whether the primary bottleneck in OOD generalization is feature learning or robust linear prediction on existing features.
  • To challenge the prevailing view that ERM fails due to learning spurious correlations, by testing whether fine-tuning only the final linear layer on target-domain data yields superior performance.
  • To develop a simpler, convex alternative to complex invariant representation learning methods for OOD generalization.
  • To provide theoretical guarantees on minimax risk for the proposed method under a new model of distribution shift.
  • To empirically validate that ERM features are already sufficient for strong OOD performance when paired with robust linear regression.

Proposed method

  • DARE learns a linear predictor by performing domain-specific adjustments to unify domains in a canonical latent space through covariance whitening.
  • It estimates the test-time covariance adjustment using the average of train-time domain-specific adjustments, enabling robust generalization without requiring test data at train time.
  • The method uses a convex optimization objective that includes a penalty term to enforce invariance across domains, improving robustness.
  • It aligns optimal classifiers across domains by adjusting for domain-specific covariance shifts, increasing cosine similarity between domain-specific optimal decision boundaries.
  • The approach avoids discarding domain-specific subspaces (unlike invariant risk minimization), preserving more information for prediction.
  • It provides a finite-environment convergence guarantee to the minimax risk, improving upon prior analyses that only yield minimax predictors after an environment threshold.

Experimental results

Research questions

  • RQ1Does fine-tuning only the final linear layer on target-domain data significantly improve OOD generalization when features are fixed?
  • RQ2Can a simple, convex linear predictor outperform complex end-to-end invariant representation learning methods under distribution shift?
  • RQ3Is the failure of ERM in OOD generalization due to poor feature learning or suboptimal linear prediction on those features?
  • RQ4Does domain-specific adjustment via covariance whitening lead to better alignment of optimal classifiers across domains?
  • RQ5Can a finite-environment convergence guarantee be established for a minimax-optimal predictor under a new model of distribution shift?

Key findings

  • Cheating by fine-tuning only the last linear layer on target-domain data achieves performance comparable to or better than cheating while training the full network end-to-end, indicating that ERM features are already highly effective.
  • The performance gap between standard ERM and the best-known methods is reduced by 10–15% when using a linear classifier on fine-tuned ERM features, suggesting that feature learning is not the main bottleneck.
  • DARE achieves state-of-the-art performance on all evaluated benchmarks (Office-Home, PACS, VLCS), consistently matching or exceeding prior methods.
  • The normalized error in estimating the test-time covariance adjustment is consistently low (e.g., <0.05 across most splits), validating the robustness of the averaging estimation strategy.
  • After domain adjustment, the cosine similarity between individually optimal classifiers across domains increases significantly (e.g., from 0.200 to 0.598 on VLCS), confirming effective alignment of decision boundaries.
  • The penalty term in DARE is crucial: removing it reduces performance, and the method remains robust across a wide range of penalty values, indicating stable optimization.

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.