Hierarchical Genetic Algorithms with evolving objective functions

Harshavardhan Kamarthi, Harshavardhan P. K, Kousik KrishnanarXiv 2018

TL;DR

This research introduces a hierarchical Genetic Algorithm (GA) framework where a "meta-solver" evolves the objective functions or constraints for lower-level solvers. By starting with simpler sub-problems and adapting toward the global optimum, the system efficiently solves complex tasks like the Traveling Salesman Problem and polynomial regression.

What Problem Does This Paper Address?

Standard Genetic Algorithms typically optimize parameters for a fixed objective function. However, in many real-world scenarios, the ideal objective function is unknown or too complex, often leading algorithms to get stuck in local optima. The authors propose that learning can be accelerated by evolving the objective functions themselves. They use the analogy of a jigsaw puzzle: rather than solving the entire image at once, we solve smaller, simpler sections first and then integrate them. This paper formalizes this intuition into a computational framework capable of handling shifting constraints and obscure loss functions.

Methods

The core innovation is the Hierarchical GA framework, structured into two distinct layers:

  1. The Meta-Solver: A top-level GA where each individual represents a configuration for a lower-level solver. Its genotype encodes parameters for sub-problems, such as specific subsets of cities or weights for loss functions.
  2. The GA Solvers: These are spawned by the meta-solver to tackle the specific sub-problems defined by their parent configuration.
The hierarchical structure of the Meta-GA framework.

The framework was tested on two primary applications:

  • soft-TSP: A variant of the Traveling Salesman Problem where cities carry penalties for being skipped. The meta-solver evolves the set of cities to visit, while lower-level GAs optimize the paths.
  • Polynomial Regression: The meta-solver searches for optimal combinations of loss functions (e.g., MSE, Quantile Loss) and polynomial degrees, while lower-level GAs determine the coefficients.

A critical component is Adaptive Training, where the meta-solver begins with highly constrained versions of the problem and gradually relaxes them as the system converges, preventing premature narrowing of the search space.

Datasets

The framework was evaluated using synthetic datasets designed to isolate specific optimization challenges:

  • soft-TSP: 30-vertex graphs generated in a 2D Euclidean space.
  • Regression: Data generated from degree-2 and degree-6 polynomials with added Gaussian noise.

Key Insights and Ideas

  • Evolving Constraints as a Search Strategy: In the soft-TSP task, starting with high skip penalties encouraged the meta-solver to identify strong local paths across the entire graph before refining the vertex set. This gradual adaptation outperformed static-penalty approaches.
  • Handling Unknown Objectives: In regression tasks, the meta-solver functions as an automated hyperparameter tuner. It discovered that focusing on specific input ranges via weighted objective functions allowed for faster convergence than standard Huber loss.
Comparison of Huber and Quantile loss functions used in the regression task.
  • Diversity is Essential: The authors highlight that maintaining high mutation and crossover rates in the meta-solver is vital. A loss of diversity in the population of sub-problems leads to stagnation in local optima.

Key Results

  • Rapid Convergence: In soft-TSP experiments, the hierarchical GA surpassed a standard 2-approximate greedy solution within only two generations.
  • Computational Efficiency: For univariate polynomial regression, the framework required significantly less compute time than traditional gradient descent methods.
  • Robust Adaptability: The system successfully "re-learned" solutions when constraints were shifted mid-run, demonstrating a form of "evolutionary memory" provided by the hierarchy.

Limitations and Future Work

  • Hyperparameter Sensitivity: The meta-solver's performance is highly dependent on its own hyperparameters, particularly the mutation rate.
  • Scalability: While effective for univariate regression and small TSP instances, the scalability to high-dimensional, multivariate problems remains an open question.
  • Future Directions: The authors suggest exploring "Lamarckian" evolution, where solutions from one generation are passed as starting points to the next, potentially further reducing computational overhead.

Summary updated

BibTeX
@misc{kamarthi2018hierarchical,
  author = {Harshavardhan Kamarthi and Harshavardhan P. K and Kousik Krishnan},
  title = {{Hierarchical Genetic Algorithms with evolving objective functions}},
  year = {2018},
  eprint = {1812.10308},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.10308},
}
Figure