Advancing Automated Knowledge Transfer in Evolutionary Multitasking via Large Language Models

Yuxiao Huang, Xuebin Lv, Sheng-Hao Wu, Jibin Wu, Liang Feng, Kay Chen Tan · DOI

Abstract

This paper presents the Large Language Model Optimization Framework (LLMOF), an automated approach to designing Knowledge Transfer Models (KTMs) for Evolutionary Multi-task Optimization (EMTO). By leveraging the reasoning and code-generation capabilities of Large Language Models (LLMs) within an evolutionary loop, LLMOF replaces manual expert design with a "model factory." Experimental results on the WCCI2024 benchmarks demonstrate that LLM-generated KTMs consistently outperform traditional hand-crafted baselines in both optimization accuracy and computational efficiency.

The Challenge of Knowledge Transfer in EMTO

Evolutionary Multi-task Optimization (EMTO) is a powerful paradigm where multiple related problems are solved simultaneously. The core advantage of EMTO lies in knowledge transfer: sharing insights gained from solving one task to accelerate the solution of another. However, the mechanism that handles this sharing—the Knowledge Transfer Model (KTM)—is notoriously difficult to design.

Traditionally, these models are hand-crafted by human experts with deep domain knowledge. This manual process is slow, expensive, and the resulting models often struggle to generalize across different problem landscapes. The authors of this study sought to automate this process by using LLMs as "architects" to write the underlying logic for these complex transfer mechanisms.

General architecture of Evolutionary Multi-task Optimization (EMTO) where knowledge transfer is facilitated between solvers.

The LLMOF Framework

The proposed Large Language Model Optimization Framework (LLMOF) treats the design of KTMs as an evolutionary process. Instead of using an LLM to solve numerical problems directly, the framework uses the LLM to generate Python code for the KTM. This code is then iteratively refined through a feedback loop:

  1. Initialization: The LLM generates an initial population of KTMs using a Few-shot Chain-of-Thought (FSCOT) prompting technique. This guides the model to reason through design principles, such as measuring problem similarity, before generating code.
  2. Evaluation: Each generated KTM is tested on a suite of optimization tasks, tracking both effectiveness (proximity to the global optimum) and efficiency (computational time).
  3. Selection: Using non-dominated sorting, the framework identifies the "Pareto front"—models that offer the best trade-offs between speed and accuracy.
  4. Evolutionary Refinement: The LLM acts as the crossover and mutation operator, analyzing high-performing code snippets to create superior versions for the next generation.
The LLMOF evolutionary loop for automated Knowledge Transfer Model (KTM) design, featuring LLM-assisted operators and Few-shot Chain-of-Thought prompting.

Experimental Results and Key Insights

The framework was evaluated using the MTSOO (Multi-Task Single-Objective Optimization) test suite from the CEC2024/WCCI competition, which includes 50 distinct continuous optimization tasks.

Performance Gains

The LLM-generated models (KTM*) consistently outperformed established hand-crafted methods like Vertical Crossover (VCM) and Solution Mapping (SMM):

  • Superior Accuracy: On the WCCI1 benchmark, KTM* achieved a normalized fitness value of 0.19, significantly better than VCM (0.81) and SMM (0.55), where lower values indicate higher accuracy.
  • Enhanced Efficiency: Despite more complex logic, LLM-generated models were often faster. On WCCI1, KTM* required 67.79s, compared to 76.53s for VCM and 94.84s for SMM.

Semantic Evolution

Through word cloud analysis of the LLM's "Design Thoughts," the researchers observed a clear evolution in logic. Initial generations focused on generic terms like "solution" and "transfer," while later generations utilized sophisticated concepts such as "adaptive similarity" and "negative transfer reduction." This indicates that the LLM effectively "learned" which algorithmic strategies were most successful for specific problem landscapes through the evolutionary feedback loop.

Conclusion and Future Work

LLMOF demonstrates that LLMs can serve as effective meta-heuristic designers, capable of discovering optimization strategies that rival or exceed human-designed baselines. While the current study focuses on single-objective continuous optimization, future research will explore the framework's applicability to discrete combinatorial problems and multi-objective tasks, as well as its performance in complex, real-world engineering scenarios.

Summary updated

BibTeX
@misc{huang2024advancing,
  author = {Yuxiao Huang and Xuebin Lv and Sheng-Hao Wu and Jibin Wu and Liang Feng and Kay Chen Tan},
  title = {{Advancing Automated Knowledge Transfer in Evolutionary Multitasking via Large Language Models}},
  year = {2024},
  eprint = {2409.04270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.04270},
}
Figure