Domain-Adjusted Regression or: ERM May Already Learn Features Sufficient for Out-of-Distribution Generalization
Elan Rosenfeld, Pradeep Ravikumar, Andrej Risteski
TL;DR
The paper investigates whether out-of-distribution generalization hinges on learning different features or simply on learning a robust predictor on top of existing features. It shows that using frozen ERM features, a robust linear predictor can achieve near-ideal performance, motivating Domain-Adjusted Regression (DARE), a convex objective that per-domain whitens features and learns a unified predictor in a canonical space with guarantees. Theoretical contributions include closed-form population solutions, a minimax risk characterization under a constrained shift model, and finite-environment convergence guarantees, along with a JIT-UDA extension. Empirically, DARE matches or outperforms prior domain-generalization methods on several benchmarks when operating on fixed features, supporting a modular view: robust prediction on pre-learned features can substantially close the gap to ideal generalization while reducing computational cost. Overall, the work advocates simpler, well-grounded approaches to robust prediction that leverage existing representations rather than relying on end-to-end complex invariance training.
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.
