# NOEON — Architecture ## Design in one picture ``` frozen, never modified trainable (NOEON) ┌───────────────────────────────┐ ┌──────────────────────────────┐ │ vision (4.742 B) │──states─▶ BridgeAdapter("vision") │ │ computer_use (4.742 B) │──states─▶ BridgeAdapter("computer_use") │ generation (8.726 B) │──ctx────▶ BridgeAdapter("generation")│ └───────────────────────────────┘ └───────────────┬──────────────┘ │ all 2560-d ▼ ┌───────────────────────────────────┐ │ FusionCore (shared transformer) │ │ + modality embeddings │ │ + shared positional embeddings │ └───────────────┬───────────────────┘ ▼ fused state + GenerationHead (2560-d) ``` Each capability slot is backed by a frozen upstream model; the mapping from slot to upstream repository is in `docs/PROVENANCE.md`. ## Why this is a real integration, not a router * **One shared space.** All three streams are projected into the same 2560-d width and processed by a **single** transformer stack. Attention runs over the concatenation of every modality, so a vision token can attend to a computer-use token can attend to a generation token. The modalities interact inside the same parameters. * **Learned connections.** Each `BridgeAdapter` is trained. Nothing routes or chooses between models. * **The sources are frozen.** No weights are averaged, no checkpoint is rewritten. The originals remain byte-identical and recoverable at any time. ## The 2560-d shared space is measured, not assumed * Mage-VL and Mage-VL-Cowork are the **same architecture** (Qwen3-4B trunk, `hidden_size` 2560). Verified: 696 tensors each, identical shapes once the container prefix is normalised (`model.language_model.` ↔ `model.`), 4.7418 B params each. * Mage-Flow's diffusion transformer has `context_in_dim = 2560` and its text encoder is Qwen3-VL with text `hidden_size` 2560. So a genuine common width exists. That is *necessary* for a bridge and is explicitly **not** treated as sufficient: the bridges are trained rather than assumed to work, and the compatibility check refuses to hide shape mismatches. ## Knowledge preservation (how the originals are protected) 1. **Frozen weights.** Sources are loaded read-only; only NOEON parameters are trainable (`freeze_sources`). 2. **Identity-initialised bridges.** `residual` and `up` start at zero, so at step 0 the bridge is an exact passthrough (`x + 0`). Training can only add structure; it cannot corrupt frozen behaviour on day one. Verified by `test_bridge_identity_init_is_passthrough` and `test_bridge_retention_is_near_one_at_init`. 3. **Low-rank adapters.** The trainable surface is a small bottleneck plus optional LoRA deltas — the billion-parameter sources stay untouched. 4. **Distillation term.** The trainer can pull the fused state toward the frozen teachers' own pooled states (`distill_weight`), plus optional replay (`replay_ratio`) to resist catastrophic forgetting. ## Parameter budget * Frozen sources: **18.21 B** parameters — never modified. * Trainable NOEON (default config): **≈ 698 M** parameters — bridges, fusion core, generation head. ## Components | Path | Role | |---|---| | `noeon/core/registry.py` | verified source facts | | `noeon/core/hub.py` | dependency-free Hub access (headers via range requests) | | `noeon/core/compat.py` | tensor shape-compatibility analysis | | `noeon/core/bridge.py` | trainable bridge adapters + LoRA | | `noeon/architecture/fusion.py` | shared transformer fusion core | | `noeon/architecture/model.py` | assembled `Noeon` | | `noeon/training/trainer.py` | Phase-3 trainer (frozen sources) | | `noeon/training/checkpoint.py` | save / load / resume | | `noeon/evaluation/harness.py` | real alignment / generation / retention metrics |