Transfer Learning of Surrogate Models via Domain Affine Transformation

Shuaiqun Pan, Diederick Vermetten, Manuel López-Ibáñez, Thomas Bäck, Hao Wang

TL;DR

This paper introduces a novel transfer learning method for non-differentiable surrogate models, like Random Forests, that leverages an affine transformation between source and target domains. This approach significantly reduces the data and computational costs of building accurate surrogate models, especially in data-scarce, high-dimensional scenarios.

What Problem Does This Paper Address?

Building accurate surrogate models for complex simulations or experiments can be incredibly data-hungry and computationally expensive. When dealing with multiple related tasks, it's desirable to reuse knowledge from previously trained models. However, directly applying a model trained on one task to another can fail if the underlying data distributions (domains) differ. This paper tackles the challenge of transferring surrogate models when the target domain is an "affinely transformed" version of the source domain (i.e., rotated and/or translated), assuming this transformation is unknown. The goal is to adapt a pre-trained surrogate to a new task using only a small amount of data from the target domain, thereby reducing the need for extensive new data collection.

Methods

The core of the paper's contribution lies in extending transfer learning for surrogate models to non-differentiable models, specifically Random Forests (RFR). While previous work focused on differentiable models like Gaussian Processes (GPR) where optimization of the affine transformation is straightforward, RFRs pose a challenge.

The proposed method involves:

  • Affine Transformation Parameterization: The source-trained RFR is adapted by applying an unknown affine transformation (rotation $W$ and translation $v$) to its input. The target function is assumed to be $f_T(x) = f_S(Wx + v)$.
  • Covariance Matrix Adaptation Evolution Strategy (CMA-ES): To find the optimal affine transformation parameters ($W$ and $v$), the authors employ CMA-ES. This is a powerful black-box optimization algorithm suitable for non-differentiable functions.
  • Manifold Optimization for Rotation: Since the rotation matrix $W$ lives on the $SO(d)$ manifold, a specialized approach is used. The authors optimize in the Lie algebra $so(d)$, which is a flat Euclidean space, and then recover the rotation matrix using the exponential map.

Datasets

The authors evaluate their method on a variety of benchmarks:

  • Synthetic Tasks: The Black-Box Optimization Benchmark (BBOB) suite is used. For each BBOB function, they create target tasks by applying random affine transformations.
  • Real-World Benchmarks:
    • Porkchop Plot Benchmarks in Interplanetary Trajectory Optimization: This involves transferring insights for planning interplanetary missions between different launch windows or to different planets (Earth-to-Mars, Earth-to-Venus, Mercury-to-Earth).
  • Kinematics of a Robot Arm: Predicting feed-forward torques for a SARCOS robot arm.
  • Real-World Optimization Benchmark in Vehicle Dynamics: Benchmarking optimization algorithms for minimizing braking distance across different vehicle configurations.
  • Single-Objective Game-Benchmark MarioGAN Suite: Evaluating fitness functions for procedurally generated levels in a Mario AI environment.

Key Insights and Ideas

  • Bridging the Gap for Non-Differentiable Models: The most significant insight is the successful extension of affine transformation-based transfer learning to non-differentiable models like Random Forests, which are widely used and often preferred for their interpretability and robustness.
  • CMA-ES as a Versatile Optimizer: The use of CMA-ES, particularly its Riemannian variant for optimizing rotations, proves effective in finding the correct affine transformation without requiring gradient information.
  • Diminishing Returns with Data: The benefits of transfer learning are most pronounced in low-data regimes. As the amount of transfer data increases, the performance gap between the transferred model and a model trained from scratch narrows, as expected.
  • Source Model Quality Matters: Transfer learning is most effective when the original surrogate model trained on the source task is already a good fit. If the source model is poor, the affine transformation cannot salvage the performance on the target task.
  • Robustness in High Dimensions: The RFR approach shows stable performance even in high-dimensional scenarios with limited transfer data, outperforming scratch-trained models.

Key Results

  • Significant Performance Gains: Across many BBOB functions and real-world tasks, the transferred RFR models consistently outperform models trained from scratch, especially with small transfer datasets (e.g., 50-100 samples). For instance, in 2D BBOB, the transferred model often achieves significantly lower SMAPE.
  • Efficiency in Low-Data Scenarios: The method demonstrates its value in data-scarce situations, where training a high-quality surrogate from scratch would be infeasible or prohibitively expensive.
  • Varied Effectiveness: While generally successful, the effectiveness of transfer learning varies depending on the specific function (e.g., challenging for F21-F24 in BBOB) and the magnitude of the domain shift. Some real-world tasks, like certain transfers in vehicle dynamics, proved more challenging.
  • No Extreme Outliers: Compared to GPR, the RFR-based transfer learning shows more stable performance, with no extreme outliers observed even in high-dimensional cases.

Limitations and Future Work

  • Affine Transformation Assumption: The current method is limited to affine transformations. The paper acknowledges that for more complex, non-linear domain shifts (e.g., in vehicle dynamics), the performance drops.
  • Source Model Quality Dependency: The success of transfer learning is contingent on the quality of the initial source model.
  • Future Work:
    • Extending to Other Models: Applying the approach to other non-differentiable surrogate models.
  • Active Learning Integration: Incorporating active learning to strategically select informative samples for refining both the surrogate and the transformation.
  • Non-linear Transformations: Exploring non-linear transformations (e.g., input-output warping) to handle more complex domain shifts.

Summary updated

BibTeX
@inproceedings{pan2024transfer,
  author = {Shuaiqun Pan and Diederick Vermetten and Manuel López-Ibáñez and Thomas Bäck and Hao Wang},
  title = {{Transfer Learning of Surrogate Models via Domain Affine Transformation}},
  booktitle = {GECCO},
  year = {2024},
  doi = {10.1145/3638529.3654032},
}

Loading related content...

Figure