[Paper Review] Rich Feature Construction for the Optimization-Generalization Dilemma
This paper proposes the Bonsai algorithm—a rich feature construction (RFC) method that initializes deep networks with a diverse, pre-trained representation containing multiple potentially useful features. By decoupling feature discovery from optimization, the method enables simpler, more stable training for out-of-distribution (OoD) generalization, consistently improving performance across six OoD methods on ColoredMNIST and Camelyon17, while also reducing hyperparameter sensitivity and variance.
There often is a dilemma between ease of optimization and robust out-of-distribution (OoD) generalization. For instance, many OoD methods rely on penalty terms whose optimization is challenging. They are either too strong to optimize reliably or too weak to achieve their goals. We propose to initialize the networks with a rich representation containing a palette of potentially useful features, ready to be used by even simple models. On the one hand, a rich representation provides a good initialization for the optimizer. On the other hand, it also provides an inductive bias that helps OoD generalization. Such a representation is constructed with the Rich Feature Construction (RFC) algorithm, also called the Bonsai algorithm, which consists of a succession of training episodes. During discovery episodes, we craft a multi-objective optimization criterion and its associated datasets in a manner that prevents the network from using the features constructed in the previous iterations. During synthesis episodes, we use knowledge distillation to force the network to simultaneously represent all the previously discovered features. Initializing the networks with Bonsai representations consistently helps six OoD methods achieve top performance on ColoredMNIST benchmark. The same technique substantially outperforms comparable results on the Wilds Camelyon17 task, eliminates the high result variance that plagues other methods, and makes hyperparameter tuning and model selection more reliable.
Motivation & Objective
- To address the optimization-generalization dilemma in out-of-distribution (OoD) learning, where penalty-based methods are either too strong or too weak to optimize reliably.
- To reduce the difficulty of training OoD models by providing a rich, diverse representation that simplifies feature selection for downstream optimization.
- To improve the reliability of hyperparameter tuning and model selection in OoD settings by reducing performance variance.
- To enable both OoD and standard ERM methods to achieve state-of-the-art performance through a strong inductive bias from pre-constructed features.
Proposed method
- The Bonsai algorithm uses alternating discovery and synthesis episodes to build a diverse set of features.
- In discovery episodes, a multi-objective criterion is designed to prevent the network from reusing features from previous rounds, forcing exploration of new representations.
- In synthesis episodes, knowledge distillation is applied to train a single network to simultaneously represent all previously discovered features.
- The final representation is frozen and used to initialize downstream models, providing a strong inductive bias without further fine-tuning.
- The method is applied to both synthetic (ColoredMNIST) and real-world (Camelyon17) benchmarks to evaluate OoD generalization.
- Performance is evaluated using both OoD and IID validation, with hyperparameters tuned via either IID or OoD protocols.
Experimental results
Research questions
- RQ1Can a pre-trained, diverse representation improve the optimization and generalization performance of OoD methods?
- RQ2Does the Bonsai algorithm reduce the sensitivity of OoD models to hyperparameter choices?
- RQ3Can a frozen, rich representation boost performance even for standard ERM methods on OoD benchmarks?
- RQ4Does the synthesis phase, which combines multiple discovered features, significantly improve performance compared to using individual discovery rounds?
- RQ5How does the Bonsai initialization affect the reliability of model selection and hyperparameter tuning in OoD settings?
Key findings
- Bonsai initialization consistently improves the OoD generalization performance of six state-of-the-art OoD methods on the ColoredMNIST benchmark.
- On the Camelyon17 dataset, Bonsai initialization enables ERM to match or exceed the best published results, improving performance by approximately 5% over prior comparable ERM results.
- The OoD testing accuracy of IRMv1, vREx, and CLOvE on Camelyon17 becomes significantly more stable and less sensitive to penalty weight hyperparameters when using Bonsai initialization.
- The variance in both IID and OoD validation performance is substantially reduced with Bonsai initialization, making these metrics more reliable indicators of actual OoD test performance.
- The synthesis phase is essential: models trained on individual discovery rounds (e.g., round 1, 2, or 3) achieve OoD accuracies of 66.6±9.8, 73.2±5.7, and 61.8±10.2 respectively—significantly worse than the 85.2% achieved with the combined, synthesized Bonsai representation.
- Even when the Bonsai representation is frozen and not fine-tuned, it enables ERM to outperform previous ERM results on the WILDS Camelyon17 leaderboard, demonstrating the strength of the inductive bias from rich feature construction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.