Domain Generalisation via Imprecise Learning

Anurag Singh, Siu Lun Chau, Shahine Bouabid, Krikamol Muandet

Abstract

Traditional machine learning models require engineers to commit to a specific risk profile—such as average-case or worst-case performance—during the training phase. However, the optimal risk strategy often depends on the specific needs of the end-user at deployment, which may be unknown to the developer. This paper introduces Imprecise Domain Generalisation (IDG), a framework that allows models to remain flexible by training an augmented hypothesis that adapts to a continuous spectrum of risk preferences. By utilizing Imprecise Risk Optimisation (IRO), the approach minimizes generalization uncertainty and achieves superior performance across diverse out-of-distribution (OOD) benchmarks, including Colored MNIST and real-world regression tasks.

1. Introduction

In the field of Out-of-Distribution (OOD) generalization, the primary objective is to develop models that maintain performance when test data deviates from the training distribution. A fundamental challenge in this pursuit is "generalization uncertainty": the ambiguity regarding whether a model should prioritize average-case performance (Empirical Risk Minimization) or robustness against the worst-case scenario (Distributional Robust Optimization).

This paper identifies an "institutional separation" in the AI lifecycle. The learner (the engineer) typically develops the model without full knowledge of the operator's (the end-user's) specific requirements. For instance, a model trained for average-case accuracy might be deployed in a high-stakes clinical setting where worst-case reliability is paramount. Currently, engineers must make an arbitrary commitment to one risk strategy during training. Imprecise Domain Generalisation (IDG) proposes to defer this choice, allowing the operator to select the risk profile at the moment of deployment.

2. Methodology

The IDG framework is built upon two core innovations designed to handle a spectrum of risk preferences rather than a single point estimate.

2.1 Augmented Hypothesis ($h(x, \lambda)$)

Instead of a static model, IDG trains an augmented hypothesis that accepts both the input data ($x$) and a risk preference parameter ($\lambda$). This is implemented using architectural components like Hypernetworks or FiLM layers, which dynamically adjust the model's weights based on the value of $\lambda$. This parameterization allows the model to represent a family of functions simultaneously.

2.2 Imprecise Risk Optimisation (IRO)

To train this augmented hypothesis, the authors developed Imprecise Risk Optimisation (IRO). Unlike standard optimization, IRO seeks to improve the model across the entire risk spectrum. It utilizes the concept of C-Pareto improvement, a multi-objective optimization technique that ensures the model improves for some risk levels without degrading performance for others.

The framework primarily utilizes Conditional Value-at-Risk (CVaR) as the risk measure. Here, $\lambda=0$ corresponds to a risk-seeking, average-case profile, while $\lambda=1$ represents a highly risk-averse, worst-case profile.

3. Experimental Evaluation

The researchers evaluated IDG across three distinct environments to test its versatility and robustness.

  • Synthetic Data: Linear models with multi-modal distributions were used to create discontinuous risk profiles, testing the model's ability to capture complex performance trade-offs.
  • UCI Bike Rentals: A regression task predicting hourly bike rentals. Data was partitioned by seasons and years to simulate natural distribution shifts, representing a real-world application of OOD generalization.
  • Colored MNIST (CMNIST): A benchmark where digit color serves as a spurious correlation. In some training sets, color is highly predictive, but it fails or reverses in others. This experiment tests whether the model can learn to ignore misleading features when the risk parameter $\lambda$ is high.

4. Key Insights and Results

4.1 Information Borrowing and Efficiency

One of the most significant findings is the "borrowing" effect. Because the augmented hypothesis is smooth across the $\lambda$ parameter, the model can share statistical information between nearby risk regions. This makes training more efficient than training multiple independent models for different risk levels. In the UCI Bike Rental task, the IDG model actually outperformed "ideal" baselines at high risk levels due to this shared learning.

4.2 Context-Aware Feature Selection

In the CMNIST experiments, the model demonstrated an ability to switch strategies based on the operator's needs. When the operator was risk-seeking (low $\lambda$), the model utilized the "color" feature, which provided a strong but unstable signal. When the operator was risk-averse (high $\lambda$), the model shifted its focus to "shape," a stable and invariant feature. This resulted in a regret score of 29.7, significantly outperforming standard ERM (72.7) and Invariant Risk Minimization (32.3).

4.3 Reduction in Maximum Regret

Across all benchmarks, the IDG approach consistently achieved the lowest "maximum regret." Regret measures the performance gap between the deployed model and an ideal model trained specifically for that single environment. By remaining "imprecise" during training, the model avoids over-committing to a strategy that might be suboptimal for the eventual deployment context.

5. Limitations and Future Work

While promising, the framework faces challenges regarding computational complexity, as training for a continuum of objectives is more resource-intensive than single-point optimization. Additionally, preference elicitation remains an open question; translating a human operator's qualitative needs into a numerical $\lambda$ value requires further study. Future research may also explore alternative aggregation functions beyond CVaR to incorporate considerations such as fairness and privacy.

6. Conclusion

Imprecise Domain Generalisation represents a shift in how we approach OOD robustness. By acknowledging the uncertainty of the deployment environment and deferring risk commitments, IDG provides a flexible, efficient, and high-performing framework for real-world machine learning applications.

Summary updated

BibTeX
@inproceedings{singh2024domain,
  author = {Anurag Singh and Siu Lun Chau and Shahine Bouabid and Krikamol Muandet},
  title = {{Domain Generalisation via Imprecise Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=yFUdZfbEme},
}
Figure