MachineSex/configs/layer1/E12_nk.yaml
Giorgio Gilestro db9452c9d4 E12: model speciation — the merge-compatibility limit of the sexual society
New analytic result for the evolution-of-sex paper: how far can two lineages
diverge before recombination (model merging) stops working? Frames merge failure
as biological reproductive isolation via Bateson-Dobzhansky-Muller
incompatibilities. src/knowledge/speciation.py, kind: speciation, on the E7-E11
genotype machinery (pure seeded NumPy, bitwise-reproducible; no external
simulator whose separate RNG would break that).

- BDM construction (E12.yaml): ancestor + two lineages substituting disjoint loci
  (each parent adaptive, incompatibility-free), a fraction rho of cross-lineage
  pairs are BDMIs. Sweeping divergence d reproduces the predicted
  compatible -> outbreeding depression -> hybrid inviability curve; the isolation
  cliff moves to lower d as epistasis density rises (iso at d=20: 0.00/0.03/0.50
  for rho 0.1/0.25/0.5); incompatibilities snowball ~ (d/2)^2 (Orr-Turelli).
- NK variant (E12_nk.yaml): parents = hill-climbed local optima; the epistasis
  wedge — recombination gain flips 0 -> -0.13 and OD rate 0 -> 0.90 as ruggedness
  K rises. At matched divergence, mergeability is governed by epistasis, the axis
  no divergence-only ML merge predictor captures.

plot_E12.py (3-panel), +7 tests (138 green), README with honest positioning
(concedes the empirical phenomenon to Pari 2024 / Zhou 2026 + permutation
artefacts to Git Re-Basin; claims the predictive theory + the epistasis wedge).
Wired into make layer1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 22:40:02 +01:00

22 lines
943 B
YAML

experiment: E12_nk
kind: speciation
seed: 12
n_replicates: 15
# E12 (NK variant) — the EPISTASIS WEDGE, the paper's distinct falsifiable claim: at matched divergence,
# mergeability is governed by the EPISTASIS (ruggedness K) of the capability landscape, not by divergence
# alone (every existing ML merge predictor is a divergence measure). Parents are LOCAL OPTIMA reached by
# hill-climbing a Kauffman NK landscape from random starts; recombining them exposes broken co-adapted
# blocks. As K rises, recombining two adapted parents flips from a gain (offspring above the worse parent)
# to outbreeding depression (offspring below it). K=0 (additive) is the no-isolation control.
speciation:
landscape: nk
L: 16
K: [0, 2, 4, 6, 8, 10] # ruggedness / epistasis knob
n_pairs: 40 # random parent-pairs (local optima) aggregated per landscape
recomb_rate: 0.5
n_offspring: 200
output:
dir: results/E12_nk