Decentralized Weight Control: Backpropagation-Free, Layer-Local Jacobian Control of Frozen LLMs with Zero-Shot Cross-Architecture Transfer
Abstract
Can a 3 KB (757-parameter) neural controller steer frozen LLMs across architectures at test time—without a single .backward() call? Test-time adaptation of large language models (LLMs) via backpropagation is memory-intensive and locked to a single model's dimensions, whereas standard zeroth-order optimizers—such as Elitist (1+1)-ES, Two-Point SPSA, and history-guided ES—hit a severe dimensionality wall above ~200 degrees of freedom. We introduce Decentralized Weight Control (DWC-v2.1), a backpropagation-free, layer-local Jacobian-informed framework that formulates test-time weight adaptation as decentralized continuous control over analytic low-rank subspaces. From one clean forward pass on the prompt prefix, DWC broadcasts the final prompt-tail logit contrast vector to every layer and computes exact closed-form intra-layer transpose-Jacobian products through RMSNorm, SwiGLU, attention, gated linear recurrence, and gated short convolutions—paired with a 3×3 Helmert orthogonal rotation that equalizes decision-token leverage across all three input axes. A single shared 757-parameter (~3 KB) multiplicative-gated policy runs identically at every linear module, combining 16 static geometric/predictive sensors, 4 dynamic feedback states, an initial dense reflex step (t = 0), top-25% sparse module gating (t ≥ 1), and a directional credit trace. Key Verified Findings: Zero-Shot Cross-Architecture Transfer: Trained solely on MiniCPM5-1B (504 DoF) via antithetic OpenAI-ES over 10 decontaminated, equal-weight contrastive banks, the exact same 757-parameter controller transfers zero-shot without retraining to Pure GQA (Granite-4.1-3B, 840 DoF), Gated DeltaNet linear-attention hybrids (Qwen3.5-2B, 666 DoF), and Conv+SWA+Attention tri-hybrids (LFM3-1.7B, 537 DoF). Climbs Where Zeroth-Order Search Collapses: In a controlled within-model dimensionality sweep on Granite-4.1-3B across 5–40 evenly spaced layers (105–840 DoF, zero model confounding), DoF-tuned ES peaks at 210 DoF (72.33%) and degrades to 60.75% at 840 DoF, whereas zero-shot DWC-v2.1 climbs monotonically from 66.67% to 72.92%—outperforming all 11 tested non-learned, sparse, credit-trace, and target-tuned baselines, including Target-Tuned Sparse ES + Credit Trace (+8.83 pp, 95% CI [+5.25, +12.50]) and Target-Tuned Elitist (1+1)-ES (+12.17 pp). Execution-Based Code Generation Without Reference Solutions: On MBPP Sanitized (N = 257, B = 10) using an isolated out-of-process single-public-test verifier evaluated on unseen hidden tests, DWC-v2.1 improves unseen Full Pass@1 by +8.95 pp on Granite-4.1-3B (66.54% → 75.49%) and +11.28 pp on MiniCPM5-1B (43.97% → 55.25%), alongside candid analysis of coarse discrete-reward regimes where frozen-weight Best-of-10 token sampling remains stronger. 2×2 Factorial Synergy & Off-Prompt Safety: Removing sparse gating and credit trace drops 840-DoF performance by −14.92 pp with significant positive margin synergy (I = +0.238, 95% CI [+0.095, +0.393]), verified alongside 20-sentence unseen 5-domain off-prompt KL measurements. Code, 3-Seed Checkpoints, Decontaminated Dataset & Reproducible Artifacts: https://github.com/AwakeningOS/decentralized-weight-control