Compiling Deterministic and Continuous Programs into Pretrained

Compiling Deterministic and Continuous Programs into Pretrained Transformer Weights


Author: Mark Marosi

arXiv: 2612.04520 [cs.CL]

Submitted: 2 December 2026

Primary Subject: Computation and Language (cs.CL)


Abstract


Sparse Mixture-of-Experts (MoE) language models leave hundreds of routed experts inactive when processing calibration prose, creating dormant parameter banks inside pretrained weights. This paper introduces Dominant-Beacon Orthogonal Preemption, a closed-form, zero-gradient compilation method that embeds stateful deterministic and continuous programs exclusively inside calibration-cold experts. The method keeps every tensor shape, the parameter count, every attention layer, every shared expert, and both vocabulary matrices bit-identical.


Triggered by an orthogonal router beacon, these cold-expert circuits execute a range of computations across distinct MoE architectures, including:


  • multi-tenant arithmetic
  • continuous quantum simulation
  • in-weight backpropagation
  • cellular automata
  • three-dimensional ray casting
  • a stateful three-map game engine

Across three representative compiled builds screened on five capability benchmarks and held-out web text, observed capability changes are small, and every paired confidence interval spans zero. This stands in sharp contrast to the authors' dense-host construction, where subspace eviction degrades reasoning accuracy. The cold-expert circuits retain accuracy through moderate benign fine-tuning before decaying over longer horizons due to coupled cold-expert and attention drift.


Crucially, the paper shows that calibration-coldness itself is a trivial signature: blindly pruning the least-routed experts removes cold-expert payloads with no detector, and layer-normalized spectral forensics separate tested cold-expert camouflage payloads from clean official checkpoints across model families. Moving a shallow guardrail circuit out of cold experts into active, shared-expert-entangled experts evades both blind pruning and fixed-threshold spectral scanning. Such a circuit persists under benign fine-tuning and incurs substantial removal cost under tested oracle-guided excision procedures, losing resistance only under trigger-bearing fine-tuning.


Key Contributions


  1. Zero-gradient compilation method. Dominant-Beacon Orthogonal Preemption embeds executable programs into pretrained MoE weights without altering model architecture or parameter count.

    1. Dormant parameter exploitation. Calibration-cold experts serve as isolated execution environments for deterministic and continuous programs, triggered by an orthogonal router beacon.

      1. Broad program coverage. Demonstrated programs span arithmetic, quantum simulation, in-weight backpropagation, cellular automata, ray casting, and a stateful game engine.

        1. Capability preservation. Compiled builds show minimal benchmark degradation, with confidence intervals spanning zeroβ€”unlike dense-host constructions that degrade reasoning.

          1. Detection and defense analysis. The work identifies calibration-coldness as a detectable signature, evaluates blind pruning and spectral forensics as defenses, and shows that relocating payloads into active shared-expert-entangled experts evades both while raising removal costs.

          2. Implications


            The findings raise important questions for 2026 model security and provenance research. As MoE architectures become standard in frontier language models, dormant expert capacity represents an underexamined attack surface. The paper demonstrates both the feasibility of stealthy in-weight compilation and the limits of current detection and removal strategies, underscoring the need for stronger forensic tooling and defense-in-depth approaches for pretrained weight integrity.

            via ArXiv CL+LG

Related