| --- |
| license: apache-2.0 |
| library_name: ferric |
| pipeline_tag: robotics |
| tags: |
| - energy-based-model |
| - control |
| - physical-ai |
| - deterministic |
| - certified |
| - multi-body |
| --- |
| |
| # EFA-1 |
|
|
| **An energy-based, certified, deterministic, multi-body control model** β one body-embedding-conditioned trunk that |
| controls a *family* of bodies from a single weights file. Swap the body embedding, control a different body. |
|
|
| Charlot Lab Β· Institute for Physical AI @ Bailey Military Institute. |
| Runtime: [Ferric](https://ferric.physicalai-bmi.org) (pure-Rust, cross-fabric: Metal / WebGPU / Vulkan / browser). |
|
|
| ## Identity β measured in what matters for machines that act |
|
|
| **This card refuses tokens and parameter-count-as-capability.** In a post-transformer control model those numbers carry |
| no meaning; the identity axes are: |
|
|
| | axis | EFA-1 (gated, round-trip-verified; exact numbers in `config.json`) | |
| |---|---| |
| | capability | reach% per body at **K=1 forward pass** (flagship run: 100% on all three bodies) | |
| | verification | the model's **own potential** ranks good actions below bad, per body (97β99%) | |
| | energy | ~39 kFLOP **per decision** β vs a discrete Gα΅ planner's 7Γ / 31Γ / **140Γ** more as DOF grows | |
| | safety | **certified closed loop**: exponential stability at every measured attractor (Ο(A)<1) + a contraction core (Lyapunov P-metric) + a **funnel basin certificate covering 100% of grid nodes over the full physical domain** per body (limits disclosed below) | |
| | agency | **energy-gated tool ladder** (K=1 β K=4 β planner tool β seeded ES, all deterministic): escalates on β€0.2% of in-distribution decisions, **17Γ more on out-of-band goals** β the model's own energy detects difficulty and prices the extra compute (78β161 kFLOP/decision) | |
| | determinism | same (state, goal) β same action, **bit-for-bit**; Ferric extends this cross-fabric (Metal β WebGPU) | |
| | generality | **3 bodies per weights file** (1-, 2-, 3-joint coupled chains), one learned embedding row each | |
| | footprint | ~39k params β 160 KB β stated as *footprint*, never as capability | |
|
|
| ## Architecture |
|
|
| The **coordinated energy family on one latent** (the corrected 2026 recipe, end-to-end): |
| - **Shared trunk inputs**: a body-agnostic 12-wide joint encoding (4 features per joint: cos(ΞΈβg), sin(ΞΈβg), Ο, sinΞΈ; |
| inactive joints zero) β a learned **body embedding** (one row per body). |
| - **Flow head** (actuation): 3-wide velocity field, masked to the body's DOF, integrated at K=1 β no iterative energy |
| descent over actions (the recipe the field's own evidence retired), no BPTT. |
| - **Potential head** (verify): a scalar energy over (state, action, body) β **low = valid**; trained contrastively; |
| this is the model checking its own actions. |
|
|
| Inference (from `config.json`): `u = clamp(flow(feat, a=0, t=0, emb[body])[:dof])`; verify any candidate action by |
| `potential(feat, a, emb[body])`. |
|
|
| ## The agency loop (in `config.json` β `agency`) |
|
|
| The model's **own energy decides when to think harder and when to reach for tools** β every path seeded, the full |
| ladder bit-exact deterministic (measured): `L1` flow K=1 β if E>Ο `L2` flow K=4 β `L3` planner tool (discrete argmin |
| over the model's own potential) β `L4` seeded evolution search; execute the argmin-E candidate. Ο per body ships in the |
| config (95th percentile of validation energy β calibrated from the artifact alone). Measured behavior: in-distribution |
| the energy is content (β€0.2% escalation, cost β the K=1 baseline); on goals **outside the training band** escalation |
| rises 17Γ on the 3-DOF body and mean cost prices honestly (78β161 kFLOP/decision). Stated plainly: at this scale the |
| tools bought **no additional reach** β K=1 already generalizes to 93β100% out-of-band β so the ladder's demonstrated |
| value is *calibrated difficulty detection and compute pricing*, not rescue; the L4 genetic tool never fired at natural Ο. |
|
|
| ## Lineage & honesty (read before using) |
|
|
| - Built by the EFA program's gated release pipeline: **train β gate (every body reach β₯95% AND verify β₯90% AND |
| bit-exact) β save β reload from disk β re-verify** β only verified weights ship. Provenance: `experiments/ebm_efa1.rs`; |
| the 69-experiment [validation ledger](https://github.com/dcharlot-physicalai-bmi/efa/blob/main/docs/RESULTS.md) |
| (negatives included), the [2026 frontier check](https://github.com/dcharlot-physicalai-bmi/efa/blob/main/docs/FRONTIER-CHECK-2026.md) |
| that corrected the recipe, and the [EFA-1 spec](https://github.com/dcharlot-physicalai-bmi/efa/blob/main/docs/EFA-1.md) |
| with the verified mid-2026 positioning. |
| - **Simulated bodies** (coupled-pendulum-chain family, dynamics in `config.json`), reachable-goal sets, distilled from |
| per-body fitted-value demonstrators, one gated seed. The claim is the **architecture identity** β |
| multi-body-per-weights + energy-verified + deterministic + joules-metered β not manipulation breadth. |
| - **Certificates β computed on this artifact's closed loop** (exact numbers in `config.json`): every (body, goal) loop |
| converges to a true fixed point (βf(x*)βx*β β€ 1e-8) within 0.05β0.32 rad of the goal β inside the card's 0.35 |
| criterion; **local exponential stability certified** at every attractor (Ο(A) = 0.89 / 0.95 / 0.96 < 1); a |
| contraction core in the Lyapunov metric of the closed-loop linearization (certified ball r = 0.76 / 0.42 / 0.64 in |
| P-norm; 100% empirical convergence from inside). **Basin certificate (funnel composition, LQR-tree-style): 100.0% of |
| grid nodes over the FULL physical domain (ΞΈ on the whole circle Γ Ο in the measured transient envelope) provably |
| enter that contraction core** β 1,353 / 74,529 / 456,533 nodes per body, median entry 34 / 62 / 66 steps, zero |
| no-entries, worst sampled funnel expansion Ο_P(Ξ¦) = 117.5 / 18.1 / 59.3. |
| **Multi-goal: ALL 12 (body, goal) pairs β every card goal on every body β certify at 100.0% of the full physical |
| domain** (per-goal attractors and cores in `certificates_multigoal`; core radii 0.25β1.20, goal-dependent). |
| Limits stated plainly: grid-sampled and node-local β no claim between nodes (the measure-zero separatrix lies there); |
| not an interval/SMT proof. The continuum gap is *quantified, not hand-waved*: scalar orbit-tube bounds were computed |
| and **fail honestly** (`certificates_tube` β the norms-product bound loses the directional cancellation that the |
| measured funnel expansion Ο_P(Ξ¦) = 18β117 enjoys; full-coverage grids would need infeasible node counts). The |
| rigorous continuum route is named: matrix/ellipsoidal tubes, then interval/CROWN bound propagation with |
| branch-and-bound β neural-verification tooling, a real project. The recorded negatives that shaped the method: |
| identity-metric contraction fails; a full-circle one-step metric field must fail (topological obstruction); |
| cell-granular region-growth stalls when the core is smaller than a grid cell. The harness was validated first: |
| the certifying reconstruction reproduces the shipped card 100/100/100 before any number was trusted. |
| Provenance: `experiments/ebm_efa1cert{,2,3,4,5}.rs`, `experiments/ebm_efa1tube.rs`. |
| - Underactuated bodies remain a measured open boundary (ledger). EFA-2 targets a standard external body |
| (MuJoCo / SO-101-LeRobot) so comparisons become externally reproducible. |
| |
| ## Positioning (verified mid-2026, cited in the spec) |
| |
| Each of EFA-1's identity axes is unclaimed at product level by the current comparables: the leading edge lab measures |
| tok/s + memory (no joules); the nearest energy-based neighbor verifies *beneath* AI stacks but does not control bodies; |
| no physical-AI product ships bit-reproducibility; no surviving comparable ships multi-body-per-weights control. |
| **They verify beneath the stack; EFA-1 controls the body.** |
| |
| License: Apache-2.0. |
| |