7

A Canonical Method-Evolution Implementation: The MetaDE Architecture

AI999第5课:方法演化:从优化解到优化算法本身
00:00

Conventional Differential Evolution (DE) leaves the mutation strategy and key control parameters to be preset by the researcher, and keeps them fixed throughout the search. MetaDE's core shift is this:the algorithm's own configuration becomes an object of evolution as well—the outer evolution searches the algorithm space, while the inner layer evaluates performance in the solution space, turning "how to evolve" from a manual preset into an adaptive search.

MetaDE Two-Layer Evolution StructureImproving evolutionary algorithms with evolutionary algorithmsOuter Evolution Layer · Algorithm SpaceOptimization target: algorithm configuration1Mutation strategy: rand/1Binomial crossoverF=0.5CR=0.92Mutation strategy: best/1Exponential crossoverF=0.8CR=0.43Mutation strategy: current-to-best/1Binomial crossoverF=0.3CR=0.7Outer evolution operators: selection · crossover · mutation · elimination → generate the next generation of configurationsDifferences between individuals reflect how the same algorithm family behaves under different problem characteristicsCandidate configurations dispatched→ original taskReal performance returned→ outer fitnessVerification loopConfiguration generation → task verification → feedback-based selectionFitness can only come from real execution resultsInner Task Layer · Solution SpaceOptimization target: problem solutionOriginal optimization taskGiven problem instanceSame configuration run independently multiple timesRepeated 10 timesReal fitness statisticsAverage taken as the outer individual's fitnessVerification channel: every candidate configuration must be run for real once on the original taskThe outer layer optimizes algorithm configurations, the inner layer optimizes problem solutions; the two are linked by a verification channel of "run it for real once"

Two-layer structure: the outer layer searches for algorithms, the inner layer solves problems

  • Inner layer: the routine process by which differential evolution solves the original optimization task, responsible for producing real task performance.
  • Outer layer: takes one DE algorithm configuration as an individual and applies selection, crossover, mutation, and elimination to the configuration space.

The roles of the two layers must not be confused: the outer layer's optimization target is thealgorithm configuration, and the inner layer's optimization target is theproblem solution. The former determines "how to search", the latter determines "how good the result is".

What the outer layer evolves

An outer individual does not encode a few numbers but an entire set of algorithm behaviors: mutation strategy (rand/1, best/1, current-to-best/1, etc.), crossover method (binomial, exponential), and control parameters such as the scaling factor F, crossover probability CR, and population size. Differences between individuals correspond to how the same algorithm family tends to behave under different problem characteristics.

Verification loop: candidate configurations must be run for real once

No candidate configuration can be kept or discarded based on meta-metrics or prior judgment alone; it must be sent into the original task to actually run and face the test of real performance. The outer layer then uses the fitness fed back by the inner layer to perform selection, elimination, and retention, deciding which configurations are inherited and propagated. This forms an iterative loop of "configuration generation → task verification → feedback-based selection", in which outer fitness can only come from the inner layer's real execution results.

Differences from fixed DE

In traditional DE, the strategy and parameters are preset by the researcher and fixed throughout; MetaDE hands this decision to the outer evolution, giving the algorithm adaptive capability for problem characteristics—for example, preferring the more exploratory rand/1 with a larger F in the early search, then shifting to the faster-converging best/1 with a smaller F later on.

Cost and prerequisites

Each candidate configuration must run the inner task in full (usually with multiple independent runs averaged to suppress randomness), and the evaluation cost multiplies with the outer population size and number of generations. MetaDE therefore depends heavily on engineering foundations such as parallelization, tensorization, and runtime scheduling—this is exactly the engineering reason it needs to be built on a tensorized Runtime.

Minimal runnable example
Take a set of continuous optimization tasks as an example: an individual in the outer population is encoded as "rand/1 + binomial crossover + F=0.5, CR=0.9". This configuration is sent into the inner task for multiple independent runs, and the average fitness is taken as the outer individual's fitness; based on this, the outer layer selects, mutates, and retains better configurations, forming an iterative loop of "configuration generation—task verification—feedback-based selection". This step is the minimal runnable form of "improving evolutionary algorithms with evolutionary algorithms".

Positioning: MetaDE is the concrete implementation of "inner-outer two-layer evolution and adaptive mechanisms" as it moves from concept to buildable architecture, and it also provides a methodological paradigm for subsequent algorithm-structure evolution work (AutoPSO, EvoGO).