NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Dynamics of Mating Preferences in Genetic Programming

José Maria Simões, Nuno Lourenço, Penousal MachadoarXiv 2025

TL;DR

This paper investigates the evolutionary dynamics of PIMP (Mating Preferences as Ideal Mating Partners), a selection method that introduces evolved mating preferences to combat premature convergence and bloat in Genetic Programming (GP). The authors reveal that while these preference chromosomes are highly sensitive to genetic operators and tend to collapse to single nodes without growth-promoting mutations, they still successfully drive population diversity and act as a powerful, natural anti-bloat mechanism.

What Problem Does This Paper Address?

Genetic Programming (GP) algorithms are notoriously prone to two interrelated failure modes: premature convergence (losing population diversity and getting stuck in local optima) and bloat (solutions growing unnecessarily large and complex without any corresponding fitness gains).

While traditional methods use explicit restrictions like fitness sharing or crowding to maintain diversity, recent work introduced a bio-inspired approach called PIMP. PIMP mimics sexual selection by allowing individuals to evolve their own internal preferences for an "ideal mate." However, until now, the evolutionary dynamics of these preferences remained a black box. The authors of this paper set out to answer a fundamental question: How do these mating preferences actually evolve over time, and are they truly self-sustaining?

Methods

The PIMP framework alters the standard GP architecture by giving each individual two distinct chromosomes:

  1. Chromosome 1 (Solution): The actual program tree evaluated against the objective function.
  2. Chromosome 2 (Ideal Mate Tree): A separate tree representing the individual's preference for a partner's phenotype.
Fig. 1: Illustration of the composition of an individual under the PIMP approach.

During parent selection, the algorithm executes a two-step process:

  • Step 1 (Tournament): A first parent (the Chooser) is selected via standard fitness-based tournament selection.
  • Step 2 (Mate Choice): A random pool of candidate partners (the Courters) is assembled. The Chooser activates its preference chromosome (Chromosome 2) and compares it against the solution chromosome (Chromosome 1) of each Courter. The Courter whose solution fitness most closely matches the Chooser's preference is selected as the second parent.
Fig. 2: Illustration of the selection scheme in PIMP.

To see how these preferences behave in the long run, the authors tracked them over 1,500 generations across four different mutation regimes: Subtree Mutation (which allows trees to grow), Node Replacement (which keeps structure constant), No Mutation, and a Hybrid Mutation scheme.

Datasets

The authors evaluated the configurations using two main benchmarks:

  • Symbolic Regression Functions: Three classic benchmark problems (Koza-1, Nguyen-6, and Pagie-1) sharing a standard mathematical function set.
  • Real-World Dataset: The SciPy Diabetes dataset, which consists of 442 samples from diabetes patients with 10 baseline features, presenting a significantly more complex, high-dimensional challenge.

Key Insights and Ideas

  • The Preference Collapse: In the absence of a mutation operator that actively forces tree growth (like subtree mutation), preference trees rapidly shrink until they become a single root node.
  • Drift, Not Adaptation: By tracking fitness improvements against preference depth, the authors proved that this collapse isn't an adaptive strategy. Preferring single-node mates doesn't actually yield better offspring. Instead, the preferences collapse due to a lack of direct selective pressure on the preference chromosome itself, leaving it vulnerable to Crossover Bias Theory (CBT)—the tendency of crossover to naturally generate smaller trees.
  • An Accidental Anti-Bloat Weapon: Even when preferences collapse to single nodes, the mechanism still works brilliantly. Because half the selection pressure (the Choosers) actively seeks out simpler, smaller mates, it creates a powerful counter-weight to the natural tendency of GP solutions to bloat.

Key Results

  • Superior Diversity: When paired with subtree mutation, PIMP consistently maintained higher solution diversity than standard tournament selection. For example, on the Pagie-1 benchmark, PIMP maintained 90% unique solutions at termination compared to just 66% for standard tournament selection.
  • Effective Bloat Control: PIMP consistently produced smaller, more depth-balanced trees. On the complex Diabetes dataset, standard tournament selection saw solutions heavily concentrated at the maximum depth limit of 17, while PIMP significantly attenuated this concentration, maintaining an average tree depth of 13.5 vs. 16.5.
  • Competitive Performance: While PIMP did not drastically outperform tournament selection in terms of Mean Best Fitness (MBF) across all datasets, it achieved statistically similar performance while delivering much smaller, less complex, and less bloated solutions.

Limitations and Future Work

The primary limitation identified is PIMP's extreme sensitivity to its mutation setup; without growth-promoting operators, the preference mechanism loses its structural complexity entirely.

For future work, the authors suggest exploring whether mating preferences can be tailored specifically to prioritize smaller solutions when fitness gains plateau. They also propose testing PIMP on non-tree representations (such as binary strings) and evaluating its utility in multi-objective optimization problems, where a diverse set of evolved preferences could target different objectives simultaneously.

Summary updated

BibTeX
@misc{simoes2025dynamics,
  author = {José Maria Simões and Nuno Lourenço and Penousal Machado},
  title = {{On the Dynamics of Mating Preferences in Genetic Programming}},
  year = {2025},
  eprint = {2504.06110},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.06110},
}
Figure