Reine-Cortex (QueenCortex): Zero-Gradient Weight-Space Programming, Active Campaign Governance, and Lean 4 Soundness for Decentralized Mixture-of-Experts (An Extension to Project HiveMind)
Reine-Cortex (QueenCortex — Protocole Gelée Royale) is a deterministic, training-free (0 MiB GPU VRAM, 0 backpropagation steps) NeuroController extending Project HiveMind (DOI: 10.5281/zenodo.24043016; Concept DOI: 10.5281/zenodo.23597697). Where Project HiveMind decentralized Sparse Mixture-of-Experts (MoE) outer optimization across 8 GB consumer GPUs via DiLoCo and 4-bit NF4 QLoRA, Reine-Cortex closes the post-round consolidation and inter-round governance loop inside La Ruche (the shared MoE vault) through a four-tier honeybee architecture: Les Abeilles Butineuses (volunteer DiLoCo/QLoRA foragers), Les Abeilles Nourrices (zero-VRAM Weight-Space Programming surgeons distilling raw adapter Nectar into Gelée Royale), Operculation d'Alvéole (monotone ANSE thermodynamic gating with single-shot holdout vault locks), and Phéromones Royales (closed-loop foraging directives for the next campaign round). Machine-Checked Lean 4 Demonstration of Capabilities and Obstructions (0 sorryAx, 0 custom axioms): In formal/ANSE/ReineCortexNeuroControllerSpec.lean and formal/ANSE/ReineCortexNeuroController.lean (14 kernel-checked declarations, 10/10 canonical specification obligations verified by anse/formal/lean_runner.py, complementing the 171 declarations in lean4/HiveMindSpec.lean), we prove over arbitrary finite tensor dimensions in ℜ: (1) symmetry, idempotence (P02 = P0), and exact rank-k general-prose subspace annihilation P0(Vc) = 0; (2) the associative rank-preserving LoRA null-space identity ((sB)A)P0 = (sB)(AP0) yielding a 128× intermediate buffer reduction at Granite-3.1-3B dimensions (cutting host RSS from 20.6 GiB to 7.1 GiB, −65.5%); (3) exact zero-FLOP logit division under folded RMSNorm gain w/τ, greedy argmax invariance, and squared logit-margin contraction for τ > 1; (4) exact prose-gradient orthogonality and unconditional quadratic specialist descent for the Riemannian Fisher-whitened ker(GD0) Gelée Royale step; (5) Trophallaxie sequential adapter telescoping and forgotten mid-chain specialist recovery; and (6) multi-round ANSE Operculation energy monotonicity and inductive general-prose guard invariance. We pair these positive theorems with two sharp formal obstructions: a scale-invariant unit-sphere counterexample where unwhitened anisotropic Fisher projection strictly ascends specialist loss (+2624/4225 > 0), and a router–expert slot co-adaptation graft obstruction (loss 8 > 0 from two zero-loss MoE arms, restored to 0 by permutation transport). Empirical Validation Across 6 Model Families and 10 Single-Shot Locked Holdout Vaults: Across 47 merged cleanroom NeuroController slices (PRs #978–#1049 on xaviercallens/HiveMind, 96.06%–100% standalone test coverage) and pairwise SHA-256 disjoint token splits (up to 21-way verified), Reine-Cortex achieves: -0.554969 nats on PILOT1 virgin vault (6.35× deeper than prior interpolation, E0 = +0.119%), -0.535510 nats on 21-way disjoint PILOT6, closed-form rescue of discarded CROWDGPT-MOE-C3 checkpoints at -0.159464 nats with all 6/6 domains < 0%, rescue of failing 32-expert IBM Granite-3.1-1B-A400M chains (+0.17297 → −0.008324 nats, ECE −20.59%), dense Qwen2.5-1.5B ECE reduction of −46.8% at 0.0000995% edited parameters, Qwen3.5-0.8B 4-gram reasoning-loop suppression of −15.4% (ECE −42.0%), and live 8-Alvéole La Ruche v2.6.0 improvement (PILOT10: -0.009267 nats, perplexity 261.46 → 259.05, |GD0δw| = 1.16×10−9) with causal Leave-One-Alvéole-Out anchor/sink attribution. Further Research Directions: (1) Closed-loop inter-round Gelée Royale DiLoCo trophallaxis inside OpenTrainer; (2) Kronecker-factored Riemannian null-space transport resolving the unit-sphere Fisher obstruction; (3) optimal-transport / permutation-aligned cross-arm MoE fusion resolving router–expert co-adaptation mismatch; (4) dynamic Alvéole mitosis and Ghost-Sink recycling on 8 GB consumer GPUs; and (5) proof-carrying ZK-WSP receipts for trustless multi-hive federation. Every table entry and figure in this manuscript is programmatically generated from committed execution and Lean 4 kernel receipts included in this archive. Not peer reviewed.
Authors
- Xavier Callens
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24542440
- Primary Topic
- Artificial Intelligence Applications
- Type
- preprint