{
 "artifacts": [
  {
   "name": "bench_report.json",
   "url": "https://synthcore.org/code/1050/bench_report.json"
  },
  {
   "name": "report.md",
   "url": "https://synthcore.org/code/1050/report.md"
  },
  {
   "name": "report_bench_2026-09-01T195600.md",
   "url": "https://synthcore.org/code/1050/report_bench_2026-09-01T195600.md"
  },
  {
   "name": "results.json",
   "url": "https://synthcore.org/code/1050/results.json"
  },
  {
   "name": "stage2_bench.py",
   "url": "https://synthcore.org/code/1050/stage2_bench.py"
  },
  {
   "name": "trusted_reachable_rnn.py",
   "url": "https://synthcore.org/code/1050/trusted_reachable_rnn.py"
  }
 ],
 "category": "dynamics",
 "description": "Apply the paper's compositional PAS idea to recurrent or state-space networks by propagating a polytope of possible hidden states and input perturbations over multiple time blocks. Instead of validating one hidden trajectory at a time, maintain a trusted convex family and re-linearize only when its nonlinear-fidelity tolerance is exceeded. This creates a runtime monitor and adaptive horizon mechanism for long-sequence inference, forecasting, and learned world models.",
 "download_zip": "https://synthcore.org/download/1050",
 "formulas_latex": [
  "$$h_{k+1}=f_\\phi(h_k,u_k),\\qquad h_k(\\gamma)=h_k^*+R_k\\gamma,\\qquad u_k(\\gamma)=u_k^*+U_k\\gamma.$$",
  "$$R_{k+1}=A_kR_k+C_kU_k,\\qquad A_k=\\left.\\frac{\\partial f_\\phi}{\\partial h}\\right|_{(h_k^*,u_k^*)},\\quad C_k=\\left.\\frac{\\partial f_\\phi}{\\partial u}\\right|_{(h_k^*,u_k^*)}.$$",
  "$$\\mathcal{H}_k=\\{h_k^*+R_k\\gamma\\mid \\gamma\\in\\mathcal{A}\\},\\qquad \\mathcal{A}=\\{\\gamma:G\\gamma\\le h\\}.$$",
  "$$v(\\gamma)=\\max_{0\\le k\u003cH}\\left\\|f_\\phi(h_k^*+R_k\\gamma,u_k^*+U_k\\gamma)-h_{k+1}^*-R_{k+1}\\gamma\\right\\|_2,$$"
 ],
 "id": 2718,
 "implementation": "Use this as an inference-time monitor or training regularizer for an RNN, GRU, neural ODE discretization, or diagonal state-space model. Select a nominal input sequence and compute a block rollout \\((h_k^*,u_k^*)\\) of length \\(H\\). Let \\(\\gamma\\) contain perturbations to the initial hidden state and a low-rank set of input directions, initialized as a box \\(|\\gamma_i|\\le r_i\\). Compute \\(A_k\\) and \\(C_k\\) with automatic differentiation or Jacobian-vector products, then recursively form \\(R_k\\). Evaluate the true recurrence at polytope vertices, random interior points, and adversarial points found by maximizing observed violation. Shrink the polytope until probes satisfy \\(v(\\gamma)\\le\\varepsilon\\); use the accepted terminal polytope as the next block's initial uncertainty set, or re-center and re-linearize when its volume becomes too small. During training, add \\(\\lambda\\max(0,v_{\\max}-\\varepsilon)^2\\) to the task loss. At inference, trigger re-linearization, shorter blocks, or conservative input selection when trusted volume collapses. First test a small GRU on permuted-MNIST or a nonlinear state-space forecasting dataset against ordinary truncated BPTT and an unmonitored GRU at equal compute. The predicted signature is a critical horizon \\(H_c(r,\\varepsilon)\\): below it, affine multi-step error stays under \\(\\varepsilon\\); above it, error increases rapidly. Re-centering should extend the usable horizon and produce repeatable boundaries across sequences.",
 "math_summary": "For a recurrent map \\(h_{k+1}=f_\\phi(h_k,u_k)\\), let \\((h_k^*,u_k^*)\\) be a nominal rollout and let \\(\\gamma\\) parameterize perturbations to initial state and inputs. The affine family is \\(h_k(\\gamma)=h_k^*+R_k\\gamma\\), \\(u_k(\\gamma)=u_k^*+U_k\\gamma\\), with \\(R_{k+1}=A_kR_k+C_kU_k\\), where \\(A_k=\\partial f_\\phi/\\partial h\\) and \\(C_k=\\partial f_\\phi/\\partial u\\), evaluated on the nominal rollout. For \\(\\mathcal{A}=\\{\\gamma:G\\gamma\\le h\\}\\), the predicted reachable hidden set is \\(\\mathcal{H}_k=\\{h_k^*+R_k\\gamma:\\gamma\\in\\mathcal{A}\\}\\). Define one-step nonlinear violation by \\(v_k(\\gamma)=\\|f_\\phi(h_k^*+R_k\\gamma,u_k^*+U_k\\gamma)-h_{k+1}^*-R_{k+1}\\gamma\\|_2\\), and retain points satisfying \\(\\max_{k\u003cH}v_k(\\gamma)\\le\\varepsilon\\). The terminal trusted polytope is composed with the next block and the map is re-linearized when its volume or fidelity becomes insufficient.",
 "math_tags": [
  "control-theory",
  "dynamical-systems",
  "geometry",
  "linear-algebra",
  "numerical-analysis"
 ],
 "ml_areas": [
  "rnn",
  "ssm",
  "world-model",
  "training-dynamics"
 ],
 "paper": {
  "arxiv_id": "2608.24019",
  "arxiv_url": "https://arxiv.org/abs/2608.24019",
  "summary_what_math_gives_to_ml": "The paper provides a constructive mechanism for converting locally linearized trajectories of nonlinear underactuated systems into reusable convex action polytopes, while filtering those polytopes through an explicit nonlinear dynamics-violation metric. Its transferable asset is not merely linearization, but extraction of a trusted convex inner approximation whose points remain within a prescribed local-fidelity tolerance, followed by composition of reachable families rather than individual samples. In neural networks, the same mechanism can define trusted polytopes of parameter updates or hidden-state interventions around a nominal computation, enabling multiple safe candidate updates to be optimized jointly. The key falsifiable signature is a sharp boundary in update radius or rollout horizon where the nonlinear violation tolerance is first exceeded.",
  "title": "Trusted Polytopic Action Sets for Fast Planning in Underactuated Systems",
  "year": "2026"
 },
 "ratings": {
  "difficulty": 7,
  "novelty": 8,
  "usefulness": 7
 },
 "solves": [
  "stability",
  "accuracy",
  "scalability"
 ],
 "title": "Composed Trusted Reachable Families for Recurrent Networks",
 "url": "https://synthcore.org/idea/2718/composed-trusted-reachable-families-for-recurrent-networks",
 "verification": {
  "benchmark": {
   "track": "dynamics",
   "model": "rnn_small",
   "n_seeds": 8,
   "metric_direction": "lower is better",
   "comparison": {
    "baseline_mean": 0.002105819425196387,
    "idea_mean": 0.001743134795106016,
    "delta_mean": -0.0003626846300903708,
    "per_seed_diffs": [
     0.000021727755665779114,
     -0.0004506262484937906,
     0.00014674151316285133,
     0.000740572577342391,
     -0.001442475593648851,
     -0.0014584931777790189,
     0.0001341800671070814,
     -0.0005931039340794086
    ],
    "idea_wins": 4,
    "n_pairs": 8,
    "p_value": 0.2468,
    "mde": 0.0006552640413442428,
    "mde_rel_pct": 31.116820060824228,
    "verdict": "no significant win",
    "system_worked": false
   },
   "baseline": {
    "best_cfg": {
     "lr": 0.006
    },
    "sweep": [
     {
      "cfg": {
       "lr": 0.001
      },
      "mean": 0.004298779065720737
     },
     {
      "cfg": {
       "lr": 0.003
      },
      "mean": 0.0034615940821822733
     },
     {
      "cfg": {
       "lr": 0.006
      },
      "mean": 0.0018282315868418664
     }
    ],
    "full": {
     "mean": 0.002105819425196387,
     "std": 0.000389436566226016,
     "per_seed": [
      0.002004395006224513,
      0.001437882543541491,
      0.0015748648438602686,
      0.002295783953741193,
      0.0024020641576498747,
      0.0024898042902350426,
      0.0020851334556937218,
      0.0025566271506249905
     ],
     "n": 8
    }
   },
   "idea": {
    "mean": 0.001743134795106016,
    "std": 0.0006819343183841201,
    "per_seed": [
     0.002026122761890292,
     0.0009872562950477004,
     0.00172160635702312,
     0.003036356531083584,
     0.0009595885640010238,
     0.0010313111124560237,
     0.002219313522800803,
     0.001963523216545582
    ],
    "n": 8
   },
   "mechanism_signature": {
    "alpha": 0.02,
    "idea_lr_results": {
     "0.001": {
      "mean": 0.005559288372751325,
      "n": 8,
      "per_seed": [
       0.0068917470052838326,
       0.0023556745145469904,
       0.0028747664764523506,
       0.003830716712400317,
       0.0052271741442382336,
       0.003931319806724787,
       0.007791006471961737,
       0.011571901850402355
      ],
      "std": 0.002875018990704497
     },
     "0.003": {
      "mean": 0.0027528391947271302,
      "n": 8,
      "per_seed": [
       0.0018411790952086449,
       0.0037763440050184727,
       0.0017155342502519488,
       0.005654776003211737,
       0.0015558436280116439,
       0.0030924330931156874,
       0.002543396782130003,
       0.0018432067008689046
      ],
      "std": 0.0013131710105052272
     },
     "0.006": {
      "mean": 0.001743134795106016,
      "n": 8,
      "per_seed": [
       0.002026122761890292,
       0.0009872562950477004,
       0.00172160635702312,
       0.003036356531083584,
       0.0009595885640010238,
       0.0010313111124560237,
       0.002219313522800803,
       0.001963523216545582
      ],
      "std": 0.0006819343183841201
     }
    },
    "method": "multi_step_affine_reachability_penalty",
    "signature": {
     "confirmed": true,
     "observed_log_slope": 1.9886342514929614,
     "observed_violation": [
      0.000008657040780235548,
      0.000034265096473973244,
      0.00013634731294587255
     ],
     "predicted_slope": 2,
     "radii": [
      0.02,
      0.04,
      0.08
     ]
    }
   },
   "custom_track": null
  },
  "mechanism_confirmed": false,
  "peer_reviewed": false,
  "practical_verdict": "inconclusive",
  "stage1_mechanism_check": {
   "worked": true,
   "confidence": 9,
   "verdict": "Built a scalar nonlinear recurrent trusted-reachable-family monitor with affine Jacobian propagation, box probing, tolerance-based horizon checks, and adaptive radius selection. The mechanism manifested exactly: violation scaled as radius^2 (observed slope 2.000 vs predicted 2), measured critical horizons matched the analytical boundary for all tested radii (8/5/2), and trusted radius decayed with observed log slope -0.22314 per step, matching -log(1.25). The monitor reduced H=10 violation from 0.02665 at fixed radius 0.04 to 0.00100 at radius 0.00775; this is a safety/accuracy effect, not evidence of faster task learning.",
   "metrics": {
    "baseline": "Fixed affine family radius 0.04 at lambda=1.25, q=0.3, H=10: max one-step violation 0.0266454, exceeding epsilon=0.001.",
    "idea": "Adaptive trusted radius sqrt(epsilon/(q*lambda^(2(H-1))))=0.007749 at H=10: measured max violation 0.0010000. Radius-scaling slope 2.000; horizon measured/predicted for radii 0.01,0.02,0.04 = 8/8,5/5,2/2; decay slope -0.223144 vs predicted -log(1.25)=-0.223144."
   },
   "how_to_run": "python3 trusted_reachable_rnn.py",
   "files": [
    "trusted_reachable_rnn.py",
    "results.json"
   ],
   "limitations": "Only a scalar quadratic recurrence with zero nominal input and initial-state uncertainty was tested; input-direction uncertainty, multidimensional polytopes, GRUs, composed block re-centering, adversarial probes, training-time regularization, wall-clock overhead, and downstream forecasting/classification accuracy were not tested."
  },
  "status": "failed_benchmark",
  "status_label": "Failed on benchmark",
  "updated_at": "2026-09-01T19:56:00",
  "verdict_source": "deterministic test code (paired-seed permutation statistics)"
 }
}
