{
 "artifacts": [
  {
   "name": "experiment.py",
   "url": "https://synthcore.org/code/50/experiment.py"
  },
  {
   "name": "report.md",
   "url": "https://synthcore.org/code/50/report.md"
  }
 ],
 "category": "architecture",
 "description": "Replace the shared Transformer feed-forward matrix with a shared base matrix plus a token-dependent low-rank update synthesized from a recurrent state-space controller. Unlike mixture-of-experts, the token does not merely interpolate expert outputs: it changes the actual matrices used inside both gated projections and therefore creates a continuous family of token-specific operators. The low-rank restriction keeps parameter growth and compute modest while allowing the controller to implement slowly varying computation across a sequence.",
 "download_zip": "https://synthcore.org/download/50",
 "formulas_latex": [
  "$$\\mathrm{SwiGLU}(x)=W_{2}\\big(\\mathrm{SiLU}(W_{1}x)\\odot W_{3}x\\big).$$",
  "$$s_t=A s_{t-1}+B u_t,\\qquad \\alpha_t=\\operatorname{softmax}(P s_t+b).$$",
  "$$W_j(t)=W_j^{0}+\\sum_{k=1}^{K}\\alpha_{t,k}U_{j,k}V_{j,k}^{\\mathsf T},\\qquad \\widetilde{\\mathrm{FFN}}(x_t)=W_2(t)\\left[\\operatorname{SiLU}(W_1(t)x_t)\\odot W_3(t)x_t\\right].$$"
 ],
 "id": 158,
 "implementation": "1. Integration point: in each pre-norm Transformer block, replace the ordinary SwiGLU matrices W1, W2, and W3. Feed the normalized token sequence u[1:T] into a lightweight causal controller before the MLP; use its state s[t] to generate the dynamic low-rank updates. Start with one controller shared across layers, or one controller per layer if capacity is insufficient. 2. Pseudocode: initialize s=0; for t in 1..T, compute s = A @ s + B @ u[t], compute alpha = softmax(P @ s + b), set W1t=W10+sum_k alpha[k]*U1[k]@V1[k].T and analogously W2t,W3t, compute y[t]=W2t @ (silu(W1t @ u[t]) * (W3t @ u[t])), and return h[t]=h[t]+y[t]. Parameterize A as A=diag(tanh(a)) for a diagonal stable SSM in the MVP; later test a low-rank-plus-diagonal A. 3. Compute from the proposed mathematics: the shared-plus-low-rank decomposition, state recurrence, and soft instruction code. Estimate empirically: effective code entropy, state time constant, rank r, and whether codes remain smooth across adjacent tokens. Log alpha entropy and ||Wj(t)-Wj0||F. 4. First experiment: compare a 6-layer decoder-only Transformer with ordinary SwiGLU, standard top-1 or soft MoE, and this module on WikiText-2 or a small sequential neural-decoding dataset. Match trainable parameters and FLOPs as closely as possible, using d=256, m=1024, q=32, K=8, r=8. Train with three random seeds and evaluate validation loss versus training examples, long-context extrapolation, and throughput. Success means lower validation loss at the same number of examples and no worse than 10% throughput, with the strongest expected gain on long contexts or heterogeneous token regimes. Ablate the state recurrence, low-rank updates, and code conditioning separately.",
 "math_summary": "The baseline gated feed-forward map is the paper's \\(\\mathrm{SwiGLU}(x)=W_{2}(\\mathrm{SiLU}(W_{1}x)\\odot W_{3}x)\\), where \\(x\\in\\mathbb{R}^{d}\\), \\(W_1,W_3\\in\\mathbb{R}^{m\\times d}\\), \\(W_2\\in\\mathbb{R}^{d\\times m}\\), and \\(\\odot\\) is elementwise multiplication. Adapt this using a state-space memory \\(s_t\\in\\mathbb{R}^{q}\\): \\(s_t=A s_{t-1}+B u_t\\), where \\(u_t\\) is the current normalized token, \\(A\\in\\mathbb{R}^{q\\times q}\\) is a stable transition matrix with spectral radius less than one, and \\(B\\in\\mathbb{R}^{q\\times d}\\). The instruction code is \\(\\alpha_t=\\operatorname{softmax}(P s_t+b)\\in\\mathbb{R}^{K}\\), with \\(P\\in\\mathbb{R}^{K\\times q}\\), and each dynamic matrix is \\(W_j(t)=W_j^{0}+\\sum_{k=1}^{K}\\alpha_{t,k}U_{j,k}V_{j,k}^{\\mathsf T}\\). Here \\(W_j^0\\) is a shared base matrix, \\(U_{j,k}\\) and \\(V_{j,k}\\) have rank \\(r\\), and \\(j\\in\\{1,2,3\\}\\). The resulting operator is \\(W_2(t)[\\operatorname{SiLU}(W_1(t)x_t)\\odot W_3(t)x_t]\\). The low-rank update has only \\(r(m+d)\\) parameters per instruction for each matrix, instead of \\(md\\), while the state-space recurrence supplies temporal persistence in the instruction code.",
 "math_tags": [
  "linear-algebra",
  "dynamical-systems",
  "tensor-decomposition"
 ],
 "ml_areas": [
  "transformer",
  "mlp",
  "ssm"
 ],
 "paper": {
  "arxiv_id": "2608.25088",
  "arxiv_url": "https://arxiv.org/abs/2608.25088",
  "summary_what_math_gives_to_ml": "The paper contains a transferable architectural idea: use a low-dimensional recurrent state to select the parameters of a token-specific operator, rather than selecting among fixed expert outputs. The key asset is factorized dynamic weight synthesis, which gives each token a task-conditioned linear map while keeping the instruction bank much smaller than a full set of dense experts. This should be tested first as a drop-in replacement for the Transformer MLP, with a stable state-space controller and explicit low-rank updates around a shared base matrix. The main falsifiable benefit is improved accuracy and data efficiency at equal parameter count, especially when long contexts require slowly changing computation.",
  "title": "The Von-Neumann State-Space Transformer for neural decoding",
  "year": "2026"
 },
 "ratings": {
  "difficulty": 5,
  "novelty": 7,
  "usefulness": 7
 },
 "solves": [
  "accuracy",
  "sample-efficiency",
  "scalability"
 ],
 "title": "State-Routed Low-Rank MLP",
 "url": "https://synthcore.org/idea/158/state-routed-low-rank-mlp",
 "verification": {
  "peer_reviewed": false,
  "stage1_mechanism_check": {
   "worked": false,
   "confidence": 8,
   "verdict": "Built a self-contained state-routed low-rank SwiGLU MVP with a diagonal stable SSM controller, soft routing, weighted rank-3 updates for all three projections, mathematical checks, and a seeded synthetic persistent-regime regression. The math check passed: spectral radius 0.9969\u003c1, maximum update rank 3, softmax sum error 0, and homogeneous state norm contracted to 0.163. The idea reached lower validation MSE than baseline (0.9616 vs 0.9908, about 2.9% better), but required 24.44s versus 1.42s and 6284 versus 3456 parameters, failing the proposed \u003c=10% throughput-overhead criterion.",
   "metrics": {
    "baseline": "validation MSE 0.99077; train MSE 1.01413; runtime 1.42s; parameters 3456",
    "idea": "validation MSE 0.96160; train MSE 0.97513; runtime 24.44s; parameters 6284; mean update Frobenius norm 1.9405; alpha entropy 0.4227; math spectral radius 0.99689"
   },
   "how_to_run": "python3 experiment.py",
   "files": [
    "experiment.py"
   ],
   "limitations": "Only one random seed and one small synthetic regression task were tested; no WikiText or language-model evaluation, Transformer integration, FLOP-matched comparison, multi-layer/shared-controller study, long-context extrapolation, or ablations were run. The routed implementation loops over sequence positions and materializes per-token matrices, so its measured speed is not representative of an optimized fused kernel."
  },
  "status": "mechanism_failed",
  "status_label": "Mechanism failed",
  "updated_at": "2026-08-30T08:22:33",
  "verdict_source": "deterministic test code (paired-seed permutation statistics)",
  "verification_axes": {
   "benchmark_mechanism": {
    "confirmed": null,
    "tested": false
   },
   "practical_benchmark": {
    "beats_baseline": null,
    "tested": false
   },
   "toy_mechanism_gate": {
    "confirmed": false,
    "tested": true
   }
  }
 }
}
