[2312.10107] Towards Context-Aware Domain Generalization: Understanding the Benefits and Limits of Marginal Transfer Learning