maxreiss123 / gep-llm

GNU Lesser General Public License v3.0
0 stars 0 forks source link

geppy-memory-extension: Memory extension for geppy to perform transfer learning

Abstract

Gene expression programming is an evolutionary optimization algorithm with the potential to generate interpretable and easily implementable equations for regression problems. Despite knowledge gained from previous optimizations being potentially available, the initial candidate solutions are typically generated randomly at the beginning and often only include features or terms based on preliminary user assumptions. This random initial guess, which lacks constraints on the search space, typically results in higher computational costs in the search for an optimal solution. Meanwhile, transfer learning, a technique to reuse parts of trained models, has been successfully applied to neural networks. However, no generalized strategy for its use exists for symbolic regression in the context of evolutionary algorithms. In this work, we propose an approach for integrating transfer learning with gene expression programming applied to symbolic regression. The constructed framework integrates Natural Language Processing techniques to discern correlations and recurring patterns from equations explored during previous optimizations. This integration facilitates the transfer of acquired knowledge from similar tasks to new ones. Through empirical evaluation of the extended framework across a range of univariate problems from an open database and from the field of computational fluid dynamics, our results affirm that initial solutions derived via a transfer learning mechanism enhance the algorithm's convergence rate towards improved solutions.

What contains this extension?

Installation

You can install it from sources.

  1. First download or clone this repository
    git clone https://github.com/maxreiss123/gep-llm.git
  2. Change into the root directory, i.e., the one containing the setup.py file and install the package using pip
    cd geppy-llm
    pip install .
  3. Unzip the srds_input_embd.tar.xz

Examples

Requirements

Reference

GEP - Ferreira, C.'s monograph: Ferreira, C. (2006). Gene expression programming: mathematical modeling by an artificial intelligence (Vol. 21). Springer.

Further Refs.

Remarks