Transfer Learning of Surrogate Models via Domain Affine Transformation Across Synthetic and Real-World Benchmarks

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

Abstract

Surrogate models are frequently employed as efficient substitutes for the costly execution of real-world processes. However, constructing a high-quality surrogate model often demands extensive data acquisition. A solution to this issue is to transfer pre-trained surrogate models for new tasks, provided that certain invariances exist between tasks. This study focuses on transferring non-differentiable surrogate models (e.g., random forests) from a source function to a target function, where we assume their domains are related by an unknown affine transformation, using only a limited amount of transfer data points evaluated on the target. Previous research attempts to tackle this challenge for differentiable models, e.g., Gaussian process regression, which minimizes the empirical loss on the transfer data by tuning the affine transformations. In this paper, we extend the previous work to the random forest and assess its effectiveness on a widely-used artificial problem set - Black-Box Optimization Benchmark (BBOB) testbed, and on four real-world transfer learning problems. The results highlight the significant practical advantages of the proposed method, particularly in reducing both the data requirements and computational costs of training surrogate models for complex real-world scenarios.

Introduction

In fields such as aerospace engineering and robotics, researchers rely on "surrogate models"—mathematical approximations—to replace slow, expensive computer simulations or physical experiments. However, building high-quality surrogates often requires a prohibitive amount of initial data. Transfer learning offers a potential solution by "recycling" models trained on a related source task and adapting them to a new target task. The primary challenge lies in identifying the unknown "domain shift" between these tasks. While previous research has successfully used gradient-based methods for differentiable models like Gaussian Processes, many popular surrogate tools, such as Random Forests, are non-differentiable, requiring new optimization strategies.

Methodology: TL-CMA-ES

The authors propose TL-CMA-ES, a transfer learning framework designed for non-differentiable models. The core assumption is that the target task $f^T(x)$ is related to the source task $f^S(x)$ by an affine transformation: $f^T(x) = f^S(Wx + v)$, where $W$ represents a rotation matrix and $v$ is a translation vector.

Since gradients are unavailable for Random Forests, the framework employs the Covariance Matrix Adaptation Evolution Strategy (CMA-ES), a robust black-box optimizer, to find the optimal $W$ and $v$. To ensure $W$ remains a valid rotation matrix during optimization, the authors map rotations into a Lie algebra space ($so(d)$), optimize there, and then map them back to the rotation group ($SO(d)$). This geometric approach allows the model to effectively "twist and slide" the source model to fit limited target data.

Visual comparison of surrogate model performance on BBOB function F3. The transferred models (using TL-CMA-ES) achieve significantly lower SMAPE (error) than models trained from scratch with the same number of samples (50 or 100).

Experimental Evaluation

The study evaluates the method across a diverse range of benchmarks:

  • BBOB (Black-Box Optimization Benchmark): A set of 24 synthetic functions used to test the algorithm's limits across various dimensions.
  • Real-World Engineering Tasks: Including interplanetary trajectory optimization (Porkchop Plots), robot arm kinematics (SARCOS), and vehicle braking dynamics.
  • MarioGAN Suite: Fitness functions for evaluating procedurally generated game levels, demonstrating robustness beyond physics-based tasks.

Key Results and Insights

The results demonstrate that many task differences in engineering are fundamentally geometric. By learning the correct affine transformation, a model trained on one task can be adapted to another with very few samples.

Heatmap showing the performance gain of transferred Random Forest models over scratch-trained models across BBOB functions. Red indicates superior performance for the transfer method, which is most pronounced in low-sample regimes (e.g., 50 samples).
  • The Low-Data Advantage: Transfer learning provides the most significant boost when data is scarcest (typically fewer than 100 samples). As more data becomes available, training from scratch eventually reaches comparable accuracy.
  • Stability and Robustness: Random Forests proved more stable and less prone to extreme outlier errors than Gaussian Processes when transferring in high-dimensional spaces.
  • Source Quality: Successful transfer is dependent on the quality of the source model; a poor initial model cannot be effectively adapted to a new task.

Conclusion and Future Work

TL-CMA-ES significantly reduces the data requirements and computational costs of training surrogate models for complex scenarios. While the affine assumption is powerful, it has limitations in tasks with complex, non-linear domain shifts, such as vehicle dynamics. Future research will explore non-linear "warping" techniques and the integration of active learning to intelligently select the most informative data points for transformation optimization.

Summary updated

BibTeX
@inproceedings{pan2025transfer,
  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 Across Synthetic and Real-World Benchmarks}},
  booktitle = {CEC},
  year = {2025},
  doi = {10.1109/cec65147.2025.11042973},
}
Figure