5

MetaDE: Improving Evolutionary Algorithms with Evolutionary Algorithms

AI999第7课:AI Native 科研范式与 EvoX 实战切入
00:00

The classical optimization workflow focuses entirely on the solution space: fix a set of Differential Evolution (DE) configurations — mutation strategy, crossover rate CR, scaling factor F, population size NP — and then iterate repeatedly to approach the optimal solution of the problem. But one question has always remained unresolved:Who chose this configuration in the first place?MetaDE's answer is to treat "the method that generates candidate solutions" as something to be evolved as well: by wrapping another layer of evolutionary algorithm on the outside, dedicated to searching for better algorithm configurations, it forms a bilevel optimization loop of "improving evolutionary algorithms with evolutionary algorithms."

MetaDE: Improving Evolutionary Algorithms with Evolutionary AlgorithmsWhat evolves: the algorithm configuration itselfOuter Layer: Evolutionary Algorithm Configuration Search (Meta-Level)Role: encode configurations → evaluate fitness → generate the next generationIndividual ₁: Mutation StrategyDE/rand/1Individual ₂: Crossover RateCR = 0.7Individual ₃: Population SizeNP = 60Individual ₄: Scaling FactorF = 0.5Outer-layer update: selection · recombination · mutation → generate the next generation of configurationsConfiguration dispatchedPerformance reported backBoth layers share the same fitness signalTask PerformanceInner Layer: Run Differential Evolution in Parallel on Real TasksRole: receive configurations → run full solves → report back performanceTask ₁: Full DE SolveFitness f₁ = 0.91Task ₂: Full DE SolveFitness f₂ = 0.87Task ₃: Full DE SolveFitness f₃ = 0.94GPU parallelism: evaluate multiple configurations simultaneously, shortening the meta-optimization evaluation cycle

Inner vs. Outer Layer: How Responsibilities Are Divided

  • Inner layer: Takes a concrete set of DE configurations, runs one full solve on a real task, produces candidate solutions, and returns a comparable performance evaluation.
  • Outer layer: Encodes DE configurations, hyperparameters, or strategy combinations as individuals, uses task performance as fitness, and applies an evolutionary algorithm (selection, recombination, mutation) to update the next generation of configurations.

A Shift in Objective: From "Finding Solutions" to "Finding Methods That Find Solutions"

What MetaDE changes is not the implementation of the optimizer, but the level of the optimization objective. Traditional DE produces a solution vector; MetaDE produces a set of algorithm configurations that can reliably produce better solutions on this class of tasks. In other words, the object of search rises from "the answer" to "the machine that produces answers." This allows the results of a single outer-layer search to be transferred and reused across other instances in the same family.

The Feedback Loop and Its Engineering Prerequisites

The entire system is tied together by a single loop: the outer layer dispatches configurations → the inner layer executes the solves → performance is reported back → the outer layer uses this to update the next generation of configurations. Note that for one individual in the outer layer to obtain fitness, it must pay the cost of one (often multiple parallel) full inner-layer run, so evaluation cost management and parallel scheduling are at the core of system design. It is precisely the GPU's ability to run large numbers of inner-layer tasks simultaneously that makes this kind of "expensive-to-evaluate" meta-optimization feasible in engineering terms.

The Essence in One Sentence
The inner layer is responsible for "what gets computed," the outer layer for "how to compute it better." Both layers share the same fitness signal — task performance — and that is precisely why they can form a closed loop.